71c7c1f9c9660e59308c3080c201459f7b8a2577
[gnulib.git] / ChangeLog
1 2011-05-23  Bruno Haible  <bruno@clisp.org>
2
3         xstrtold: Move AC_LIBOBJ invocations to module description.
4         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6
7 2011-05-23  Bruno Haible  <bruno@clisp.org>
8
9         xstrtod: Move AC_LIBOBJ invocations to module description.
10         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12
13 2011-05-23  Bruno Haible  <bruno@clisp.org>
14
15         xnanosleep: Move AC_LIBOBJ invocations to module description.
16         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18
19 2011-05-23  Bruno Haible  <bruno@clisp.org>
20
21         xgetcwd: Move AC_LIBOBJ invocations to module description.
22         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
23         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
24
25 2011-05-23  Bruno Haible  <bruno@clisp.org>
26
27         xalloc: Move AC_LIBOBJ invocations to module description.
28         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
29         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
30
31 2011-05-23  Bruno Haible  <bruno@clisp.org>
32
33         write-any-file: Move AC_LIBOBJ invocations to module description.
34         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35         invocation.
36         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
37
38 2011-05-23  Bruno Haible  <bruno@clisp.org>
39
40         utimens: Move AC_LIBOBJ invocations to module description.
41         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
42         * modules/utimens (Makefile.am): Augment lib_SOURCES.
43
44 2011-05-23  Bruno Haible  <bruno@clisp.org>
45
46         utimecmp: Move AC_LIBOBJ invocations to module description.
47         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
49
50 2011-05-23  Bruno Haible  <bruno@clisp.org>
51
52         userspec: Move AC_LIBOBJ invocations to module description.
53         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
54         * modules/userspec (Makefile.am): Augment lib_SOURCES.
55
56 2011-05-23  Bruno Haible  <bruno@clisp.org>
57
58         unlinkdir: Move AC_LIBOBJ invocations to module description.
59         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
60         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
61
62 2011-05-23  Bruno Haible  <bruno@clisp.org>
63
64         unistd-safer: Move AC_LIBOBJ invocations to module description.
65         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
66         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
67
68 2011-05-23  Bruno Haible  <bruno@clisp.org>
69
70         tempname: Move AC_LIBOBJ invocations to module description.
71         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
72         * modules/tempname (Makefile.am): Augment lib_SOURCES.
73
74 2011-05-23  Bruno Haible  <bruno@clisp.org>
75
76         strftime: Move AC_LIBOBJ invocations to module description.
77         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
78         * modules/strftime (Makefile.am): Augment lib_SOURCES.
79
80 2011-05-23  Bruno Haible  <bruno@clisp.org>
81
82         stdlib-safer: Move AC_LIBOBJ invocations to module description.
83         * m4/stdlib-safer.m4: Remove file.
84         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
85         (configure.ac): Remove gl_STDLIB_SAFER call.
86         (Makefile.am): Augment lib_SOURCES.
87
88 2011-05-23  Bruno Haible  <bruno@clisp.org>
89
90         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
91         * m4/stdio-safer.m4: Remove file.
92         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
93         (configure.ac): Remove gl_TMPFILE_SAFER call.
94         (Makefile.am): Augment lib_SOURCES.
95
96 2011-05-23  Bruno Haible  <bruno@clisp.org>
97
98         popen-safer: Move AC_LIBOBJ invocations to module description.
99         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
100         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
101         (configure.ac): Remove gl_POPEN_SAFER call.
102         (Makefile.am): Augment lib_SOURCES.
103
104 2011-05-23  Bruno Haible  <bruno@clisp.org>
105
106         freopen-safer: Move AC_LIBOBJ invocations to module description.
107         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
108         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
109         (configure.ac): Remove gl_FREOPEN_SAFER call.
110         (Makefile.am): Augment lib_SOURCES.
111
112 2011-05-23  Bruno Haible  <bruno@clisp.org>
113
114         fopen-safer: Move AC_LIBOBJ invocations to module description.
115         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
116         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
117         (configure.ac): Remove gl_FOPEN_SAFER call.
118         (Makefile.am): Augment lib_SOURCES.
119
120 2011-05-23  Bruno Haible  <bruno@clisp.org>
121
122         crypto/sha512: Move AC_LIBOBJ invocations to module description.
123         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
124         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
125
126 2011-05-23  Bruno Haible  <bruno@clisp.org>
127
128         crypto/sha256: Move AC_LIBOBJ invocations to module description.
129         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
130         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
131
132 2011-05-23  Bruno Haible  <bruno@clisp.org>
133
134         crypto/sha1: Move AC_LIBOBJ invocations to module description.
135         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
136         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
137
138 2011-05-23  Bruno Haible  <bruno@clisp.org>
139
140         settime: Move AC_LIBOBJ invocations to module description.
141         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
142         * modules/settime (Makefile.am): Augment lib_SOURCES.
143
144 2011-05-23  Bruno Haible  <bruno@clisp.org>
145
146         savedir: Move AC_LIBOBJ invocations to module description.
147         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
148         * modules/savedir (Makefile.am): Augment lib_SOURCES.
149
150 2011-05-23  Bruno Haible  <bruno@clisp.org>
151
152         save-cwd: Move AC_LIBOBJ invocations to module description.
153         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
154         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
155
156 2011-05-23  Bruno Haible  <bruno@clisp.org>
157
158         same: Move AC_LIBOBJ invocations to module description.
159         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
160         * modules/same (Makefile.am): Augment lib_SOURCES.
161
162 2011-05-23  Bruno Haible  <bruno@clisp.org>
163
164         safe-write: Move AC_LIBOBJ invocations to module description.
165         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
166         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
167         instead of gl_SAFE_WRITE.
168         (Makefile.am): Augment lib_SOURCES.
169
170 2011-05-23  Bruno Haible  <bruno@clisp.org>
171
172         safe-read: Move AC_LIBOBJ invocations to module description.
173         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
174         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
175         of gl_SAFE_READ.
176         (Makefile.am): Augment lib_SOURCES.
177
178 2011-05-23  Bruno Haible  <bruno@clisp.org>
179
180         safe-alloc: Move AC_LIBOBJ invocations to module description.
181         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
182         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
183
184 2011-05-23  Bruno Haible  <bruno@clisp.org>
185
186         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
187         * m4/rijndael.m4: Remove file.
188         * modules/crypto/rijndael (Files): Remove it.
189         (configure.ac): Remove gl_RIJNDAEL call.
190         (Makefile.am): Augment lib_SOURCES.
191
192 2011-05-23  Bruno Haible  <bruno@clisp.org>
193
194         readtokens: Move AC_LIBOBJ invocations to module description.
195         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
196         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
197
198 2011-05-23  Bruno Haible  <bruno@clisp.org>
199
200         read-file: Move AC_LIBOBJ invocations to module description.
201         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
202         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
203         of gl_FUNC_READ_FILE.
204         (Makefile.am): Augment lib_SOURCES.
205
206 2011-05-23  Bruno Haible  <bruno@clisp.org>
207
208         quotearg: Move AC_LIBOBJ invocations to module description.
209         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
210         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
211
212 2011-05-23  Bruno Haible  <bruno@clisp.org>
213
214         quote: Move AC_LIBOBJ invocations to module description.
215         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
216         * modules/quote (Makefile.am): Augment lib_SOURCES.
217
218 2011-05-23  Bruno Haible  <bruno@clisp.org>
219
220         posixver: Move AC_LIBOBJ invocations to module description.
221         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
222         * modules/posixver (Makefile.am): Augment lib_SOURCES.
223
224 2011-05-23  Bruno Haible  <bruno@clisp.org>
225
226         posixtm: Move AC_LIBOBJ invocations to module description.
227         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
228         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
229
230 2011-05-23  Bruno Haible  <bruno@clisp.org>
231
232         physmem: Move AC_LIBOBJ invocations to module description.
233         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
234         * modules/physmem (Makefile.am): Augment lib_SOURCES.
235
236 2011-05-23  Bruno Haible  <bruno@clisp.org>
237
238         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
239         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
240         invocation.
241         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
242
243 2011-05-23  Bruno Haible  <bruno@clisp.org>
244
245         mpsort: Move AC_LIBOBJ invocations to module description.
246         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
247         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
248
249 2011-05-23  Bruno Haible  <bruno@clisp.org>
250
251         modechange: Move AC_LIBOBJ invocations to module description.
252         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
253         * modules/modechange (Makefile.am): Augment lib_SOURCES.
254
255 2011-05-23  Bruno Haible  <bruno@clisp.org>
256
257         mkdir-p: Move AC_LIBOBJ invocations to module description.
258         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
259         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
260
261 2011-05-23  Bruno Haible  <bruno@clisp.org>
262
263         mkancesdirs: Move AC_LIBOBJ invocations to module description.
264         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
265         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
266
267 2011-05-23  Bruno Haible  <bruno@clisp.org>
268
269         mgetgroups: Move AC_LIBOBJ invocations to module description.
270         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
271         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
272
273 2011-05-23  Bruno Haible  <bruno@clisp.org>
274
275         memxor: Move AC_LIBOBJ invocations to module description.
276         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
277         * modules/memxor (Makefile.am): Augment lib_SOURCES.
278
279 2011-05-23  Bruno Haible  <bruno@clisp.org>
280
281         memcoll: Move AC_LIBOBJ invocations to module description.
282         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
283         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
284
285 2011-05-23  Bruno Haible  <bruno@clisp.org>
286
287         memcasecmp: Move AC_LIBOBJ invocations to module description.
288         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
289         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
290
291 2011-05-23  Bruno Haible  <bruno@clisp.org>
292
293         crypto/md5: Move AC_LIBOBJ invocations to module description.
294         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
295         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
296
297 2011-05-23  Bruno Haible  <bruno@clisp.org>
298
299         crypto/md4: Move AC_LIBOBJ invocations to module description.
300         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
301         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
302
303 2011-05-23  Bruno Haible  <bruno@clisp.org>
304
305         crypto/md2: Move AC_LIBOBJ invocations to module description.
306         * m4/md2.m4: Remove file.
307         * modules/crypto/md2 (Files): Remove it.
308         (configure.ac): Remove gl_MD2 call.
309         (Makefile.am): Augment lib_SOURCES.
310
311 2011-05-23  Bruno Haible  <bruno@clisp.org>
312
313         long-options: Move AC_LIBOBJ invocations to module description.
314         * m4/long-options.m4: Remove file.
315         * modules/long-options (Files): Remove it.
316         (configure.ac): Remove gl_LONG_OPTIONS call.
317         (Makefile.am): Augment lib_SOURCES.
318
319 2011-05-23  Bruno Haible  <bruno@clisp.org>
320
321         i-ring: Move AC_LIBOBJ invocations to module description.
322         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
323         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
324
325 2011-05-23  Bruno Haible  <bruno@clisp.org>
326
327         idcache: Move AC_LIBOBJ invocations to module description.
328         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
329         * modules/idcache (Makefile.am): Augment lib_SOURCES.
330
331 2011-05-23  Bruno Haible  <bruno@clisp.org>
332
333         human: Move AC_LIBOBJ invocations to module description.
334         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
335         * modules/human (Makefile.am): Augment lib_SOURCES.
336
337 2011-05-23  Bruno Haible  <bruno@clisp.org>
338
339         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
340         * m4/hmac-sha1.m4: Remove file.
341         * modules/crypto/hmac-sha1 (Files): Remove it.
342         (configure.ac): Remove gl_HMAC_SHA1 call.
343         (Makefile.am): Augment lib_SOURCES.
344
345 2011-05-23  Bruno Haible  <bruno@clisp.org>
346
347         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
348         * m4/hmac-md5.m4: Remove file.
349         * modules/crypto/hmac-md5 (Files): Remove it.
350         (configure.ac): Remove gl_HMAC_MD5 call.
351         (Makefile.am): Augment lib_SOURCES.
352
353 2011-05-23  Bruno Haible  <bruno@clisp.org>
354
355         hash: Move AC_LIBOBJ invocations to module description.
356         * m4/hash.m4: Remove file.
357         * modules/hash (Files): Remove it.
358         (configure.ac): Remove gl_HASH call.
359         (Makefile.am): Augment lib_SOURCES.
360
361 2011-05-23  Bruno Haible  <bruno@clisp.org>
362
363         hard-locale: Move AC_LIBOBJ invocations to module description.
364         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
365         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
366
367 2011-05-23  Bruno Haible  <bruno@clisp.org>
368
369         getugroups: Move AC_LIBOBJ invocations to module description.
370         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
371         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
372
373 2011-05-23  Bruno Haible  <bruno@clisp.org>
374
375         gettime: Move AC_LIBOBJ invocations to module description.
376         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
377         * modules/gettime (Makefile.am): Augment lib_SOURCES.
378
379 2011-05-23  Bruno Haible  <bruno@clisp.org>
380
381         getndelim2: Move AC_LIBOBJ invocations to module description.
382         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
383         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
384
385 2011-05-23  Bruno Haible  <bruno@clisp.org>
386
387         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
388         * m4/gc-pbkdf2-sha1.m4: Remove file.
389         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
390         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
391         (Makefile.am): Augment lib_SOURCES.
392
393 2011-05-23  Bruno Haible  <bruno@clisp.org>
394
395         fts: Move AC_LIBOBJ invocations to module description.
396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
397         * modules/fts (configure.ac): ... to here.
398
399 2011-05-23  Bruno Haible  <bruno@clisp.org>
400
401         file-type: Move AC_LIBOBJ invocations to module description.
402         * m4/file-type.m4: Remove file.
403         * modules/file-type (Files): Remove it.
404         (configure.ac): Remove gl_FILE_TYPE call.
405         (Makefile.am): Augment lib_SOURCES.
406
407 2011-05-23  Bruno Haible  <bruno@clisp.org>
408
409         filenamecat*: Respect rules for use of AC_LIBOBJ.
410         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
411         Remove AC_LIBOBJ invocation.
412         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
413         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
414
415 2011-05-23  Bruno Haible  <bruno@clisp.org>
416
417         filemode: Move AC_LIBOBJ invocations to module description.
418         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
419         * modules/filemode (Makefile.am): Augment lib_SOURCES.
420
421 2011-05-23  Bruno Haible  <bruno@clisp.org>
422
423         openat-safer: Move AC_LIBOBJ invocations to module description.
424         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
425         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
426
427 2011-05-23  Bruno Haible  <bruno@clisp.org>
428
429         fcntl-safer: Move AC_LIBOBJ invocations to module description.
430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
431         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
432
433 2011-05-23  Bruno Haible  <bruno@clisp.org>
434
435         exclude: Move AC_LIBOBJ invocations to module description.
436         * m4/exclude.m4: Remove file.
437         * modules/exclude (Files): Remove it.
438         (configure.ac): Remove gl_EXCLUDE call.
439         (Makefile.am): Augment lib_SOURCES.
440
441 2011-05-23  Bruno Haible  <bruno@clisp.org>
442
443         dirname*: Respect rules for use of AC_LIBOBJ.
444         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
445         invocations.
446         * modules/dirname (Makefile.am): Augment lib_SOURCES.
447         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
448
449 2011-05-23  Bruno Haible  <bruno@clisp.org>
450
451         dirent-safer: Move AC_LIBOBJ invocations to module description.
452         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
453         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
454
455 2011-05-23  Bruno Haible  <bruno@clisp.org>
456
457         crypto/des: Move AC_LIBOBJ invocations to module description.
458         * m4/des.m4: Remove file.
459         * modules/crypto/des (Files): Remove it.
460         (configure.ac): Remove gl_DES call.
461         (Makefile.am): Augment lib_SOURCES.
462
463 2011-05-23  Bruno Haible  <bruno@clisp.org>
464
465         cycle-check: Move AC_LIBOBJ invocations to module description.
466         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
467         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
468
469 2011-05-23  Bruno Haible  <bruno@clisp.org>
470
471         c-strtold: Move AC_LIBOBJ invocations to module description.
472         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
473         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
474
475 2011-05-23  Bruno Haible  <bruno@clisp.org>
476
477         c-strtod: Move AC_LIBOBJ invocations to module description.
478         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
479         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
480
481 2011-05-23  Bruno Haible  <bruno@clisp.org>
482
483         crc: Move AC_LIBOBJ invocations to module description.
484         * m4/crc.m4: Remove file.
485         * modules/crc (Files): Remove it.
486         (configure.ac): Remove gl_CRC call.
487         (Makefile.am): Augment lib_SOURCES.
488
489 2011-05-23  Bruno Haible  <bruno@clisp.org>
490
491         close-stream: Move AC_LIBOBJ invocations to module description.
492         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
493         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
494
495 2011-05-23  Bruno Haible  <bruno@clisp.org>
496
497         closeout: Move AC_LIBOBJ invocations to module description.
498         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
499         * modules/closeout (Makefile.am): Augment lib_SOURCES.
500
501 2011-05-23  Bruno Haible  <bruno@clisp.org>
502
503         closein: Move AC_LIBOBJ invocations to module description.
504         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
505         * modules/closein (Makefile.am): Augment lib_SOURCES.
506
507 2011-05-23  Bruno Haible  <bruno@clisp.org>
508
509         cloexec: Move AC_LIBOBJ invocations to module description.
510         * m4/cloexec.m4: Remove file.
511         * modules/cloexec (Files): Remove it.
512         (configure.ac): Remove gl_CLOEXEC call.
513         (Makefile.am): Augment lib_SOURCES.
514
515 2011-05-23  Bruno Haible  <bruno@clisp.org>
516
517         check-version: Move AC_LIBOBJ invocations to module description.
518         * m4/check-version.m4: Remove file.
519         * modules/check-version (Files): Remove it.
520         (configure.ac): Remove gl_CHECK_VERSION call.
521         (Makefile.am): Augment lib_SOURCES.
522
523 2011-05-23  Bruno Haible  <bruno@clisp.org>
524
525         chdir-safer: Move AC_LIBOBJ invocations to module description.
526         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
527         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
528
529 2011-05-23  Bruno Haible  <bruno@clisp.org>
530
531         canonicalize: Move AC_LIBOBJ invocations to module description.
532         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
533         AC_LIBOBJ invocation.
534         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
535
536 2011-05-23  Bruno Haible  <bruno@clisp.org>
537
538         canon-host: Move AC_LIBOBJ invocations to module description.
539         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
540         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
541         instead of gl_CANON_HOST.
542         (Makefile.am): Augment lib_SOURCES.
543
544 2011-05-23  Bruno Haible  <bruno@clisp.org>
545
546         backupfile: Move AC_LIBOBJ invocations to module description.
547         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
548         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
549
550 2011-05-23  Bruno Haible  <bruno@clisp.org>
551
552         argmatch: Move AC_LIBOBJ invocations to module description.
553         * m4/argmatch.m4: Remove file.
554         * modules/argmatch (Files): Remove it.
555         (configure.ac): Remove gl_ARGMATCH call.
556         (Makefile.am): Augment lib_SOURCES.
557
558 2011-05-23  Bruno Haible  <bruno@clisp.org>
559
560         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
561         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
562         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
563
564 2011-05-23  Bruno Haible  <bruno@clisp.org>
565
566         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
567         * m4/arcfour.m4: Remove file.
568         * modules/crypto/arcfour (Files): Remove it.
569         (configure.ac): Remove gl_ARCFOUR call.
570         (Makefile.am): Augment lib_SOURCES.
571
572 2011-05-22  Bruno Haible  <bruno@clisp.org>
573
574         write: Move AC_LIBOBJ invocations to module description.
575         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
576         * modules/write (configure.ac): ... to here.
577
578 2011-05-22  Bruno Haible  <bruno@clisp.org>
579
580         wmemset: Move AC_LIBOBJ invocations to module description.
581         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
582         here...
583         * modules/wmemset (configure.ac): ... to here.
584
585 2011-05-22  Bruno Haible  <bruno@clisp.org>
586
587         wmemmove: Move AC_LIBOBJ invocations to module description.
588         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
589         here...
590         * modules/wmemmove (configure.ac): ... to here.
591
592 2011-05-22  Bruno Haible  <bruno@clisp.org>
593
594         wmemcpy: Move AC_LIBOBJ invocations to module description.
595         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
596         here...
597         * modules/wmemcpy (configure.ac): ... to here.
598
599 2011-05-22  Bruno Haible  <bruno@clisp.org>
600
601         wmemcmp: Move AC_LIBOBJ invocations to module description.
602         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
603         here...
604         * modules/wmemcmp (configure.ac): ... to here.
605
606 2011-05-22  Bruno Haible  <bruno@clisp.org>
607
608         wmemchr: Move AC_LIBOBJ invocations to module description.
609         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
610         here...
611         * modules/wmemchr (configure.ac): ... to here.
612
613 2011-05-22  Bruno Haible  <bruno@clisp.org>
614
615         wcswidth: Move AC_LIBOBJ invocations to module description.
616         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
617         here...
618         * modules/wcswidth (configure.ac): ... to here.
619
620 2011-05-22  Bruno Haible  <bruno@clisp.org>
621
622         wcwidth: Respect rules for use of AC_LIBOBJ.
623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
624         invocation from here...
625         * modules/wcwidth (configure.ac): ... to here.
626         (Depends-on): Update conditions.
627
628 2011-05-22  Bruno Haible  <bruno@clisp.org>
629
630         wctype: Move AC_LIBOBJ invocations to module description.
631         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
632         invocation from here...
633         * modules/wctype (configure.ac): ... to here.
634         (Depends-on): Update conditions.
635
636 2011-05-22  Bruno Haible  <bruno@clisp.org>
637
638         wctrans: Move AC_LIBOBJ invocations to module description.
639         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
640         invocation from here...
641         * modules/wctrans (configure.ac): ... to here.
642
643 2011-05-22  Bruno Haible  <bruno@clisp.org>
644
645         wctomb: Move AC_LIBOBJ invocations to module description.
646         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
647         invocations from here...
648         * modules/wctomb (configure.ac): ... to here.
649
650 2011-05-22  Bruno Haible  <bruno@clisp.org>
651
652         wctob: Move AC_LIBOBJ invocations to module description.
653         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
654         gl_PREREQ_WCTOB invocations from here...
655         * modules/wctob (configure.ac): ... to here.
656         (Depends-on): Update conditions.
657
658 2011-05-22  Bruno Haible  <bruno@clisp.org>
659
660         wcsxfrm: Move AC_LIBOBJ invocations to module description.
661         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
662         here...
663         * modules/wcsxfrm (configure.ac): ... to here.
664
665 2011-05-22  Bruno Haible  <bruno@clisp.org>
666
667         wcstok: Move AC_LIBOBJ invocations to module description.
668         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
669         * modules/wcstok (configure.ac): ... to here.
670
671 2011-05-22  Bruno Haible  <bruno@clisp.org>
672
673         wcsstr: Move AC_LIBOBJ invocations to module description.
674         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
675         * modules/wcsstr (configure.ac): ... to here.
676
677 2011-05-22  Bruno Haible  <bruno@clisp.org>
678
679         wcsspn: Move AC_LIBOBJ invocations to module description.
680         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
681         * modules/wcsspn (configure.ac): ... to here.
682
683 2011-05-22  Bruno Haible  <bruno@clisp.org>
684
685         wcsrtombs: Move AC_LIBOBJ invocations to module description.
686         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
687         gl_PREREQ_WCSRTOMBS invocations from here...
688         * modules/wcsrtombs (configure.ac): ... to here.
689
690 2011-05-22  Bruno Haible  <bruno@clisp.org>
691
692         wcsrchr: Move AC_LIBOBJ invocations to module description.
693         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
694         here...
695         * modules/wcsrchr (configure.ac): ... to here.
696
697 2011-05-22  Bruno Haible  <bruno@clisp.org>
698
699         wcspbrk: Move AC_LIBOBJ invocations to module description.
700         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
701         here...
702         * modules/wcspbrk (configure.ac): ... to here.
703
704 2011-05-22  Bruno Haible  <bruno@clisp.org>
705
706         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
707         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
708         gl_PREREQ_WCSNRTOMBS invocations from here...
709         * modules/wcsnrtombs (configure.ac): ... to here.
710
711 2011-05-22  Bruno Haible  <bruno@clisp.org>
712
713         wcsnlen: Move AC_LIBOBJ invocations to module description.
714         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
715         here...
716         * modules/wcsnlen (configure.ac): ... to here.
717
718 2011-05-22  Bruno Haible  <bruno@clisp.org>
719
720         wcsncpy: Move AC_LIBOBJ invocations to module description.
721         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
722         here...
723         * modules/wcsncpy (configure.ac): ... to here.
724
725 2011-05-22  Bruno Haible  <bruno@clisp.org>
726
727         wcsncmp: Move AC_LIBOBJ invocations to module description.
728         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
729         here...
730         * modules/wcsncmp (configure.ac): ... to here.
731
732 2011-05-22  Bruno Haible  <bruno@clisp.org>
733
734         wcsncat: Move AC_LIBOBJ invocations to module description.
735         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
736         here...
737         * modules/wcsncat (configure.ac): ... to here.
738
739 2011-05-22  Bruno Haible  <bruno@clisp.org>
740
741         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
742         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
743         from here...
744         * modules/wcsncasecmp (configure.ac): ... to here.
745
746 2011-05-22  Bruno Haible  <bruno@clisp.org>
747
748         wcslen: Move AC_LIBOBJ invocations to module description.
749         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
750         * modules/wcslen (configure.ac): ... to here.
751
752 2011-05-22  Bruno Haible  <bruno@clisp.org>
753
754         wcsdup: Move AC_LIBOBJ invocations to module description.
755         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
756         * modules/wcsdup (configure.ac): ... to here.
757
758 2011-05-22  Bruno Haible  <bruno@clisp.org>
759
760         wcscspn: Move AC_LIBOBJ invocations to module description.
761         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
762         here...
763         * modules/wcscspn (configure.ac): ... to here.
764
765 2011-05-22  Bruno Haible  <bruno@clisp.org>
766
767         wcscpy: Move AC_LIBOBJ invocations to module description.
768         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
769         * modules/wcscpy (configure.ac): ... to here.
770
771 2011-05-22  Bruno Haible  <bruno@clisp.org>
772
773         wcscoll: Move AC_LIBOBJ invocations to module description.
774         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
775         here...
776         * modules/wcscoll (configure.ac): ... to here.
777
778 2011-05-22  Bruno Haible  <bruno@clisp.org>
779
780         wcscmp: Move AC_LIBOBJ invocations to module description.
781         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
782         * modules/wcscmp (configure.ac): ... to here.
783
784 2011-05-22  Bruno Haible  <bruno@clisp.org>
785
786         wcschr: Move AC_LIBOBJ invocations to module description.
787         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
788         * modules/wcschr (configure.ac): ... to here.
789
790 2011-05-22  Bruno Haible  <bruno@clisp.org>
791
792         wcscat: Move AC_LIBOBJ invocations to module description.
793         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
794         * modules/wcscat (configure.ac): ... to here.
795
796 2011-05-22  Bruno Haible  <bruno@clisp.org>
797
798         wcscasecmp: Move AC_LIBOBJ invocations to module description.
799         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
800         here...
801         * modules/wcscasecmp (configure.ac): ... to here.
802
803 2011-05-22  Bruno Haible  <bruno@clisp.org>
804
805         wcrtomb: Move AC_LIBOBJ invocations to module description.
806         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
807         invocations from here...
808         * modules/wcrtomb (configure.ac): ... to here.
809
810 2011-05-22  Bruno Haible  <bruno@clisp.org>
811
812         wcpncpy: Move AC_LIBOBJ invocations to module description.
813         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
814         here...
815         * modules/wcpncpy (configure.ac): ... to here.
816
817 2011-05-22  Bruno Haible  <bruno@clisp.org>
818
819         wcpcpy: Move AC_LIBOBJ invocations to module description.
820         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
821         * modules/wcpcpy (configure.ac): ... to here.
822
823 2011-05-22  Bruno Haible  <bruno@clisp.org>
824
825         waitpid: Move AC_LIBOBJ invocations to module description.
826         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
827         invocation from here...
828         * modules/waitpid (configure.ac): ... to here.
829
830 2011-05-22  Bruno Haible  <bruno@clisp.org>
831
832         utimensat: Move AC_LIBOBJ invocations to module description.
833         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
834         here...
835         * modules/utimensat (configure.ac): ... to here.
836
837 2011-05-22  Bruno Haible  <bruno@clisp.org>
838
839         usleep: Move AC_LIBOBJ invocations to module description.
840         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
841         here...
842         * modules/usleep (configure.ac): ... to here.
843
844 2011-05-22  Bruno Haible  <bruno@clisp.org>
845
846         unlockpt: Move AC_LIBOBJ invocations to module description.
847         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
848         gl_PREREQ_UNLOCKPT invocations from here...
849         * modules/unlockpt (configure.ac): ... to here.
850
851 2011-05-22  Bruno Haible  <bruno@clisp.org>
852
853         unlink: Respect rules for use of AC_LIBOBJ.
854         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
855         * modules/unlink (configure.ac): ... to here.
856
857 2011-05-22  Bruno Haible  <bruno@clisp.org>
858
859         uname: Move AC_LIBOBJ invocations to module description.
860         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
861         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
862         here...
863         * modules/uname (configure.ac): ... to here.
864
865 2011-05-22  Bruno Haible  <bruno@clisp.org>
866
867         ttyname_r: Move AC_LIBOBJ invocations to module description.
868         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
869         gl_PREREQ_TTYNAME_R invocations from here...
870         * modules/ttyname_r (configure.ac): ... to here.
871
872 2011-05-22  Bruno Haible  <bruno@clisp.org>
873
874         tsearch: Move AC_LIBOBJ invocations to module description.
875         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
876         invocations from here...
877         * modules/tsearch (configure.ac): ... to here.
878
879 2011-05-22  Bruno Haible  <bruno@clisp.org>
880
881         towctrans: Move AC_LIBOBJ invocations to module description.
882         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
883         AC_LIBOBJ invocation from here...
884         * modules/towctrans (configure.ac): ... to here.
885
886 2011-05-22  Bruno Haible  <bruno@clisp.org>
887
888         tmpfile: Move AC_LIBOBJ invocations to module description.
889         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
890         invocations from here...
891         * modules/tmpfile (configure.ac): ... to here.
892
893 2011-05-22  Bruno Haible  <bruno@clisp.org>
894
895         times: Move AC_LIBOBJ invocations to module description.
896         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
897         * modules/times (configure.ac): ... to here.
898
899 2011-05-22  Bruno Haible  <bruno@clisp.org>
900
901         time_r: Move AC_LIBOBJ invocations to module description.
902         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
903         invocations from here...
904         * modules/time_r (configure.ac): ... to here.
905
906 2011-05-22  Bruno Haible  <bruno@clisp.org>
907
908         timegm: Move AC_LIBOBJ invocations to module description.
909         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
910         invocations from here...
911         * modules/timegm (configure.ac): ... to here.
912
913 2011-05-22  Bruno Haible  <bruno@clisp.org>
914
915         tcgetsid: Move AC_LIBOBJ invocations to module description.
916         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
917         and gl_PREREQ_TCGETSID invocations from here...
918         * modules/tcgetsid (configure.ac): ... to here.
919         (Depends-on): Update conditions.
920
921 2011-05-22  Bruno Haible  <bruno@clisp.org>
922
923         symlinkat: Move AC_LIBOBJ invocations to module description.
924         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
925         here...
926         * modules/symlinkat (configure.ac): ... to here.
927
928 2011-05-22  Bruno Haible  <bruno@clisp.org>
929
930         symlink: Move AC_LIBOBJ invocations to module description.
931         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
932         here...
933         * modules/symlink (configure.ac): ... to here.
934
935 2011-05-22  Bruno Haible  <bruno@clisp.org>
936
937         strverscmp: Move AC_LIBOBJ invocations to module description.
938         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
940         from here...
941         * modules/strverscmp (configure.ac): ... to here.
942
943 2011-05-22  Bruno Haible  <bruno@clisp.org>
944
945         strtok_r: Move AC_LIBOBJ invocations to module description.
946         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
947         and gl_PREREQ_STRTOK_R invocations from here...
948         * modules/strtok_r (configure.ac): ... to here.
949         (Depends-on): Update conditions.
950
951 2011-05-22  Bruno Haible  <bruno@clisp.org>
952
953         strtoumax: Move AC_LIBOBJ invocations to module description.
954         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
955         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
956         from here...
957         * modules/strtoumax (configure.ac): ... to here.
958
959 2011-05-22  Bruno Haible  <bruno@clisp.org>
960
961         strtoimax: Move AC_LIBOBJ invocations to module description.
962         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
963         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
964         from here...
965         * modules/strtoimax (configure.ac): ... to here.
966
967 2011-05-22  Bruno Haible  <bruno@clisp.org>
968
969         strtoull: Move AC_LIBOBJ invocations to module description.
970         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
971         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
972         from here...
973         * modules/strtoull (configure.ac): ... to here.
974
975 2011-05-22  Bruno Haible  <bruno@clisp.org>
976
977         strtoll: Move AC_LIBOBJ invocations to module description.
978         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
980         here...
981         * modules/strtoll (configure.ac): ... to here.
982
983 2011-05-22  Bruno Haible  <bruno@clisp.org>
984
985         strtoul: Move AC_LIBOBJ invocations to module description.
986         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
987         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
988         * modules/strtoul (configure.ac): ... to here.
989
990 2011-05-22  Bruno Haible  <bruno@clisp.org>
991
992         strtol: Move AC_LIBOBJ invocations to module description.
993         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
994         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
995         * modules/strtol (configure.ac): ... to here.
996
997 2011-05-22  Bruno Haible  <bruno@clisp.org>
998
999         strtod: Move AC_LIBOBJ invocations to module description.
1000         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1001         invocations from here...
1002         * modules/strtod (configure.ac): ... to here.
1003
1004 2011-05-22  Bruno Haible  <bruno@clisp.org>
1005
1006         strstr*: Move AC_LIBOBJ invocations to module description.
1007         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1008         invocations from here...
1009         * modules/strstr-simple (configure.ac): ... to here.
1010         * modules/strstr (configure.ac): ... and here.
1011
1012 2011-05-22  Bruno Haible  <bruno@clisp.org>
1013
1014         strsignal: Move AC_LIBOBJ invocations to module description.
1015         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1016         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1017         * modules/strsignal (configure.ac): ... to here.
1018         (Depends-on): Update conditions.
1019
1020 2011-05-22  Bruno Haible  <bruno@clisp.org>
1021
1022         strsep: Move AC_LIBOBJ invocations to module description.
1023         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1025         here...
1026         * modules/strsep (configure.ac): ... to here.
1027
1028 2011-05-22  Bruno Haible  <bruno@clisp.org>
1029
1030         strptime: Move AC_LIBOBJ invocations to module description.
1031         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1032         gl_PREREQ_STRPTIME invocations from here...
1033         * modules/strptime (configure.ac): ... to here.
1034
1035 2011-05-22  Bruno Haible  <bruno@clisp.org>
1036
1037         strpbrk: Move AC_LIBOBJ invocations to module description.
1038         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1040         here...
1041         * modules/strpbrk (configure.ac): ... to here.
1042
1043 2011-05-22  Bruno Haible  <bruno@clisp.org>
1044
1045         strnlen: Move AC_LIBOBJ invocations to module description.
1046         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1047         invocations from here...
1048         * modules/strnlen (configure.ac): ... to here.
1049
1050 2011-05-22  Bruno Haible  <bruno@clisp.org>
1051
1052         strndup: Move AC_LIBOBJ invocations to module description.
1053         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1054         invocations from here...
1055         * modules/strndup (configure.ac): ... to here.
1056         (Depends-on): Update conditions.
1057
1058 2011-05-22  Bruno Haible  <bruno@clisp.org>
1059
1060         strncat: Move AC_LIBOBJ invocations to module description.
1061         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1062         invocations from here...
1063         * modules/strncat (configure.ac): ... to here.
1064
1065 2011-05-22  Bruno Haible  <bruno@clisp.org>
1066
1067         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1068         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1069         invocations from here...
1070         * modules/strdup (configure.ac): ... to here.
1071         * modules/strdup-posix (configure.ac): ... and here.
1072
1073 2011-05-22  Bruno Haible  <bruno@clisp.org>
1074
1075         strcspn: Move AC_LIBOBJ invocations to module description.
1076         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1078         here...
1079         * modules/strcspn (configure.ac): ... to here.
1080
1081 2011-05-22  Bruno Haible  <bruno@clisp.org>
1082
1083         strchrnul: Move AC_LIBOBJ invocations to module description.
1084         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1085         gl_PREREQ_STRCHRNUL invocations from here...
1086         * modules/strchrnul (configure.ac): ... to here.
1087
1088 2011-05-22  Bruno Haible  <bruno@clisp.org>
1089
1090         strcasestr*: Move AC_LIBOBJ invocations to module description.
1091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1092         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1093         * modules/strcasestr-simple (configure.ac): ... to here.
1094         * modules/strcasestr (configure.ac): ... and here.
1095
1096 2011-05-22  Bruno Haible  <bruno@clisp.org>
1097
1098         strcase: Move AC_LIBOBJ invocations to module description.
1099         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1100         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1101         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1102         gl_PREREQ_STRNCASECMP invocations from here...
1103         * modules/strcase (configure.ac): ... to here.
1104
1105 2011-05-22  Bruno Haible  <bruno@clisp.org>
1106
1107         stpncpy: Move AC_LIBOBJ invocations to module description.
1108         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1109         here...
1110         * modules/stpncpy (configure.ac): ... to here.
1111
1112 2011-05-22  Bruno Haible  <bruno@clisp.org>
1113
1114         stpcpy: Move AC_LIBOBJ invocations to module description.
1115         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1116         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1117         here...
1118         * modules/stpcpy (configure.ac): ... to here.
1119
1120 2011-05-21  Bruno Haible  <bruno@clisp.org>
1121
1122         stat: Move AC_LIBOBJ invocations to module description.
1123         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1124         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1125         here...
1126         * modules/stat (configure.ac): ... to here.
1127
1128 2011-05-21  Bruno Haible  <bruno@clisp.org>
1129
1130         sleep: Move AC_LIBOBJ invocations to module description.
1131         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1132         * modules/sleep (configure.ac): ... to here.
1133
1134 2011-05-21  Bruno Haible  <bruno@clisp.org>
1135
1136         signbit: Move AC_LIBOBJ invocations to module description.
1137         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1138         * modules/signbit (configure.ac): ... to here.
1139
1140 2011-05-21  Bruno Haible  <bruno@clisp.org>
1141
1142         sigprocmask: Move AC_LIBOBJ invocations to module description.
1143         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1144         gl_PREREQ_SIGPROMASK invocations from here...
1145         * modules/sigprocmask (configure.ac): ... to here.
1146
1147 2011-05-21  Bruno Haible  <bruno@clisp.org>
1148
1149         sigaction: Move AC_LIBOBJ invocations to module description.
1150         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1151         gl_PREREQ_SIGACTION invocations from here...
1152         * modules/sigaction (configure.ac): ... to here.
1153
1154 2011-05-21  Bruno Haible  <bruno@clisp.org>
1155
1156         sig2str: Move AC_LIBOBJ invocations to module description.
1157         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1158         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1159         here...
1160         * modules/sig2str (configure.ac): ... to here.
1161
1162 2011-05-21  Bruno Haible  <bruno@clisp.org>
1163
1164         setlocale: Move AC_LIBOBJ invocations to module description.
1165         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1166         gl_PREREQ_SETLOCALE invocations from here...
1167         * modules/setlocale (configure.ac): ... to here.
1168
1169 2011-05-21  Bruno Haible  <bruno@clisp.org>
1170
1171         unsetenv: Move AC_LIBOBJ invocations to module description.
1172         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1173         and gl_PREREQ_UNSETENV invocations from here...
1174         * modules/unsetenv (configure.ac): ... to here.
1175         (Depends-on): Update.
1176
1177 2011-05-21  Bruno Haible  <bruno@clisp.org>
1178
1179         setenv: Move AC_LIBOBJ invocations to module description.
1180         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1181         here...
1182         * modules/setenv (configure.ac): ... to here.
1183
1184 2011-05-21  Bruno Haible  <bruno@clisp.org>
1185
1186         selinux-h: Move AC_LIBOBJ invocations to module description.
1187         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1188         AC_LIBOBJ invocation from here...
1189         * modules/selinux-h (configure.ac): ... to here.
1190
1191 2011-05-21  Bruno Haible  <bruno@clisp.org>
1192
1193         select: Respect rules for use of AC_LIBOBJ.
1194         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1195         here...
1196         * modules/select (configure.ac): ... to here.
1197
1198 2011-05-21  Bruno Haible  <bruno@clisp.org>
1199
1200         scandir: Move AC_LIBOBJ invocations to module description.
1201         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1202         invocations from here...
1203         * modules/scandir (configure.ac): ... to here.
1204
1205 2011-05-21  Bruno Haible  <bruno@clisp.org>
1206
1207         rpmatch: Move AC_LIBOBJ invocations to module description.
1208         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1209         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1210         here...
1211         * modules/rpmatch (configure.ac): ... to here.
1212
1213 2011-05-21  Bruno Haible  <bruno@clisp.org>
1214
1215         rmdir: Respect rules for use of AC_LIBOBJ.
1216         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1217         * modules/rmdir (configure.ac): ... to here.
1218
1219 2011-05-21  Bruno Haible  <bruno@clisp.org>
1220
1221         renameat: Move AC_LIBOBJ invocations to module description.
1222         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1223         here...
1224         * modules/renameat (configure.ac): ... to here.
1225
1226 2011-05-21  Bruno Haible  <bruno@clisp.org>
1227
1228         rename: Respect rules for use of AC_LIBOBJ.
1229         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1230         here...
1231         * modules/rename (configure.ac): ... to here.
1232
1233 2011-05-21  Bruno Haible  <bruno@clisp.org>
1234
1235         remove: Move AC_LIBOBJ invocations to module description.
1236         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1237         here...
1238         * modules/remove (configure.ac): ... to here.
1239
1240 2011-05-21  Bruno Haible  <bruno@clisp.org>
1241
1242         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1244         macro.
1245         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1246         * modules/relocatable-lib (configure.ac): ... to here.
1247         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1248         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1249
1250 2011-05-21  Bruno Haible  <bruno@clisp.org>
1251
1252         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1253         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1254         here...
1255         * modules/relocatable-prog (configure.ac): ... to here.
1256
1257 2011-05-21  Bruno Haible  <bruno@clisp.org>
1258
1259         regex: Move AC_LIBOBJ invocations to module description.
1260         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1261         invocations from here...
1262         * modules/regex (configure.ac): ... to here.
1263
1264 2011-05-21  Bruno Haible  <bruno@clisp.org>
1265
1266         realloc-*: Move AC_LIBOBJ invocations to module description.
1267         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1268         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1269         AC_LIBOBJ invocations from here...
1270         * modules/realloc-gnu (configure.ac): ... to here.
1271         * modules/realloc-posix (configure.ac): ... and here.
1272
1273 2011-05-21  Bruno Haible  <bruno@clisp.org>
1274
1275         readutmp: Move AC_LIBOBJ invocations to module description.
1276         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1277         * modules/readutmp (configure.ac): ... to here.
1278
1279 2011-05-21  Bruno Haible  <bruno@clisp.org>
1280
1281         readlinkat: Move AC_LIBOBJ invocations to module description.
1282         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1283         here...
1284         * modules/readlinkat (configure.ac): ... to here.
1285
1286 2011-05-21  Bruno Haible  <bruno@clisp.org>
1287
1288         readlink: Move AC_LIBOBJ invocations to module description.
1289         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1290         gl_PREREQ_READLINK invocations from here...
1291         * modules/readlink (configure.ac): ... to here.
1292
1293 2011-05-21  Bruno Haible  <bruno@clisp.org>
1294
1295         readline: Move AC_LIBOBJ invocations to module description.
1296         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1297         gl_PREREQ_READLINE invocations from here...
1298         * modules/readline (configure.ac): ... to here.
1299
1300 2011-05-21  Bruno Haible  <bruno@clisp.org>
1301
1302         read: Move AC_LIBOBJ invocations to module description.
1303         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1304         * modules/read (configure.ac): ... to here.
1305
1306 2011-05-21  Bruno Haible  <bruno@clisp.org>
1307
1308         rawmemchr: Move AC_LIBOBJ invocations to module description.
1309         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1311         from here...
1312         * modules/rawmemchr (configure.ac): ... to here.
1313
1314 2011-05-21  Bruno Haible  <bruno@clisp.org>
1315
1316         random_r: Move AC_LIBOBJ invocations to module description.
1317         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1318         gl_PREREQ_RANDOM_R invocations from here...
1319         * modules/random_r (configure.ac): ... to here.
1320
1321 2011-05-21  Bruno Haible  <bruno@clisp.org>
1322
1323         pwrite: Move AC_LIBOBJ invocations to module description.
1324         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1325         * modules/pwrite (configure.ac): ... to here.
1326
1327 2011-05-21  Bruno Haible  <bruno@clisp.org>
1328
1329         putenv: Move AC_LIBOBJ invocations to module description.
1330         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1331         * modules/putenv (configure.ac): ... to here.
1332
1333 2011-05-21  Bruno Haible  <bruno@clisp.org>
1334
1335         login_tty: Move AC_LIBOBJ invocations to module description.
1336         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1337         * modules/login_tty (configure.ac): ... to here.
1338
1339 2011-05-21  Bruno Haible  <bruno@clisp.org>
1340
1341         openpty: Move AC_LIBOBJ invocations to module description.
1342         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1343         * modules/openpty (configure.ac): ... to here.
1344
1345 2011-05-21  Bruno Haible  <bruno@clisp.org>
1346
1347         forkpty: Move AC_LIBOBJ invocations to module description.
1348         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1349         * modules/forkpty (configure.ac): ... to here.
1350
1351 2011-05-21  Bruno Haible  <bruno@clisp.org>
1352
1353         ptsname: Move AC_LIBOBJ invocations to module description.
1354         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1355         invocations from here...
1356         * modules/ptsname (configure.ac): ... to here.
1357
1358 2011-05-21  Bruno Haible  <bruno@clisp.org>
1359
1360         pread: Move AC_LIBOBJ invocations to module description.
1361         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1362         * modules/pread (configure.ac): ... to here.
1363
1364 2011-05-21  Bruno Haible  <bruno@clisp.org>
1365
1366         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1367         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1368         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1369         * modules/posix_spawn (configure.ac): ... to here.
1370         * modules/posix_spawnp (configure.ac): ... and here.
1371
1372 2011-05-21  Bruno Haible  <bruno@clisp.org>
1373
1374         popen: Move AC_LIBOBJ invocations to module description.
1375         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1376         invocations from here...
1377         * modules/popen (configure.ac): ... to here.
1378
1379 2011-05-21  Bruno Haible  <bruno@clisp.org>
1380
1381         poll: Move AC_LIBOBJ invocations to module description.
1382         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1383         invocations from here...
1384         * modules/poll (configure.ac): ... to here.
1385
1386 2011-05-21  Bruno Haible  <bruno@clisp.org>
1387
1388         pipe-posix: Move AC_LIBOBJ invocations to module description.
1389         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1390         * modules/pipe-posix (configure.ac): ... to here.
1391
1392 2011-05-21  Bruno Haible  <bruno@clisp.org>
1393
1394         openat: Respect rules for use of AC_LIBOBJ.
1395         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1396         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1397         * modules/openat (configure.ac): ... to here.
1398
1399 2011-05-21  Bruno Haible  <bruno@clisp.org>
1400
1401         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1402         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1403         invocation from here...
1404         * modules/obstack-printf (configure.ac): ... to here.
1405         * modules/obstack-printf-posix (configure.ac): ... and here.
1406
1407 2011-05-21  Bruno Haible  <bruno@clisp.org>
1408
1409         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1410         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1411         from here...
1412         * modules/nl_langinfo (configure.ac): ... to here.
1413
1414 2011-05-21  Bruno Haible  <bruno@clisp.org>
1415
1416         nanosleep: Move AC_LIBOBJ invocations to module description.
1417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1418         gl_PREREQ_NANOSLEEP invocations from here...
1419         * modules/nanosleep (configure.ac): ... to here.
1420
1421 2011-05-21  Bruno Haible  <bruno@clisp.org>
1422
1423         mountlist: Move AC_LIBOBJ invocations to module description.
1424         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1425         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1426         * modules/mountlist (configure.ac): ... to here.
1427
1428 2011-05-21  Bruno Haible  <bruno@clisp.org>
1429
1430         mktime: Respect rules for use of AC_LIBOBJ.
1431         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1432         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1433         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1434         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1435         * modules/mktime (configure.ac): ... to here.
1436         * modules/mktime-internal (configure.ac): ... and here.
1437         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1438
1439 2011-05-21  Bruno Haible  <bruno@clisp.org>
1440
1441         mkstemps: Move AC_LIBOBJ invocations to module description.
1442         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1443         here...
1444         * modules/mkstemps (configure.ac): ... to here.
1445
1446 2011-05-21  Bruno Haible  <bruno@clisp.org>
1447
1448         mkstemp: Move AC_LIBOBJ invocations to module description.
1449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1450         gl_PREREQ_MKSTEMP invocations from here...
1451         * modules/mkstemp (configure.ac): ... to here.
1452
1453 2011-05-21  Bruno Haible  <bruno@clisp.org>
1454
1455         mkostemps: Move AC_LIBOBJ invocations to module description.
1456         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1457         here...
1458         * modules/mkostemps (configure.ac): ... to here.
1459
1460 2011-05-21  Bruno Haible  <bruno@clisp.org>
1461
1462         mkostemp: Move AC_LIBOBJ invocations to module description.
1463         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1464         gl_PREREQ_MKOSTEMP invocations from here...
1465         * modules/mkostemp (configure.ac): ... to here.
1466
1467 2011-05-21  Bruno Haible  <bruno@clisp.org>
1468
1469         mknod: Move AC_LIBOBJ invocations to module description.
1470         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1471         * modules/mknod (configure.ac): ... to here.
1472
1473 2011-05-21  Bruno Haible  <bruno@clisp.org>
1474
1475         mkfifoat: Move AC_LIBOBJ invocations to module description.
1476         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1477         here...
1478         * modules/mkfifoat (configure.ac): ... to here.
1479
1480 2011-05-21  Bruno Haible  <bruno@clisp.org>
1481
1482         mkfifo: Respect rules for use of AC_LIBOBJ.
1483         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1484         here...
1485         * modules/mkfifo (configure.ac): ... to here.
1486
1487 2011-05-21  Bruno Haible  <bruno@clisp.org>
1488
1489         mkdtemp: Move AC_LIBOBJ invocations to module description.
1490         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1491         invocations from here...
1492         * modules/mkdtemp (configure.ac): ... to here.
1493
1494 2011-05-21  Bruno Haible  <bruno@clisp.org>
1495
1496         mkdir: Move AC_LIBOBJ invocations to module description.
1497         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1498         * modules/mkdir (configure.ac): ... to here.
1499
1500 2011-05-21  Bruno Haible  <bruno@clisp.org>
1501
1502         memset: Move AC_LIBOBJ invocations to module description.
1503         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1504         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1505         here...
1506         * modules/memset (configure.ac): ... to here.
1507
1508 2011-05-21  Bruno Haible  <bruno@clisp.org>
1509
1510         memrchr: Move AC_LIBOBJ invocations to module description.
1511         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1513         here...
1514         * modules/memrchr (configure.ac): ... to here.
1515
1516 2011-05-21  Bruno Haible  <bruno@clisp.org>
1517
1518         mempcpy: Move AC_LIBOBJ invocations to module description.
1519         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1521         here...
1522         * modules/mempcpy (configure.ac): ... to here.
1523
1524 2011-05-21  Bruno Haible  <bruno@clisp.org>
1525
1526         memmove: Move AC_LIBOBJ invocations to module description.
1527         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1529         here...
1530         * modules/memmove (configure.ac): ... to here.
1531
1532 2011-05-21  Bruno Haible  <bruno@clisp.org>
1533
1534         memmem*: Move AC_LIBOBJ invocations to module description.
1535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1536         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1537         here...
1538         (gl_FUNC_MEMMEM): ... and here...
1539         * modules/memmem-simple (configure.ac): ... to here.
1540         * modules/memmem (configure.ac): ... and here.
1541
1542 2011-05-21  Bruno Haible  <bruno@clisp.org>
1543
1544         memcpy: Move AC_LIBOBJ invocations to module description.
1545         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1546         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1547         here...
1548         * modules/memcpy (configure.ac): ... to here.
1549
1550 2011-05-21  Bruno Haible  <bruno@clisp.org>
1551
1552         memcmp: Simplify autoconf macro.
1553         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1554         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1555         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1556
1557 2011-05-21  Bruno Haible  <bruno@clisp.org>
1558
1559         memcmp: Move AC_LIBOBJ invocations to module description.
1560         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1561         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1562         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1563         * modules/memcmp (configure.ac): ... to here.
1564         (Depends-on): Update conditions.
1565
1566 2011-05-21  Bruno Haible  <bruno@clisp.org>
1567
1568         memchr: Respect rules for use of AC_LIBOBJ.
1569         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1570         invocations from here...
1571         * modules/memchr (configure.ac): ... to here.
1572
1573 2011-05-21  Bruno Haible  <bruno@clisp.org>
1574
1575         mbtowc: Move AC_LIBOBJ invocations to module description.
1576         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1577         invocations from here...
1578         * modules/mbtowc (configure.ac): ... to here.
1579
1580 2011-05-21  Bruno Haible  <bruno@clisp.org>
1581
1582         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1583         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1584         gl_PREREQ_MBSRTOWCS invocations from here...
1585         * modules/mbsrtowcs (configure.ac): ... to here.
1586
1587 2011-05-21  Bruno Haible  <bruno@clisp.org>
1588
1589         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1590         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1591         gl_PREREQ_MBSNRTOWCS invocations from here...
1592         * modules/mbsnrtowcs (configure.ac): ... to here.
1593
1594 2011-05-21  Bruno Haible  <bruno@clisp.org>
1595
1596         mbsinit: Move AC_LIBOBJ invocations to module description.
1597         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1598         invocations from here...
1599         * modules/mbsinit (configure.ac): ... to here.
1600
1601 2011-05-21  Bruno Haible  <bruno@clisp.org>
1602
1603         mbrlen: Move AC_LIBOBJ invocations to module description.
1604         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1605         invocations from here...
1606         * modules/mbrlen (configure.ac): ... to here.
1607
1608 2011-05-21  Bruno Haible  <bruno@clisp.org>
1609
1610         mbrtowc: Respect rules for use of AC_LIBOBJ.
1611         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1612         invocations from here...
1613         * modules/mbrtowc (configure.ac): ... to here.
1614
1615 2011-05-21  Bruno Haible  <bruno@clisp.org>
1616
1617         malloc-*: Move AC_LIBOBJ invocations to module description.
1618         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1619         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1620         AC_LIBOBJ invocations from here...
1621         * modules/malloc-gnu (configure.ac): ... to here.
1622         * modules/malloc-posix (configure.ac): ... and here.
1623
1624 2011-05-21  Bruno Haible  <bruno@clisp.org>
1625
1626         lstat, openat: Respect rules for use of AC_LIBOBJ.
1627         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1628         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1629         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1630         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1631         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1632         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1633         here.
1634         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1635
1636 2011-05-21  Bruno Haible  <bruno@clisp.org>
1637
1638         lseek: Move AC_LIBOBJ invocations to module description.
1639         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1640         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1641         * modules/lseek (configure.ac): ... to here.
1642
1643 2011-05-21  Bruno Haible  <bruno@clisp.org>
1644
1645         linkat: Move AC_LIBOBJ invocations to module description.
1646         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1647         here...
1648         * modules/linkat (configure.ac): ... to here.
1649
1650 2011-05-21  Bruno Haible  <bruno@clisp.org>
1651
1652         link: Respect rules for use of AC_LIBOBJ.
1653         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1654         * modules/link (configure.ac): ... to here.
1655
1656 2011-05-21  Bruno Haible  <bruno@clisp.org>
1657
1658         lchown: Move AC_LIBOBJ invocations to module description.
1659         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1660         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1661         * modules/lchown (configure.ac): ... to here.
1662
1663 2011-05-21  Bruno Haible  <bruno@clisp.org>
1664
1665         iswctype: Move AC_LIBOBJ invocations to module description.
1666         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1667         here...
1668         * modules/iswctype (configure.ac): ... to here.
1669
1670 2011-05-21  Bruno Haible  <bruno@clisp.org>
1671
1672         iswblank: Move AC_LIBOBJ invocations to module description.
1673         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1674         here...
1675         * modules/iswblank (configure.ac): ... to here.
1676
1677 2011-05-21  Bruno Haible  <bruno@clisp.org>
1678
1679         atanl: Move AC_LIBOBJ invocations to module description.
1680         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1681         * modules/atanl (configure.ac): ... to here.
1682
1683 2011-05-21  Bruno Haible  <bruno@clisp.org>
1684
1685         acosl: Move AC_LIBOBJ invocations to module description.
1686         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1687         * modules/acosl (configure.ac): ... to here.
1688
1689 2011-05-21  Bruno Haible  <bruno@clisp.org>
1690
1691         asinl: Respect rules for use of AC_LIBOBJ.
1692         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1693         * modules/asinl (configure.ac): ... to here.
1694
1695 2011-05-21  Bruno Haible  <bruno@clisp.org>
1696
1697         tanl: Move AC_LIBOBJ invocations to module description.
1698         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1699         * modules/tanl (configure.ac): ... to here.
1700
1701 2011-05-21  Bruno Haible  <bruno@clisp.org>
1702
1703         cosl: Move AC_LIBOBJ invocations to module description.
1704         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1705         * modules/cosl (configure.ac): ... to here.
1706
1707 2011-05-21  Bruno Haible  <bruno@clisp.org>
1708
1709         sinl: Move AC_LIBOBJ invocations to module description.
1710         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1711         * modules/sinl (configure.ac): ... to here.
1712
1713 2011-05-21  Bruno Haible  <bruno@clisp.org>
1714
1715         logl: Move AC_LIBOBJ invocations to module description.
1716         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1717         * modules/logl (configure.ac): ... to here.
1718
1719 2011-05-21  Bruno Haible  <bruno@clisp.org>
1720
1721         expl: Move AC_LIBOBJ invocations to module description.
1722         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1723         * modules/expl (configure.ac): ... to here.
1724
1725 2011-05-21  Bruno Haible  <bruno@clisp.org>
1726
1727         roundl: Move AC_LIBOBJ invocations to module description.
1728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1729         * modules/roundl (configure.ac): ... to here.
1730
1731 2011-05-21  Bruno Haible  <bruno@clisp.org>
1732
1733         round: Move AC_LIBOBJ invocations to module description.
1734         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1735         * modules/round (configure.ac): ... to here.
1736
1737 2011-05-21  Bruno Haible  <bruno@clisp.org>
1738
1739         roundf: Move AC_LIBOBJ invocations to module description.
1740         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1741         * modules/roundf (configure.ac): ... to here.
1742
1743 2011-05-21  Bruno Haible  <bruno@clisp.org>
1744
1745         truncl: Move AC_LIBOBJ invocations to module description.
1746         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1747         * modules/truncl (configure.ac): ... to here.
1748
1749 2011-05-21  Bruno Haible  <bruno@clisp.org>
1750
1751         trunc: Move AC_LIBOBJ invocations to module description.
1752         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1753         * modules/trunc (configure.ac): ... to here.
1754
1755 2011-05-21  Bruno Haible  <bruno@clisp.org>
1756
1757         truncf: Move AC_LIBOBJ invocations to module description.
1758         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1759         * modules/truncf (configure.ac): ... to here.
1760
1761 2011-05-21  Bruno Haible  <bruno@clisp.org>
1762
1763         ceill: Move AC_LIBOBJ invocations to module description.
1764         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1765         * modules/ceill (configure.ac): ... to here.
1766
1767 2011-05-21  Bruno Haible  <bruno@clisp.org>
1768
1769         ceil: Move AC_LIBOBJ invocations to module description.
1770         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1771         * modules/ceil (configure.ac): ... to here.
1772
1773 2011-05-21  Bruno Haible  <bruno@clisp.org>
1774
1775         ceilf: Move AC_LIBOBJ invocations to module description.
1776         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1777         * modules/ceilf (configure.ac): ... to here.
1778
1779 2011-05-21  Bruno Haible  <bruno@clisp.org>
1780
1781         floorl: Respect rules for use of AC_LIBOBJ.
1782         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1783         * modules/floorl (configure.ac): ... to here.
1784
1785 2011-05-21  Bruno Haible  <bruno@clisp.org>
1786
1787         floor: Respect rules for use of AC_LIBOBJ.
1788         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1789         * modules/floor (configure.ac): ... to here.
1790
1791 2011-05-21  Bruno Haible  <bruno@clisp.org>
1792
1793         floorf: Move AC_LIBOBJ invocations to module description.
1794         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1795         * modules/floorf (configure.ac): ... to here.
1796
1797 2011-05-20  Bruno Haible  <bruno@clisp.org>
1798
1799         sqrtl: Respect rules for use of AC_LIBOBJ.
1800         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1801         * modules/sqrtl (configure.ac): ... to here.
1802
1803 2011-05-20  Bruno Haible  <bruno@clisp.org>
1804
1805         ldexpl: Respect rules for use of AC_LIBOBJ.
1806         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1807         * modules/ldexpl (configure.ac): ... to here.
1808
1809 2011-05-20  Bruno Haible  <bruno@clisp.org>
1810
1811         frexpl*: Respect rules for use of AC_LIBOBJ.
1812         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1813         invocation from here...
1814         * modules/frexpl (configure.ac): ... to here.
1815         * modules/frexpl-nolibm (configure.ac): ... and here.
1816
1817 2011-05-20  Bruno Haible  <bruno@clisp.org>
1818
1819         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1820         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1821         invocation from here...
1822         * modules/frexp (configure.ac): ... to here.
1823         * modules/frexp-nolibm (configure.ac): ... and here.
1824
1825 2011-05-20  Bruno Haible  <bruno@clisp.org>
1826
1827         isnan: Respect rules for use of AC_LIBOBJ.
1828         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1829         invocations here.
1830         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1831         REPLACE_ISNAN.
1832         * modules/isnand (configure.ac): Likewise.
1833         * modules/isnanl (configure.ac): Likewise.
1834
1835 2011-05-20  Bruno Haible  <bruno@clisp.org>
1836
1837         isnanl*: Respect rules for use of AC_LIBOBJ.
1838         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1839         invocation from here...
1840         * modules/isnanl (configure.ac): ... to here.
1841         * modules/isnanl-nolibm (configure.ac): ... and here.
1842
1843 2011-05-20  Bruno Haible  <bruno@clisp.org>
1844
1845         isnand*: Move AC_LIBOBJ invocations to module description.
1846         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1847         invocation from here...
1848         * modules/isnand (configure.ac): ... to here.
1849         * modules/isnand-nolibm (configure.ac): ... and here.
1850
1851 2011-05-20  Bruno Haible  <bruno@clisp.org>
1852
1853         isnanf*: Move AC_LIBOBJ invocations to module description.
1854         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1855         invocation from here...
1856         * modules/isnanf (configure.ac): ... to here.
1857         * modules/isnanf-nolibm (configure.ac): ... and here.
1858
1859 2011-05-20  Bruno Haible  <bruno@clisp.org>
1860
1861         isnan*: Separate the AC_LIBOBJ invocations.
1862         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1863         AC_LIBOBJ invocation.
1864         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1865         here.
1866         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1867         AC_LIBOBJ invocation.
1868         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1869         here.
1870         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1871         AC_LIBOBJ invocation.
1872         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1873         here.
1874         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1875
1876 2011-05-08  Bruno Haible  <bruno@clisp.org>
1877
1878         isinf: Move AC_LIBOBJ invocations to module description.
1879         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1880         * modules/isinf (configure.ac): ... to here.
1881
1882 2011-05-08  Bruno Haible  <bruno@clisp.org>
1883
1884         isfinite: Move AC_LIBOBJ invocations to module description.
1885         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1886         * modules/isfinite (configure.ac): ... to here.
1887
1888 2011-05-08  Bruno Haible  <bruno@clisp.org>
1889
1890         isblank: Move AC_LIBOBJ invocations to module description.
1891         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1892         here...
1893         * modules/isblank (configure.ac): ... to here.
1894
1895 2011-05-08  Bruno Haible  <bruno@clisp.org>
1896
1897         isapipe: Move AC_LIBOBJ invocations to module description.
1898         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1899         gl_PREREQ_ISAPIPE invocations from here...
1900         * modules/isapipe (configure.ac): ... to here.
1901         (Depends-on): Update condition.
1902
1903 2011-05-08  Bruno Haible  <bruno@clisp.org>
1904
1905         ioctl: Move AC_LIBOBJ invocations to module description.
1906         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1907         invocations from here...
1908         * modules/ioctl (configure.ac): ... to here.
1909         (Depends-on): Update condition.
1910
1911 2011-05-08  Bruno Haible  <bruno@clisp.org>
1912
1913         imaxdiv: Move AC_LIBOBJ invocations to module description.
1914         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1915         invocations from here...
1916         * modules/imaxdiv (configure.ac): ... to here.
1917
1918 2011-05-08  Bruno Haible  <bruno@clisp.org>
1919
1920         imaxabs: Move AC_LIBOBJ invocations to module description.
1921         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1922         invocations from here...
1923         * modules/imaxabs (configure.ac): ... to here.
1924
1925 2011-05-08  Bruno Haible  <bruno@clisp.org>
1926
1927         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1929         AC_LIBOBJ invocations from here...
1930         * modules/getaddrinfo (configure.ac): ... to here.
1931         (Depends-on): Add conditions.
1932
1933 2011-05-08  Bruno Haible  <bruno@clisp.org>
1934
1935         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1936         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1937         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1938         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1939         (gl_PREREQ_INET_PTON): ... from here.
1940         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1941         gl_PREREQ_INET_PTON here.
1942         (Depends-on): Update condition.
1943
1944 2011-05-08  Bruno Haible  <bruno@clisp.org>
1945
1946         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1947         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1948         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1949         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1950         (gl_PREREQ_INET_NTOP): ... from here.
1951         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1952         gl_PREREQ_INET_NTOP here.
1953         (Depends-on): Update condition.
1954
1955 2011-05-08  Bruno Haible  <bruno@clisp.org>
1956
1957         iconv_open: Move AC_LIBOBJ invocations to module description.
1958         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1959         AC_LIBOBJ invocations from here...
1960         * modules/iconv_open (configure.ac): ... to here.
1961
1962 2011-05-08  Bruno Haible  <bruno@clisp.org>
1963
1964         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1965         If module 'iconv_open' is among the main modules and module
1966         'iconv_open-utf' is among the tests dependencies, then
1967         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1968         return the special iconv_t values. Therefore iconv() and iconv_close()
1969         must support these special iconv_t values, already in lib, not only in
1970         tests.
1971         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1972         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1973         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1974         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1975         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1976         (Depends-on): Add the dependencies of iconv_open-utf.
1977         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1978         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1979         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1980
1981 2011-05-08  Bruno Haible  <bruno@clisp.org>
1982
1983         group-member: Move AC_LIBOBJ invocations to module description.
1984         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1985         gl_PREREQ_GROUP_MEMBER invocations from here...
1986         * modules/group-member (configure.ac): ... to here.
1987
1988 2011-05-08  Bruno Haible  <bruno@clisp.org>
1989
1990         grantpt: Move AC_LIBOBJ invocations to module description.
1991         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1992         invocations from here...
1993         * modules/grantpt (configure.ac): ... to here.
1994
1995 2011-05-08  Bruno Haible  <bruno@clisp.org>
1996
1997         glob: Move AC_LIBOBJ invocations to module description.
1998         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1999         from here...
2000         * modules/glob (configure.ac): ... to here.
2001
2002 2011-05-08  Bruno Haible  <bruno@clisp.org>
2003
2004         getusershell: Move AC_LIBOBJ invocations to module description.
2005         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2006         Move AC_LIBOBJ invocation from here...
2007         * modules/getusershell (configure.ac): ... to here.
2008         (Depends-on): Update condition.
2009
2010 2011-05-08  Bruno Haible  <bruno@clisp.org>
2011
2012         gettimeofday: Move AC_LIBOBJ invocations to module description.
2013         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2014         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2015         gl_PREREQ_GETTIMEOFDAY invocations from here...
2016         * modules/gettimeofday (configure.ac): ... to here.
2017
2018 2011-05-08  Bruno Haible  <bruno@clisp.org>
2019
2020         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2021         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2022         just gl_FUNC_TZSET.
2023         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2024         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2026         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2027
2028 2011-05-08  Bruno Haible  <bruno@clisp.org>
2029
2030         getsubopt: Move AC_LIBOBJ invocations to module description.
2031         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2032         gl_PREREQ_GETSUBOPT invocations from here...
2033         * modules/getsubopt (configure.ac): ... to here.
2034
2035 2011-05-08  Bruno Haible  <bruno@clisp.org>
2036
2037         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2038         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2039         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2040         * modules/getpass-gnu (configure.ac): ... to here.
2041
2042 2011-05-08  Bruno Haible  <bruno@clisp.org>
2043
2044         getpass: Move AC_LIBOBJ invocations to module description.
2045         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2046         gl_PREREQ_GETPASS invocations from here...
2047         * modules/getpass (configure.ac): ... to here.
2048
2049 2011-05-08  Bruno Haible  <bruno@clisp.org>
2050
2051         getpagesize: Move AC_LIBOBJ invocations to module description.
2052         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2053         from here...
2054         * modules/getpagesize (configure.ac): ... to here.
2055
2056 2011-05-08  Bruno Haible  <bruno@clisp.org>
2057
2058         getopt: Move AC_LIBOBJ invocations to module description.
2059         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2060         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2061         invocations from here...
2062         * modules/getopt-gnu (configure.ac): ... to here.
2063         * modules/getopt-posix (configure.ac): ... and here.
2064         (Depends-on): Update condition.
2065
2066 2011-05-08  Bruno Haible  <bruno@clisp.org>
2067
2068         getopt, argp: Respect rules for use of AC_LIBOBJ.
2069         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2070         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2071         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2072         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2073
2074 2011-05-08  Bruno Haible  <bruno@clisp.org>
2075
2076         getlogin_r: Move AC_LIBOBJ invocations to module description.
2077         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2078         gl_PREREQ_GETLOGIN_R invocations from here...
2079         * modules/getlogin_r (configure.ac): ... to here.
2080
2081 2011-05-08  Bruno Haible  <bruno@clisp.org>
2082
2083         getlogin: Move AC_LIBOBJ invocations to module description.
2084         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2085         here...
2086         * modules/getlogin (configure.ac): ... to here.
2087
2088 2011-05-08  Bruno Haible  <bruno@clisp.org>
2089
2090         getloadavg: Move AC_LIBOBJ invocations to module description.
2091         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2092         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2093         * modules/getloadavg (configure.ac): ... to here.
2094
2095 2011-05-08  Bruno Haible  <bruno@clisp.org>
2096
2097         gethrxtime: Move AC_LIBOBJ invocations to module description.
2098         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2099         LIB_GETHRXTIME from here...
2100         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2101         invocations from here...
2102         * modules/gethrxtime (configure.ac): ... to here.
2103
2104 2011-05-08  Bruno Haible  <bruno@clisp.org>
2105
2106         gethostname: Move AC_LIBOBJ invocations to module description.
2107         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2108         gl_PREREQ_GETHOSTNAME invocations from here...
2109         * modules/gethostname (configure.ac): ... to here.
2110
2111 2011-05-08  Bruno Haible  <bruno@clisp.org>
2112
2113         getgroups: Move AC_LIBOBJ invocations to module description.
2114         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2115         here...
2116         * modules/getgroups (configure.ac): ... to here.
2117
2118 2011-05-08  Bruno Haible  <bruno@clisp.org>
2119
2120         getdtablesize: Move AC_LIBOBJ invocations to module description.
2121         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2122         invocation from here...
2123         * modules/getdtablesize (configure.ac): ... to here.
2124
2125 2011-05-08  Bruno Haible  <bruno@clisp.org>
2126
2127         getdomainname: Move AC_LIBOBJ invocations to module description.
2128         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2129         gl_PREREQ_GETDOMAINNAME invocations from here...
2130         * modules/getdomainname (configure.ac): ... to here.
2131
2132 2011-05-08  Bruno Haible  <bruno@clisp.org>
2133
2134         getline: Move AC_LIBOBJ invocations to module description.
2135         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2136         invocations from here...
2137         * modules/getline (configure.ac): ... to here.
2138
2139 2011-05-08  Bruno Haible  <bruno@clisp.org>
2140
2141         getline: Simplify.
2142         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2143         It's already handled through the module dependency.
2144
2145 2011-05-08  Bruno Haible  <bruno@clisp.org>
2146
2147         getdelim: Move AC_LIBOBJ invocations to module description.
2148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2149         and gl_PREREQ_GETDELIM invocations from here...
2150         * modules/getdelim (configure.ac): ... to here.
2151         (Depends-on): Fix condition.
2152
2153 2011-05-08  Bruno Haible  <bruno@clisp.org>
2154
2155         getcwd: Move AC_LIBOBJ invocations to module description.
2156         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2157         invocations from here...
2158         * modules/getcwd (configure.ac): ... to here.
2159
2160 2011-05-08  Bruno Haible  <bruno@clisp.org>
2161
2162         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2163         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2164         here...
2165         * modules/getcwd-lgpl (configure.ac): ... to here.
2166
2167 2011-05-07  Bruno Haible  <bruno@clisp.org>
2168
2169         crypto/gc: Move AC_LIBOBJ invocations to module description.
2170         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2171         * modules/crypto/gc (configure.ac): ... to here.
2172
2173 2011-05-07  Bruno Haible  <bruno@clisp.org>
2174
2175         fwriting: Move AC_LIBOBJ invocations to module description.
2176         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2177         here...
2178         * modules/fwriting (configure.ac): ... to here.
2179
2180 2011-05-07  Bruno Haible  <bruno@clisp.org>
2181
2182         fwritable: Move AC_LIBOBJ invocations to module description.
2183         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2184         here...
2185         * modules/fwritable (configure.ac): ... to here.
2186
2187 2011-05-07  Bruno Haible  <bruno@clisp.org>
2188
2189         futimens: Move AC_LIBOBJ invocations to module description.
2190         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2191         here...
2192         * modules/futimens (configure.ac): ... to here.
2193
2194 2011-05-07  Bruno Haible  <bruno@clisp.org>
2195
2196         ftruncate: Move AC_LIBOBJ invocations to module description.
2197         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2198         gl_PREREQ_FTRUNCATE invocations from here...
2199         * modules/ftruncate (configure.ac): ... to here.
2200
2201 2011-05-07  Bruno Haible  <bruno@clisp.org>
2202
2203         fsync: Move AC_LIBOBJ invocations to module description.
2204         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2205         invocations from here...
2206         * modules/fsync (configure.ac): ... to here.
2207
2208 2011-05-07  Bruno Haible  <bruno@clisp.org>
2209
2210         fsusage: Move AC_LIBOBJ invocations to module description.
2211         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2212         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2213         * modules/fsusage (configure.ac): ... to here.
2214
2215 2011-05-07  Bruno Haible  <bruno@clisp.org>
2216
2217         freopen: Move AC_LIBOBJ invocations to module description.
2218         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2219         invocations from here...
2220         * modules/freopen (configure.ac): ... to here.
2221
2222 2011-05-07  Bruno Haible  <bruno@clisp.org>
2223
2224         free: Move AC_LIBOBJ invocations to module description.
2225         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2226         invocations from here...
2227         * modules/free (configure.ac): ... to here.
2228
2229 2011-05-07  Bruno Haible  <bruno@clisp.org>
2230
2231         freadable: Move AC_LIBOBJ invocations to module description.
2232         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2233         here...
2234         * modules/freadable (configure.ac): ... to here.
2235
2236 2011-05-07  Bruno Haible  <bruno@clisp.org>
2237
2238         fpurge: Move AC_LIBOBJ invocations to module description.
2239         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2240         invocations from here...
2241         * modules/fpurge (configure.ac): ... to here.
2242
2243 2011-05-07  Bruno Haible  <bruno@clisp.org>
2244
2245         fpending: Move AC_LIBOBJ invocations to module description.
2246         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2247         gl_FUNC_FPENDING.
2248         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2249         invocations from here...
2250         * modules/fpending (configure.ac): ... to here.
2251
2252 2011-05-07  Bruno Haible  <bruno@clisp.org>
2253
2254         fopen: Move AC_LIBOBJ invocations to module description.
2255         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2256         invocations from here...
2257         * modules/fopen (configure.ac): ... to here.
2258
2259 2011-05-07  Bruno Haible  <bruno@clisp.org>
2260
2261         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2262         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2263         gl_FUNC_FNMATCH_POSIX.
2264         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2265         invocations from here...
2266         * modules/fnmatch (configure.ac): ... to here.
2267         * modules/fnmatch-gnu (configure.ac): ... and here.
2268
2269 2011-05-07  Bruno Haible  <bruno@clisp.org>
2270
2271         flock: Move AC_LIBOBJ invocations to module description.
2272         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2273         invocations from here...
2274         * modules/flock (configure.ac): ... to here.
2275
2276 2011-05-07  Bruno Haible  <bruno@clisp.org>
2277
2278         fileblocks: Move AC_LIBOBJ invocations to module description.
2279         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2280         gl_PREREQ_FILEBLOCKS invocations from here...
2281         * modules/fileblocks (configure.ac): ... to here.
2282
2283 2011-05-06  Bruno Haible  <bruno@clisp.org>
2284
2285         fflush: Move AC_LIBOBJ invocations to module description.
2286         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2287         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2288         invocations from here...
2289         * modules/fflush (configure.ac): ... to here.
2290
2291 2011-05-06  Bruno Haible  <bruno@clisp.org>
2292
2293         fdopendir: Move AC_LIBOBJ invocations to module description.
2294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2295         here...
2296         * modules/fdopendir (configure.ac): ... to here.
2297         (Depends-on): Improve conditions.
2298
2299 2011-05-06  Bruno Haible  <bruno@clisp.org>
2300
2301         _Exit: Move AC_LIBOBJ invocations to module description.
2302         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2303         invocations from here...
2304         * modules/_Exit (configure.ac): ... to here.
2305
2306 2011-05-21  Bruno Haible  <bruno@clisp.org>
2307
2308         euidaccess: Respect rules for use of AC_LIBOBJ.
2309         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2311         from here...
2312         * modules/euidaccess (configure.ac): ... to here.
2313
2314 2011-05-06  Bruno Haible  <bruno@clisp.org>
2315
2316         error: Move AC_LIBOBJ invocations to module description.
2317         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2318         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2319         invocations from here...
2320         * modules/error (configure.ac): ... to here.
2321
2322 2011-05-06  Bruno Haible  <bruno@clisp.org>
2323
2324         duplocale: Move AC_LIBOBJ invocations to module description.
2325         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2326         gl_PREREQ_DUPLOCALE invocations from here...
2327         * modules/duplocale (configure.ac): ... to here.
2328
2329 2011-05-05  Bruno Haible  <bruno@clisp.org>
2330
2331         dirfd: Move AC_LIBOBJ invocations to module description.
2332         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2333         gl_FUNC_DIRFD.
2334         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2335         here...
2336         * modules/dirfd (configure.ac): ... to here.
2337         (Depends-on): Fix condition.
2338
2339 2011-05-05  Bruno Haible  <bruno@clisp.org>
2340
2341         chown: Respect rules for use of AC_LIBOBJ.
2342         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2343         * modules/chown (configure.ac): ... to here.
2344
2345 2011-05-05  Bruno Haible  <bruno@clisp.org>
2346
2347         chdir-long: Move AC_LIBOBJ invocations to module description.
2348         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2349         gl_PREREQ_CHDIR_LONG invocations from here...
2350         * modules/chdir-long (configure.ac): ... to here.
2351
2352 2011-05-05  Bruno Haible  <bruno@clisp.org>
2353
2354         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2355         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2356         from here...
2357         * modules/canonicalize-lgpl (configure.ac): ... to here.
2358
2359 2011-05-05  Bruno Haible  <bruno@clisp.org>
2360
2361         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2362         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2363         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2364         REPLACE_CALLOC.
2365         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2366         * modules/calloc-gnu (configure.ac): Likewise.
2367
2368 2011-05-05  Bruno Haible  <bruno@clisp.org>
2369
2370         btowc: Move AC_LIBOBJ invocations to module description.
2371         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2372         invocations from here...
2373         * modules/btowc (configure.ac): ... to here.
2374
2375 2011-05-21  Bruno Haible  <bruno@clisp.org>
2376
2377         atexit: Move AC_LIBOBJ invocations to module description.
2378         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2379         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2380         here...
2381         * modules/atexit (configure.ac): ... to here.
2382
2383 2011-05-05  Bruno Haible  <bruno@clisp.org>
2384
2385         atoll: Move AC_LIBOBJ invocations to module description.
2386         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2387         invocations from here...
2388         * modules/atoll (configure.ac): ... to here.
2389
2390 2011-05-05  Bruno Haible  <bruno@clisp.org>
2391
2392         argz: Move AC_LIBOBJ invocations to module description.
2393         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2394         * modules/argz (configure.ac): ... to here.
2395
2396 2011-05-05  Bruno Haible  <bruno@clisp.org>
2397
2398         alphasort: Move AC_LIBOBJ invocations to module description.
2399         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2400         gl_PREREQ_ALPHASORT invocations from here...
2401         * modules/alphasort (configure.ac): ... to here.
2402
2403 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2404
2405         verify: new macro verify_expr; verify_true deprecated
2406         * NEWS: Mention this.
2407         * doc/verify.texi (Compile-time Assertions): Document this.
2408         * lib/verify.h (verify_true): Deprecate.
2409         (verify_expr): New macro.
2410         * tests/test-verify.c (function): Test verify_expr.
2411
2412 2011-06-14  Jim Meyering  <meyering@redhat.com>
2413
2414         init.sh: give more portable redirection-related advice in a comment
2415         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2416         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2417         for lots of discussion.  Stefano Lattarini suggested the solution
2418         of putting "9>&2" after the command.  Reported by Bruno Haible.
2419
2420 2011-06-13  Bruno Haible  <bruno@clisp.org>
2421
2422         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2424         'none'.
2425
2426 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2427
2428         ftoastr: use strtof only if HAVE_STRTOF
2429         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2431         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2432         * modules/ftoastr (configure.ac): Check for strtof.
2433
2434 2011-06-13  Bruno Haible  <bruno@clisp.org>
2435
2436         gnulib-tool: Addendum to 2011-06-08 commit.
2437         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2438         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2439
2440 2011-06-13  Bruno Haible  <bruno@clisp.org>
2441
2442         fseeko: Provide a non-inline replacement of fseek().
2443         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2444         * modules/fseeko (Depends-on): Add fseek.
2445         * modules/fseek (License): Change to LGPLv2+.
2446
2447 2011-06-13  Bruno Haible  <bruno@clisp.org>
2448
2449         ftello: Provide a non-inline replacement of ftell().
2450         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2451         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2452         not have ftello() (such as on mingw).
2453         * modules/ftello (Depends-on): Add ftell.
2454         * modules/ftell (License): Change to LGPLv2+.
2455
2456 2011-05-07  Bruno Haible  <bruno@clisp.org>
2457
2458         ftell: Move AC_LIBOBJ invocations to module description.
2459         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2460         * modules/ftell (configure.ac): ... to here.
2461
2462 2011-05-07  Bruno Haible  <bruno@clisp.org>
2463
2464         ftello: Respect rules for use of AC_LIBOBJ.
2465         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2466         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2467         here...
2468         * modules/ftello (configure.ac): ... to here.
2469
2470 2011-05-07  Bruno Haible  <bruno@clisp.org>
2471
2472         fseeko: Simplify.
2473         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2474         (gl_FUNC_FSEEKO): Inline it here.
2475
2476 2011-05-07  Bruno Haible  <bruno@clisp.org>
2477
2478         fseek: Move AC_LIBOBJ invocations to module description.
2479         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2480         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2481         * modules/fseek (configure.ac): ... to here.
2482
2483 2011-05-07  Bruno Haible  <bruno@clisp.org>
2484
2485         fseek: Respect rules for use of AC_LIBOBJ.
2486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2487         here...
2488         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2489
2490 2011-05-07  Bruno Haible  <bruno@clisp.org>
2491
2492         fseeko: Respect rules for use of AC_LIBOBJ.
2493         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2494         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2495         here...
2496         * modules/fseeko (configure.ac): ... to here.
2497
2498 2011-06-13  Bruno Haible  <bruno@clisp.org>
2499
2500         gnulib-tool: Allow comments in the 'Depends-on' section.
2501         * doc/gnulib.texi (Module description): Mention comment syntax in the
2502         Depends-on section.
2503         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2504
2505 2011-06-13  Bruno Haible  <bruno@clisp.org>
2506
2507         file-set.h: guard __attibute__ use, now that it's not always defined
2508         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2509         versions that support it.  This fixes a coreutils build failure with
2510         the vendor cc on HP-UX 11.31.
2511
2512 2011-06-12  Bruno Haible  <bruno@clisp.org>
2513
2514         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2515         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2516         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2517         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2518         (acl, aclsort): New declarations.
2519         (aclv_nontrivial): New declaration.
2520         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2521         (file_has_acl): Read also the second kind of HP-UX ACLs.
2522         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2523         kind of HP-UX ACLs if the first kind fails.
2524         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2525         second kind of HP-UX ACLs.
2526         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2527         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2528         agree.
2529         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2530         hpuxjfs.
2531         Handle hpuxjfs.
2532         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2533         hpuxjfs.
2534         Handle hpuxjfs.
2535         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2536         (func_test_same_acls): Use both lsacl and getacl.
2537         Handle hpuxjfs.
2538         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2539         (func_test_same_acls): Use both lsacl and getacl.
2540         Handle hpuxjfs.
2541
2542 2011-06-12  Bruno Haible  <bruno@clisp.org>
2543
2544         acl: Complete the 2010-08-10 fix.
2545         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2546         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2547         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2548         explicitly.
2549         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2550         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2551
2552 2011-06-12  Bruno Haible  <bruno@clisp.org>
2553
2554         spawn-pipe tests: Comments.
2555         * tests/test-spawn-pipe-child.c (main): Update comment.
2556         Reported by James Youngman <jay@gnu.org>.
2557
2558 2011-06-11  James Youngman  <jay@gnu.org>
2559
2560         New module 'stat-size'.
2561         * modules/stat-size: New module.  Provides macros for accessing
2562         file size information in instances of struct stat.  Depends on the
2563         fileblocks module because it calls st_blocks.
2564         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2565         * doc/gnulib.texi: Include stat-size.texi.
2566         * doc/stat-size.texi: Documentation for this module.
2567         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2568         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2569         AC_STRUCT_ST_BLOCKS.
2570
2571 2011-06-09  Bruno Haible  <bruno@clisp.org>
2572
2573         thread: Support pthreads-win32.
2574         * lib/glthread/thread.h (gl_thread_self): Define differently on
2575         pthreads-win32.
2576         (gl_null_thread): New declaration.
2577         (gl_thread_self_pointer): New macro.
2578         * lib/glthread/thread.c (gl_null_thread): New constant.
2579         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2580         gl_thread_self.
2581         * tests/test-tls.c: Likewise.
2582         Suggested by Paul Eggert. Reported by Eric Blake.
2583
2584 2011-06-09  Bruno Haible  <bruno@clisp.org>
2585
2586         thread: Fix confusion between NULL and 0.
2587         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2588         Reported by Paul Eggert.
2589
2590 2011-06-09  Bruno Haible  <bruno@clisp.org>
2591
2592         spawn-pipe tests: Avoid test failure on HP-UX 11.
2593         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2594         is closed.
2595
2596 2011-06-09  Bruno Haible  <bruno@clisp.org>
2597
2598         acl tests: Fix compilation error on HP-UX 11.
2599         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2600
2601 2011-06-09  Bruno Haible  <bruno@clisp.org>
2602
2603         rmdir: Avoid test failure on HP-UX 10.20.
2604         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2605         EEXIST.
2606
2607 2011-06-08  Eric Blake  <eblake@redhat.com>
2608
2609         perror: fix test on mingw
2610         * modules/perror-tests (Depends-on): Add dup2.
2611
2612         strerror_r-posix: fix on MacOS
2613         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2614         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2615         logic bug.
2616         * lib/strerror_r.c (strerror_r): Fix the bug.
2617         * lib/strerror.c (strerror): Likewise.
2618         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2619         problem.
2620         * doc/posix-functions/strerror.texi (strerror): Likewise.
2621         * doc/posix-functions/perror.texi (perror): Likewise.
2622         * tests/test-strerror.c (main): Enhance test.
2623         * tests/test-strerror_r.c (main): Likewise.
2624
2625 2011-06-08  Bruno Haible  <bruno@clisp.org>
2626
2627         gnulib-tool: Better isolation between different gnulib-tool invocations.
2628         * gnulib-tool: New option --witness-c-macro.
2629         (witness_c_macro): New variable.
2630         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2631         AM_CPPFLAGS define it as a C macro.
2632         (func_emit_tests_Makefile_am): Likewise.
2633         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2634         read it from there.
2635         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2636         m4_define, not AC_DEFUN.
2637         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2638         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2639         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2640         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2641         s|...|...|, to substitute the values of the GNULIB_* module indicator
2642         variables.
2643         * modules/dirent (Makefile.am): Likewise.
2644         * modules/fcntl-h (Makefile.am): Likewise.
2645         * modules/iconv-h (Makefile.am): Likewise.
2646         * modules/langinfo (Makefile.am): Likewise.
2647         * modules/locale (Makefile.am): Likewise.
2648         * modules/math (Makefile.am): Likewise.
2649         * modules/netdb (Makefile.am): Likewise.
2650         * modules/poll-h (Makefile.am): Likewise.
2651         * modules/pty (Makefile.am): Likewise.
2652         * modules/search (Makefile.am): Likewise.
2653         * modules/signal (Makefile.am): Likewise.
2654         * modules/spawn (Makefile.am): Likewise.
2655         * modules/stdio (Makefile.am): Likewise.
2656         * modules/stdlib (Makefile.am): Likewise.
2657         * modules/string (Makefile.am): Likewise.
2658         * modules/sys_ioctl (Makefile.am): Likewise.
2659         * modules/sys_select (Makefile.am): Likewise.
2660         * modules/sys_socket (Makefile.am): Likewise.
2661         * modules/sys_stat (Makefile.am): Likewise.
2662         * modules/sys_times (Makefile.am): Likewise.
2663         * modules/sys_utsname (Makefile.am): Likewise.
2664         * modules/sys_wait (Makefile.am): Likewise.
2665         * modules/termios (Makefile.am): Likewise.
2666         * modules/time (Makefile.am): Likewise.
2667         * modules/unistd (Makefile.am): Likewise.
2668         * modules/wchar (Makefile.am): Likewise.
2669
2670 2011-06-08  Eric Blake  <eblake@redhat.com>
2671
2672         strerror: simplify replacement
2673         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2674         * modules/strerror (configure.ac): No prereqs needed here...
2675         * modules/strerror-override (configure.ac): ...but this needs it.
2676         (Files): Add file for needed prereq macro.
2677
2678 2011-06-08  Bruno Haible  <bruno@clisp.org>
2679
2680         strerror_r-posix: Tweaks.
2681         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2682         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2683         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2684         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2685         (gl_FUNC_STRERROR_R): ... to here.
2686         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2687
2688 2011-06-07  Eric Blake  <eblake@redhat.com>
2689
2690         perror: document fixed bugs
2691         * doc/posix-functions/perror.texi (perror): Document recent
2692         patches.
2693
2694 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2695
2696         stat-time: get_stat_birthtime failure is better-defined
2697         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2698         return a timestamp whose tv_sec and tv_nsec values are both -1.
2699         Previously, the spec said only that the tv_nsec value was negative.
2700         This upward-compatible change simplifies GNU tar a bit.
2701
2702 2011-06-07  Eric Blake  <eblake@redhat.com>
2703
2704         strerror_r-posix: work around cygwin 1.7.9
2705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2706         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2707         bug without replacing strerror_r.
2708         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2709         strerror_r is buggy, but without requiring strerror_r compilation.
2710         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2711
2712         test-perror: relax test to ignore cygwin bug
2713         * tests/test-perror2.c (main): Relax test on requiring detection
2714         of stream errors, and use unbuffered stream.
2715         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2716         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2717         * doc/posix-functions/fputc.texi (fputc): Likewise.
2718         * doc/posix-functions/fputs.texi (fputs): Likewise.
2719         * doc/posix-functions/fputws.texi (fputws): Likewise.
2720         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2721         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2722         * doc/posix-functions/getopt.texi (getopt): Likewise.
2723         * doc/posix-functions/perror.texi (perror): Likewise.
2724         * doc/posix-functions/printf.texi (printf): Likewise.
2725         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2726         * doc/posix-functions/psignal.texi (psignal): Likewise.
2727         * doc/posix-functions/putc.texi (putc): Likewise.
2728         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2729         Likewise.
2730         * doc/posix-functions/putchar.texi (putchar): Likewise.
2731         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2732         Likewise.
2733         * doc/posix-functions/puts.texi (puts): Likewise.
2734         * doc/posix-functions/putwc.texi (putwc): Likewise.
2735         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2736         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2737         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2738         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2739         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2740         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2741         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2742         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2743
2744 2011-05-22  Bruno Haible  <bruno@clisp.org>
2745
2746         strerror: Move AC_LIBOBJ invocations to module description.
2747         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2748         gl_PREREQ_STRERROR invocations from here...
2749         * modules/strerror (configure.ac): ... to here.
2750
2751 2011-05-21  Bruno Haible  <bruno@clisp.org>
2752
2753         perror: Use common idiom.
2754         * modules/perror (configure.ac): Reorder statements.
2755
2756 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2757
2758         tests: fix usage message in 'mktempd_'
2759         * tests/init.sh (mktempd_): In the usage message, use literal
2760         'mktempd_', not '$ME' (which is even undefined), as the name of
2761         the subroutine.
2762
2763 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2764
2765         tests init: new function 'fatal_', for hard errors
2766         Before this patch, the only way offered by tests/init.sh to
2767         properly signal a hard error was the `framework_failure_'
2768         function.  But the error message issued by that function,
2769         as its name would suggest, refers to a set-up failure in the
2770         testsuite, while hard errors can obviously also be due to
2771         other reasons.  The best way to fix this inconsistency is to
2772         introduce a new function with a more general error message.
2773         * tests/init.sh (fatal_): New function.
2774
2775 2011-06-06  Eric Blake  <eblake@redhat.com>
2776
2777         canonicalize-lgpl: use common idiom
2778         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2779         over newer POSIX -Rf.
2780         Reported by Bruno Haible.
2781
2782         canonicalize-lgpl: work around AIX realpath bug
2783         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2784         * doc/posix-functions/realpath.texi (realpath): Document it.
2785         Reported by Bruno Haible.
2786
2787         strerror: work around FreeBSD bug
2788         * lib/strerror.c (strerror): Special case 0.
2789         Reported by Bruno Haible.
2790
2791         strerror-override: avoid bloating errno module
2792         * modules/errno (Files, configure.ac): Move replacement strings...
2793         * modules/strerror-override: ...to new module.
2794         * modules/strerror (Depends-on): Add strerror-override.
2795         * modules/strerror_r-posix (Depends-on): Likewise.
2796         * MODULES.html.sh: Document new module.
2797         Reported by Bruno Haible.
2798
2799 2011-06-06  Bruno Haible  <bruno@clisp.org>
2800
2801         spawn-pipe tests: Rename program.
2802         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2803         * tests/test-spawn-pipe-child.c: Update comment.
2804         * tests/test-spawn-pipe.sh: Update.
2805         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2806
2807         spawn-pipe tests: Link the child program only against libc.
2808         * tests/test-spawn-pipe-child.c: New file, extracted from
2809         tests/test-spawn-pipe.c.
2810         (main): Expect only one argument.
2811         (is_open): New function, copied from tests/test-pipe.c.
2812         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2813         (child_main): Remove function.
2814         (test_pipe): Pass only one argument to the child program.
2815         (main): Remove child process code. Expect the child program's name as
2816         first argument.
2817         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2818         argument.
2819         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2820         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2821         test-spawn-pipe-child against no libraries.
2822
2823 2011-06-06  Bruno Haible  <bruno@clisp.org>
2824
2825         careadlinkat: Avoid mismatch between ssize_t and int.
2826         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2827         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2828
2829 2011-06-06  Jim Meyering  <meyering@redhat.com>
2830
2831         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2832         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2833         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2834
2835 2011-06-05  Bruno Haible  <bruno@clisp.org>
2836
2837         ansi-c++-opt: Interoperability with libtool.
2838         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2839         set the variable to "no", not to ":".
2840         * NEWS: Mention the change.
2841
2842 2011-06-05  Bruno Haible  <bruno@clisp.org>
2843
2844         acl: Fix test failure on AIX 7.
2845         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2846         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2847
2848 2011-06-05  Bruno Haible  <bruno@clisp.org>
2849
2850         pipe-filter-ii: Fix test failure on AIX and IRIX.
2851         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2852         with EAGAIN, retry with a smaller buffer size.
2853
2854 2011-06-05  Bruno Haible  <bruno@clisp.org>
2855
2856         localename: Fix link dependencies.
2857         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2858         * modules/localename-tests (Makefile.am): Link test-localename with
2859         $(LIBTHREAD).
2860
2861 2011-06-05  Bruno Haible  <bruno@clisp.org>
2862
2863         error: Avoid gcc warning.
2864         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2865
2866 2011-06-05  Bruno Haible  <bruno@clisp.org>
2867
2868         unsetenv: Avoid gcc warning.
2869         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2870
2871 2011-06-05  Bruno Haible  <bruno@clisp.org>
2872
2873         setenv: Avoid gcc warning.
2874         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2875
2876 2011-06-05  Bruno Haible  <bruno@clisp.org>
2877
2878         sys_select: Ensure memset is declared also on AIX 7.
2879         * lib/sys_select.in.h: Include <string.h> also on AIX.
2880         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2881         self-contained also on AIX 7.1.
2882
2883 2011-06-04  Jim Meyering  <meyering@redhat.com>
2884
2885         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2886         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2887         function name, "error".
2888         (_gl_translatable_diag_func_re): New configurable variable.
2889
2890 2011-06-04  Bruno Haible  <bruno@clisp.org>
2891
2892         getopt: Avoid gcc warning.
2893         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2894
2895 2011-06-04  Bruno Haible  <bruno@clisp.org>
2896
2897         strerror_r: Fix comments.
2898         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2899         commit.
2900
2901 2011-06-04  Bruno Haible  <bruno@clisp.org>
2902
2903         perror: Fix compilation error.
2904         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2905         Undefine fprintf, not sprintf.
2906         * modules/perror (Depends-on): Remove intprops, verify.
2907
2908 2011-06-04  Bruno Haible  <bruno@clisp.org>
2909
2910         setlocale: Enable replacement on Cygwin 1.5.
2911         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2912         Cygwin 1.5.x.
2913         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2914         LC_CTYPE category also exists on Cygwin 1.5.x.
2915
2916 2011-06-04  Bruno Haible  <bruno@clisp.org>
2917
2918         strerror-override: Don't disable symbol renamings.
2919         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2920         * lib/strerror-override.c: Include config.h.
2921         (strerror_override): Don't undefine.
2922
2923 2011-06-03  Bruno Haible  <bruno@clisp.org>
2924
2925         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2926         * lib/localename.h: Update copyright header.
2927         * lib/localename.c: Likewise.
2928         * lib/relocatable.h: Likewise.
2929         * lib/relocatable.c: Likewise.
2930
2931 2011-06-02  Bruno Haible  <bruno@clisp.org>
2932
2933         doc: Fix a module name.
2934         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2935
2936 2011-06-02  Bruno Haible  <bruno@clisp.org>
2937
2938         pipe2: Remove dependency on 'nonblocking' module.
2939         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2940         O_NONBLOCK is defined by gnulib.
2941         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2942         is zero.
2943         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2944         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2945         defined by gnulib.
2946         (get_nonblocking_flag): New function.
2947         (main): Test O_NONBLOCK flag only if it is nonzero.
2948         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2949
2950 2011-06-03  Jim Meyering  <meyering@redhat.com>
2951
2952         maint: three new prohibit-header-without-use rules
2953         Prohibit use of cloexec.h, posixver.h, same.h without use.
2954         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2955         (sc_prohibit_posixver_without_use): Likewise.
2956         (sc_prohibit_same_without_use): Likewise.
2957
2958 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2959
2960         allocator: 'die' routine is now given requested size
2961         * lib/allocator.h (struct allocator.die): New size arg.
2962         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2963         If the actual problem is an ssize_t limitation, not a size_t or
2964         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2965
2966 2011-06-01  Eric Blake  <eblake@redhat.com>
2967
2968         strerror: drop strerror_r dependency
2969         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2970         * lib/strerror-override.c (strerror_override): ...to new file.
2971         * lib/strerror-override.h: Add prototype.
2972         * lib/strerror-impl.h: Delete.
2973         * lib/strerror.c (strerror): New implementation.
2974         * modules/errno (Files): Add new files.
2975         (configure.ac): Compile new file as appropriate.
2976         * modules/strerror (Files): Drop unused file.
2977         (Depends-on): Drop strerror_r-posix.
2978         * MODULES.html.sh: Document strerror_r-posix.
2979         Requested by Sam Steingold.
2980
2981         perror: call strerror_r directly
2982         * modules/perror (Files): Drop strerror-impl.h.
2983         * lib/perror.c (perror): Use our own stack buffer, rather than
2984         calling a wrapper that uses static storage.
2985         * doc/posix-functions/perror.texi (perror): Document a limitation
2986         of our replacement.
2987
2988         strerror_r: fix includes for FreeBSD
2989         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2990         since we use abort on some platforms.
2991         Reported by Matthias Bolte.
2992
2993 2011-05-31  Bruno Haible  <bruno@clisp.org>
2994
2995         Fix link errors in tests: openat-die uses gettext-h.
2996         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2997         against $(LIBINTL).
2998         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2999         against $(LIBINTL).
3000         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3001         $(LIBINTL).
3002         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3003         against $(LIBINTL).
3004         * modules/linkat-tests (Makefile.am): Link test-linkat against
3005         $(LIBINTL).
3006         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3007         $(LIBINTL).
3008         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3009         against $(LIBINTL).
3010         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3011         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3012         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3013         $(LIBINTL).
3014         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3015         $(LIBINTL).
3016         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3017         $(LIBINTL).
3018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3019
3020 2011-05-31  Bruno Haible  <bruno@clisp.org>
3021
3022         Fix link errors in tests: wait-process uses gettext-h.
3023         * modules/nonblocking-pipe-tests (Makefile.am): Set
3024         test_nonblocking_pipe_main_LDADD.
3025         * modules/nonblocking-socket-tests (Makefile.am): Link
3026         test-nonblocking-socket-main against $(LIBINTL).
3027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3028
3029 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         assert-h: work around 'verify' incompatibility
3032         * lib/verify.h: Use @...@ directives, not ifdef.
3033         * modules/assert-h (assert.h): Implement the directives.
3034         (assert.h): Substitute the symbol-prefix more consistently.
3035
3036 2011-05-29  Jim Meyering  <meyering@redhat.com>
3037
3038         trim: remove three superfluous assignments
3039         * lib/trim.c (trim2): Remove three superfluous assignments
3040         and correct brace positioning.
3041
3042 2011-05-29  Bruno Haible  <bruno@clisp.org>
3043
3044         wctype-h: Avoid namespace pollution on Solaris 2.6.
3045         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3046         identifiers.
3047         * doc/posix-headers/wctype.texi: Mention the problem.
3048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3049
3050 2011-05-28  Jim Meyering  <meyering@redhat.com>
3051
3052         parse-datetime.y: accommodate -Wstrict-overflow
3053         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3054         placate -Wstrict-overflow.
3055
3056         trim: avoid a warning from -O2 -Wstrict-overflow
3057         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3058
3059 2011-05-29  Bruno Haible  <bruno@clisp.org>
3060
3061         gnulib-tool: Fix bug in yesterday's commit.
3062         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3063         twice.
3064
3065 2011-05-29  Bruno Haible  <bruno@clisp.org>
3066
3067         Allow multiple gnulib generated include files to be combined.
3068         * gnulib-tool (func_compute_include_guard_prefix): New function.
3069         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3070         ${gl_include_guard_prefix} references.
3071         (func_import, func_create_testdir): Invoke
3072         func_compute_include_guard_prefix.
3073         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3074         * lib/ctype.in.h: Likewise.
3075         * lib/dirent.in.h: Likewise.
3076         * lib/errno.in.h: Likewise.
3077         * lib/fcntl.in.h: Likewise.
3078         * lib/float.in.h: Likewise.
3079         * lib/getopt.in.h: Likewise.
3080         * lib/iconv.in.h: Likewise.
3081         * lib/langinfo.in.h: Likewise.
3082         * lib/locale.in.h: Likewise.
3083         * lib/math.in.h: Likewise.
3084         * lib/netdb.in.h: Likewise.
3085         * lib/netinet_in.in.h: Likewise.
3086         * lib/poll.in.h: Likewise.
3087         * lib/pthread.in.h: Likewise.
3088         * lib/pty.in.h: Likewise.
3089         * lib/sched.in.h: Likewise.
3090         * lib/se-selinux.in.h: Likewise.
3091         * lib/search.in.h: Likewise.
3092         * lib/signal.in.h: Likewise.
3093         * lib/spawn.in.h: Likewise.
3094         * lib/stdarg.in.h: Likewise.
3095         * lib/stddef.in.h: Likewise.
3096         * lib/stdint.in.h: Likewise.
3097         * lib/stdio.in.h: Likewise.
3098         * lib/stdlib.in.h: Likewise.
3099         * lib/string.in.h: Likewise.
3100         * lib/strings.in.h: Likewise.
3101         * lib/sys_file.in.h: Likewise.
3102         * lib/sys_ioctl.in.h: Likewise.
3103         * lib/sys_select.in.h: Likewise.
3104         * lib/sys_socket.in.h: Likewise.
3105         * lib/sys_stat.in.h: Likewise.
3106         * lib/sys_time.in.h: Likewise.
3107         * lib/sys_times.in.h: Likewise.
3108         * lib/sys_uio.in.h: Likewise.
3109         * lib/sys_utsname.in.h: Likewise.
3110         * lib/sys_wait.in.h: Likewise.
3111         * lib/sysexits.in.h: Likewise.
3112         * lib/termios.in.h: Likewise.
3113         * lib/time.in.h: Likewise.
3114         * lib/unistd.in.h: Likewise.
3115         * lib/wchar.in.h: Likewise.
3116         * lib/wctype.in.h: Likewise.
3117         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3118         * modules/ctype (Makefile.am): Likewise.
3119         * modules/dirent (Makefile.am): Likewise.
3120         * modules/errno (Makefile.am): Likewise.
3121         * modules/fcntl-h (Makefile.am): Likewise.
3122         * modules/float (Makefile.am): Likewise.
3123         * modules/getopt-posix (Makefile.am): Likewise.
3124         * modules/iconv-h (Makefile.am): Likewise.
3125         * modules/langinfo (Makefile.am): Likewise.
3126         * modules/locale (Makefile.am): Likewise.
3127         * modules/math (Makefile.am): Likewise.
3128         * modules/netdb (Makefile.am): Likewise.
3129         * modules/netinet_in (Makefile.am): Likewise.
3130         * modules/poll-h (Makefile.am): Likewise.
3131         * modules/pthread (Makefile.am): Likewise.
3132         * modules/pty (Makefile.am): Likewise.
3133         * modules/sched (Makefile.am): Likewise.
3134         * modules/search (Makefile.am): Likewise.
3135         * modules/selinux-h (Makefile.am): Likewise.
3136         * modules/signal (Makefile.am): Likewise.
3137         * modules/spawn (Makefile.am): Likewise.
3138         * modules/stdarg (Makefile.am): Likewise.
3139         * modules/stddef (Makefile.am): Likewise.
3140         * modules/stdint (Makefile.am): Likewise.
3141         * modules/stdio (Makefile.am): Likewise.
3142         * modules/stdlib (Makefile.am): Likewise.
3143         * modules/string (Makefile.am): Likewise.
3144         * modules/strings (Makefile.am): Likewise.
3145         * modules/sys_file (Makefile.am): Likewise.
3146         * modules/sys_ioctl (Makefile.am): Likewise.
3147         * modules/sys_select (Makefile.am): Likewise.
3148         * modules/sys_socket (Makefile.am): Likewise.
3149         * modules/sys_stat (Makefile.am): Likewise.
3150         * modules/sys_time (Makefile.am): Likewise.
3151         * modules/sys_times (Makefile.am): Likewise.
3152         * modules/sys_uio (Makefile.am): Likewise.
3153         * modules/sys_utsname (Makefile.am): Likewise.
3154         * modules/sys_wait (Makefile.am): Likewise.
3155         * modules/sysexits (Makefile.am): Likewise.
3156         * modules/termios (Makefile.am): Likewise.
3157         * modules/time (Makefile.am): Likewise.
3158         * modules/unistd (Makefile.am): Likewise.
3159         * modules/wchar (Makefile.am): Likewise.
3160         * modules/wctype-h (Makefile.am): Likewise.
3161         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3162
3163 2011-05-29  Bruno Haible  <bruno@clisp.org>
3164
3165         assert-h: Allow multiple gnulib generated replacements to coexist.
3166         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3167
3168 2011-05-29  Bruno Haible  <bruno@clisp.org>
3169
3170         argp: Allow coexistence with strerror_r-posix module.
3171         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3172         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3173         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3174         not the glibc signature.
3175
3176 2011-05-28  Bruno Haible  <bruno@clisp.org>
3177
3178         gnulib-tool: Alternative structure of testdirs, similar to --import.
3179         * gnulib-tool: New option --single-configure.
3180         (func_usage): Document it.
3181         (single_configure): New variable.
3182         (func_modules_transitive_closure_separately,
3183         func_modules_transitive_closure_separately,
3184         func_determine_use_libtests, func_modules_add_dummy_separately,
3185         func_modules_to_filelist_separately): New functions, extracted from
3186         func_import.
3187         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3188         (func_import): Use the new functions.
3189         (func_create_testdir): Set final_modules. Handle $single_configure =
3190         true case.
3191
3192 2011-05-28  Bruno Haible  <bruno@clisp.org>
3193
3194         getloadavg: Remove an unreliable safety check.
3195         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3196         getloadavg.c is in place.
3197         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3198         Reported by Sam Steingold <sds@gnu.org>.
3199
3200 2011-05-28  Bruno Haible  <bruno@clisp.org>
3201
3202         doc: Cleanup yet another file produced by texinfo.tex.
3203         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3204
3205 2011-05-28  Bruno Haible  <bruno@clisp.org>
3206
3207         Finish the conditional dependencies mechanism.
3208         * gnulib-tool: New option --no-conditional-dependencies.
3209         (func_usage): Document it. Don't mark --conditional-dependencies as
3210         experimental.
3211         (cond_dependencies): The possible values can now be true, false, empty.
3212         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3213         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3214         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3215
3216 2011-05-28  Bruno Haible  <bruno@clisp.org>
3217
3218         doc: Use a recent texinfo.tex.
3219         * doc/Makefile (tex_opts): New variable.
3220         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3221
3222 2011-05-28  Jim Meyering  <meyering@redhat.com>
3223
3224         intprops.h: adjust comment to match code change
3225         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3226         only once, it *may* have side effects.  Also fix an unrelated typo.
3227         (_GL_INT_SIGNED): Likewise.
3228
3229 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3230
3231         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3232
3233 2011-05-26  Bruno Haible  <bruno@clisp.org>
3234
3235         mbsrchr: Avoid collision with system function on Interix.
3236         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3237         Reported by Markus Duft <mduft@gentoo.org>.
3238
3239 2011-05-15  James Youngman  <jay@gnu.org>
3240
3241         getopt: for ambiguous options, enumerate the possibilities.
3242         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3243         the ambiguous options when an ambiguous prefix is given. This was
3244         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3245         glibc change was
3246         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3247
3248 2011-05-25  Eric Blake  <eblake@redhat.com>
3249
3250         getcwd: work around mingw bug
3251         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3252         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3253         Reported by Matthias Bolte.
3254
3255 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3256
3257         test-intprops: disable -Wtype-limits diagnostics
3258         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3259         diagnostics.  Otherwise, the integer overflow macros generate many
3260         diagnostics.  Reported by Jim Meyering in
3261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3262
3263         intprops: shorten, to pacify gcc -Woverlength-strings
3264         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3265         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3266         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3267         likely to run afoul of C compiler limits for string constant lengths.
3268         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3269
3270 2011-05-24  Eric Blake  <eblake@redhat.com>
3271
3272         docs: document recently fixed glibc printf bug
3273         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3274         * doc/posix-functions/printf.texi (printf): Likewise.
3275         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3276         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3277
3278         closein-tests: convert to init.sh
3279         * modules/closein-tests (Files): Add init.sh
3280         * tests/test-closein.sh Use it.
3281
3282         yesno-tests: convert to init.sh
3283         * modules/yesno-tests (Files): Add init.sh.
3284         * tests/test-yesno.sh: Use it.
3285
3286         atexit-tests: ensure reliable exit status
3287         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3288         Reported by Bruno Haible.
3289
3290 2011-05-24  Bruno Haible  <bruno@clisp.org>
3291
3292         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3293         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3294         gl_PREREQ_STRERROR_R invocations from here...
3295         * modules/strerror_r-posix (configure.ac): ... to here.
3296
3297 2011-05-24  Eric Blake  <eblake@redhat.com>
3298
3299         strerror_r: fix missing header
3300         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3301
3302         strerror_r: fix AIX test failures
3303         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3304         ERANGE failure.
3305
3306         strerror_r: fix Solaris test failures
3307         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3308         failures.
3309         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3310
3311         strerror_r: enforce POSIX recommendations
3312         * lib/strerror_r.c (safe_copy): New helper method.
3313         (strerror_r): Guarantee a non-empty string.
3314         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3315         recent POSIX rulings and to match our strerror guarantees.
3316         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3317
3318 2011-05-24  Jim Meyering  <meyering@redhat.com>
3319
3320         test-perror2.c: avoid warning about unused variable
3321         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3322
3323 2011-05-24  Eric Blake  <eblake@redhat.com>
3324
3325         perror: avoid spurious test failure on HP-UX
3326         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3327
3328         tests: fix logic bug in init.sh
3329         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3330         shell.
3331
3332 2011-05-24  Jim Meyering  <meyering@redhat.com>
3333
3334         utimensat: do not reference an out-of-scope buffer
3335         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3336         declared in an inner scope, yet "times" would be dereferenced outside
3337         the scope in which "ts" was valid.
3338         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3339         of ts[2] "out/up", so that the use of aliased "times" (via
3340         "times = ts;") does not end up referencing an out-of-scope "ts"
3341
3342         opendir-safer.c: don't clobber errno; don't close negative FD
3343         * lib/opendir-safer.c (opendir_safer):
3344         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3345         file descriptor, and more importantly, don't clobber the
3346         offending errno value with EINVAL.  Before, upon failure
3347         of dup_safer, we would pass the negative file descriptor to
3348         fdopendir, which would clobber errno.
3349
3350 2011-05-23  Bruno Haible  <bruno@clisp.org>
3351
3352         idcache: Fix module description.
3353         * modules/idcache (Include): Set to "idcache.h".
3354
3355 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3356
3357         gnulib-tool: fix portability problem with MacOS sed
3358         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3359         before the "}".  Problem reported by Leo in
3360         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3361         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3362         sed_extract_condition1, sed_extract_condition2.
3363
3364 2011-05-23  Bruno Haible  <bruno@clisp.org>
3365
3366         hash: Simplify autoconf macro.
3367         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3368
3369 2011-05-23  Bruno Haible  <bruno@clisp.org>
3370
3371         getugroups: Fix module description.
3372         * modules/getugroups (Include): Set to "getugroups.h".
3373
3374 2011-05-23  Bruno Haible  <bruno@clisp.org>
3375
3376         linkat: Simplify autoconf macro.
3377         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3378
3379 2011-05-23  Bruno Haible  <bruno@clisp.org>
3380             Eric Blake  <eblake@redhat.com>
3381
3382         linkat, renameat: Update dependencies.
3383         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3384         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3385         symlinkat.
3386
3387 2011-05-23  Jim Meyering  <meyering@redhat.com>
3388
3389         maint.mk: more tight_scope improvements
3390         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3391         (_gl_TS_headers): Define only in if-0'd block.
3392         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3393         sometimes we must *not* use it.  Adjust uses accordingly.
3394         (sc_tight_scope): Use much simpler grep-based test to determine
3395         whether we skip this rule.
3396
3397         maint.mk: generalize/improve the tight-scope rule
3398         * top/maint.mk: Emit a warning when the test is skipped.
3399         (_gl_TS_dir): Add $(srcdir)/ prefix.
3400         (_gl_TS_function_match): Simplify, rather than trying
3401         to enumerate common types.  Otherwise, it would fail to match an
3402         "extern unsigned char const *" declaration in idutils.
3403         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3404         a way to support use of that type of macro.
3405         (_gl_TS_var_match): Simplify regexp.
3406         (_gl_TS_obj_files): New configurable variable.
3407         (_gl_TS_headers): Likewise.
3408
3409 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3410
3411         verify: fix bug when gnulib <assert.h> is also included
3412         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3413         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3414         Perhaps there's a better way, but this fixes the immediate problem.
3415         Problem reported by Bruno Haible in
3416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3417
3418 2011-05-22  Bruno Haible  <bruno@clisp.org>
3419
3420         xgetcwd: Simplify autoconf macro.
3421         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3422
3423 2011-05-22  Bruno Haible  <bruno@clisp.org>
3424
3425         New module 'mktime-internal'.
3426         * modules/mktime-internal: New file.
3427         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3428         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3429         mktime_internal as a C macro if libc has __mktime_internal.
3430         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3431         conditions.
3432         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3433
3434 2011-05-22  Bruno Haible  <bruno@clisp.org>
3435
3436         timegm: Correct mktime replacement statements.
3437         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3438         defining mktime as a C macro. This completes a 2009-07-28 commit.
3439
3440 2011-05-22  Bruno Haible  <bruno@clisp.org>
3441
3442         timegm: Simplify autoconf macro.
3443         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3444
3445 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3446
3447         clock-time: change to LGPLv2+.
3448         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3449         BSD-like but we have no mark for that; this is good enough for now.
3450
3451 2011-05-21  Bruno Haible  <bruno@clisp.org>
3452
3453         strerror_r: Fix comments.
3454         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3455
3456 2011-05-21  Bruno Haible  <bruno@clisp.org>
3457
3458         relocatable-prog-wrapper: Fix possible link error.
3459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3460         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3461         (gl_FUNC_SETENV): ... to here.
3462         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3463         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3464
3465 2011-05-21  Bruno Haible  <bruno@clisp.org>
3466
3467         relocatable-prog-wrapper: Assume strerror() exists.
3468         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3469         m4/strerror.m4.
3470         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3471         * lib/relocwrapper.c: Remove mention of strerror module.
3472         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3474         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3475         C macro.
3476
3477 2011-05-21  Bruno Haible  <bruno@clisp.org>
3478
3479         select: Simplify replacement idiom.
3480         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3481         Win32 platforms.
3482         * lib/sys_select.in.h (select): Simplify accordingly.
3483         * modules/select (Depends-on): Likewise.
3484
3485 2011-05-21  Bruno Haible  <bruno@clisp.org>
3486
3487         mkdir-p: Simplify autoconf macro.
3488         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3489         gl_FUNC_LCHOWN.
3490
3491 2011-05-21  Eric Blake  <eblake@redhat.com>
3492
3493         strerror_r: avoid clobbering strerror on cygwin
3494         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3495         fall back instead to sys_errlist.
3496         * modules/strerror (configure.ac): Add witness.
3497         * tests/test-strerror_r.c (main): Enhance test.
3498         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3499         * tests/test-perror2.c (main): Free memory before exit.
3500
3501 2011-05-21  Bruno Haible  <bruno@clisp.org>
3502
3503         mkdtemp: Use gnulib naming conventions.
3504         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3505         * modules/mkdtemp (configure.ac): Update.
3506
3507 2011-05-20  Eric Blake  <eblake@redhat.com>
3508
3509         strerror_r: avoid corrupting errno on Solaris
3510         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3511         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3512
3513         strerror_r: avoid compiler warning
3514         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3515
3516         strerror_r: simplify AIX code
3517         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3518
3519         test-perror: avoid spurious failure on FreeBSD
3520         * modules/perror-tests (Depends-on): Add strerror, now that
3521         strerror_r no longer pulls it in.
3522
3523 2011-05-20  Bruno Haible  <bruno@clisp.org>
3524
3525         strerror_r-posix: Remove unused dependencies.
3526         * modules/strerror_r-posix (Depends-on): Remove strerror.
3527         Reported by Eric Blake.
3528
3529 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         intprops: remove assumption about A|B representation
3532         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3533         is a valid integer if both A and B are.  Although this is true for
3534         all known practical hosts, the C standard doesn't guarantee it,
3535         and the code need not assume it.  Also, this change may work around
3536         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3538
3539 2011-05-20  Eric Blake  <eblake@redhat.com>
3540
3541         perror: work around FreeBSD bug
3542         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3543         is broken.  Move AC_LIBOBJ...
3544         * modules/perror (configure.ac): Here.
3545         * doc/posix-functions/perror.texi (perror): Document this.
3546         * tests/test-perror2.c (main): Enhance test.
3547
3548         test-perror: check for strerror interactions
3549         * tests/macros.h (STREQ): Add macro.
3550         * modules/perror-tests (Files): Add second test.
3551         * tests/test-perror2.c (main): New file.
3552         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3553
3554         test-perror: rewrite to use init script
3555         * modules/perror-tests (Files): Add init.sh.
3556         * tests/test-perror.sh: Use temporary directory.
3557
3558 2011-05-20  Jim Meyering  <meyering@redhat.com>
3559
3560         maint: replace misused "a" with "an"
3561         * doc/intprops.texi: "a integer"
3562         * doc/regex.texi: "a explanation"
3563         * lib/alignof.h: "a object"
3564         * lib/argmatch.h: "a explanation"
3565         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3566         * lib/stdint.in.h: "a integer"
3567         * lib/userspec.c: "a owner"
3568         * doc/gnulib.texi: Fix "a idea", and reword.
3569
3570 2011-05-19  Jim Meyering  <meyering@redhat.com>
3571
3572         maint: correct misuse of "a" and "an"
3573         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3574         * lib/argp-help.c: "an docum...": s/an/a/
3575         * lib/argp-parse.c: "An vector": s/An/A/
3576         * lib/execute.c: "an native": s/an/a/
3577         * lib/spawn-pipe.c: Likewise.
3578         * lib/gc.h: "an Gc_rc": s/an/a/
3579         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3580         * lib/fts.c: "an stat.st_dev": s/an/a/
3581
3582 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3583
3584         intprops-tests: work around HP-UX 11.23 cc bug with constants
3585         * tests/test-intprops.c (VERIFY): New macro.
3586         (main): Use it, instead of verify, to work around the compiler bug; see
3587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3588
3589         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3590         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3591         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3592         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3593         (_GL_REMAINDER_OVERFLOW): Use it.
3594
3595         intprops-tests: revert unsigned part of previous change
3596         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3597         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3598         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3600
3601 2011-05-19  Bruno Haible  <bruno@clisp.org>
3602
3603         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3604         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3605         strerror_r() returned without filling the buffer.
3606         Reported by Eric Blake.
3607
3608 2011-05-19  Eric Blake  <eblake@redhat.com>
3609
3610         strerror_r: guarantee unchanged errno
3611         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3612         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3613         failure.
3614         * tests/test-strerror_r.c (main): Enhance test.
3615
3616 2011-05-19  Bruno Haible  <bruno@clisp.org>
3617
3618         strerror_r: Reorder #if blocks.
3619         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3620         for consistency with the previous commit.
3621
3622 2011-05-19  Bruno Haible  <bruno@clisp.org>
3623
3624         perror: Avoid clobbering the strerror buffer when possible.
3625         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3626         * lib/strerror.c: Include it.
3627         * modules/strerror (Files): Add lib/strerror-impl.h.
3628         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3629         (my_strerror): New function, defined through lib/strerror-impl.h.
3630         (perror): Use it instead of strerror.
3631         * modules/perror (Files): Add lib/strerror-impl.h.
3632         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3633
3634 2011-05-19  Eric Blake  <eblake@redhat.com>
3635
3636         strerror_r: fix on newer cygwin
3637         * lib/strerror_r.c (strerror_r): Cygwin now has
3638         __xpg_strerror_r, use it.
3639
3640 2011-05-19  Bruno Haible  <bruno@clisp.org>
3641
3642         strerror_r: Avoid clobbering the strerror buffer when possible.
3643         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3644         (sys_nerr, sys_errlist): New declarations.
3645         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3646         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3647         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3648
3649 2011-05-19  Bruno Haible  <bruno@clisp.org>
3650
3651         strerror_r: Fix test failure on mingw.
3652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3653         EXTEND_STRERROR_R.
3654         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3655         macros from errno.in.h instead.
3656
3657 2011-05-19  Eric Blake  <eblake@redhat.com>
3658
3659         strerror: relax test for Solaris
3660         * tests/test-strerror.c (main): Permit Solaris behavior.
3661         * tests/test-strerror_r.c (main): Likewise.
3662
3663         strerror: enforce POSIX ruling on strerror(0)
3664         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3665         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3666         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3667         * doc/posix-functions/strerror.texi (strerror): Document it.
3668         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3669         * tests/test-strerror.c (main): Strengthen test.
3670         * tests/test-strerror_r.c (main): Likewise.
3671
3672 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         intprop-tests: port to older and more-pedantic compilers
3675         * modules/intprops-tests (Files): Add tests/macros.h.
3676         * tests/test-intprops.c: Include macros.h.
3677         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3678         it's no longer documented to expand to an integer constant expression.
3679         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3680         argument is floating point, as it's no longer documented to expand
3681         to an integer constant expression in that case.
3682         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3683         compiler bugs reported by Bruno Haible.  See
3684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3685         (U0, U1): New constants, to work around the same bugs.  Also,
3686         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3687
3688         intprops: work around C compiler bugs
3689         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3690         bug in Sun C 5.11 2010/08/13 and other compilers; see
3691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3692
3693         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3694         * doc/intprops.texi (Integer Type Determination): Fix
3695         documentation for TYPE_IS_INTEGER: it returns an constant
3696         expression, not an integer constant expression.  Fix doc for
3697         TYPE_SIGNED: it returns an integer constant expression only if its
3698         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3699         hardly worth documented that way....)
3700
3701 2011-05-18  Bruno Haible  <bruno@clisp.org>
3702
3703         strerror_r: Avoid clobbering the strerror buffer when possible.
3704         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3705         Handle gnulib defined errno values here. When strerror() returns NULL
3706         or an empty string, return EINVAL.
3707         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3708         gnulib defined errno values here.
3709         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3710
3711 2011-05-18  Eric Blake  <eblake@redhat.com>
3712
3713         fnmatch: avoid compiler warning
3714         * lib/fnmatch_loop.c (FCT): Use correct type.
3715         Reported by Matthias Bolte.
3716
3717 2011-05-13  Jim Meyering  <meyering@redhat.com>
3718
3719         maint.mk: three new prohibit_<HDR>_without_use rules
3720         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3721         (sc_prohibit_stdio-safer_without_use): Likewise.
3722         (sc_prohibit_xfreopen_without_use): Likewise.
3723
3724 2011-05-17  Jim Meyering  <meyering@redhat.com>
3725
3726         announce-gen: fail if the NEWS delta is empty
3727         If there's nothing noteworthy in NEWS, then either you forgot
3728         or you shouldn't be releasing.
3729         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3730
3731 2011-05-17  Pádraig Brady <P@draigBrady.com>
3732
3733         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3734         reserved symbols starting with double underscore from the check.
3735
3736 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3737
3738         intprops: add doc
3739         * doc/intprops.texi: New file, documenting intprops.
3740         * doc/gnulib.texi (Particular Modules): Include it.
3741
3742         verify: add doc to gnulib manual and fix example
3743         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3744         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3745         (Compile-time Assertions): Fix example so it can't overflow.
3746
3747 2011-05-17  Jim Meyering  <meyering@redhat.com>
3748
3749         warnings.m4: don't usurp save_CPPFLAGS variable name
3750         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3751
3752         doc: fix typo
3753         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3754
3755 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3756             Bruno Haible  <bruno@clisp.org>
3757
3758         doc: Tweak recent change.
3759         * README (Portability guidelines): Tweak new text.
3760         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3761         Interix 6.1.
3762
3763 2011-05-16  Eric Blake  <eblake@redhat.com>
3764
3765         inttypes: avoid autoconf warning
3766         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3767         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3768
3769 2011-05-16  Sam Steingold <sds@gnu.org>
3770         and Eric Blake  <eblake@redhat.com>
3771
3772         vc-list-files: accept multiple directory operands
3773         * build-aux/vc-list-files: Iterate over all remaining operands.
3774
3775 2011-05-16  Bruno Haible  <bruno@clisp.org>
3776
3777         Fix confusion regarding deprecated modules.
3778         * modules/calloc (Status, Notice): Mark module as deprecated, not
3779         obsolete.
3780         * modules/fnmatch-posix (Status, Notice): Likewise.
3781         * modules/getdate (Status, Notice): Likewise.
3782         * modules/getopt (Status, Notice): Likewise.
3783         * modules/malloc (Status, Notice): Likewise.
3784         * modules/pipe (Status, Notice): Likewise.
3785         * modules/realloc (Status, Notice): Likewise.
3786         * modules/rename-dest-slash (Status, Notice): Likewise.
3787         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3788         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3789         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3790         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3791         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3792
3793 2011-05-16  Bruno Haible  <bruno@clisp.org>
3794
3795         doc: List the target platforms.
3796         * doc/gnulib-intro.texi (Target Platforms): New section.
3797         * doc/gnulib.texi (Introduction): Update menu.
3798         * README (Portability guidelines): Refer to the new section. Update
3799         statement about oldest supported environment. Remove rationale why
3800         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3801         unportable C89 function.
3802         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3803         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3804
3805 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3806
3807         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3808
3809 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3810
3811         intprops-tests: new module
3812         * modules/intprops-tests, tests/test-intprops.c: New files.
3813
3814         intprops: add safe, portable integer overflow checking
3815         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3816         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3817         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3818         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3819         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3820         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3821         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3822         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3823         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3824         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3825         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3826
3827 2011-05-12  James Youngman  <jay@gnu.org>
3828
3829         Add a test for glibc's Bugzilla bug #12378.
3830         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3831         doesn't allow the literal matching of a lone "[" (which is
3832         required by POSIX).
3833         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3834
3835 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3836
3837         Sync glibc change fixing Bugzilla bug #12378.
3838         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3839         beginning and fall back to matching as normal character if the
3840         string ends before the matching ']' is found.  This is what POSIX
3841         requires.
3842
3843 2011-05-13  Eric Blake  <eblake@redhat.com>
3844
3845         getcwd-lgpl: relax test for FreeBSD
3846         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3847         issue.
3848         * tests/test-getcwd-lgpl.c (main): Relax test.
3849         Reported by Matthias Bolte.
3850
3851 2011-05-11  Eric Blake  <eblake@redhat.com>
3852
3853         test-fflush: silence compiler warning
3854         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3855
3856 2011-05-11  Bruno Haible  <bruno@clisp.org>
3857
3858         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3859         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3860         * modules/canonicalize (Depends-on): Add 'nocrash'.
3861         * modules/canonicalize-lgpl (Depends-on): Likewise.
3862         * doc/posix-functions/realpath.texi: Update platforms list.
3863         Reported by Ryan Schmidt <ryandesign@macports.org>.
3864
3865 2011-05-11  Bruno Haible  <bruno@clisp.org>
3866
3867         group-member: Declare function in <unistd.h>.
3868         * lib/unistd.in.h (group_member): New declaration.
3869         * lib/group-member.h: Remove file.
3870         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3871         * tests/test-unistd-c++.cc: Check signature of group_member.
3872         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3873         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3874         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3875         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3876         HAVE_GROUP_MEMBER.
3877         * modules/group-member (Files): Remove lib/group-member.h.
3878         (Depends-on): Add unistd. Specify conditions.
3879         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3880         (Include): Change to <unistd.h>.
3881         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3882         HAVE_GROUP_MEMBER.
3883         * NEWS: Mention the change.
3884         * lib/euidaccess.c: Don't include group-member.h.
3885
3886 2011-05-11  Bruno Haible  <bruno@clisp.org>
3887
3888         group-member: Document module.
3889         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3890         module.
3891
3892 2011-05-11  Bruno Haible  <bruno@clisp.org>
3893
3894         fclose: Fix mistake earlier today.
3895         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3896
3897 2011-05-11  Eric Blake  <eblake@redhat.com>
3898
3899         fclose: preserve fflush errors
3900         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3901         Reported by Jim Meyering.
3902
3903         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3904         * build-aux/bootstrap (check_versions): When no specific version
3905         is required, merely check that the app produces an exit status
3906         that indicates its existence.
3907
3908         maint.mk: drop redundant check
3909         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3910         the same but better.
3911
3912 2011-05-11  Bruno Haible  <bruno@clisp.org>
3913
3914         fclose: Fix possible link error.
3915         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3916         unregister_shadow_fd. Improve comments.
3917         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3918         Eric Blake.
3919
3920 2011-05-11  Jim Meyering  <meyering@redhat.com>
3921
3922         maint.mk: improve "can not" detection and generalize rule name
3923         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3924         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3925         Use the same technique as in sc_prohibit_doubled_word, so that
3926         we recognize "can not" also when the words are separated by a newline.
3927         Suggested by Eric Blake.
3928         (perl_filename_lineno_text_): Define.  Factored out of...
3929         (prohibit_doubled_word_): ...here.  Use the new definition.
3930         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3931         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3932         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3933
3934 2011-05-10  Eric Blake  <eblake@redhat.com>
3935
3936         fclose: avoid double close race when possible
3937         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3938         all but WINDOWS_SOCKETS.
3939
3940 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3941
3942         openat: correct new comment
3943         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3944
3945 2011-05-10  Jim Meyering  <meyering@redhat.com>
3946
3947         openat: add comments
3948         * lib/openat-proc.c (openat_proc_name): Add comments,
3949         mostly from Eric Blake.
3950
3951 2011-05-09  Eric Blake  <eblake@redhat.com>
3952
3953         openat: reduce syscalls in first probe of /proc
3954         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3955         be a directory.  Simplify the probe for .. bugs.
3956         * modules/openat (Depends-on): Drop same-inode.
3957         Reported by Bastien ROUCARIES.
3958
3959 2011-05-09  Jim Meyering  <meyering@redhat.com>
3960
3961         maint.mk: change semantics/name of tight_scope variables
3962         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3963         Rename variables to align with semantics that make them more useful.
3964
3965         maint.mk: tweak new rule's name not to impinge
3966         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3967         (sc_tight_scope): Use new rule name rather than $@-0.
3968
3969         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3970         * top/maint.mk (sc_tight_scope): New rule.
3971         (sc_tight_scope-0): New rule, ifdef'd out.
3972         (_gl_TS_dir): Default.
3973         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3974         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3975
3976 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3977
3978         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3979         Haible <bruno@clisp.org>.
3980
3981 2011-05-08  Bruno Haible  <bruno@clisp.org>
3982
3983         Comments.
3984         * m4/isnanf.m4: Add comment.
3985         * m4/isnanl.m4: Likewise.
3986
3987 2011-05-08  Bruno Haible  <bruno@clisp.org>
3988
3989         glob: Remove obsolete macro.
3990         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3991
3992 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3993
3994         intprops: Sun C 5.11 supports __typeof__
3995         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3996         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3997         which is new.
3998         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3999
4000         intprops: switch to usual gnulib indenting and naming
4001         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4002         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4003
4004         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4005
4006 2011-05-08  Jim Meyering  <meyering@redhat.com>
4007
4008         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4009         * top/maint.mk (release-prep): Use make's --no-print-directory
4010         option when generating the announcement.  This eliminates the
4011         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4012         generated announcement template.
4013
4014 2011-05-08  Bruno Haible  <bruno@clisp.org>
4015
4016         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4017         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4018         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4019
4020 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4021
4022         ignore-value, verify: Omit include files from lib_SOURCES.
4023         * modules/ignore-value, modules/verify (Makefile.am):
4024         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4025         that leads Automake to duplicate use of am__objects_... variables
4026         in Makefile.in.  See
4027         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4028
4029 2011-05-07  Bruno Haible  <bruno@clisp.org>
4030
4031         fclose: Simplify autoconf macro.
4032         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4033         defined.
4034
4035 2011-05-07  Bruno Haible  <bruno@clisp.org>
4036
4037         canonicalize-lgpl: Fix autoconf macro ordering bug.
4038         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4039         gl_STDLIB_H_DEFAULTS.
4040
4041 2011-05-06  Eric Blake  <eblake@redhat.com>
4042
4043         maintainer-makefile: make sc_po_check easier to tune
4044         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4045         to probe for strings, such as an alternate location for gnulib.
4046
4047         fclose: guarantee behavior on seekable stdin
4048         * modules/fclose (Depends-on): Add fflush.
4049         * doc/posix-functions/fclose.texi (fclose): Document this.
4050         * tests/test-fclose.c (main): Make test for this unconditional.
4051
4052 2011-05-06  Bruno Haible  <bruno@clisp.org>
4053
4054         fflush, fpurge: Relicense under LGPLv2+.
4055         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4056         * modules/fpurge (License): Likewise.
4057         With permission from Eric Blake and Jim Meyering.
4058         Suggested by Eric Blake.
4059
4060 2011-05-06  Karl Berry  <karl@gnu.org>
4061
4062         * MODULES.html.sh (func_all_modules): remove exit.
4063
4064 2011-05-06  Jim Meyering  <meyering@redhat.com>
4065
4066         maint.mk: use info-gnu@ as the default only for a stable release
4067         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4068         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4069         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4070         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4071
4072 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4073
4074         assert-h: new module, which supports C1X-style static_assert
4075         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4076         * lib/verify.h: Revamp so that this can be copied into assert.h,
4077         while retaining the ability to use it standalone as before.
4078         Rename private identifiers so as not to encroach on the
4079         standard C namespace, since this is now used by assert.h.
4080         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4081         the old verify_true.
4082         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4083         the old verify_true.  Use _GL_VERIFY_TYPE.
4084         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4085         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4086         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4087         defined when this file is copied into the replacement assert.h.
4088         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4089         and _Static_assert is not built in.
4090         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4091         defined, and use the new macros mentioned above.
4092         * doc/posix-headers/assert.texi: Document this.
4093
4094 2011-05-05  Bruno Haible  <bruno@clisp.org>
4095
4096         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4097         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4098         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4099         gl_REPLACE_FCLOSE here.
4100         * modules/fflush (Depends-on): Remove fclose.
4101         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4102         combination with module 'fclose'.
4103
4104 2011-05-05  Bruno Haible  <bruno@clisp.org>
4105
4106         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4107         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4108         gl_FUNC_FFLUSH.
4109         (gl_FUNC_FFLUSH): Use it.
4110         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4112         gl_REPLACE_FSEEKO here.
4113
4114 2011-05-05  Bruno Haible  <bruno@clisp.org>
4115
4116         tzset: Relicense under LGPL.
4117         * modules/tzset (License): Change to LGPL.
4118         No agreement needed; it's a no-op.
4119
4120         strtoimax, strtoumax: Relicense under LGPL.
4121         * modules/strtoimax (License): Change to LGPL.
4122         * modules/strtoumax (License): Likewise.
4123         With permission from Jim Meyering, Paul Eggert:
4124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4126
4127         getgroups: Relicense under LGPL.
4128         * modules/getgroups (License): Change to LGPL.
4129         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4133
4134         nanosleep: Relicense under LGPL.
4135         * modules/nanosleep (License): Change to LGPL.
4136         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4137         Haible:
4138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4142
4143         futimens: Relicense under LGPL.
4144         * modules/futimens (License): Change to LGPL.
4145         With permission from Eric Blake:
4146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4147
4148         fflush: Relicense under LGPL.
4149         * modules/fflush (License): Change to LGPL.
4150         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4154
4155         tmpfile: Relicense under LGPL.
4156         * modules/tmpfile (License): Change to LGPL.
4157         With permission from Ben Pfaff:
4158         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4159
4160         isfinite: Relicense under LGPL.
4161         * modules/isfinite (License): Change to LGPL.
4162         With permission from Ben Pfaff, Bruno Haible:
4163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4165
4166         acosl..tanl: Relicense under LGPL.
4167         * modules/acosl (License): Change to LGPL.
4168         * modules/asinl (License): Likewise.
4169         * modules/atanl (License): Likewise.
4170         * modules/cosl (License): Likewise.
4171         * modules/expl (License): Likewise.
4172         * modules/logl (License): Likewise.
4173         * modules/sinl (License): Likewise.
4174         * modules/sqrtl (License): Likewise.
4175         * modules/tanl (License): Likewise.
4176         Source code originally from glibc and Paolo Bonzini. Agreements:
4177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4179
4180 2011-05-05  Bruno Haible  <bruno@clisp.org>
4181
4182         signal: Define sighandler_t.
4183         * lib/signal.in.h (sighandler_t): New type.
4184         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4185         whether sighandler_t is defined.
4186         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4187         * modules/signal (Depends-on): Add extensions.
4188         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4189         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4190         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4191
4192 2011-05-05  Eric Blake  <eblake@redhat.com>
4193
4194         maint: remove useless REPLACE_*_H macros
4195         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4196         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4197         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4198         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4199         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4200         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4201         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4202         * m4/btowc.m4: Update callers.
4203         * m4/dirfd.m4: Likewise.
4204         * m4/duplocale.m4: Likewise.
4205         * m4/fchdir.m4: Likewise.
4206         * m4/fdopendir.m4: Likewise.
4207         * m4/inet_ntop.m4: Likewise.
4208         * m4/inet_pton.m4: Likewise.
4209         * m4/ioctl.m4: Likewise.
4210         * m4/mbrlen.m4: Likewise.
4211         * m4/mbrtowc.m4: Likewise.
4212         * m4/mbsinit.m4: Likewise.
4213         * m4/mbsnrtowcs.m4: Likewise.
4214         * m4/mbsrtowcs.m4: Likewise.
4215         * m4/poll.m4: Likewise.
4216         * m4/setlocale.m4: Likewise.
4217         * m4/wcrtomb.m4: Likewise.
4218         * m4/wcsnrtombs.m4: Likewise.
4219         * m4/wcsrtombs.m4: Likewise.
4220         * m4/wctob.m4: Likewise.
4221         * m4/wcwidth.m4: Likewise.
4222         * modules/posix_spawn: Likewise.
4223         * modules/posix_spawn_file_actions_addclose: Likewise.
4224         * modules/posix_spawn_file_actions_adddup2: Likewise.
4225         * modules/posix_spawn_file_actions_addopen: Likewise.
4226         * modules/posix_spawn_file_actions_destroy: Likewise.
4227         * modules/posix_spawn_file_actions_init: Likewise.
4228         * modules/posix_spawnattr_destroy: Likewise.
4229         * modules/posix_spawnattr_getflags: Likewise.
4230         * modules/posix_spawnattr_getpgroup: Likewise.
4231         * modules/posix_spawnattr_getschedparam: Likewise.
4232         * modules/posix_spawnattr_getschedpolicy: Likewise.
4233         * modules/posix_spawnattr_getsigdefault: Likewise.
4234         * modules/posix_spawnattr_getsigmask: Likewise.
4235         * modules/posix_spawnattr_init: Likewise.
4236         * modules/posix_spawnattr_setflags: Likewise.
4237         * modules/posix_spawnattr_setpgroup: Likewise.
4238         * modules/posix_spawnattr_setschedparam: Likewise.
4239         * modules/posix_spawnattr_setschedpolicy: Likewise.
4240         * modules/posix_spawnattr_setsigdefault: Likewise.
4241         * modules/posix_spawnattr_setsigmask: Likewise.
4242         * modules/posix_spawnp: Likewise.
4243
4244 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4245
4246         Add option to do-release-commit-and-tag to specify branch.
4247         * build-aux/do-release-commit-and-tag: Add --branch.
4248
4249 2011-05-03  Bruno Haible  <bruno@clisp.org>
4250
4251         Avoid unnecessary compilation units, through conditional dependencies.
4252         * modules/accept (Depends-on): Add conditions to the dependencies.
4253         * modules/acosl (Depends-on): Likewise.
4254         * modules/argz (Depends-on): Likewise.
4255         * modules/asinl (Depends-on): Likewise.
4256         * modules/atanl (Depends-on): Likewise.
4257         * modules/atoll (Depends-on): Likewise.
4258         * modules/bind (Depends-on): Likewise.
4259         * modules/btowc (Depends-on): Likewise.
4260         * modules/canonicalize-lgpl (Depends-on): Likewise.
4261         * modules/ceil (Depends-on): Likewise.
4262         * modules/ceilf (Depends-on): Likewise.
4263         * modules/ceill (Depends-on): Likewise.
4264         * modules/chdir-long (Depends-on): Likewise.
4265         * modules/chown (Depends-on): Likewise.
4266         * modules/close (Depends-on): Likewise.
4267         * modules/connect (Depends-on): Likewise.
4268         * modules/cosl (Depends-on): Likewise.
4269         * modules/dirfd (Depends-on): Likewise.
4270         * modules/dprintf (Depends-on): Likewise.
4271         * modules/dprintf-posix (Depends-on): Likewise.
4272         * modules/error (Depends-on): Likewise.
4273         * modules/euidaccess (Depends-on): Likewise.
4274         * modules/expl (Depends-on): Likewise.
4275         * modules/faccessat (Depends-on): Likewise.
4276         * modules/fchdir (Depends-on): Likewise.
4277         * modules/fclose (Depends-on): Likewise.
4278         * modules/fcntl (Depends-on): Likewise.
4279         * modules/fdopendir (Depends-on): Likewise.
4280         * modules/fflush (Depends-on): Likewise.
4281         * modules/floor (Depends-on): Likewise.
4282         * modules/floorf (Depends-on): Likewise.
4283         * modules/floorl (Depends-on): Likewise.
4284         * modules/fnmatch (Depends-on): Likewise.
4285         * modules/fopen (Depends-on): Likewise.
4286         * modules/fprintf-posix (Depends-on): Likewise.
4287         * modules/frexp (Depends-on): Likewise.
4288         * modules/frexp-nolibm (Depends-on): Likewise.
4289         * modules/frexpl (Depends-on): Likewise.
4290         * modules/frexpl-nolibm (Depends-on): Likewise.
4291         * modules/fseek (Depends-on): Likewise.
4292         * modules/fsusage (Depends-on): Likewise.
4293         * modules/ftell (Depends-on): Likewise.
4294         * modules/ftello (Depends-on): Likewise.
4295         * modules/futimens (Depends-on): Likewise.
4296         * modules/getcwd (Depends-on): Likewise.
4297         * modules/getcwd-lgpl (Depends-on): Likewise.
4298         * modules/getdelim (Depends-on): Likewise.
4299         * modules/getdomainname (Depends-on): Likewise.
4300         * modules/getgroups (Depends-on): Likewise.
4301         * modules/gethostname (Depends-on): Likewise.
4302         * modules/getline (Depends-on): Likewise.
4303         * modules/getlogin_r (Depends-on): Likewise.
4304         * modules/getopt-posix (Depends-on): Likewise.
4305         * modules/getpeername (Depends-on): Likewise.
4306         * modules/getsockname (Depends-on): Likewise.
4307         * modules/getsockopt (Depends-on): Likewise.
4308         * modules/getsubopt (Depends-on): Likewise.
4309         * modules/getusershell (Depends-on): Likewise.
4310         * modules/glob (Depends-on): Likewise.
4311         * modules/grantpt (Depends-on): Likewise.
4312         * modules/iconv_open (Depends-on): Likewise.
4313         * modules/iconv_open-utf (Depends-on): Likewise.
4314         * modules/inet_ntop (Depends-on): Likewise.
4315         * modules/inet_pton (Depends-on): Likewise.
4316         * modules/ioctl (Depends-on): Likewise.
4317         * modules/isapipe (Depends-on): Likewise.
4318         * modules/isfinite (Depends-on): Likewise.
4319         * modules/isinf (Depends-on): Likewise.
4320         * modules/lchown (Depends-on): Likewise.
4321         * modules/ldexpl (Depends-on): Likewise.
4322         * modules/link (Depends-on): Likewise.
4323         * modules/linkat (Depends-on): Likewise.
4324         * modules/listen (Depends-on): Likewise.
4325         * modules/logl (Depends-on): Likewise.
4326         * modules/lstat (Depends-on): Likewise.
4327         * modules/mbrlen (Depends-on): Likewise.
4328         * modules/mbrtowc (Depends-on): Likewise.
4329         * modules/mbsinit (Depends-on): Likewise.
4330         * modules/mbsnrtowcs (Depends-on): Likewise.
4331         * modules/mbsrtowcs (Depends-on): Likewise.
4332         * modules/mbtowc (Depends-on): Likewise.
4333         * modules/memcmp (Depends-on): Likewise.
4334         * modules/mkdir (Depends-on): Likewise.
4335         * modules/mkdtemp (Depends-on): Likewise.
4336         * modules/mkfifo (Depends-on): Likewise.
4337         * modules/mkfifoat (Depends-on): Likewise.
4338         * modules/mknod (Depends-on): Likewise.
4339         * modules/mkostemp (Depends-on): Likewise.
4340         * modules/mkostemps (Depends-on): Likewise.
4341         * modules/mkstemp (Depends-on): Likewise.
4342         * modules/mkstemps (Depends-on): Likewise.
4343         * modules/mktime (Depends-on): Likewise.
4344         * modules/nanosleep (Depends-on): Likewise.
4345         * modules/open (Depends-on): Likewise.
4346         * modules/openat (Depends-on): Likewise.
4347         * modules/perror (Depends-on): Likewise.
4348         * modules/poll (Depends-on): Likewise.
4349         * modules/popen (Depends-on): Likewise.
4350         * modules/posix_spawn (Depends-on): Likewise.
4351         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4352         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4353         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4354         * modules/posix_spawnp (Depends-on): Likewise.
4355         * modules/pread (Depends-on): Likewise.
4356         * modules/printf-posix (Depends-on): Likewise.
4357         * modules/ptsname (Depends-on): Likewise.
4358         * modules/putenv (Depends-on): Likewise.
4359         * modules/pwrite (Depends-on): Likewise.
4360         * modules/readline (Depends-on): Likewise.
4361         * modules/readlink (Depends-on): Likewise.
4362         * modules/readlinkat (Depends-on): Likewise.
4363         * modules/recv (Depends-on): Likewise.
4364         * modules/recvfrom (Depends-on): Likewise.
4365         * modules/regex (Depends-on): Likewise.
4366         * modules/remove (Depends-on): Likewise.
4367         * modules/rename (Depends-on): Likewise.
4368         * modules/renameat (Depends-on): Likewise.
4369         * modules/rmdir (Depends-on): Likewise.
4370         * modules/round (Depends-on): Likewise.
4371         * modules/roundf (Depends-on): Likewise.
4372         * modules/roundl (Depends-on): Likewise.
4373         * modules/rpmatch (Depends-on): Likewise.
4374         * modules/select (Depends-on): Likewise.
4375         * modules/send (Depends-on): Likewise.
4376         * modules/sendto (Depends-on): Likewise.
4377         * modules/setenv (Depends-on): Likewise.
4378         * modules/setlocale (Depends-on): Likewise.
4379         * modules/setsockopt (Depends-on): Likewise.
4380         * modules/shutdown (Depends-on): Likewise.
4381         * modules/sigaction (Depends-on): Likewise.
4382         * modules/signbit (Depends-on): Likewise.
4383         * modules/sigprocmask (Depends-on): Likewise.
4384         * modules/sinl (Depends-on): Likewise.
4385         * modules/sleep (Depends-on): Likewise.
4386         * modules/snprintf (Depends-on): Likewise.
4387         * modules/snprintf-posix (Depends-on): Likewise.
4388         * modules/socket (Depends-on): Likewise.
4389         * modules/sprintf-posix (Depends-on): Likewise.
4390         * modules/sqrtl (Depends-on): Likewise.
4391         * modules/stat (Depends-on): Likewise.
4392         * modules/strchrnul (Depends-on): Likewise.
4393         * modules/strdup-posix (Depends-on): Likewise.
4394         * modules/strerror (Depends-on): Likewise.
4395         * modules/strerror_r-posix (Depends-on): Likewise.
4396         * modules/strndup (Depends-on): Likewise.
4397         * modules/strnlen (Depends-on): Likewise.
4398         * modules/strptime (Depends-on): Likewise.
4399         * modules/strsep (Depends-on): Likewise.
4400         * modules/strsignal (Depends-on): Likewise.
4401         * modules/strstr-simple (Depends-on): Likewise.
4402         * modules/strtod (Depends-on): Likewise.
4403         * modules/strtoimax (Depends-on): Likewise.
4404         * modules/strtok_r (Depends-on): Likewise.
4405         * modules/strtoumax (Depends-on): Likewise.
4406         * modules/symlink (Depends-on): Likewise.
4407         * modules/symlinkat (Depends-on): Likewise.
4408         * modules/tanl (Depends-on): Likewise.
4409         * modules/tcgetsid (Depends-on): Likewise.
4410         * modules/tmpfile (Depends-on): Likewise.
4411         * modules/trunc (Depends-on): Likewise.
4412         * modules/truncf (Depends-on): Likewise.
4413         * modules/truncl (Depends-on): Likewise.
4414         * modules/uname (Depends-on): Likewise.
4415         * modules/unlink (Depends-on): Likewise.
4416         * modules/unlockpt (Depends-on): Likewise.
4417         * modules/unsetenv (Depends-on): Likewise.
4418         * modules/usleep (Depends-on): Likewise.
4419         * modules/utimensat (Depends-on): Likewise.
4420         * modules/vasprintf (Depends-on): Likewise.
4421         * modules/vdprintf (Depends-on): Likewise.
4422         * modules/vdprintf-posix (Depends-on): Likewise.
4423         * modules/vfprintf-posix (Depends-on): Likewise.
4424         * modules/vprintf-posix (Depends-on): Likewise.
4425         * modules/vsnprintf (Depends-on): Likewise.
4426         * modules/vsnprintf-posix (Depends-on): Likewise.
4427         * modules/vsprintf-posix (Depends-on): Likewise.
4428         * modules/wcrtomb (Depends-on): Likewise.
4429         * modules/wcscasecmp (Depends-on): Likewise.
4430         * modules/wcscspn (Depends-on): Likewise.
4431         * modules/wcsdup (Depends-on): Likewise.
4432         * modules/wcsncasecmp (Depends-on): Likewise.
4433         * modules/wcsnrtombs (Depends-on): Likewise.
4434         * modules/wcspbrk (Depends-on): Likewise.
4435         * modules/wcsrtombs (Depends-on): Likewise.
4436         * modules/wcsspn (Depends-on): Likewise.
4437         * modules/wcsstr (Depends-on): Likewise.
4438         * modules/wcstok (Depends-on): Likewise.
4439         * modules/wcswidth (Depends-on): Likewise.
4440         * modules/wctob (Depends-on): Likewise.
4441         * modules/wctomb (Depends-on): Likewise.
4442         * modules/wctype (Depends-on): Likewise.
4443         * modules/wcwidth (Depends-on): Likewise.
4444         * modules/write (Depends-on): Likewise.
4445
4446 2011-05-03  Bruno Haible  <bruno@clisp.org>
4447
4448         Support for conditional dependencies.
4449         * doc/gnulib.texi (Module description): Document the syntax of
4450         conditional dependencies.
4451         * gnulib-tool: New option --conditional-dependencies.
4452         (func_usage): Document it.
4453         (cond_dependencies): New variable.
4454         (func_get_automake_snippet_conditional,
4455         func_get_automake_snippet_unconditional): New functions, extracted from
4456         func_get_automake_snippet.
4457         (func_get_automake_snippet): Use them.
4458         (sed_first_32_chars): New variable.
4459         (func_module_shellfunc_name): New function.
4460         (func_module_shellvar_name): New function.
4461         (func_module_conditional_name): New function.
4462         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4463         func_cond_module_condition): New functions.
4464         (func_modules_transitive_closure): Add support for conditional
4465         dependencies.
4466         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4467         conditional automake snippet in an automake conditional.
4468         (func_emit_autoconf_snippets): Emit shell functions that contain the
4469         code for conditional modules.
4470         (func_import, func_create_testdir): Update specification.
4471
4472 2011-05-03  Eric Blake  <eblake@redhat.com>
4473
4474         test-getaddrinfo: report error information
4475         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4476
4477 2011-05-03  Jim Meyering  <meyering@redhat.com>
4478
4479         bootstrap: avoid build failure when $GZIP is set
4480         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4481         program name.  If defined at all, it is supposed to list gzip options.
4482         Reported by Alan Curry in http://debbugs.gnu.org/8609
4483
4484 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4485
4486         readme-release: new module with release instructions
4487         * modules/readme-release: New module.
4488         * top/README-release: New file, from coreutils, grep, diffutils.
4489         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4490
4491 2011-05-02  Eric Blake  <eblake@redhat.com>
4492
4493         fflush: also replace fclose when fixing fflush
4494         * modules/fflush (Depends-on): Add fclose.
4495         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4496         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4497         memstreams with no backing fd.
4498         * doc/posix-functions/fclose.texi (fclose): Document the use of
4499         fflush module to fix the bug.
4500         * tests/test-fclose.c (main): Relax test when fclose is used in
4501         isolation.
4502
4503         fclose: add some tests
4504         * modules/fclose-tests: New test module.
4505         * tests/test-fclose.c: New file.
4506         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4507
4508         fclose: reduced dependencies
4509         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4510         simpler lseek.
4511         * lib/fclose.c (rpl_fclose): Likewise.
4512         Reported by Simon Josefsson.
4513
4514         exit: drop remaining clients
4515         * modules/argmatch (Depends-on): Replace exit with stdlib.
4516         * modules/copy-file (Depends-on): Likewise.
4517         * modules/execute (Depends-on): Likewise.
4518         * modules/exitfail (Depends-on): Likewise.
4519         * modules/obstack (Depends-on): Likewise.
4520         * modules/pagealign_alloc (Depends-on): Likewise.
4521         * modules/pipe-filter-gi (Depends-on): Likewise.
4522         * modules/pipe-filter-ii (Depends-on): Likewise.
4523         * modules/savewd (Depends-on): Likewise.
4524         * modules/spawn-pipe (Depends-on): Likewise.
4525         * modules/wait-process (Depends-on): Likewise.
4526         * modules/xsetenv (Depends-on): Likewise.
4527         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4528         * modules/git-merge-changelog (Depends-on): Likewise.
4529         * modules/long-options (Depends-on): Likewise.
4530         * modules/pt_chown (Depends-on): Likewise.
4531         * modules/sysexits (Depends-on): Likewise.
4532
4533         freading: relax license from LGPLv3+ to LGPLv2+
4534         * modules/freading (License): Relax LGPL version.
4535
4536 2011-05-02  Bruno Haible  <bruno@clisp.org>
4537
4538         fchdir: Remove unused dependencies.
4539         * modules/fchdir (Depends-on): Remove include_next.
4540
4541 2011-05-02  Bruno Haible  <bruno@clisp.org>
4542
4543         gnulib-tool: Refactor.
4544         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4545         from func_emit_autoconf_snippets.
4546         (func_emit_autoconf_snippets): Use it.
4547
4548 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4549
4550         * NEWS: Document removal of 'exit'.
4551         * modules/exit: Remove file.
4552
4553 2011-05-01  Bruno Haible  <bruno@clisp.org>
4554
4555         Update DEPENDENCIES.
4556         * DEPENDENCIES (gettext): Recommend the newest release.
4557         Reported by Simon Josefsson.
4558
4559 2011-05-01  Bruno Haible  <bruno@clisp.org>
4560
4561         gnulib-tool: Reduce code duplication.
4562         * gnulib-tool (func_emit_autoconf_snippets): New function.
4563         (func_import, func_create_testdir): Use it.
4564
4565 2011-04-30  Eric Blake  <eblake@redhat.com>
4566
4567         fclose: don't fail on non-seekable input stream
4568         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4569         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4570         since fflush is allowed to fail in that case.
4571
4572 2011-04-30  Bruno Haible  <bruno@clisp.org>
4573
4574         dup3: cleanup
4575         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4576
4577 2011-04-30  Bruno Haible  <bruno@clisp.org>
4578
4579         netdb: Make it work in C++ mode.
4580         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4581         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4582         module.
4583         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4584         gl_MODULE_INDICATOR_FOR_TESTS.
4585         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4586         * modules/netdb-c++-tests: New file.
4587         * tests/test-netdb-c++.cc: New file.
4588
4589 2011-04-30  Bruno Haible  <bruno@clisp.org>
4590
4591         New modules 'vfscanf', 'vscanf'.
4592         * modules/vfscanf: New file.
4593         * modules/vscanf: New file.
4594         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4595         here.
4596         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4597         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4598
4599 2011-04-30  Bruno Haible  <bruno@clisp.org>
4600
4601         passfd: Add comments.
4602         * lib/passfd.c: Add comments about platforms.
4603
4604 2011-04-30  Bruno Haible  <bruno@clisp.org>
4605
4606         sys_uio: Make <sys/uio.h> self-contained.
4607         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4608         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4609
4610 2011-04-30  Bruno Haible  <bruno@clisp.org>
4611
4612         sys_socket: Ensure 'struct iovec' definition.
4613         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4614         <sys/socket.h>.
4615         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4616
4617 2011-04-30  Bruno Haible  <bruno@clisp.org>
4618
4619         sys_uio: Protect definition of 'struct iovec'.
4620         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4621         it as a C struct.
4622
4623 2011-04-30  Bruno Haible  <bruno@clisp.org>
4624
4625         manywarnings: fix indentation
4626         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4627
4628 2011-04-30  Pádraig Brady <P@draigBrady.com>
4629
4630         manywarnings: add -Wno-missing-field-initializers if needed.
4631         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4632         option if it's needed to allow initialization with { 0, }
4633
4634 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4635
4636         announce-gen: cosmetic improvement
4637         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4638
4639 2011-04-29  Jim Meyering  <meyering@redhat.com>
4640
4641         vc-list-files: indent with spaces, not TABs
4642         * build-aux/vc-list-files: Convert leading TABs to spaces,
4643         to match the style of most other files in gnulib.
4644
4645         announce-gen: indent with spaces, not TABs
4646         * build-aux/announce-gen: Convert all TABs to spaces, to match
4647         the style of most other files in gnulib.
4648
4649 2011-04-29  Eric Blake  <eblake@redhat.com>
4650
4651         quotearg: avoid uninitialized variable use
4652         * lib/quotearg.c (quoting_options_from_style): Initialize
4653         remaining fields, and ensure that custom styles are only used via
4654         quoting_options rather than quoting_style.
4655
4656 2011-04-29  Jim Meyering  <meyering@redhat.com>
4657
4658         maint.mk: remove unused VC-tag variable
4659         * top/maint.mk (VC-tag): Remove unused variable.
4660
4661 2011-04-29  Bruno Haible  <bruno@clisp.org>
4662
4663         netdb: fix gai_strerror replacements
4664         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4665         * modules/netdb: Substitute it.
4666
4667 2011-04-29  Jim Meyering  <meyering@redhat.com>
4668
4669         test-getcwd.c: avoid new set-but-not-used warning
4670         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4671         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4672         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4673         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4674
4675         test-hash.c: avoid a new shadowing warning
4676         * tests/test-hash.c (main): Don't shadow "dup".
4677
4678 2011-04-28  Eric Blake  <eblake@redhat.com>
4679
4680         getaddrinfo: fix gai_strerror signature
4681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4682         and work around mingw with UNICODE defined.
4683         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4684         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4685         * modules/netdb (Makefile.am): Substitute it.
4686         * lib/netdb.in.h (gai_strerror): Declare replacement.
4687         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4688         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4689         the fix.
4690
4691         getsockopt: avoid compiler warning
4692         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4693         Reported by Matthias Bolte.
4694
4695         tests: drop unused link dependency
4696         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4697         * modules/dirent-safer-tests (Makefile.am): Likewise.
4698         * modules/fdopendir-tests (Makefile.am): Likewise.
4699         * modules/mkfifoat-tests (Makefile.am): Likewise.
4700         * modules/openat-safer-tests (Makefile.am): Likewise.
4701         * modules/openat-tests (Makefile.am): Likewise.
4702         * modules/readlinkat-tests (Makefile.am): Likewise.
4703         * modules/symlinkat-tests (Makefile.am): Likewise.
4704         * modules/linkat-tests (Makefile.am): Likewise.
4705         (Depends-on): Switch to filenamecat-lgpl.
4706         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4707         LIBINTL.
4708         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4709         * tests/test-linkat.c (main): Don't require xalloc.
4710
4711         hash, mgetgroups: drop xalloc dependency
4712         * lib/hash.c (includes): Adjust includes.
4713         * lib/mgetgroups.c (includes): Likewise.
4714         (xgetgroups): Move...
4715         * lib/xgetgroups.c: ...to new file.
4716         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4717         * modules/xgetgroups: New file, split from...
4718         * modules/mgetgroups: ...here.
4719         (Depends-on): Add xalloc-oversized.
4720         * modules/hash (Depends-on): Likewise.
4721         * modules/hash-tests (Depends-on): Drop xalloc.
4722         (test_hash_LDADD): Drop unused library.
4723         * tests/test-hash.c (main): Break xalloc dependency.
4724         (includes): Drop unused include.
4725
4726         xalloc-oversized: new module
4727         * modules/xalloc-oversized: New module.
4728         * modules/xalloc (Depends-on): Add it.
4729         * lib/xalloc.h (xalloc_oversized): Move...
4730         * lib/xalloc-oversized.h: ...into new file.
4731
4732         utimecmp: drop dependency on xmalloc
4733         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4734         due to memory pressure.
4735         * modules/utimecmp (Depends-on): Drop xalloc.
4736
4737 2011-04-27  Eric Blake  <eblake@redhat.com>
4738
4739         getcwd: fix mingw bugs
4740         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4741         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4742         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4743
4744 2011-04-27  Bruno Haible  <bruno@clisp.org>
4745
4746         mkstemps: Ensure declaration on MacOS X 10.5.
4747         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4748         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4749         MacOS X.
4750
4751 2011-04-27  Bruno Haible  <bruno@clisp.org>
4752
4753         mkstemp: More documentation.
4754         * doc/posix-functions/mkstemp.texi: Document header file problem on
4755         MacOS X.
4756
4757 2011-04-27  Bruno Haible  <bruno@clisp.org>
4758
4759         mkstemp: Tweak configure message when cross-compiling.
4760         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4761         result as a guess.
4762
4763 2011-04-27  Bruno Haible  <bruno@clisp.org>
4764
4765         clean-temp: Clarify what it does.
4766         * lib/clean-temp.h: Add more comments.
4767         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4768         module.
4769         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4770         * doc/glibc-functions/mkstemps.texi: Likewise.
4771         * doc/glibc-functions/mkostemps.texi: Likewise.
4772
4773 2011-04-27  Eric Blake  <eblake@redhat.com>
4774
4775         fchdir: avoid extra chdir and fix test
4776         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4777         getcwd-lgpl.
4778         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4779         have to be canonical.
4780         (canonicalize_file_name): Drop unused macro.
4781         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4782
4783         filenamecat-lgpl: fix licence
4784         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4785         when it was first created.
4786
4787         linkat, renameat: add missing dependency
4788         * modules/linkat (Depends-on): Require getcwd-lgpl.
4789         * modules/renameat (Depends-on): Likewise.
4790
4791         tests: reduce dependencies
4792         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4793         * tests/test-renameat.c (main): Likewise.
4794         * modules/linkat-tests (Depends-on): Relax dependency.
4795         * modules/renameat-tests (Depends-on): Likewise.
4796         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4797         dependency explicit.
4798
4799         save-cwd: reduce default dependency
4800         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4801         * lib/save-cwd.c: Update comments.
4802         * NEWS: Document the semantic change.
4803
4804         getcwd: enhance tests
4805         * tests/test-getcwd-lgpl.c: New file, taken from...
4806         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4807         repeat long path stress tests from m4 probe.
4808         * modules/getcwd-lgpl-tests: New module.
4809         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4810         * m4/getcwd-abort-bug.m4: Update comment.
4811         * m4/getcwd-path-max.m4: Likewise.
4812
4813         getcwd-lgpl: new module
4814         * modules/getcwd-lgpl: New module.
4815         * lib/getcwd-lgpl.c: New file.
4816         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4817         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4818         * modules/getcwd (configure.ac): Set C witness.
4819         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4820
4821         getcwd: tweak comments
4822         * m4/getcwd-abort-bug.m4: Fix comments.
4823         * m4/getcwd-path-max.m4: Likewise.
4824         * m4/getcwd.m4: Likewise.
4825
4826 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4827         and Eric Blake  <eblake@redhat.com>
4828
4829         mkstemp: replace if system version uses wrong permissions
4830         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4831         read/write mode bits set in file created by mkstemp.
4832         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4833
4834 2011-04-27  Eric Blake  <eblake@redhat.com>
4835
4836         passfd: avoid compiler warning
4837         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4838         Reported by Laine Stump.
4839
4840 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4841
4842         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4843         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4844
4845 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4846         and Eric Blake  <eblake@redhat.com>
4847
4848         mkstemp: mention clean-temp module
4849         * lib/mkstemp.c: Add comment.
4850         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4851
4852 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4853
4854         inttypes: also provide default values for 32-bit tests
4855         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4856         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4857
4858 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4859
4860         strtoumax: remove dependency on strtoimax
4861         This is like the strtoull change of yesterday.
4862         * modules/strtoumax (Files): Add lib/strtoimax.c.
4863         (Depends-on): Remove strtoimax and add verify.
4864
4865         inttypes-incomplete: new module
4866         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4867         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4868         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4869         of gl_INTTYPES_H.
4870         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4871         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4872         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4873         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4874         * modules/strtoumax, modules/xstrtol (Depends-on):
4875         Depend on inttypes-incomplete, not inttypes.
4876         * modules/inttypes-incomplete: New module, containing the contents
4877         of the old modules/inttypes module, except that the Files: section
4878         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4879         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4880         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4881         (Depends-on): Depend only on inttypes-incomplete.
4882         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4883
4884         inttypes: omit now-redundant strtoimax and strtoumax work
4885         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4886         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4887
4888         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4889         This supports apps that need pointers to strtoimax and strtoumax,
4890         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4891         nonexistent functions.  See
4892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4893         et seq.
4894         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4895         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4896         a macro.
4897         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4898
4899 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4900
4901         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4902
4903 2011-04-25  Bruno Haible  <bruno@clisp.org>
4904
4905         strtol, strtoul: Mark modules as obsolete.
4906         * modules/strtol (Status, Notice): New sections.
4907         * modules/strtoul (Status, Notice): New sections.
4908
4909 2011-04-25  Bruno Haible  <bruno@clisp.org>
4910
4911         strtod: Remove check for strtod, unless supporting old platforms.
4912         * modules/strtod-obsolete: New file.
4913         * m4/strtod-obsolete.m4: New file.
4914         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4915         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4916         * modules/strtod (Depends-on): Add strtod-obsolete.
4917         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4918
4919 2011-04-25  Bruno Haible  <bruno@clisp.org>
4920
4921         strcase: Make module obsolete.
4922         * modules/strcase (Status, Notice): New sections.
4923
4924 2011-04-25  Bruno Haible  <bruno@clisp.org>
4925
4926         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4927         * modules/dup2-obsolete: New file.
4928         * m4/dup2-obsolete.m4: New file.
4929         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4930         gl_FUNC_DUP2_OBSOLETE is not also defined.
4931         * modules/dup2 (Depends-on): Add dup2-obsolete.
4932         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4933
4934 2011-04-25  Bruno Haible  <bruno@clisp.org>
4935
4936         strnlen: Avoid memchr related link error on old obsolete platforms.
4937         * modules/memchr-obsolete: New file.
4938         * m4/memchr-obsolete.m4: New file.
4939         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4940         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4941         * modules/memchr (Depends-on): Add memchr-obsolete.
4942         * modules/strnlen (Depends-on): Likewise.
4943         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4944
4945 2011-04-25  Jim Meyering  <meyering@redhat.com>
4946
4947         maint.mk: makefile_at_at_check extend and clean up
4948         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4949         in addition to */Makefile.am.
4950         Exempt legitimate uses of @VAR@ notation, e.g.,
4951         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4952         Remove obsolete coreutils-specific comment.
4953         Prompted by discussion here:
4954         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4955
4956 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4957
4958         strtoul: remove dependency on strtol
4959         This is so that 'configure' need not check for strtol merely because
4960         the application needs strtoul.
4961         * modules/strtoul (Files): Add lib/strtol.c.
4962         (Depends-on): Remove strtol.
4963
4964         strtoull: remove dependency on strtoul
4965         This is like the strtoll change.
4966         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4967         (Depends-on): Remove strtoul.
4968
4969         strtoll: remove dependency on strtol
4970         This is so that 'configure' need not check for strtol merely because
4971         the application needs strtoll.
4972         * modules/strtoll (Files): Add lib/strtol.c.
4973         (Depends-on): Remove strtol.
4974
4975 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4976
4977         inttypes: Move some configure check to module 'imaxdiv'.
4978         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4979         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4980         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4981
4982 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4983
4984         inttypes: Move some configure check to module 'imaxabs'.
4985         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4986         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4987         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4988
4989 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4990
4991         inttypes: Remove configure tests that are not needed since 2009-12-31.
4992         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4993         gl_cv_header_working_inttypes_h.
4994
4995 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4996
4997         * modules/strnlen (Depends-on): Remove memchr.
4998         The strnlen implementation doesn't need the memchr module's fixes; see
4999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5000
5001         strtol: remove dependency on wchar
5002         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5003         * modules/strtol (Depends-on): Remove wchar.
5004
5005 2011-04-21  Eric Blake  <eblake@redhat.com>
5006
5007         passfd: fix test regression on Linux
5008         * modules/passfd-tests (configure.ac): Correct socketpair check.
5009
5010         passfd: speed up configure and drop unused code
5011         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5012         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5013         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5014         Instead of probing at configure for unix_scm_rights_bsd44_way,
5015         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5016         check to a struct member probe.
5017         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5018         (sendfd, recvfd): Update preprocessor checks.
5019         * modules/passfd (Files): Reflect rename, and drop unused file.
5020         (Depends-on): Drop unused dependency.
5021
5022         passfd: allow compilation on mingw
5023         * modules/sys_socket (Depends-on): Add sys_uio.
5024         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5025         iovec and a minimal struct msghdr.
5026         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5027         * tests/test-sys_socket.c (main): Enhance test.
5028         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5029         guaranteed to provide what we need.
5030         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5031         * modules/passfd-tests (Depends-on): Add sys_wait.
5032         * tests/test-passfd.c (main): Skip test on mingw, for now.
5033         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5034         partial 'struct msghdr' implementation.
5035
5036         sys_uio: new module
5037         * modules/sys_uio: New module.
5038         * modules/sys_uio-tests: Likewise.
5039         * lib/sys_uio.in.h: New file.
5040         * m4/sys_uio_h.m4: Likewise.
5041         * tests/test-sys_uio.c: Likewise.
5042         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5043         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5044
5045 2011-04-20  Jim Meyering  <meyering@redhat.com>
5046
5047         useless-if-before-free: avoid false-positive
5048         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5049         disjunct so that it too requires a terminating ";".  Without that,
5050         this script would identify as useless one statement from gcc that
5051         was not:
5052           if (aligned_ptr)
5053             free (((void **) aligned_ptr) [-1]);
5054
5055 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5056
5057         doc: update users.txt.
5058         * users.txt: Add barcode.
5059
5060 2011-04-19  Bruno Haible  <bruno@clisp.org>
5061
5062         ioctl: Remove link dependency on native Windows.
5063         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5064         (gl_close_fn, gl_ioctl_fn): New types.
5065         (struct fd_hook): Renamed from struct close_hook. Change type of
5066         private_close_fn field. Add private_ioctl_fn field.
5067         (close_hook_fn): Add parameter for primary close method.
5068         (execute_close_hooks, execute_all_close_hooks): Likewise.
5069         (ioctl_hook_fn): New type.
5070         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5071         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5072         argument.
5073         (unregister_fd_hook): Renamed from unregister_close_hook.
5074         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5075         Don't include <unistd.h>.
5076         (close): Remove undef.
5077         (anchor): Update.
5078         (execute_close_hooks): Add argument for primary close method.
5079         (execute_all_close_hooks): Likewise.
5080         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5081         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5082         argument. Allow each argument to be NULL.
5083         (unregister_fd_hook): Renamed from unregister_close_hook.
5084         * lib/close.c (rpl_close): Pass 'close' function pointer to
5085         execute_all_close_hooks.
5086         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5087         (primary_ioctl): New function.
5088         (ioctl): Don't call ioctlsocket here. Instead, call
5089         execute_all_ioctl_hooks.
5090         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5091         close method.
5092         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5093         (fd_sockets_hook): Renamed from close_sockets_hook.
5094         (gl_sockets_startup, gl_sockets_cleanup): Update.
5095         * modules/fd-hook: Renamed from modules/close-hook. Update.
5096         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5097         * modules/sockets (Depends-on): Likewise.
5098         * modules/ioctl (Depends-on): Add fd-hook.
5099         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5100         GNULIB_SOCKET.
5101
5102 2011-04-19  Bruno Haible  <bruno@clisp.org>
5103
5104         Move the support of O_NONBLOCK in open() to the 'open' module.
5105         * modules/nonblocking (Depends-on): Remove 'open'.
5106         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5107         gl_cv_have_open_O_NONBLOCK.
5108         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5109         O_NONBLOCK support.
5110         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5111
5112 2011-04-17  Bruno Haible  <bruno@clisp.org>
5113
5114         pipe2: Simplify code.
5115         * lib/pipe2.c (pipe2): Reduce code duplication.
5116
5117 2011-04-17  Bruno Haible  <bruno@clisp.org>
5118
5119         nonblocking: Add comment.
5120         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5121
5122 2011-04-17  Bruno Haible  <bruno@clisp.org>
5123
5124         nonblocking: Add tests for sockets.
5125         * tests/test-nonblocking-socket.sh: New file.
5126         * tests/test-nonblocking-socket-main.c: New file.
5127         * tests/test-nonblocking-socket-child.c: New file.
5128         * tests/test-nonblocking-socket.h: New file.
5129         * tests/socket-server.h: New file.
5130         * tests/socket-client.h: New file.
5131         * modules/nonblocking-socket-tests: New file.
5132         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5133
5134 2011-04-17  Bruno Haible  <bruno@clisp.org>
5135
5136         nonblocking: Add tests for pipes.
5137         * tests/test-nonblocking-pipe.sh: New file.
5138         * tests/test-nonblocking-pipe-main.c: New file.
5139         * tests/test-nonblocking-pipe-child.c: New file.
5140         * tests/test-nonblocking-pipe.h: New file.
5141         * tests/test-nonblocking-writer.h: New file.
5142         * tests/test-nonblocking-reader.h: New file.
5143         * tests/test-nonblocking-misc.h: New file.
5144         * modules/nonblocking-pipe-tests: New file.
5145         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5146
5147 2011-04-16  Bruno Haible  <bruno@clisp.org>
5148
5149         gettext: Clarify the needed programmer actions.
5150         * modules/gettext (Notice): New field.
5151         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5152
5153 2011-04-16  Bruno Haible  <bruno@clisp.org>
5154
5155         strchrnul: Tweak last commit.
5156         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5157         bug.
5158         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5159         as in _GL_FUNCDECL_SYS.
5160         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5161         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5162
5163 2011-04-15  Eric Blake  <eblake@redhat.com>
5164
5165         strchrnul: work around cygwin bug
5166         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5167         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5169         * modules/string (Makefile.am): Substitute it.
5170         * lib/string.in.h (strchrnul): Use it.
5171
5172 2011-04-15  Bruno Haible  <bruno@clisp.org>
5173
5174         Don't require lib/stdio-write.c when only module 'stdio' is used.
5175         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5176         invocation.
5177         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5178
5179 2011-04-14  Bruno Haible  <bruno@clisp.org>
5180
5181         Support non-blocking pipe I/O in read() on native Windows.
5182         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5183         (read): New declaration.
5184         * lib/read.c: New file.
5185         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5186         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5187         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5188         vscanf): New declarations.
5189         * lib/stdio-read.c: New file.
5190         * m4/read.m4: New file.
5191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5192         REPLACE_READ.
5193         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5194         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5195         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5196         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5197         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5198         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5199         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5200         * modules/read: New file.
5201         * modules/nonblocking (Files): Add lib/stdio-read.c.
5202         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5203         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5204         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5205         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5206         * modules/pread (Depends-on): Add read.
5207         * modules/safe-read (Depends-on): Likewise.
5208         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5209         gets, scanf, vfscanf, vscanf): Verify signatures.
5210         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5211         problem with non-blocking pipes.
5212         * doc/posix-functions/fgetc.texi: Likewise.
5213         * doc/posix-functions/fgets.texi: Likewise.
5214         * doc/posix-functions/fread.texi: Likewise.
5215         * doc/posix-functions/fscanf.texi: Likewise.
5216         * doc/posix-functions/getc.texi: Likewise.
5217         * doc/posix-functions/getchar.texi: Likewise.
5218         * doc/posix-functions/gets.texi: Likewise.
5219         * doc/posix-functions/scanf.texi: Likewise.
5220         * doc/posix-functions/vfscanf.texi: Likewise.
5221         * doc/posix-functions/vscanf.texi: Likewise.
5222
5223 2011-04-14  Bruno Haible  <bruno@clisp.org>
5224
5225         Support non-blocking pipe I/O in write() on native Windows.
5226         * lib/write.c (rpl_write): Split a write request that failed merely
5227         because the byte count was larger than the pipe buffer's size.
5228         * doc/posix-functions/write.texi: Mention the problem with large byte
5229         counts.
5230
5231 2011-04-14  Bruno Haible  <bruno@clisp.org>
5232
5233         wchar: Ensure that wchar_t gets defined on uClibc.
5234         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5235         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5236
5237 2011-04-13  Bruno Haible  <bruno@clisp.org>
5238
5239         safe-write, full-read: Avoid unnecessary compilation units.
5240         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5241         (Depends-on): Remove safe-read. Add ssize_t.
5242         * modules/full-read (Files): Add lib/full-write.c.
5243         (Depends-on): Add full-write.
5244
5245 2011-04-13  Bruno Haible  <bruno@clisp.org>
5246
5247         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5248         * modules/pwrite (Depends-on): Add 'write'.
5249
5250 2011-04-13  Bruno Haible  <bruno@clisp.org>
5251
5252         Support non-blocking pipe I/O in write() on native Windows.
5253         * lib/unistd.in.h (write): Enable replacement also if
5254         GNULIB_UNISTD_H_NONBLOCKING is 1.
5255         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5256         (rpl_write): When failing to write on a non-blocking pipe, change
5257         errno from ENOSPC to EAGAIN.
5258         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5259         putchar, puts, vfprintf, vprintf): Enable replacement also if
5260         GNULIB_STDIO_H_NONBLOCKING is 1.
5261         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5262         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5263         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5264         CALL_WITH_SIGPIPE_EMULATION.
5265         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5266         * m4/nonblocking.m4: New file.
5267         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5268         for non-blocking I/O support.
5269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5270         GNULIB_UNISTD_H_NONBLOCKING.
5271         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5272         required for non-blocking I/O support.
5273         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5274         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5275         lib/stdio-write.c, m4/asm-underscore.m4.
5276         (Depends-on): Add stdio, unistd.
5277         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5278         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5279         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5280         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5281         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5282         problem with non-blocking pipes.
5283         * doc/posix-functions/fputc.texi: Likewise.
5284         * doc/posix-functions/fputs.texi: Likewise.
5285         * doc/posix-functions/fwrite.texi: Likewise.
5286         * doc/posix-functions/printf.texi: Likewise.
5287         * doc/posix-functions/putc.texi: Likewise.
5288         * doc/posix-functions/putchar.texi: Likewise.
5289         * doc/posix-functions/puts.texi: Likewise.
5290         * doc/posix-functions/vfprintf.texi: Likewise.
5291         * doc/posix-functions/vprintf.texi: Likewise.
5292         * doc/posix-functions/write.texi: Likewise.
5293
5294 2011-04-10  Jim Meyering  <meyering@redhat.com>
5295
5296         maint.mk: prohibit doubled words
5297         Detect them also when they're separated by a newline.
5298         There are 3 ways to customize it:
5299           - disable the test on a per file basis, as usual with rules using
5300             $(VC_LIST_EXCEPT)
5301           - replace the default doubled-word-selecting regexp (affects all files)
5302           - ignore a particular file-vs-doubled-word match
5303         I nearly used that last one to ignore the "is is" match in
5304         coreutils' NEWS file, since the text was "ls -is is ..."
5305         To do that, I would have added this line to cfg.mk:
5306           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5307         but it would have ignored any "is is" match in NEWS.
5308         Low probability, but still...
5309         Instead, I changed the text, slightly:
5310           -  ls -is is now consistent with ls -lis in ignoring values returned
5311           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5312         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5313         (prohibit_doubled_word_): Define.
5314         (sc_prohibit_doubled_word): New rule.
5315         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5316
5317 2011-04-10  Jim Meyering  <meyering@redhat.com>
5318
5319         maint: fix doubled-word typo in comment
5320         * m4/gethostname.m4: s/is is/it is/
5321         * m4/getdomainname.m4: Likewise.
5322
5323 2011-04-10  Jim Meyering  <meyering@redhat.com>
5324
5325         maint: remove doubled word: s/it it/it/
5326         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5327
5328 2011-04-10  Jim Meyering  <meyering@redhat.com>
5329
5330         maint.mk: remove useless semicolon and backslash
5331         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5332         semicolon and backslash.
5333
5334 2011-04-10  Bruno Haible  <bruno@clisp.org>
5335
5336         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5337         * modules/stdint-tests (Depends-on): Add wchar.
5338
5339 2011-04-10  Jim Meyering  <meyering@redhat.com>
5340
5341         maint: remove doubled words in comments, e.g., s/a a/a/
5342         * lib/strptime.c (day_of_the_week): s/the the/the/
5343         * tests/test-chown.h (test_chown): s/a a/a/
5344
5345         test-chown.h: correct a cast
5346         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5347         when the destination is a stat.st_gid.
5348
5349 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5350
5351         getaddrinfo: Fix test for sa_len member.
5352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5353         include <sys/types.h> before <sys/socket.h>.
5354
5355 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         maint: change "can not" to "cannot"
5358         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5359         boundaries.
5360
5361 2011-04-09  Jim Meyering  <meyering@redhat.com>
5362
5363         maint: change "a a" to "a"
5364         * tests/test-lchown.h (test_lchown): s/a a/a/
5365
5366         maint.mk: prohibit \<the the\>
5367         * top/maint.mk (sc_prohibit_the_the): New rule.
5368
5369         maint: fix "the the" in comment
5370         * lib/count-one-bits.h: s/the the/the/
5371
5372         maint: change "can not" to "cannot"
5373         But do not change the occurrences in maintain.texi or in
5374         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5375         * doc/gnulib-tool.texi: s/can not/cannot/
5376         * doc/posix-functions/accept.texi (accept): Likewise.
5377         * doc/posix-functions/socket.texi (socket): Likewise.
5378         * lib/mbrtowc.c: Likewise.
5379
5380         maint.mk: prohibit use of "can not"
5381         * top/maint.mk (sc_prohibit_can_not): New rule.
5382         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5383
5384 2011-04-09  Bruno Haible  <bruno@clisp.org>
5385
5386         careadlinkat: Guard against misuse of careadlinkatcwd.
5387         * lib/careadlinkat.c: Include <stdlib.h>.
5388         (careadlinkatcwd): Check that the fd argument is as expected.
5389
5390 2011-04-09  Bruno Haible  <bruno@clisp.org>
5391
5392         careadlinkat: Use common coding style.
5393         * lib/careadlinkat.c: Move gnulib includes after system includes.
5394
5395 2011-04-09  Bruno Haible  <bruno@clisp.org>
5396
5397         careadlinkat: Clarify specification.
5398         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5399         (careadlinkatcwd): Add comment.
5400         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5401
5402 2011-04-09  Bruno Haible  <bruno@clisp.org>
5403
5404         areadlinkat: Avoid link error on many platforms.
5405         * modules/areadlinkat (Depends-on): Add areadlink.
5406
5407 2011-04-09  Bruno Haible  <bruno@clisp.org>
5408
5409         allocator, careadlinkat: Fix double-inclusion guard.
5410         * lib/allocator.h: Fix double-inclusion guard.
5411         * lib/careadlinkat.h: Likewise.
5412
5413 2011-04-09  Bruno Haible  <bruno@clisp.org>
5414
5415         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5416         * lib/relocwrapper.c: Update dependencies hierarchy.
5417         * build-aux/install-reloc: Update list of files to be compiled.
5418         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5419         lib/allocator.[hc].
5420
5421 2011-04-08  Eric Blake  <eblake@redhat.com>
5422
5423         strftime: silence gnulib-tool warning
5424         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5425
5426 2011-04-08  Bruno Haible  <bruno@clisp.org>
5427
5428         verify: Fix syntax error with GCC 4.6 in C++ mode.
5429         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5430         (HAVE_STATIC_ASSERT): New macro.
5431         (verify_true, verify): Use 'static_assert' if it is supported and
5432         '_Static_assert' is not supported.
5433
5434 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5435
5436         allocator: New module.
5437         * modules/allocator, lib/allocator.c: New files.
5438         * lib/allocator.h (stdlib_allocator): New decl.
5439         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5440         Remove.  Do not include <stdlib.h>.
5441         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5442         * modules/careadlinkat (Files): Remove lib/allocator.h.
5443         (Depends-on): Add allocator.
5444
5445         stdlib: let modules use system malloc, realloc
5446         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5447         if !_GL_USE_STDLIB_ALLOC.
5448         (malloc, realloc): Limit this change to a smaller scope.
5449
5450         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5451         (malloc, realloc): Don't #undef; no longer needed.
5452         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5453         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5454         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5455         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5456         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5457         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5458         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5459         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5460
5461         careadlinkat: rename members to avoid problem
5462         * lib/allocator.h (struct allocator): Rename members from
5463         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5464         and realloc are #define'd.  Reported by Eric Blake in
5465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5466         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5467
5468 2011-04-08  Eric Blake  <eblake@redhat.com>
5469
5470         nonblocking: reduce dependency
5471         * tests/test-nonblocking.c: Only test sockets when in use.
5472         * modules/nonblocking-tests (Depends-on): Drop socket.
5473         (Makefile.am): Link even if sockets are not present.
5474         * modules/pipe2-tests (Makefile.am): Likewise.
5475         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5476
5477         pipe2: fix O_NONBLOCK support on mingw
5478         * modules/pipe2 (Depends-on): Add nonblocking.
5479         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5480         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5481         * tests/test-nonblocking.c (main): Likewise.
5482         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5483
5484         fcntl-h: fix O_ACCMODE on cygwin
5485         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5486         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5487
5488         pipe-filter: drop O_NONBLOCK workarounds
5489         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5490         * modules/pipe-filter-ii (Depends-on): Likewise.
5491         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5492
5493         nonblocking: provide O_NONBLOCK for mingw
5494         * modules/nonblocking (Depends-on): Add open.
5495         (configure.ac): Set new witness macro.
5496         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5497         * modules/fcntl-h (Makefile.am): Substitute it.
5498         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5499         nonblocking module is in use.
5500         * lib/nonblocking.c: Adjust portability test.
5501         * lib/open.c (open): Don't let native open see gnulib flag.
5502         * tests/test-fcntl-h.c (main): Enhance test.
5503         * tests/test-open.h (test_open): Likewise.
5504         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5505
5506         careadlinkat: fix compilation error on mingw
5507         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5508         within struct allocator.
5509
5510 2011-04-06  Eric Blake  <eblake@redhat.com>
5511
5512         binary-io: relicense under LGPLv2+
5513         * modules/binary-io (License): Relax to LGPLv2+.
5514         Requested for libvirt, and required by pipe2.
5515
5516 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5517
5518         verify: use _Static_assert if available
5519         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5520         (verify_true, verify): Use it if available.  This generates better
5521         diagnostics with GCC 4.6.0 and later.
5522
5523 2011-04-05  Bruno Haible  <bruno@clisp.org>
5524
5525         Remove leftover generated .h files after config.status changed.
5526
5527         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5528         GL_GENERATE_ALLOCA_H.
5529         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5530         GL_GENERATE_ALLOCA_H evaluates to false.
5531
5532         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5533         GL_GENERATE_ARGZ_H.
5534         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5535         evaluates to false.
5536
5537         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5538         GL_GENERATE_BYTESWAP_H.
5539         * modules/byteswap (Makefile.am): Remove byteswap.h if
5540         GL_GENERATE_BYTESWAP_H evaluates to false.
5541
5542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5543         GL_GENERATE_ERRNO_H.
5544         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5545         evaluates to false.
5546
5547         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5548         GL_GENERATE_FLOAT_H.
5549         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5550         evaluates to false.
5551
5552         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5553         GL_GENERATE_FNMATCH_H.
5554         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5555         GL_GENERATE_FNMATCH_H evaluates to false.
5556
5557         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5558         GL_GENERATE_GLOB_H.
5559         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5560         evaluates to false.
5561
5562         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5563         automake conditional GL_GENERATE_ICONV_H.
5564         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5565         evaluates to false.
5566
5567         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5568         GL_GENERATE_NETINET_IN_H.
5569         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5570         GL_GENERATE_NETINET_IN_H evaluates to false.
5571
5572         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5573         conditional GL_GENERATE_PTHREAD_H.
5574         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5575         * modules/pthread (Makefile.am): Remove pthread.h if
5576         GL_GENERATE_PTHREAD_H evaluates to false.
5577
5578         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5579         GL_GENERATE_SCHED_H.
5580         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5581         evaluates to false.
5582
5583         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5584         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5585         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5586         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5587
5588         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5589         GL_GENERATE_STDARG_H.
5590         * modules/stdarg (Makefile.am): Remove stdarg.h if
5591         GL_GENERATE_STDARG_H evaluates to false.
5592
5593         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5594         GL_GENERATE_STDBOOL_H.
5595         * modules/stdbool (Makefile.am): Remove stdbool.h if
5596         GL_GENERATE_STDBOOL_H evaluates to false.
5597
5598         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5599         conditional GL_GENERATE_STDDEF_H.
5600         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5601         * modules/stddef (Makefile.am): Remove stddef.h if
5602         GL_GENERATE_STDDEF_H evaluates to false.
5603
5604         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5605         GL_GENERATE_STDINT_H.
5606         * modules/stdint (Makefile.am): Remove stdint.h if
5607         GL_GENERATE_STDINT_H evaluates to false.
5608
5609         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5610         GL_GENERATE_SYSEXITS_H.
5611         * modules/sysexits (Makefile.am): Remove sysexits.h if
5612         GL_GENERATE_SYSEXITS_H evaluates to false.
5613
5614         Reported by Karl Berry and Ralf Wildenhues.
5615
5616 2011-04-05  Bruno Haible  <bruno@clisp.org>
5617
5618         Ensure to rebuild generated .h files when config.status has changed.
5619         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5620         config.status.
5621         * modules/ctype (Makefile.am): Likewise.
5622         * modules/dirent (Makefile.am): Likewise.
5623         * modules/errno (Makefile.am): Likewise.
5624         * modules/fcntl-h (Makefile.am): Likewise.
5625         * modules/float (Makefile.am): Likewise.
5626         * modules/getopt-posix (Makefile.am): Likewise.
5627         * modules/glob (Makefile.am): Likewise.
5628         * modules/iconv-h (Makefile.am): Likewise.
5629         * modules/inttypes (Makefile.am): Likewise.
5630         * modules/langinfo (Makefile.am): Likewise.
5631         * modules/locale (Makefile.am): Likewise.
5632         * modules/math (Makefile.am): Likewise.
5633         * modules/netdb (Makefile.am): Likewise.
5634         * modules/netinet_in (Makefile.am): Likewise.
5635         * modules/poll-h (Makefile.am): Likewise.
5636         * modules/pthread (Makefile.am): Likewise.
5637         * modules/pty (Makefile.am): Likewise.
5638         * modules/sched (Makefile.am): Likewise.
5639         * modules/search (Makefile.am): Likewise.
5640         * modules/selinux-h (Makefile.am): Likewise.
5641         * modules/signal (Makefile.am): Likewise.
5642         * modules/spawn (Makefile.am): Likewise.
5643         * modules/stdarg (Makefile.am): Likewise.
5644         * modules/stdbool (Makefile.am): Likewise.
5645         * modules/stddef (Makefile.am): Likewise.
5646         * modules/stdint (Makefile.am): Likewise.
5647         * modules/stdio (Makefile.am): Likewise.
5648         * modules/stdlib (Makefile.am): Likewise.
5649         * modules/string (Makefile.am): Likewise.
5650         * modules/strings (Makefile.am): Likewise.
5651         * modules/sys_file (Makefile.am): Likewise.
5652         * modules/sys_ioctl (Makefile.am): Likewise.
5653         * modules/sys_select (Makefile.am): Likewise.
5654         * modules/sys_socket (Makefile.am): Likewise.
5655         * modules/sys_stat (Makefile.am): Likewise.
5656         * modules/sys_time (Makefile.am): Likewise.
5657         * modules/sys_times (Makefile.am): Likewise.
5658         * modules/sys_utsname (Makefile.am): Likewise.
5659         * modules/sys_wait (Makefile.am): Likewise.
5660         * modules/sysexits (Makefile.am): Likewise.
5661         * modules/termios (Makefile.am): Likewise.
5662         * modules/time (Makefile.am): Likewise.
5663         * modules/unistd (Makefile.am): Likewise.
5664         * modules/wchar (Makefile.am): Likewise.
5665         * modules/wctype-h (Makefile.am): Likewise.
5666         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5667
5668 2011-04-05  Bruno Haible  <bruno@clisp.org>
5669
5670         pipe2: Relicense under LGPLv2+.
5671         * modules/pipe2 (License): Change to LGPLv2+.
5672         Requested by Eric Blake, for libvirt.
5673
5674 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5675
5676         bootstrap: compute gnulib_extra_files after updating build_aux
5677         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5678         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5679
5680 2011-04-05  Eric Blake  <eblake@redhat.com>
5681
5682         bootstrap: preserve git whitelist item sorting
5683         * build-aux/bootstrap (sort_patterns): New function.
5684         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5685
5686 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5687
5688         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5689         sc_space_tab check.
5690
5691 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5692
5693         areadlink, areadlinkat: rewrite in terms of careadlinkat
5694         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5695         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5696         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5697         (malloc, realloc): Remove #undefs.
5698         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5699         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5700         readlink, ssize_t, stdint, unistd.
5701         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5702         areadlink, stdint.
5703
5704         careadlinkat: new module
5705         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5706         * modules/careadlinkat: New files, written by me with
5707         a review and feedback from Ben Pfaff in
5708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5709
5710 2011-04-01  Bruno Haible  <bruno@clisp.org>
5711
5712         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5713         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5714         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5715         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5716         Reported by Bruce Korb <bruce.korb@gmail.com>.
5717
5718 2011-04-01  Bruno Haible  <bruno@clisp.org>
5719
5720         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5721         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5722         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5723         * modules/wcpcpy (Depends-on): Add extensions.
5724         * modules/wcpncpy (Depends-on): Likewise.
5725         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5726         systems.
5727         * doc/posix-functions/wcpncpy.texi: Likewise.
5728         * doc/posix-functions/wcwidth.texi: Likewise.
5729
5730 2011-03-31  Eric Blake  <eblake@redhat.com>
5731
5732         nonblocking: fix mingw test failures
5733         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5734         non-blocking flag on regular file.
5735         (get_nonblocking_flag): Set errno on invalid fd.
5736         * tests/test-nonblocking.c (main): Avoid test failure on
5737         directories if fchdir is not active.
5738         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5739
5740 2011-03-31  Bruno Haible  <bruno@clisp.org>
5741
5742         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5743         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5744         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5745         Reported by Simon Josefsson <simon@josefsson.org>.
5746
5747 2011-03-31  Bruno Haible  <bruno@clisp.org>
5748         and Eric Blake  <eblake@redhat.com>
5749
5750         nonblocking: new module
5751         * modules/nonblocking: New module.
5752         * modules/nonblocking-tests: Likewise.
5753         * lib/nonblocking.h: New file.
5754         * lib/nonblocking.c: Likewise.
5755         * tests/test-nonblocking.c: New test.
5756         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5757
5758 2011-03-30  Bruno Haible  <bruno@clisp.org>
5759
5760         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5761         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5762         instead of 'printf' format for GCC >= 4.4.
5763         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5764         (fprintf, printf, vfprintf, vprintf): Declare with
5765         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5766         the system's vfprintf() function.
5767         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5768
5769 2011-03-30  Eric Blake  <eblake@redhat.com>
5770
5771         passfd: fix scoping bug
5772         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5773         before sendmsg/recvmsg.
5774
5775         passfd: standardize coding conventions
5776         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5777         can be learned at compile time.
5778         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5779         ifdefs.
5780         (sendfd, recvfd): Follow gnulib code conventions.
5781
5782         passfd: fix incorrect sendmsg arguments
5783         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5784         incorrect msg_controllen value.
5785         * modules/passfd-tests (Depends-on): Check for alarm.
5786         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5787         Reported by Bastien ROUCARIES.
5788
5789 2011-03-30  Bruno Haible  <bruno@clisp.org>
5790
5791         c-strcasestr: Relicense under LGPLv2+.
5792         * modules/c-strcasestr (License): Change to LGPLv2+.
5793         Requested by Eric Blake, for libvirt.
5794
5795 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5796
5797         * users.txt: Add libidn2.  Fix libtasn1 link.
5798
5799 2011-03-30  Jim Meyering  <meyering@redhat.com>
5800
5801         tests: readlink* ("",... fails with EINVAL on newer kernels
5802         readlink and readlinkat have typically failed with ENOENT for
5803         the invalid, empty file name,  "".  However, with the advent
5804         of linux-2.6.39, they fail with EINVAL.
5805         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5806         when operating on the empty file name.
5807         * tests/test-readlink.h (test_readlink): Likewise.
5808
5809 2011-03-29  Bruno Haible  <bruno@clisp.org>
5810
5811         Relicense some modules under LGPLv2+, for libidn2.
5812         * modules/array-mergesort (License): Change to LGPLv2+.
5813         * modules/c-strcaseeq (License): Likewise.
5814         * modules/striconveh (License): Likewise.
5815         * modules/striconveha (License): Likewise.
5816         * modules/uniconv/base (License): Likewise.
5817         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5818         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5819         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5820         * modules/unictype/base (License): Likewise.
5821         * modules/unictype/bidiclass-of (License): Likewise.
5822         * modules/unictype/category-M (License): Likewise.
5823         * modules/unictype/category-none (License): Likewise.
5824         * modules/unictype/category-of (License): Likewise.
5825         * modules/unictype/category-test (License): Likewise.
5826         * modules/unictype/category-test-withtable (License): Likewise.
5827         * modules/unictype/combining-class (License): Likewise.
5828         * modules/unictype/joiningtype-of (License): Likewise.
5829         * modules/unictype/scripts (License): Likewise.
5830         * modules/uninorm/base (License): Likewise.
5831         * modules/uninorm/canonical-decomposition (License): Likewise.
5832         * modules/uninorm/composition (License): Likewise.
5833         * modules/uninorm/decompose-internal (License): Likewise.
5834         * modules/uninorm/decomposition-table (License): Likewise.
5835         * modules/uninorm/nfc (License): Likewise.
5836         * modules/uninorm/nfd (License): Likewise.
5837         * modules/uninorm/u32-normalize (License): Likewise.
5838         * modules/unistr/base (License): Likewise.
5839         * modules/unistr/u32-cpy (License): Likewise.
5840         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5841         * modules/unistr/u32-to-u8 (License): Likewise.
5842         * modules/unistr/u32-uctomb (License): Likewise.
5843         * modules/unistr/u8-check (License): Likewise.
5844         * modules/unistr/u8-mblen (License): Likewise.
5845         * modules/unistr/u8-mbtouc (License): Likewise.
5846         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5847         * modules/unistr/u8-mbtoucr (License): Likewise.
5848         * modules/unistr/u8-prev (License): Likewise.
5849         * modules/unistr/u8-strlen (License): Likewise.
5850         * modules/unistr/u8-to-u32 (License): Likewise.
5851         * modules/unistr/u8-uctomb (License): Likewise.
5852         * modules/unitypes (License): Likewise.
5853         Requested by Simon Josefsson.
5854
5855 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5856
5857         lib-symbol-visibility: Add a notice.
5858         * modules/lib-symbol-visibility (Notice): New field.
5859
5860 2011-03-29  Bruno Haible  <bruno@clisp.org>
5861
5862         getaddrinfo: Doc fix.
5863         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5864         section "fixed in Gnulib".
5865
5866 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5867
5868         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5869         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5870
5871 2011-03-26  Bruno Haible  <bruno@clisp.org>
5872
5873         unictype/property-byname: Reduce the number of load-time relocations.
5874         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5875         (UC_PROPERTY_INDEX_*): New enumeration values.
5876         (uc_property_byname): Convert an index from the lookup table to an
5877         uc_property_t.
5878         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5879         values.
5880
5881 2011-03-26  Bruno Haible  <bruno@clisp.org>
5882
5883         unictype/property-byname: Allow omitted word separators and aliases.
5884         * lib/unictype/pr_byname.gperf: Add property names without word
5885         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5886         for 'space'.
5887
5888 2011-03-26  Bruno Haible  <bruno@clisp.org>
5889
5890         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5891         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5892         also hyphens to space.
5893         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5894         without spaces.
5895         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5896
5897 2011-03-26  Bruno Haible  <bruno@clisp.org>
5898
5899         unictype/joiningtype-byname: Recognize long names as well.
5900         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5901         a long name.
5902         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5903         unictype/joiningtype_byname.h.
5904         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5905         * lib/unictype/joiningtype_byname.gperf: New file.
5906         * modules/unictype/joiningtype-byname (Files): Add
5907         lib/unictype/joiningtype_byname.gperf.
5908         (Depends-on): Add gperf.
5909         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5910         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5911         long names.
5912
5913         Tests for module 'unictype/joiningtype-longname'.
5914         * modules/unictype/joiningtype-longname-tests: New file.
5915         * tests/unictype/test-joiningtype_longname.c: New file.
5916
5917         New module 'unictype/joiningtype-longname'.
5918         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5919         * lib/unictype/joiningtype_longname.c: New file.
5920         * modules/unictype/joiningtype-longname: New file.
5921         * modules/unictype/joiningtype-all (Depends-on): Add
5922         unictype/joiningtype-longname.
5923
5924 2011-03-26  Bruno Haible  <bruno@clisp.org>
5925
5926         unictype/bidiclass-byname: Recognize long names as well.
5927         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5928         name.
5929         * lib/unictype/bidi_byname.c: Include <string.h>,
5930         unictype/bidi_byname.h.
5931         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5932         * lib/unictype/bidi_byname.gperf: New file.
5933         * modules/unictype/bidiclass-byname (Files): Add
5934         lib/unictype/bidi_byname.gperf.
5935         (Depends-on): Add gperf.
5936         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5937         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5938         long names.
5939
5940         Tests for module 'unictype/bidiclass-longname'.
5941         * modules/unictype/bidiclass-longname-tests: New file.
5942         * tests/unictype/test-bidi_longname.c: New file.
5943
5944         New module 'unictype/bidiclass-longname'.
5945         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5946         * lib/unictype/bidi_longname.c: New file.
5947         * modules/unictype/bidiclass-longname: New file.
5948         * modules/unictype/bidiclass-all (Depends-on): Add
5949         unictype/bidiclass-longname.
5950
5951 2011-03-26  Bruno Haible  <bruno@clisp.org>
5952
5953         unictype/bidi*: Rename modules.
5954         * modules/unictype/bidiclass-all: Renamed from
5955         modules/unictype/bidicategory-all.
5956         * modules/unictype/bidiclass-name: Renamed from
5957         modules/unictype/bidiclass-name.
5958         (Description): Update.
5959         * modules/unictype/bidiclass-name-tests: Renamed from
5960         modules/unictype/bidicategory-name-tests.
5961         * modules/unictype/bidiclass-byname: Renamed from
5962         modules/unictype/bidicategory-byname.
5963         (Description): Update.
5964         * modules/unictype/bidiclass-byname-tests: Renamed from
5965         modules/unictype/bidicategory-byname-tests.
5966         * modules/unictype/bidiclass-of: Renamed from
5967         modules/unictype/bidicategory-of.
5968         (Description): Update.
5969         * modules/unictype/bidiclass-of-tests: Renamed from
5970         modules/unictype/bidicategory-of-tests.
5971         * modules/unictype/bidiclass-test: Renamed from
5972         modules/unictype/bidicategory-test.
5973         (Description): Update.
5974         * modules/unictype/bidiclass-test-tests: Renamed from
5975         modules/unictype/bidicategory-test-tests.
5976         * modules/unictype/bidicategory-all: New file, a simple redirection.
5977         * modules/unictype/bidicategory-name: Likewise.
5978         * modules/unictype/bidicategory-byname: Likewise.
5979         * modules/unictype/bidicategory-of: Likewise.
5980         * modules/unictype/bidicategory-test: Likewise.
5981         * modules/unictype/property-bidi-* (Dependencies): Update.
5982         * lib/unictype/bidi_*.c: Update comment.
5983
5984 2011-03-26  Bruno Haible  <bruno@clisp.org>
5985
5986         unictype/bidi*: Rename functions, part 2.
5987         * modules/unictype/bidicategory-name (configure.ac): Update required
5988         libunistring version.
5989         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5990
5991 2011-03-25  Bruno Haible  <bruno@clisp.org>
5992
5993         New module 'unictype/combining-class-all'.
5994         * modules/unictype/combining-class-all: New file.
5995
5996         Tests for module 'unictype/combining-class-byname'.
5997         * modules/unictype/combining-class-byname-tests: New file.
5998         * tests/unictype/test-combiningclass_byname.c: New file.
5999
6000         New module 'unictype/combining-class-byname'.
6001         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6002         * lib/unictype/combiningclass_byname.c: New file.
6003         * lib/unictype/combiningclass_byname.gperf: New file.
6004         * modules/unictype/combining-class-byname: New file.
6005
6006         Tests for module 'unictype/combining-class-longname'.
6007         * modules/unictype/combining-class-longname-tests: New file.
6008         * tests/unictype/test-combiningclass_longname.c: New file.
6009
6010         New module 'unictype/combining-class-longname'.
6011         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6012         * lib/unictype/combiningclass_longname.c: New file.
6013         * modules/unictype/combining-class-longname: New file.
6014
6015         Tests for module 'unictype/combining-class-name'.
6016         * modules/unictype/combining-class-name-tests: New file.
6017         * tests/unictype/test-combiningclass_name.c: New file.
6018
6019         New module 'unictype/combining-class-name'.
6020         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6021         * lib/unictype/combiningclass_name.c: New file.
6022         * modules/unictype/combining-class-name: New file.
6023
6024 2011-03-25  Bruno Haible  <bruno@clisp.org>
6025
6026         unictype/combining-class: Rename source files.
6027         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6028         of unictype/combining.h.
6029         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6030         Update.
6031         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6032         * modules/unictype/combining-class (Description): Fix.
6033         (Files, Makefile.am): Update.
6034         * tests/unictype/test-combiningclass.c: Renamed from
6035         tests/unictype/test-combining.c.
6036         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6037
6038 2011-03-25  Bruno Haible  <bruno@clisp.org>
6039
6040         unictype: Update list of canonical combining classes.
6041         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6042
6043 2011-03-25  Bruno Haible  <bruno@clisp.org>
6044
6045         unictype/category-byname: Recognize long names as well.
6046         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6047         a long name.
6048         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6049         unictype/categ_byname.h.
6050         (UC_CATEGORY_INDEX_*): New enumeration values.
6051         (uc_general_category_byname): Use uc_general_category_lookup and
6052         convert from index to value.
6053         * lib/unictype/categ_byname.gperf: New file.
6054         * modules/unictype/category-byname (Files): Add
6055         lib/unictype/categ_byname.gperf.
6056         (Depends-on): Add gperf.
6057         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6058         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6059         long names.
6060
6061         Tests for module 'unictype/category-longname'.
6062         * modules/unictype/category-longname-tests: New file.
6063         * tests/unictype/test-categ_longname.c: New file.
6064
6065         New module 'unictype/category-longname'.
6066         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6067         * lib/unictype/categ_longname.c: New file.
6068         * modules/unictype/category-longname: New file.
6069         * modules/unictype/category-all (Depends-on): Add it.
6070
6071 2011-03-25  Bruno Haible  <bruno@clisp.org>
6072
6073         Tests for module 'unictype/category-LC'.
6074         * modules/unictype/category-LC-tests: New file.
6075         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6076
6077         New module 'unictype/category-LC'.
6078         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6079         (UC_CATEGORY_LC): New declaration.
6080         (UC_CASED_LETTER): New macro.
6081         * lib/gen-uni-tables.c (is_category_LC): New function.
6082         (output_categories): Also handle category LC.
6083         (UC_CATEGORY_MASK_LC): New enumeration value.
6084         (general_category_byname): Also handle category LC.
6085         * lib/unictype/categ_LC.c: New file.
6086         * lib/unictype/categ_LC.h: New file, automatically generated.
6087         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6088         category LC.
6089         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6090         * modules/unictype/category-LC: New file.
6091         * modules/unictype/category-byname (Depends-on): Add
6092         unictype/category-LC.
6093         * modules/unictype/category-all (Depends-on): Likewise.
6094
6095 2011-03-25  Eric Blake  <eblake@redhat.com>
6096
6097         xmalloc: revert yesterday's regression
6098         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6099         realloc's underlying behavior (allowing allocation of zero-size
6100         objects, especially if malloc-gnu is also in use).
6101
6102 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6103
6104         maint.mk: add missing version to VC-tag
6105         * top/maint.mk: git tag was missing actual tag name; add it.
6106
6107         valgrind: do leak checking, and exit with code 1 on error (not 0)
6108         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6109         to VALGRIND.
6110
6111 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6112
6113         posix-modules: say what it does.
6114         * posix-modules: Add a line to the --help output saying what it does.
6115
6116 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6117
6118         xmalloc: Do not leak if underlying realloc is C99 compatible.
6119         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6120         This avoids a leak on C99-based systems.  See
6121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6122
6123 2011-03-24  Eric Blake  <eblake@redhat.com>
6124
6125         realloc: document portability problem
6126         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6127         passing 0 size to realloc.
6128
6129 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6130
6131         doc: update users.txt
6132         * users.txt: Add cvsps, tmpwatch
6133
6134 2011-03-23  Matt Rice  <ratmice@gmail.com>
6135
6136         doc: update users.txt
6137         * users.txt: Add gdb.
6138
6139 2011-03-23  Jim Meyering  <meyering@redhat.com>
6140
6141         doc: update users.txt
6142         Looking through matches up to the following URL (there are still
6143         several more pages), I found several projects that use gnulib:
6144         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6145         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6146         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6147
6148 2011-03-22  Bruno Haible  <bruno@clisp.org>
6149
6150         unictype/bidi*: Rename functions.
6151         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6152         uc_bidi_class, uc_is_bidi_class): New declarations.
6153         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6154         uc_bidi_category_byname.
6155         (uc_bidi_category_byname): New function.
6156         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6157         u_bidi_category_name.
6158         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6159         (uc_bidi_category_name): New function.
6160         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6161         uc_bidi_category.
6162         (uc_bidi_category): New function.
6163         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6164         uc_is_bidi_category. Invoke uc_bidi_class.
6165         (uc_is_bidi_category): New function.
6166         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6167         instead of uc_bidi_category_byname.
6168         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6169         instead of uc_bidi_category_name.
6170         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6171         uc_bidi_category.
6172         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6173         instead of uc_is_bidi_category.
6174
6175 2011-03-21  Bruno Haible  <bruno@clisp.org>
6176
6177         New module 'unictype/joininggroup-all'.
6178         * modules/unictype/joininggroup-all: New file.
6179
6180         Tests for module 'unictype/joininggroup-of'.
6181         * modules/unictype/joininggroup-of-tests: New file.
6182         * tests/unictype/test-joininggroup_of.c: New file.
6183         * tests/unictype/test-joininggroup_of.h: New file, automatically
6184         generated by gen-uni-tables.
6185
6186         New module 'unictype/joininggroup-of'.
6187         * modules/unictype/joininggroup-of: New file.
6188         * lib/unictype/joininggroup_of.c: New file.
6189         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6190         gen-uni-tables.
6191
6192         Tests for module 'unictype/joininggroup-byname'.
6193         * modules/unictype/joininggroup-byname-tests: New file.
6194         * tests/unictype/test-joininggroup_byname.c: New file.
6195
6196         New module 'unictype/joininggroup-byname'.
6197         * modules/unictype/joininggroup-byname: New file.
6198         * lib/unictype/joininggroup_byname.c: New file.
6199         * lib/unictype/joininggroup_byname.gperf: New file.
6200
6201         Tests for module 'unictype/joininggroup-name'.
6202         * modules/unictype/joininggroup-name-tests: New file.
6203         * tests/unictype/test-joininggroup_name.c: New file.
6204
6205         New module 'unictype/joininggroup-name'.
6206         * modules/unictype/joininggroup-name: New file.
6207         * lib/unictype/joininggroup_name.c: New file.
6208         * lib/unictype/joininggroup_name.h: New file.
6209
6210         New module 'unictype/joiningtype-all'.
6211         * modules/unictype/joiningtype-all: New file.
6212
6213         Tests for module 'unictype/joiningtype-of'.
6214         * modules/unictype/joiningtype-of-tests: New file.
6215         * tests/unictype/test-joiningtype_of.c: New file.
6216         * tests/unictype/test-joiningtype_of.h: New file, automatically
6217         generated by gen-uni-tables.
6218
6219         New module 'unictype/joiningtype-of'.
6220         * modules/unictype/joiningtype-of: New file.
6221         * lib/unictype/joiningtype_of.c: New file.
6222         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6223         gen-uni-tables.
6224
6225         Tests for module 'unictype/joiningtype-byname'.
6226         * modules/unictype/joiningtype-byname-tests: New file.
6227         * tests/unictype/test-joiningtype_byname.c: New file.
6228
6229         New module 'unictype/joiningtype-byname'.
6230         * modules/unictype/joiningtype-byname: New file.
6231         * lib/unictype/joiningtype_byname.c: New file.
6232
6233         Tests for module 'unictype/joiningtype-name'.
6234         * modules/unictype/joiningtype-name-tests: New file.
6235         * tests/unictype/test-joiningtype_name.c: New file.
6236
6237         New module 'unictype/joiningtype-name'.
6238         * modules/unictype/joiningtype-name: New file.
6239         * lib/unictype/joiningtype_name.c: New file.
6240
6241         unictype: Add support for Arabic shaping properties.
6242         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6243         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6244         declarations.
6245         (UC_JOINING_GROUP_*): New enumeration values.
6246         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6247         declarations.
6248         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6249         (unicode_joining_type): New variable.
6250         (UC_JOINING_GROUP_*): New enumeration values.
6251         (unicode_joining_group): New variable.
6252         (fill_arabicshaping, joining_type_as_c_identifier,
6253         output_joining_type_test, output_joining_type,
6254         joining_group_as_c_identifier, output_joining_group_test,
6255         output_joining_group): New functions.
6256         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6257         fill_arabicshaping and output_joining_type_test, output_joining_type,
6258         output_joining_group_test, output_joining_group.
6259         Reported by Simon Josefsson.
6260
6261 2011-03-21  Jim Meyering  <meyering@redhat.com>
6262
6263         strftime: fix a bug in yesterday's change
6264         * lib/strftime.c (add): Accommodate width's initial value of -1.
6265         Otherwise, nstrftime would copy uninitialized data into
6266         the result buffer.
6267
6268 2011-03-21  Jim Meyering  <meyering@redhat.com>
6269
6270         tests: add strftime-tests module
6271         * tests/test-strftime.c: New file.
6272         * modules/strftime-tests: New module.
6273
6274 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         strftime: don't assume a byte count fits in 'int'
6277         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6278         found this problem by static analysis, using gcc -Wstrict-overflow
6279         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6280         on an integer overflow having undefined behavior, but it turns out
6281         that the argument is a size, which might not fit in 'int' anyway,
6282
6283 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         stdio: don't require ignore_value around fwrite
6286
6287         This patch works around libc bug 11959
6288         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6289         Without this patch, applications must often write
6290         ignore_value (fwrite (...)) even though the ignore_value is
6291         not helpful here.  It's common to write many objects, using
6292         fwrite/printf/etc., and then use ferror to detect output error.
6293
6294         I considered making this patch optional, but decided against it,
6295         because libc is obviously being inconsistent here: there is no
6296         reason libc should insist that user code must inspect fwrite
6297         return's value without also insisting that it inspect printf's,
6298         putchar's, etc.  If user code wants to have a strict style where
6299         all these functions' values are checked (so that ferror need not
6300         be checked), we could add support for that style in a new gnulib
6301         module, but in the meantime it's better to be consistent and to
6302         support common usage.
6303
6304         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6305         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6306         that we are compiling in checking mode, and if not C++, and
6307         if not already wrapping fwrite for some other reason.
6308         (fwrite): #define to rpl_fwrite if the latter is defined.
6309
6310 2011-03-20  Bruno Haible  <bruno@clisp.org>
6311
6312         verror: Fix compilation error introduced on 2011-02-13.
6313         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6314         instead of __attribute__.
6315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6316
6317 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6318             Bruno Haible  <bruno@clisp.org>
6319
6320         socklen: do not depend on sys_socket
6321         While trying to modify Emacs to use gnulib's socklen module,
6322         I discovered a circular dependency: socklen depends on sys_socket
6323         and vice versa.  Emacs can use socklen, but it does not need
6324         sys_socket because it has its own substitute for sys/socket.h.
6325         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6326         gl_TYPE_SOCKLEN_T.
6327         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6328         gl_PREREQ_SYS_H_SOCKET.
6329         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6330         gl_PREREQ_SYS_H_SOCKET.
6331         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6332         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6333         * modules/socklen (Depends-on): Do not depend on sys_socket.
6334         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6335
6336 2011-03-20  Jim Meyering  <meyering@redhat.com>
6337
6338         maint.mk: sort file names *after* new transformation
6339         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6340         prefix would have led to an unwarranted failure in GNU parted.
6341         Sort after that transformation.
6342
6343 2011-03-19  Jim Meyering  <meyering@redhat.com>
6344
6345         maint.mk: fix po-file syntax-check rule
6346         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6347         Patch by Bruno Haible.
6348
6349 2011-03-19  Bruno Haible  <bruno@clisp.org>
6350
6351         socklen: Update comment.
6352         * m4/socklen.m4: Update comment about platforms.
6353
6354 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6355             Bruno Haible  <bruno@clisp.org>
6356
6357         inet_ntop, inet_pton: Simplify.
6358         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6359         documented to provide socklen_t and we already depend on sys_socket.
6360         * modules/inet_pton (Depends-on): Likewise.
6361         * lib/arpa_inet.in.h: Adjust comment.
6362
6363 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6364             Bruno Haible  <bruno@clisp.org>
6365
6366         netdb: Simplify.
6367         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6368         documented to provide socklen_t and we already depend on sys_socket.
6369         * lib/netdb.in.h: Adjust comment.
6370
6371 2011-03-19  Bruno Haible  <bruno@clisp.org>
6372
6373         sys_socket, netdb: Document problem with socklen_t.
6374         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6375         platforms.
6376         * doc/posix-headers/netdb.texi: Likewise.
6377
6378 2011-03-18  Eric Blake  <eblake@redhat.com>
6379
6380         maint.mk: let po check work in VPATH build
6381         * top/maint.mk (po_file): Allow cfg.mk override.
6382         (sc_po_check): Allow VPATH use.
6383         Reported by Jiri Denemark.
6384
6385 2011-03-16  Jim Meyering  <meyering@redhat.com>
6386
6387         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6388         Before, you would have had to create one .x-sc_ file per rule in order
6389         to exempt offending files.  Now, you may instead use a Make variable --
6390         usually defined in cfg.mk -- whose name identifies the affected rule.
6391         * top/maint.mk (_sc_excl): Define.
6392         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6393         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6394
6395 2011-03-13  Bruno Haible  <bruno@clisp.org>
6396
6397         ignore-value tests: Avoid warnings.
6398         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6399         empty for gcc < 3.4.
6400
6401 2011-03-13  Bruno Haible  <bruno@clisp.org>
6402
6403         passfd: Fix link error on Solaris.
6404         * modules/passfd (Description): Correct.
6405         (Depends-on): Add socketlib.
6406         (Link): New section.
6407         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6408
6409 2011-03-13  Bruno Haible  <bruno@clisp.org>
6410
6411         passfd: Fix link error on AIX 5.2.
6412         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6413
6414 2011-03-13  Bruno Haible  <bruno@clisp.org>
6415
6416         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6417         * lib/sys_socket.in.h: Include <stddef.h>.
6418         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6419         CMSG_FIRSTHDR. Remove unused variable.
6420
6421 2011-03-13  Bruno Haible  <bruno@clisp.org>
6422
6423         passfd: Fix compilation error on OpenBSD.
6424         * lib/passfd.c: Include <sys/uio.h>.
6425
6426 2011-03-13  Bruno Haible  <bruno@clisp.org>
6427
6428         passfd test: Fix warnings.
6429         * tests/test-passfd.c: Include <sys/wait.h>.
6430         (main): Fix typo.
6431
6432 2011-03-13  Bruno Haible  <bruno@clisp.org>
6433
6434         passfd module, part 4, tweaks.
6435         * tests/test-passfd.c: Reorder includes.
6436         (main): Fix perror and printf calls.
6437
6438 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6439
6440         passfd module, part 4.
6441         * modules/passfd-tests: New file.
6442         * tests/test-passfd.c: New file.
6443
6444 2011-03-13  Jim Meyering  <meyering@redhat.com>
6445
6446         Makefile: rely on GNU make; derive syntax-check rule names
6447         Rather than requiring that each sc_ rule be listed as a dependent
6448         of "check", use features of GNU make to derive the list.
6449         * Makefile (syntax-check-rules): Define.
6450         (check): Depend on the new variable, not the hard-coded list.
6451
6452 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6453             Bruno Haible  <bruno@clisp.org>
6454
6455         passfd module, part 3.
6456         * lib/passfd.h (recvfd): Add a flags argument.
6457         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6458         (recvfd): Add a flags argument.
6459         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6460         exists.
6461         * modules/passfd (Depends-on): Add cloexec.
6462         Suggested by Eric Blake.
6463
6464 2011-03-13  Bruno Haible  <bruno@clisp.org>
6465
6466         passfd module, part 2, tweaks.
6467         * modules/passfd (Files): Reorder.
6468         (Depends-on): Remove errno.
6469         (Include): Remove <sys/socket.h>, <sys/un.h>.
6470         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6471         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6472         specification header. Include <sys/socket.h> always. Don't include
6473         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6474         (sendfd): Clarify that it sets errno when it fails.
6475         (recvfd): Fix specification.
6476
6477 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6478
6479         passfd module, part 2.
6480         * modules/passfd: New file.
6481         * lib/passfd.h: New file.
6482         * lib/passfd.c: New file.
6483
6484 2011-03-12  Bruno Haible  <bruno@clisp.org>
6485
6486         wcswidth, mbswidth: Avoid integer overflow.
6487         * lib/wcswidth.c: Include <limits.h>.
6488         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6489         * lib/mbswidth.c: Include <limits.h>.
6490         (mbsnwidth): Avoid 'int' overflow.
6491         Reported by Jim Meyering.
6492
6493 2011-03-12  Bruno Haible  <bruno@clisp.org>
6494
6495         futimens, utimensat: Avoid endless recursion on Solaris 10.
6496         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6497         Solaris.
6498         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6499         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6500
6501 2011-03-11  Jim Meyering  <meyering@redhat.com>
6502
6503         maint.mk: relax a regexp to accommodate other formatting styles
6504         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6505         between "ngettext" and the following "(".
6506
6507 2011-03-11  Pádraig Brady <P@draigBrady.com>
6508
6509         maint.mk: suppress a false positive warning
6510         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6511         diagnostics are marked with ngettext.
6512
6513 2011-03-10  Eric Blake  <eblake@redhat.com>
6514
6515         wchar: add explicit dependencies, for Tru64
6516         * modules/mbmemcasecoll (Depends-on): Add wchar.
6517         * modules/mbtowc (Depends-on): Likewise.
6518         * modules/vasnprintf (Depends-on): Likewise.
6519         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6520         * modules/wctomb (Depends-on): Likewise.
6521         Reported by Peter O'Gorman.
6522
6523 2011-03-08  Bruno Haible  <bruno@clisp.org>
6524
6525         passfd module, part 1, tweaks.
6526         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6527         Improve indentation. Improve AC_MSG_CHECKING messages.
6528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6529         gl_SOCKET_FAMILIES.
6530
6531 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6532
6533         passfd module, part 1.
6534         * m4/afunix.m4: New file.
6535         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6536         sockets.
6537
6538 2011-03-08  Bruno Haible  <bruno@clisp.org>
6539
6540         regex-quote: New API.
6541         * lib/regex-quote.h: Include <stdbool.h>.
6542         (struct regex_quote_spec): New type.
6543         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6544         New declarations.
6545         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6546         'const struct regex_quote_spec *' argument.
6547         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6548         (pcre_special): New constant.
6549         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6550         New functions.
6551         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6552         'const struct regex_quote_spec *' argument.
6553         * modules/regex-quote (Depends-on): Add stdbool.
6554         * tests/test-regex-quote.c (check): Update for new API. Add test for
6555         anchored results.
6556         * NEWS: Mention the API change.
6557         Reported by Reuben Thomas and Eric Blake.
6558
6559 2011-03-06  Bruno Haible  <bruno@clisp.org>
6560
6561         regex-quote: Fix creation of POSIX extended regular expressions.
6562         * lib/regex-quote.c (ere_special): Add grouping and alternation
6563         operators.
6564
6565 2011-03-05  Bruno Haible  <bruno@clisp.org>
6566
6567         doc: Improve doc regarding autopoint vs. gnulib.
6568         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6569         disable autopoint while running autoreconf.
6570         Suggested by Ralf Wildenhues.
6571
6572 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6573
6574         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6575         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6576
6577 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6578
6579         parse-duration: remove xalloc.h dependency
6580         * lib/parse-duration.c (parse_period): handle NULL return from
6581         strdup instead of calling xstrdup().
6582         * modules/parse-duration: remove "xalloc" dependency
6583
6584 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6585
6586         bootstrap: honor m4_base when running aclocal
6587         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6588
6589 2011-03-02  Jim Meyering  <meyering@redhat.com>
6590
6591         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6592         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6593         on request from Matt Booth.
6594
6595 2011-03-01  Eric Blake  <eblake@redhat.com>
6596
6597         test-link: work on Hurd
6598         * tests/test-link.h (test_link): Hurd rejects linking directories
6599         with EISDIR instead of the POSIX-mandated EPERM.
6600
6601 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         stdio: simplify by moving files to printf-posix, sigpipe
6604         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6605         since this symbol is needed only if printf is replaced.
6606         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6607         Require gl_ASM_SYMBOL_PREFIX.
6608         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6609         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6610         (Depends-on): Add 'raise'.
6611         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6612         * modules/stdio (Files): Remove lib/stdio-write.c,
6613         m4/asm-underscore.m4.
6614         (Depends-on): Remove 'raise'.
6615
6616         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6617         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6618         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6619         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6620
6621 2011-02-28  Bruno Haible  <bruno@clisp.org>
6622
6623         localcharset: Assume ANSI C behaviour of free().
6624         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6625         calling free().
6626         Suggested by Simon Josefsson <simon@josefsson.org>.
6627
6628 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6629             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6630             Bruno Haible  <bruno@clisp.org>  (tiny change)
6631
6632         On Cygwin, use /proc file system instead of win32 API.
6633         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6634         Win32 file names.
6635         (DllMain): Simplify by removing Cygwin specific code.
6636         (find_shared_library_fullname): Use Linux specific implementation also
6637         for Cygwin.
6638         (get_shared_library_fullname): Update accordingly.
6639         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6640         Win32 file names.
6641         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6642         Cygwin specific code.
6643
6644 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6645             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6646
6647         Fix OpenMP flag detection for various Fortran compilers.
6648         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6649         OpenMP-conditional compilation construct, to force compile
6650         failure with missing OpenMP flag.
6651         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6652
6653 2011-02-25  Eric Blake  <eblake@redhat.com>
6654
6655         strstr: expand test coverage
6656         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6657         compilation.
6658         * tests/test-memmem.c (main): Duplicate tests.
6659         * tests/test-strcasestr.c (main): Likewise.
6660         * tests/test-c-strcasestr.c (main): Likewise.
6661
6662 2011-02-25  Jim Meyering  <meyering@redhat.com>
6663
6664         maint.mk: detect missing-NL-at-EOF, too
6665         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6666         it also detects when a file lacks a newline at EOF.
6667         (require_exactly_one_NL_at_EOF_): Renamed from
6668         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6669         since people may well have .x-sc_... file names tied to the
6670         existing name.  Suggested by Eric Blake.
6671
6672 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6673
6674         dirname: move m4/dos.m4 functionality into lib/dosname.h
6675
6676         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6677         extracts symbols from it, puts them into config.h; but it's much
6678         easier to use the symbols directly.  filename.h already does this,
6679         but it disagrees with dos.m4 in some respects.  This patch
6680         introduces a different include file dosname.h that packages up
6681         dos.m4, and then later we can work on merging filename.h and
6682         dosname.h.  Applications that need only the easy-to-configure
6683         symbols should consider including dosname.h rather than dirname.h.
6684         * NEWS: Mention incompatible changes.
6685         * m4/dos.m4: Remove.
6686         * lib/dosname.h, modules/dosname: New files.
6687         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6688         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6689         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6690         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6691         Include dosname.h, not dirname.h.
6692         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6693         Include dosname.h, for definitions of symbols like ISSLASH
6694         that used to be in config.h.
6695         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6696         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6697         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6698         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6699         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6700         * modules/rmdir (Files): Likewise.
6701         * modules/stat (Files): Likewise.
6702         * modules/unlink (Files): Likewise.
6703         * modules/dirname-lgpl (Depends-on): Add dosname.
6704         * modules/lstat (Depends-on): Likewise.
6705         * modules/openat (Depends-on): Likewise.
6706         * modules/rmdir (Depends-on): Likewise.
6707         * modules/savewd (Depends-on): Likewise.
6708         * modules/stat (Depends-on): Likewise.
6709         * modules/unlink (Depends-on): Likewise.
6710         * modules/openat (Depends-on): Remove dirname-lgpl.
6711         * modules/savewd (Depends-on): Likewise.
6712         * tests/test-dirname.c: Do not use removed symbols like
6713         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6714         the remaining symbols, e.g., ISSLASH ('\\').
6715
6716 2011-02-25  Eric Blake  <eblake@redhat.com>
6717
6718         strstr: revert patches that introduced bug and pessimization
6719         * lib/str-two-way.h: Add another reference.
6720         (two_way_short_needle, two_way_long_needle): Revert changes from
6721         2011-02-24; they pessimize search speed.
6722         (critical_factorization): Partially revert changes from
6723         2010-06-22; they violate the requirement that the left half of the
6724         needle be smaller than the period of the needle.
6725
6726 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6727
6728         filenamecat: remove unnecessary dependency on dirname-lgpl
6729         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6730         is no direct dependency, just an indirect one via filenamecat-lgpl.
6731
6732         remove: remove unnecessary use of m4/dos.m4
6733         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6734         * modules/remove (FILES): Remove m4/dos.m4.
6735
6736         * lib/openat-proc.c: Don't include dirname.h; not needed.
6737
6738         backupfile: remove unnecessary use of m4/dos.m4
6739         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6740         of its symbols are used by the backupfile code.  backupfile.c does
6741         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6742         for the rare case of programs that want all their backup file
6743         names to live within 8+3 limits, and dos.m4 doesn't address that.
6744         * modules/backupfile (Files): Remove m4/dos.m4.
6745
6746 2011-02-24  Jim Meyering  <meyering@redhat.com>
6747
6748         strstr: fix a bug whereby strstr would mistakenly return NULL
6749         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6750         in period calculation.
6751         (two_way_long_needle): Likewise.
6752         The original problem was reported by Mike Stump in
6753         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6754         Ralf Wildenhues provided the short needle and haystack.
6755         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6756         Add a more involved test to trigger the bug in two_way_long_needle.
6757
6758 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6759
6760         gnulib-tool: remove use of bold display in help screen
6761         * gnulib-tool (func_usage): Do not use bold display anymore in the
6762         help screen.  That was just meant to be a temporary emphasis for a
6763         backward-incompatible change.
6764
6765 2011-02-23  Bruno Haible  <bruno@clisp.org>
6766
6767         Fix misindentation of preprocessor directives.
6768         * lib/argp-namefrob.h: Reindent preprocessor directives.
6769         * lib/getopt_int.h (struct _getopt_data): Likewise.
6770         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6771         * lib/vasnprintf.c (decode_long_double): Likewise.
6772         * tests/test-argmatch.c: Insert blank lines, for clarity.
6773         * tests/test-exclude.c: Likewise.
6774
6775 2011-02-22  Bruno Haible  <bruno@clisp.org>
6776
6777         ioctl: Fix for MacOS X in 64-bit mode.
6778         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6779         value.
6780         Suggested by Eric Blake.
6781         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6782
6783 2011-02-22  Jim Meyering  <meyering@redhat.com>
6784
6785         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6786         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6787         in lib/.
6788
6789 2011-02-22  Eric Blake  <eblake@redhat.com>
6790
6791         maint: avoid any CDPATH issue
6792         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6793
6794         maint: adjust cpp indentation for my modules, as well
6795         * Makefile (sc_cpp_indent_check): Add my name.
6796         * lib/fbufmode.c: Filter through cppi.
6797         * lib/fpurge.c: Likewise.
6798         * lib/freadable.c: Likewise.
6799         * lib/freading.c: Likewise.
6800         * lib/fwritable.c: Likewise.
6801         * lib/fwriting.c: Likewise.
6802         * lib/sigaction.c: Likewise.
6803
6804 2011-02-22  Jim Meyering  <meyering@redhat.com>
6805
6806         maint: adjust cpp indentation to reflect nesting depth
6807         I.e., in a block of code that begins with an unnested "#if",
6808         put one space between the "#" in column 1 and following token.
6809         For example,
6810         -#include <sys/vfs.h>
6811         +# include <sys/vfs.h>
6812         Do this only in .c files that are part of a module I maintain.
6813         * lib/linkat.c: Filter through cppi.
6814         * lib/nanosleep.c: Likewise.
6815         * lib/openat.c: Likewise.
6816         * lib/openat-die.c: Likewise.
6817         * lib/dup3.c: Likewise.
6818         * lib/fchownat.c: Likewise.
6819         * lib/flock.c: Likewise.
6820         * lib/fsync.c: Likewise.
6821         * lib/fts.c: Likewise.
6822         * lib/getpass.c: Likewise.
6823         * lib/gettimeofday.c: Likewise.
6824         * lib/userspec.c: Likewise.
6825         * Makefile (sc_cpp_indent_check): New rule, to check this.
6826
6827 2011-02-22  Bruno Haible  <bruno@clisp.org>
6828
6829         New module 'wctomb'.
6830         * lib/stdlib.in.h (wctomb): New declaration.
6831         * lib/wctomb.c: New file.
6832         * lib/wctomb-impl.h: New file.
6833         * m4/wctomb.m4: New file.
6834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6835         REPLACE_WCTOMB.
6836         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6837         REPLACE_WCTOMB.
6838         * modules/wctomb: New file.
6839         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6840         * doc/posix-functions/wctomb.texi: Mention the new module.
6841         * modules/wctob (Depends-on): Add wctomb.
6842
6843 2011-02-22  Bruno Haible  <bruno@clisp.org>
6844
6845         New module 'mbtowc'.
6846         * lib/stdlib.in.h (mbtowc): New declaration.
6847         * lib/mbtowc.c: New file.
6848         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6849         * m4/mbtowc.m4: New file.
6850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6851         REPLACE_MBTOWC.
6852         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6853         REPLACE_MBTOWC.
6854         * modules/mbtowc: New file.
6855         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6856         * doc/posix-functions/mbtowc.texi: Mention the new module.
6857         * modules/btowc (Depends-on): Add mbtowc.
6858
6859 2011-02-22  Bruno Haible  <bruno@clisp.org>
6860
6861         wcrtomb: Add more tests for native Windows platforms.
6862         * tests/test-wcrtomb-w32-1.sh: New file.
6863         * tests/test-wcrtomb-w32-2.sh: New file.
6864         * tests/test-wcrtomb-w32-3.sh: New file.
6865         * tests/test-wcrtomb-w32-4.sh: New file.
6866         * tests/test-wcrtomb-w32-5.sh: New file.
6867         * tests/test-wcrtomb-w32.c: New file.
6868         * modules/wcrtomb-tests (Files): Add them.
6869         (Makefile.am): Arrange to run these tests.
6870         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6871         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6872
6873 2011-02-20  Bruno Haible  <bruno@clisp.org>
6874
6875         wcrtomb: Enhance test.
6876         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6877
6878 2011-02-20  Bruno Haible  <bruno@clisp.org>
6879
6880         mbrtowc: Tiny optimization.
6881         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6882
6883 2011-02-20  Jim Meyering  <meyering@redhat.com>
6884
6885         test-exclude.c: remove unmatched #endif
6886         * tests/test-exclude.c: Remove stray #endif, left over from
6887         the change of a week ago.
6888
6889 2011-02-19  Jim Meyering  <meyering@redhat.com>
6890
6891         git-version-gen: skip "-dirty" check when appropriate
6892         * build-aux/git-version-gen: Don't run any git commands when the
6893         version string comes from .tarball-version.  Prior to this, we
6894         would run git update-index --refresh even from a just-unpacked
6895         tarball directory, and that could affect a .git/ directory in a
6896         parent of the build directory.  Reported by Mike Frysinger.
6897
6898 2011-02-19  Bruno Haible  <bruno@clisp.org>
6899
6900         unictype/property-byname: Reduce the size of the 'data' segment.
6901         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6902
6903 2011-02-19  Bruno Haible  <bruno@clisp.org>
6904
6905         unictype/scripts: Reduce the size of the 'data' segment.
6906         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6907         '%pic'.
6908         * lib/unictype/scripts_byname.gperf: Regenerated.
6909
6910 2011-02-19  Bruno Haible  <bruno@clisp.org>
6911
6912         stdint: Update documentation.
6913         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6914
6915 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         stdint: omit redundant check for wchar.h
6918         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6919         always tests whether wchar.h exists, so remove the now-redundant test.
6920
6921 2011-02-18  Bruno Haible  <bruno@clisp.org>
6922
6923         stdint: Cut dependency to module 'wchar'.
6924         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6925         include the necessary prerequisites.
6926         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6927         * modules/stdint (Depends-on): Remove wchar.
6928         (Makefile.am): Substitute HAVE_WCHAR_H.
6929         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6930
6931 2011-02-18  Eric Blake  <eblake@redhat.com>
6932
6933         longlong: skip, rather than fail, on cross-compilation
6934         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6935         when cross-compiling; regression from 2011-02-16.
6936
6937 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6938
6939         * NEWS: Mention 2011-02-08 change to stdlib.
6940
6941 2011-02-17  Bruno Haible  <bruno@clisp.org>
6942
6943         getloadavg: Add comments about platforms.
6944         * m4/getloadavg.m4: Add comment.
6945         * lib/getloadavg.c: Likewise.
6946
6947 2011-02-17  Bruno Haible  <bruno@clisp.org>
6948
6949         getloadavg: Fix link error on Solaris 2.6.
6950         * modules/getloadavg (Link): New section.
6951         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6952         linking test-getloadavg.
6953         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6954         getloadavg.
6955
6956 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6957
6958         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6959         It was 'int', but this doesn't match the IRIX 6.5 manual.
6960         Suggested by Bruno Haible in
6961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6962
6963 2011-02-17  Bruno Haible  <bruno@clisp.org>
6964
6965         havelib: Fix comments.
6966         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6967         change.
6968
6969 2011-02-17  Bruno Haible  <bruno@clisp.org>
6970
6971         havelib: Update config.rpath.
6972         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6973
6974 2011-02-17  Bruno Haible  <bruno@clisp.org>
6975
6976         getloadavg test: Add some plausibility checks.
6977         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6978         is improbable.
6979
6980 2011-02-16  Eric Blake  <eblake@redhat.com>
6981
6982         maintainer-makefile: make syntax-check a no-op from tarballs
6983         * top/maint.mk (no-vc-detected): New rule.
6984         (local-checks-available): Use it to avoid hanging if someone tries
6985         'make syntax-check' from a tarball.  Also append to any non-syntax
6986         checks already defined in cfg.mk.
6987
6988 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6989
6990         longlong: tune, particularly for common case of c99
6991
6992         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6993         or running anything if c99, or if unsigned long long int does not
6994         work.  In either case, we know the answer without further tests.
6995         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6996         it at most once, and use its results for both long long int and
6997         unsigned long long int.  This is more likely to be efficient in
6998         the common case where the program wants to check for both long
6999         long int and unsigned long long int.
7000         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7001         since the answer is already known.
7002
7003 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7004
7005         getloadavg: set errno
7006         * lib/getloadavg.c: Set errno when returning -1.  If no other
7007         error number looks appropriate, set it to ENOSYS if the getloadavg
7008         looks like it can't possibly ever work, ENOTSUP otherwise.
7009         Suggested by Bruno Haible in
7010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7011
7012         getloadavg: trim unused parts and speed up 'configure'
7013         * NEWS: Document this.
7014         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7015         always compiled if getloadavg is absent.
7016         Move test code to ...
7017         * tests/test-getloadavg.c: New file, containing previous
7018         contents of test from lib/getloadavg.c.  It also contains
7019         suggestions by Bruno Haible in
7020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7021         * modules/getloadavg-tests: New file.
7022         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7023         Do tests in the same order as they're needed for getloadavg.c.
7024         Omit setgid-related tests that generate symbols KMEM_GROUP,
7025         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7026         Do only the tests that are needed to see whether the system has
7027         getloadavg, moving the other tests into ...
7028         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7029         NLIST_NAME_UNION; nobody should be using it.  Do not define
7030         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7031         relevant, as the user of this module shouldn't care how getloadavg
7032         is implemented.
7033
7034         getloadavg: omit unused var
7035         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7036
7037 2011-02-15  Jim Meyering  <meyering@redhat.com>
7038
7039         doc: update users.txt
7040         * users.txt: Update iwhd's URL.
7041
7042 2011-02-13  Bruno Haible  <bruno@clisp.org>
7043
7044         Consistent macro naming for macros that use GCC __attribute__.
7045         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7046         _ATTRIBUTE_NONNULL_.
7047         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7048         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7049         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7050         ATTRIBUTE_DEPRECATED.
7051         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7052         ATTRIBUTE_NORETURN.
7053         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7054         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7055         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7056         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7057         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7058         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7059         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7060         ATTRIBUTE_SENTINEL.
7061         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7062         ATTRIBUTE_RETURN_CHECK.
7063         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7064         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7065         ATTRIBUTE_NORETURN.
7066         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7067         Reported by Paul Eggert.
7068
7069 2011-02-13  Bruno Haible  <bruno@clisp.org>
7070
7071         Don't interfere with a program's definition of __attribute__.
7072         * lib/argp.h (__attribute__): Remove definition.
7073         (_GL_ATTRIBUTE_FORMAT): New macro.
7074         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7075         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7076         (_GL_ATTRIBUTE_FORMAT): New macro.
7077         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7078         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7079         GCC 3 or newer.
7080         * lib/error.h (__attribute__): Remove definition.
7081         (_GL_ATTRIBUTE_FORMAT): New macro.
7082         (error, error_at_line): Use it.
7083         * lib/hash.h (__attribute__): Remove definition.
7084         (ATTRIBUTE_WUR): Update definition. Define always.
7085         * lib/openat.h (__attribute__): Remove definition.
7086         (ATTRIBUTE_NORETURN): Update definition. Define always.
7087         * lib/sigpipe-die.h (__attribute__): Remove definition.
7088         (ATTRIBUTE_NORETURN): Update definition. Define always.
7089         * lib/vasnprintf.h (__attribute__): Remove definition.
7090         (_GL_ATTRIBUTE_FORMAT): New macro.
7091         (asnprintf, vasnprintf): Use it.
7092         * lib/xalloc.h (__attribute__): Remove definition.
7093         (ATTRIBUTE_NORETURN): Update definition. Define always.
7094         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7095         * lib/xmemdup0.h (__attribute__): Remove definition.
7096         (ATTRIBUTE_NORETURN): Update definition. Define always.
7097         * lib/xprintf.h (__attribute__): Remove definition.
7098         (_GL_ATTRIBUTE_FORMAT): New macro.
7099         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7100         * lib/xstrtol.h (__attribute__): Remove definition.
7101         (ATTRIBUTE_NORETURN): Update definition. Define always.
7102         * lib/xvasprintf.h (__attribute__): Remove definition.
7103         (_GL_ATTRIBUTE_FORMAT): New macro.
7104         (xasprintf, xvasprintf): Use it.
7105         * tests/test-argmatch.c (__attribute__): Remove definition.
7106         (ATTRIBUTE_NORETURN): Update definition. Define always.
7107         * tests/test-exclude.c (__attribute__): Remove definition.
7108         (ATTRIBUTE_NORETURN): Update definition. Define always.
7109         Reported by Paul Eggert.
7110
7111 2011-02-13  Bruno Haible  <bruno@clisp.org>
7112
7113         mbrtowc: Add more tests for native Windows platforms.
7114         * tests/test-mbrtowc-w32-1.sh: New file.
7115         * tests/test-mbrtowc-w32-2.sh: New file.
7116         * tests/test-mbrtowc-w32-3.sh: New file.
7117         * tests/test-mbrtowc-w32-4.sh: New file.
7118         * tests/test-mbrtowc-w32-5.sh: New file.
7119         * tests/test-mbrtowc-w32.c: New file.
7120         * modules/mbrtowc-tests (Files): Add them.
7121         (Makefile.am): Arrange to run these tests.
7122         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7123         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7124
7125 2011-02-13  Bruno Haible  <bruno@clisp.org>
7126
7127         mbrtowc: Work around native Windows bug.
7128         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7129         guess when no suitable locale for testing was found.
7130         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7131
7132 2011-02-13  Bruno Haible  <bruno@clisp.org>
7133
7134         mbsinit: Work around mingw bug.
7135         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7136         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7137         Windows.
7138         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7139
7140 2011-02-13  Bruno Haible  <bruno@clisp.org>
7141
7142         mbsinit: Don't crash for a NULL argument.
7143         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7144         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7145
7146 2011-02-13  Bruno Haible  <bruno@clisp.org>
7147
7148         Don't interfere with a program's definition of __attribute__.
7149         * lib/stdio.in.h (__attribute__): Remove definition.
7150         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7151         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7152         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7153         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7154         * lib/string.in.h (__attribute__): Remove definition.
7155         Reported by Paul Eggert.
7156
7157 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7158
7159         stdlib: don't get in the way of non-GCC __attribute__
7160         See thread starting at
7161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7162         Revert previous stdlib change, installing the following instead:
7163         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7164         to get in the way of a non-GCC compiler that supports __attribute__.
7165         (_GL_ATTRIBUTE_RETURN): New macro.
7166         (_Exit): Use it instead of __attribute__.
7167
7168 2011-02-12  Bruno Haible  <bruno@clisp.org>
7169
7170         quotearg test: Avoid test failure on mingw.
7171         * tests/test-quotearg.sh: Convert the locale identifier from native
7172         Windows syntax to Unix syntax.
7173
7174 2011-02-12  Bruno Haible  <bruno@clisp.org>
7175
7176         setlocale: Prefer gnulib's override over libintl's override.
7177         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7178         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7179         GNULIB_defined_setlocale is set.
7180
7181 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7182
7183         stdlib: support non-GCC __attribute__
7184
7185         Fix a serious and tricky problem encountered when attempting to
7186         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7187         5.5, but it crashed due to memory corruption on Solaris 10 with
7188         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7189         bits that are otherwise zero.  This tagging is optional inside
7190         Emacs but is preferred and is used when __attribute__ ((__aligned
7191         (8))) works, as it does with both recent-enough GCC and with Sun C
7192         5.11.  However, Sun C 5.11 is not GCC and does not #define
7193         __GNUC__ and __GNUC_MINOR__.
7194
7195         When I added the getloadavg module to Emacs, it brought in
7196         stdlib.in.h, which contained this fragment:
7197
7198            #ifndef __attribute__
7199            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7200            #  define __attribute__(Spec)   /* empty */
7201            # endif
7202            #endif
7203
7204         When files that include <stdlib.h> were compiled with Sun C 5.11,
7205         the above code disabled __attribute__ ((__aligned (8))), which
7206         caused variables to not be properly aligned, which eventually led
7207         to the pointer corruption mentioned above.  (This was a bit hard
7208         to diagnose, unfortunately.)
7209
7210         Several "#define __attribute__(X) /* empty */" code snippets need
7211         to be eradicated from Gnulib to work with non-GCC compilers that
7212         support __attribute__.  The Autoconf way to do this is to test for
7213         each kind of attribute that we want support for, and selectively
7214         enable that in source code.
7215
7216         Fix this problem just for stdlib.h, by adding a test for the
7217         __noreturn__ attribute, and change stdlib.in.h to use that test
7218         when needed.  This technique can be easily generalized to the
7219         other *.in.h files and attributes, and a similar technique can be
7220         used for *.h and *.c files.  This patch is enough to solve the
7221         problem for Emacs + getloadavg, and I thought I'd publish it for
7222         feedback before undertaking further, similar fixes in other
7223         modules.
7224
7225         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7226         because it's not needed for stdlib.h.  It merely substitutes the
7227         value directly into stdlib.h.  We may well need to #define it, or
7228         similar symbols, for other modules, but it's nice to also have an
7229         option to not #define it for applications like Emacs that do not
7230         need it.
7231
7232         * lib/stdlib.in.h (__attribute__): Do not #define.
7233         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7234         be defined only if the _Exit module is also used.
7235         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7237         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7238         platforms.
7239         * modules/_Exit (Files): Add m4/attribute.m4.
7240         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7241         * m4/attribute.m4: New file.
7242
7243 2011-02-12  Bruno Haible  <bruno@clisp.org>
7244
7245         wcsrtombs: Work around bug on native Windows.
7246         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7247         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7248         instead of len.
7249         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7250
7251 2011-02-12  Bruno Haible  <bruno@clisp.org>
7252
7253         mbsrtowcs: Work around bug on native Windows.
7254         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7255         against mingw bug.
7256         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7257
7258 2011-02-12  Bruno Haible  <bruno@clisp.org>
7259
7260         Avoid setlocale bugs in tests.
7261         * modules/btowc (Dependencies): Add setlocale.
7262         * modules/c-strcase (Dependencies): Likewise.
7263         * modules/mbmemcasecmp (Dependencies): Likewise.
7264         * modules/mbmemcasecoll (Dependencies): Likewise.
7265         * modules/mbrtowc (Dependencies): Likewise.
7266         * modules/mbscasecmp (Dependencies): Likewise.
7267         * modules/mbscasestr (Dependencies): Likewise.
7268         * modules/mbschr (Dependencies): Likewise.
7269         * modules/mbscspn (Dependencies): Likewise.
7270         * modules/mbsinit (Dependencies): Likewise.
7271         * modules/mbsncasecmp (Dependencies): Likewise.
7272         * modules/mbsnrtowcs (Dependencies): Likewise.
7273         * modules/mbspbrk (Dependencies): Likewise.
7274         * modules/mbspcasecmp (Dependencies): Likewise.
7275         * modules/mbsrchr (Dependencies): Likewise.
7276         * modules/mbsrtowcs (Dependencies): Likewise.
7277         * modules/mbsspn (Dependencies): Likewise.
7278         * modules/mbsstr (Dependencies): Likewise.
7279         * modules/nl_langinfo (Dependencies): Likewise.
7280         * modules/quotearg (Dependencies): Likewise.
7281         * modules/unicase/locale-language (Dependencies): Likewise.
7282         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7283         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7284         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7285         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7286         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7287         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7288         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7289         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7290         * modules/vasnprintf-posix (Dependencies): Likewise.
7291         * modules/wcrtomb (Dependencies): Likewise.
7292         * modules/wcsnrtombs (Dependencies): Likewise.
7293         * modules/wcsrtombs (Dependencies): Likewise.
7294
7295 2011-02-12  Bruno Haible  <bruno@clisp.org>
7296
7297         setlocale: Workaround native Windows bug.
7298         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7299         succeeds but sets LC_CTYPE to "C", report a failure.
7300         * tests/test-setlocale2.sh: New file.
7301         * tests/test-setlocale2.c: New file.
7302         * modules/setlocale-tests (Files): Add the new files.
7303         (Makefile.am): Enable test-setlocale2.sh test.
7304         * doc/posix-functions/setlocale.texi: Mention workaround.
7305
7306 2011-02-11  Bruno Haible  <bruno@clisp.org>
7307
7308         Tests for module 'setlocale'.
7309         * modules/setlocale-tests: New file.
7310         * tests/test-setlocale1.sh: New file.
7311         * tests/test-setlocale1.c: New file.
7312
7313         New module 'setlocale'.
7314         * lib/locale.in.h (setlocale): New declaration.
7315         * lib/setlocale.c: New file, based on
7316         gettext/gettext-runtime/intl/setlocale.c.
7317         * m4/setlocale.m4: New file.
7318         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7319         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7320         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7321         REPLACE_SETLOCALE.
7322         * modules/setlocale: New file.
7323         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7324         * doc/posix-functions/setlocale.texi: Mention the new module.
7325
7326 2011-02-11  Bruno Haible  <bruno@clisp.org>
7327
7328         Prepare for locale dependent tests on mingw.
7329         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7330         because it has the wrong locale encoding.
7331         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7332         French_France.1252 instead of "fr".
7333         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7334         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7335         because it has the wrong locale encoding.
7336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7337         native Windows, try Turkish_Turkey.65001.
7338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7339         Chinese_China.54936.
7340
7341         Prepare for locale dependent tests on mingw.
7342         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7343         differently.
7344         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7345         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7346         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7347         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7348
7349 2011-02-11  Eric Blake  <eblake@redhat.com>
7350
7351         strptime: avoid compiler warnings
7352         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7353         compiler warnings about dead code.
7354         Reported by Daniel P. Berrange.
7355
7356 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7357
7358         doc: update users.txt
7359         * users.txt: Add rcs.
7360
7361 2011-02-10  John W. Eaton  <jwe@gnu.org>
7362
7363         doc: update users.txt
7364         * users.txt: Add octave.
7365
7366 2011-02-10  Jim Meyering  <meyering@redhat.com>
7367
7368         doc: update users.txt
7369         * users.txt: Add iwhd.
7370
7371 2011-02-09  Bruno Haible  <bruno@clisp.org>
7372
7373         gnulib-tool: Make copyright notice adjustment more robust.
7374         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7375         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7376         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7377         License".
7378         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7379
7380 2011-02-06  Bruno Haible  <bruno@clisp.org>
7381
7382         New module 'towctrans'.
7383         * modules/towctrans: New file.
7384         * lib/wctype.in.h (towctrans): New declaration.
7385         * lib/towctrans.c: New file.
7386         * lib/towctrans-impl.h: New file.
7387         * m4/towctrans.m4: New file.
7388         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7389         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7390         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7391         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7392         * doc/posix-functions/towctrans.texi: Mention the new module.
7393
7394 2011-02-06  Bruno Haible  <bruno@clisp.org>
7395
7396         New module 'wctrans'.
7397         * modules/wctrans: New file.
7398         * lib/wctype.in.h (wctrans): New declaration.
7399         * lib/wctrans.c: New file.
7400         * lib/wctrans-impl.h: New file.
7401         * m4/wctrans.m4: New file.
7402         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7403         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7404         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7405         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7406         * doc/posix-functions/wctrans.texi: Mention the new module.
7407
7408 2011-02-06  Bruno Haible  <bruno@clisp.org>
7409
7410         New module 'iswctype'.
7411         * modules/iswctype: New file.
7412         * lib/wctype.in.h (iswctype): New declaration.
7413         * lib/iswctype.c: New file.
7414         * lib/iswctype-impl.h: New file.
7415         * m4/iswctype.m4: New file.
7416         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7417         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7418         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7419         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7420         * doc/posix-functions/iswctype.texi: Mention the new module and the
7421         HP-UX 11.00 problem.
7422
7423 2011-02-06  Bruno Haible  <bruno@clisp.org>
7424
7425         New module 'wctype'.
7426         * modules/wctype: Change to represent the wctype() substitute.
7427         * lib/wctype.in.h (wctype): New declaration.
7428         * lib/wctype.c: New file.
7429         * lib/wctype-impl.h: New file.
7430         * m4/wctype.m4: New file.
7431         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7432         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7433         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7434         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7435         * doc/posix-functions/wctype.texi: Mention the new module and the
7436         HP-UX 11.00 problem.
7437
7438 2011-02-06  Bruno Haible  <bruno@clisp.org>
7439
7440         wctype-h: Ensure wctype_t and wctrans_t are defined.
7441         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7442         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7443         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7444         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7445         HAVE_WCTRANS_T.
7446         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7447
7448 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7449
7450         flock: fix license typo
7451
7452         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7453         omitted.
7454
7455 2011-02-08  Bruno Haible  <bruno@clisp.org>
7456
7457         Split large sed scripts, for HP-UX sed.
7458         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7459         to avoid HP-UX limit of 99 commands, in the near future.
7460         * modules/stdlib (Makefile.am): Likewise.
7461         * modules/unistd (Makefile.am): Likewise.
7462         * modules/wchar (Makefile.am): Likewise.
7463         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7464         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7465         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7466
7467 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7468             Bruno Haible  <bruno@clisp.org>
7469
7470         stdlib: improve random_r modularization
7471         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7472         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7473         you also need the random_r module to get this material right.
7474         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7475         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7476         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7477
7478 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7479
7480         stdlib: don't depend on stdint
7481         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7482         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7483         be independent of whether stdint.h is needed.
7484         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7485         here, instead of ...
7486         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7487         struct random_data should be using the random_r module, not just
7488         the stdlib module (which wouldn't make sense: what package needs
7489         just struct random_data without also needing random_r?).
7490         * modules/stdlib (Depends-on): Remove stdint.
7491
7492         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7493         See the thread rooted at
7494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7495         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7496         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7497         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7498         __VMS)); previously it was always included (via fcntl--.h).
7499         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7500         hand; this is good enough for load averages.  Also, do not use
7501         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7502         flags directly if available and don't bother otherwise.  (Packages
7503         that need the extra reliability should use the modules that define
7504         these flags on older platforms that lack them.)
7505         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7506         fcntl-safer.
7507
7508 2011-02-08  Jim Meyering  <meyering@redhat.com>
7509
7510         di-set.h, ino-map.h: add multiple-inclusion guard
7511         Technically, the guard is required only for ino-map.h, due to its
7512         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7513         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7514         * lib/ino-map.h: Likewise.
7515
7516 2011-02-06  Bruno Haible  <bruno@clisp.org>
7517
7518         iswblank: Ensure declaration on glibc systems.
7519         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7520         * modules/iswblank (Dependencies): Add 'extensions'.
7521         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7522
7523 2011-02-06  Bruno Haible  <bruno@clisp.org>
7524
7525         New module 'iswblank'.
7526         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7527         * modules/iswblank: New file.
7528         * modules/wctype-h (Files): Remove lib/iswblank.c.
7529         (Makefile.am): Substitute GNULIB_ISWBLANK.
7530         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7531         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7532         (gl_WCTYPE_H_DEFAULTS): New macro.
7533         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7534         * modules/iswblank-tests: New file.
7535         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7536         * tests/test-wctype-h.c (main): Remove iswblank tests.
7537         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7538         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7539         of 'wctype-h'.
7540         * NEWS: Mention the change.
7541         * modules/mbchar (Depends-on): Add iswblank.
7542
7543 2011-02-08  Bruno Haible  <bruno@clisp.org>
7544
7545         di-set tests: Refactor.
7546         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7547         unnecessary includes.
7548         (ASSERT): Remove macro.
7549         (main): Make C90 compliant by avoiding variable declaration after
7550         statement.
7551         * modules/di-set-tests (Files): Add tests/macros.h.
7552
7553 2011-02-08  Bruno Haible  <bruno@clisp.org>
7554
7555         ino-map tests: Refactor.
7556         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7557         unnecessary includes.
7558         (ASSERT): Remove macro.
7559         (main): Make C90 compliant by avoiding variable declaration after
7560         statement.
7561         * modules/ino-map-tests (Files): Add tests/macros.h.
7562
7563 2011-02-08  Jim Meyering  <meyering@redhat.com>
7564
7565         di-set: add "const" to a cast
7566         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7567         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7568
7569 2011-02-06  Bruno Haible  <bruno@clisp.org>
7570
7571         Rename module 'wctype' to 'wctype-h'.
7572         * modules/wctype-h: Renamed from modules/wctype.
7573         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7574         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7575         (Files, Depends-on, Makefile.am): Update.
7576         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7577         (Files, Makefile.am): Update.
7578         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7579         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7580         * doc/posix-headers/wctype.texi: Update.
7581         * doc/posix-functions/iswalnum.texi: Update.
7582         * doc/posix-functions/iswalpha.texi: Update.
7583         * doc/posix-functions/iswblank.texi: Update.
7584         * doc/posix-functions/iswcntrl.texi: Update.
7585         * doc/posix-functions/iswdigit.texi: Update.
7586         * doc/posix-functions/iswgraph.texi: Update.
7587         * doc/posix-functions/iswlower.texi: Update.
7588         * doc/posix-functions/iswprint.texi: Update.
7589         * doc/posix-functions/iswpunct.texi: Update.
7590         * doc/posix-functions/iswspace.texi: Update.
7591         * doc/posix-functions/iswupper.texi: Update.
7592         * doc/posix-functions/iswxdigit.texi: Update.
7593         * doc/posix-functions/towlower.texi: Update.
7594         * doc/posix-functions/towupper.texi: Update.
7595         * NEWS: Mention the change.
7596         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7597         * modules/mbchar (Dependencies): Likewise.
7598         * modules/mbswidth (Dependencies): Likewise.
7599         * modules/quotearg (Dependencies): Likewise.
7600         * modules/regex (Dependencies): Likewise.
7601         * modules/wcscasecmp (Dependencies): Likewise.
7602         * modules/wcsncasecmp (Dependencies): Likewise.
7603         * modules/wcwidth (Dependencies): Likewise.
7604
7605 2011-02-06  Bruno Haible  <bruno@clisp.org>
7606
7607         New module 'wcswidth'.
7608         * modules/wcswidth: New file.
7609         * lib/wchar.in.h (wcswidth): New declaration.
7610         * lib/wcswidth.c: New file.
7611         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7612         * m4/wcswidth.m4: New file.
7613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7615         REPLACE_WCSWIDTH.
7616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7617         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7618         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7619         * doc/posix-functions/wcswidth.texi: Mention the new module.
7620
7621 2011-02-06  Bruno Haible  <bruno@clisp.org>
7622
7623         New module 'wcstok'.
7624         * modules/wcstok: New file.
7625         * lib/wchar.in.h (wcstok): New declaration.
7626         * lib/wcstok.c: New file.
7627         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7628         * m4/wcstok.m4: New file.
7629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7632         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7633         * doc/posix-functions/wcstok.texi: Mention the new module.
7634
7635 2011-02-06  Bruno Haible  <bruno@clisp.org>
7636
7637         New module 'wcsstr'.
7638         * modules/wcsstr: New file.
7639         * lib/wchar.in.h (wcsstr): New declaration.
7640         * lib/wcsstr.c: New file.
7641         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7642         * m4/wcsstr.m4: New file.
7643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7646         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7647         * doc/posix-functions/wcsstr.texi: Mention the new module.
7648
7649 2011-02-06  Bruno Haible  <bruno@clisp.org>
7650
7651         New module 'wcspbrk'.
7652         * modules/wcspbrk: New file.
7653         * lib/wchar.in.h (wcspbrk): New declaration.
7654         * lib/wcspbrk.c: New file.
7655         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7656         * m4/wcspbrk.m4: New file.
7657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7660         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7661         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7662
7663 2011-02-06  Bruno Haible  <bruno@clisp.org>
7664
7665         New module 'wcsspn'.
7666         * modules/wcsspn: New file.
7667         * lib/wchar.in.h (wcsspn): New declaration.
7668         * lib/wcsspn.c: New file.
7669         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7670         * m4/wcsspn.m4: New file.
7671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7674         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7675         * doc/posix-functions/wcsspn.texi: Mention the new module.
7676
7677 2011-02-06  Bruno Haible  <bruno@clisp.org>
7678
7679         New module 'wcscspn'.
7680         * modules/wcscspn: New file.
7681         * lib/wchar.in.h (wcscspn): New declaration.
7682         * lib/wcscspn.c: New file.
7683         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7684         * m4/wcscspn.m4: New file.
7685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7687         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7688         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7689         * doc/posix-functions/wcscspn.texi: Mention the new module.
7690
7691 2011-02-06  Bruno Haible  <bruno@clisp.org>
7692
7693         New module 'wcsrchr'.
7694         * modules/wcsrchr: New file.
7695         * lib/wchar.in.h (wcsrchr): New declaration.
7696         * lib/wcsrchr.c: New file.
7697         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7698         * m4/wcsrchr.m4: New file.
7699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7702         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7703         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7704
7705 2011-02-06  Bruno Haible  <bruno@clisp.org>
7706
7707         New module 'wcschr'.
7708         * modules/wcschr: New file.
7709         * lib/wchar.in.h (wcschr): New declaration.
7710         * lib/wcschr.c: New file.
7711         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7712         * m4/wcschr.m4: New file.
7713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7716         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7717         * doc/posix-functions/wcschr.texi: Mention the new module.
7718
7719 2011-02-06  Bruno Haible  <bruno@clisp.org>
7720
7721         New module 'wcsdup'.
7722         * modules/wcsdup: New file.
7723         * lib/wchar.in.h (wcsdup): New declaration.
7724         * lib/wcsdup.c: New file.
7725         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7726         * m4/wcsdup.m4: New file.
7727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7730         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7731         * doc/posix-functions/wcsdup.texi: Mention the new module.
7732
7733 2011-02-06  Bruno Haible  <bruno@clisp.org>
7734
7735         New module 'wcsxfrm'.
7736         * modules/wcsxfrm: New file.
7737         * lib/wchar.in.h (wcsxfrm): New declaration.
7738         * lib/wcsxfrm.c: New file.
7739         * lib/wcsxfrm-impl.h: New file.
7740         * m4/wcsxfrm.m4: New file.
7741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7744         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7745         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7746
7747 2011-02-06  Bruno Haible  <bruno@clisp.org>
7748
7749         New module 'wcscoll'.
7750         * modules/wcscoll: New file.
7751         * lib/wchar.in.h (wcscoll): New declaration.
7752         * lib/wcscoll.c: New file.
7753         * lib/wcscoll-impl.h: New file.
7754         * m4/wcscoll.m4: New file.
7755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7758         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7759         * doc/posix-functions/wcscoll.texi: Mention the new module.
7760
7761 2011-02-06  Bruno Haible  <bruno@clisp.org>
7762
7763         New module 'wcsncasecmp'.
7764         * modules/wcsncasecmp: New file.
7765         * lib/wchar.in.h (wcsncasecmp): New declaration.
7766         * lib/wcsncasecmp.c: New file.
7767         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7768         * m4/wcsncasecmp.m4: New file.
7769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7772         HAVE_WCSNCASECMP.
7773         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7774         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7775
7776 2011-02-06  Bruno Haible  <bruno@clisp.org>
7777
7778         New module 'wcscasecmp'.
7779         * modules/wcscasecmp: New file.
7780         * lib/wchar.in.h (wcscasecmp): New declaration.
7781         * lib/wcscasecmp.c: New file.
7782         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7783         * m4/wcscasecmp.m4: New file.
7784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7787         HAVE_WCSCASECMP.
7788         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7789         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7790
7791 2011-02-05  Bruno Haible  <bruno@clisp.org>
7792
7793         New module 'wcsncmp'.
7794         * modules/wcsncmp: New file.
7795         * lib/wchar.in.h (wcsncmp): New declaration.
7796         * lib/wcsncmp.c: New file.
7797         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7798         * m4/wcsncmp.m4: New file.
7799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7802         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7803         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7804
7805 2011-02-05  Bruno Haible  <bruno@clisp.org>
7806
7807         New module 'wcscmp'.
7808         * modules/wcscmp: New file.
7809         * lib/wchar.in.h (wcscmp): New declaration.
7810         * lib/wcscmp.c: New file.
7811         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7812         * m4/wcscmp.m4: New file.
7813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7816         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7817         * doc/posix-functions/wcscmp.texi: Mention the new module.
7818
7819 2011-02-05  Bruno Haible  <bruno@clisp.org>
7820
7821         New module 'wcsncat'.
7822         * modules/wcsncat: New file.
7823         * lib/wchar.in.h (wcsncat): New declaration.
7824         * lib/wcsncat.c: New file.
7825         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7826         * m4/wcsncat.m4: New file.
7827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7830         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7831         * doc/posix-functions/wcsncat.texi: Mention the new module.
7832
7833 2011-02-05  Bruno Haible  <bruno@clisp.org>
7834
7835         New module 'wcscat'.
7836         * modules/wcscat: New file.
7837         * lib/wchar.in.h (wcscat): New declaration.
7838         * lib/wcscat.c: New file.
7839         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7840         * m4/wcscat.m4: New file.
7841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7844         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7845         * doc/posix-functions/wcscat.texi: Mention the new module.
7846
7847 2011-02-05  Bruno Haible  <bruno@clisp.org>
7848
7849         New module 'wcpncpy'.
7850         * modules/wcpncpy: New file.
7851         * lib/wchar.in.h (wcpncpy): New declaration.
7852         * lib/wcpncpy.c: New file.
7853         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7854         * m4/wcpncpy.m4: New file.
7855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7857         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7858         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7859         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7860
7861 2011-02-05  Bruno Haible  <bruno@clisp.org>
7862
7863         New module 'wcsncpy'.
7864         * modules/wcsncpy: New file.
7865         * lib/wchar.in.h (wcsncpy): New declaration.
7866         * lib/wcsncpy.c: New file.
7867         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7868         * m4/wcsncpy.m4: New file.
7869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7872         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7873         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7874
7875 2011-02-05  Bruno Haible  <bruno@clisp.org>
7876
7877         New module 'wcpcpy'.
7878         * modules/wcpcpy: New file.
7879         * lib/wchar.in.h (wcpcpy): New declaration.
7880         * lib/wcpcpy.c: New file.
7881         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7882         * m4/wcpcpy.m4: New file.
7883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7885         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7886         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7887         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7888
7889 2011-02-05  Bruno Haible  <bruno@clisp.org>
7890
7891         New module 'wcscpy'.
7892         * modules/wcscpy: New file.
7893         * lib/wchar.in.h (wcscpy): New declaration.
7894         * lib/wcscpy.c: New file.
7895         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7896         * m4/wcscpy.m4: New file.
7897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7900         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7901         * doc/posix-functions/wcscpy.texi: Mention the new module.
7902
7903 2011-02-05  Bruno Haible  <bruno@clisp.org>
7904
7905         New module 'wcsnlen'.
7906         * modules/wcsnlen: New file.
7907         * lib/wchar.in.h (wcsnlen): New declaration.
7908         * lib/wcsnlen.c: New file.
7909         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7910         * m4/wcsnlen.m4: New file.
7911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7914         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7915         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7916
7917 2011-02-05  Bruno Haible  <bruno@clisp.org>
7918
7919         New module 'wcslen'.
7920         * modules/wcslen: New file.
7921         * lib/wchar.in.h (wcslen): New declaration.
7922         * lib/wcslen.c: New file.
7923         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7924         * m4/wcslen.m4: New file.
7925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7928         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7929         * doc/posix-functions/wcslen.texi: Mention the new module.
7930
7931 2011-02-05  Bruno Haible  <bruno@clisp.org>
7932
7933         New module 'wmemset'.
7934         * modules/wmemset: New file.
7935         * lib/wchar.in.h (wmemset): New declaration.
7936         * lib/wmemset.c: New file.
7937         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7938         * m4/wmemset.m4: New file.
7939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7941         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7942         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7943         * doc/posix-functions/wmemset.texi: Mention the new module.
7944
7945 2011-02-05  Bruno Haible  <bruno@clisp.org>
7946
7947         New module 'wmemmove'.
7948         * modules/wmemmove: New file.
7949         * lib/wchar.in.h (wmemmove): New declaration.
7950         * lib/wmemmove.c: New file.
7951         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7952         * m4/wmemmove.m4: New file.
7953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7955         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7956         HAVE_WMEMMOVE.
7957         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7958         * doc/posix-functions/wmemmove.texi: Mention the new module.
7959
7960 2011-02-05  Bruno Haible  <bruno@clisp.org>
7961
7962         New module 'wmemcpy'.
7963         * modules/wmemcpy: New file.
7964         * lib/wchar.in.h (wmemcpy): New declaration.
7965         * lib/wmemcpy.c: New file.
7966         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7967         * m4/wmemcpy.m4: New file.
7968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7970         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7971         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7972         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7973
7974 2011-02-05  Bruno Haible  <bruno@clisp.org>
7975
7976         New module 'wmemcmp'.
7977         * modules/wmemcmp: New file.
7978         * lib/wchar.in.h (wmemcmp): New declaration.
7979         * lib/wmemcmp.c: New file.
7980         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7981         * m4/wmemcmp.m4: New file.
7982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7984         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7985         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7986         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7987
7988 2011-02-07  Jim Meyering  <meyering@redhat.com>
7989
7990         di-set, ino-map: new modules, from coreutils
7991         * lib/di-set.c: New file.
7992         * lib/di-set.h: Likewise.
7993         * lib/ino-map.c: Likewise.
7994         * lib/ino-map.h: Likewise.
7995         * modules/di-set: Likewise.
7996         * modules/di-set-tests: Likewise.
7997         * modules/ino-map: Likewise.
7998         * modules/ino-map-tests: Likewise.
7999         * tests/test-di-set.c: Likewise.
8000         * tests/test-ino-map.c: Likewise.
8001
8002 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8003
8004         getloadavg: merge minor changes from Emacs
8005
8006         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8007         (getloadavg): Use memset, not bzero.
8008
8009         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8010         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8011         clash (bug#86).
8012
8013 2010-11-14  Bruno Haible  <bruno@clisp.org>
8014
8015         Allow multiple gnulib generated replacements to coexist.
8016         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8017         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8018         * lib/langinfo.in.h (nl_item): Likewise.
8019         * lib/math.in.h (_NaN, NAN): Likewise.
8020         * lib/netdb.in.h (struct addrinfo): Likewise.
8021         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8022         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8023         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8024         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8025         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8026         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8027         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8028         pthread_mutexattr_init, pthread_mutexattr_settype,
8029         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8030         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8031         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8032         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8033         * lib/sched.in.h (struct sched_param): Likewise.
8034         * lib/se-selinux.in.h (security_class_t, security_context_t,
8035         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8036         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8037         lsetfilecon, fsetfilecon, security_check_context,
8038         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8039         Likewise.
8040         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8041         Likewise.
8042         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8043         _gl_function_taking_int_returning_void_t, union sigval,
8044         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8045         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8046         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8047         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8048         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8049         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8050         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8051         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8052         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8053         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8054         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8055         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8056         socklen_t, rpl_fd_isset): Likewise.
8057         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8058         * lib/sys_time.in.h (struct timeval): Likewise.
8059         * lib/sys_times.in.h (struct tms): Likewise.
8060         * lib/sys_utsname.in.h (struct utsname):
8061         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8062         * lib/unistd.in.h (getpagesize): Likewise.
8063         * lib/wchar.in.h (mbstate_t): Likewise.
8064         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8065         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8066         towlower, towupper): Likewise.
8067         Reported by Sam Steingold <sds@gnu.org>.
8068
8069 2011-02-05  Eric Blake  <eblake@redhat.com>
8070
8071         unsetenv: work around Haiku issues
8072         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8073         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8074
8075 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8076
8077         libposix: avoid calling error() within libposix
8078         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8079         is defined.
8080
8081 2011-02-05  Eric Blake  <eblake@redhat.com>
8082
8083         strerror_r-posix: port to cygwin
8084         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8085         implementation.
8086         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8087         * tests/test-strerror_r.c (main): Fix test.
8088         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8089         issue.
8090
8091 2011-02-05  Bruno Haible  <bruno@clisp.org>
8092
8093         New module 'wmemchr'.
8094         * modules/wmemchr: New file.
8095         * lib/wchar.in.h (wmemchr): New declaration.
8096         * lib/wmemchr.c: New file.
8097         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8098         * m4/wmemchr.m4: New file.
8099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8101         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8102         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8103         * doc/posix-functions/wmemchr.texi: Mention the new module.
8104
8105 2011-02-04  Eric Blake  <eblake@redhat.com>
8106
8107         fdopendir: detect FreeBSD bug
8108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8109         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8110
8111 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8112
8113         stdbool: do not define HAVE_STDBOOL_H
8114         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8115         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8116         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8117         imported from the latest Autoconf git.  It was motivated by Emacs,
8118         which uses gnulib but does not need HAVE_STDBOOL_H.
8119
8120 2011-02-04  Bruno Haible  <bruno@clisp.org>
8121
8122         wcsnrtombs: Prepare for new module wwcsnrtombs.
8123         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8124         * lib/wcsnrtombs.c: Include it.
8125         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8126
8127         wcsrtombs: Prepare for new module wwcsrtombs.
8128         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8129         * lib/wcsrtombs.c: Include it.
8130         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8131
8132         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8133         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8134         * lib/mbsnrtowcs.c: Include it.
8135         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8136
8137         mbsrtowcs: Prepare for new module mbsrtowwcs.
8138         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8139         * lib/mbsrtowcs.c: Include it.
8140         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8141
8142 2011-02-04  Bruno Haible  <bruno@clisp.org>
8143
8144         vasnprintf: Reduce use of malloc for small format strings.
8145         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8146         (arguments): Add room for the first 7 arguments.
8147         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8148         (char_directives, u8_directives, u16_directives, u32_directives): Add
8149         room for the first 7 directives.
8150         * lib/printf-parse.c: Include <string.h>.
8151         (PRINTF_PARSE): Change memory handling code so that it uses the first
8152         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8153         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8154         Reported by Pádraig Brady <P@draigbrady.com>.
8155
8156 2011-01-31  Eric Blake  <eblake@redhat.com>
8157
8158         dup2: work around Haiku bug
8159         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8160         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8161         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8162         * tests/test-dup2.c (main): Enhance test.
8163
8164 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8165
8166         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8167         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8168         declared by eglibc 2.11.2.
8169         * lib/stdio.in.h: Likewise.
8170
8171 2011-01-31  Eric Blake  <eblake@redhat.com>
8172
8173         ignore-value: add missing test dependency
8174         * tests/test-ignore-value.c: Revert previous change; stdio.h
8175         provides off_t.
8176         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8177
8178 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8179
8180         mktime: clarify long_int width checking
8181         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8182         the top level, to make it clearer that the assumption about
8183         long_int width is being checked.  See
8184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8185
8186 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8187
8188         ignore-value: Fix self-test.
8189         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8190
8191 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8192
8193         TYPE_MAXIMUM: avoid theoretically undefined behavior
8194         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8195         negative number, which the C Standard says has undefined behavior.
8196         In practice this is not a problem, but might as well do it by the book.
8197         Reported by Rich Felker and Eric Blake; see
8198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8199         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8200         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8202         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8203         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8204         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8205
8206         mktime: #undef mktime before #defining it
8207         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8208
8209         mktime: systematically normalize tm_isdst comparisons
8210         * lib/mktime.c (isdst_differ): New function.
8211         (__mktime_internal): Use it systematically for all isdst comparisons.
8212         This completes the fix for libc BZ #6723, and removes the need for
8213         normalizing tm_isdst.  See
8214         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8215         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8216
8217         mktime: fix some integer overflow issues and sidestep the rest
8218
8219         This was prompted by a bug report by Benjamin Lindner for MinGW
8220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8221         His bug is due to signed integer overflow (0 - INT_MIN), and I
8222         I scanned through mktime.c looking for other integer overflow
8223         problems, fixing all the bugs I found.
8224
8225         Although the C Standard says the resulting code is still not safe
8226         in the presence of integer overflow, in practice it should be good
8227         enough for all real-world two's-complement implementations, except
8228         for debugging environments that deliberately trap on integer
8229         overflow (e.g., gcc -ftrapv).
8230
8231         * lib/mktime.c (WRAPV): New macro.
8232         (SHR): Also check that long_int and time_t shift right in the
8233         usual way, before using the fast-but-unportable method.
8234         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8235         used.  The code already assumed two's complement, so there's
8236         no need to test for alternatives.  All uses removed.
8237         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8238         the C standard.  Problem reported by Rich Felker in
8239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8240         (twos_complement_arithmetic): Also check long_int and time_t.
8241         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8242         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8243         (__mktime_internal): Avoid integer overflow with unary subtraction
8244         in two instances where -1 - X is an adequate replacement for -X,
8245         since the calculations are approximate.
8246
8247 2011-01-29  Eric Blake  <eblake@redhat.com>
8248
8249         mktime: avoid infinite loop
8250         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8251         type; behavior is still undefined but portable to all known targets.
8252         Reported by Rich Felker.
8253
8254 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8255
8256         rename, unlink, same-inode: Relicense.
8257         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8258         * modules/unlink (License): Likewise.
8259         * modules/same-inode (License): Likewise.
8260
8261 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8262
8263         mktime: avoid problems on NetBSD 5 / i386
8264         * lib/mktime.c (long_int): New type.  This works around a problem
8265         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8266         but time_t is 64 bits, and where I expect the existing code is
8267         wrong in some cases.
8268         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8269         (ydhms_diff): Bring back the compile-time check for wide-enough
8270         year and yday.
8271
8272         mktime: fix misspelling in comment
8273         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8274         This merges all recent glibc changes of importance.
8275
8276 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8277
8278         move-if-change: cope with concurrent mv of identical file.
8279         * build-aux/move-if-change (CMPPROG): Accept environment
8280         variable as an override for `cmp'.
8281         (usage): Document CMPPROG.
8282         Adjust comparison to drop stdout.  Cope with failure of mv if
8283         the target file exists and is identical to the source, for
8284         parallel builds.
8285         Report from H.J. Lu against binutils in PR binutils/12283.
8286
8287 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8288
8289         * users.txt: Mention sharutils.
8290
8291 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8292
8293         * users.txt: Mention OATH Toolkit.
8294
8295 2011-01-27  Bruno Haible  <bruno@clisp.org>
8296
8297         Prepare for supporting FreeBSD 10.
8298         * build-aux/config.libpath: Remove handling of freebsd1*.
8299
8300 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8301
8302         Prepare for supporting FreeBSD 10.
8303         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8304         match FreeBSD 10.0.
8305
8306 2011-01-27  Bruno Haible  <bruno@clisp.org>
8307
8308         vma-iter, get-rusage-as: Add OpenBSD support.
8309         * modules/vma-iter (configure.ac): Test for mquery.
8310         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8311         * lib/vma-iter.c: Include <sys/mman.h>.
8312         (vma_iterate): Add an implementation based on mquery().
8313         * lib/resource-ext.h (get_rusage_as): Update comments.
8314         * lib/get-rusage-as.c: Likewise.
8315         * lib/get-rusage-data.c: Likewise.
8316
8317 2011-01-26  Karl Berry  <karl@gnu.org>
8318
8319         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8320         variables to make it easier to override the makeinfo program used.
8321
8322 2011-01-26  Eric Blake  <eblake@redhat.com>
8323
8324         fcntl: work around Haiku F_DUPFD bugs
8325         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8326         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8327         cloexec bit on duplication.
8328         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8329
8330 2011-01-26  Bruno Haible  <bruno@clisp.org>
8331
8332         Enable memory leak tests on AIX.
8333         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8334         * tests/test-fprintf-posix3.c (main): Likewise.
8335
8336 2011-01-26  Bruno Haible  <bruno@clisp.org>
8337
8338         Tests for module 'get-rusage-data'.
8339         * modules/get-rusage-data-tests: New file.
8340         * tests/test-get-rusage-data.c: New file.
8341
8342         New module 'get-rusage-data'.
8343         * lib/resource-ext.h (get_rusage_data): New declaration.
8344         * lib/get-rusage-data.c: New file.
8345         * modules/get-rusage-data: New file.
8346
8347 2011-01-25  Bruno Haible  <bruno@clisp.org>
8348
8349         get-rusage-as: Allow for easier testing.
8350         * lib/resource-ext.h (get_rusage_as): Add comment.
8351         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8352         (main): New function for interactive testing.
8353
8354 2011-01-25  Bruno Haible  <bruno@clisp.org>
8355
8356         vma-iter: Treat Haiku like BeOS.
8357         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8358         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8359
8360 2011-01-25  Eric Blake  <eblake@redhat.com>
8361
8362         c-stack: fix regression on cygwin when libsigsegv is present
8363         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8364
8365 2011-01-24  Bruno Haible  <bruno@clisp.org>
8366
8367         vma-iter: Avoid empty intervals.
8368         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8369         on an empty interval.
8370
8371 2011-01-24  Jim Meyering  <meyering@redhat.com>
8372
8373         u64: remove unnecessary #include
8374         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8375
8376 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8377
8378         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8379         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8380
8381 2011-01-23  Bruno Haible  <bruno@clisp.org>
8382
8383         New module 'vma-iter'.
8384         * lib/vma-iter.h: New file.
8385         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8386         * modules/vma-iter: New file.
8387         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8388         for get_rusage_as_via_iterator.
8389         (vma_iterate_callback): New function.
8390         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8391         * modules/get-rusage-as (Depends-on): Add vma-iter.
8392
8393 2011-01-23  Bruno Haible  <bruno@clisp.org>
8394
8395         uninorm: Tweak includes.
8396         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8397         Reported by Jim Meyering.
8398
8399 2011-01-23  Bruno Haible  <bruno@clisp.org>
8400
8401         get-rusage-as: Improve on NetBSD.
8402         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8403         /proc, like on FreeBSD.
8404
8405 2011-01-23  Jim Meyering  <meyering@redhat.com>
8406
8407         xreadlink.h: remove unnecessary #include
8408         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8409
8410         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8411         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8412
8413 2011-01-23  Bruno Haible  <bruno@clisp.org>
8414
8415         get-rusage-as: Fix bug.
8416         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8417         original limit when aborting the first loop.
8418
8419 2011-01-23  Bruno Haible  <bruno@clisp.org>
8420
8421         wctype: Ensure valid C syntax.
8422         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8423         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8424
8425 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8426
8427         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8429         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8430         as they are needed only for configure's test case.
8431         This removes two unnecessary symbols from config.h.
8432
8433         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8434         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8436         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8437         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8438         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8439         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8440         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8441         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8442         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8443         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8447         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8448         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8449         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8450         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8451
8452 2011-01-21  Eric Blake  <eblake@redhat.com>
8453
8454         maintainer-makefile: work with older git for submodule check
8455         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8456         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8457         Reported by Matthias Bolte.
8458
8459         bootstrap: minor portability fixes
8460         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8461         (usage): Omit leading capital and trailing . on help phrases, per
8462         GNU Coding Standards.
8463         (check_versions, top level): Prefix messages with script name.
8464
8465 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8466
8467         bootstrap: support --no-git option
8468         * build-aux/bootstrap: Add --no-git option, to be used when
8469         --gnulib-srcdir points to the exact desired checkout.
8470
8471 2011-01-21  Eric Blake  <eblake@redhat.com>
8472
8473         strerror_r-posix: work with glibc 2.13
8474         * lib/strerror_r.c (strerror_r): Fix return type.
8475
8476 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8477             Bruno Haible  <bruno@clisp.org>
8478
8479         uN_strstr: New unit tests.
8480         * modules/unistr/u8-strstr-tests: New file.
8481         * modules/unistr/u16-strstr-tests: New file.
8482         * modules/unistr/u32-strstr-tests: New file.
8483         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8484         * tests/unistr/test-u8-strstr.c: New file.
8485         * tests/unistr/test-u16-strstr.c: New file.
8486         * tests/unistr/test-u32-strstr.c: New file.
8487
8488 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8489             Bruno Haible  <bruno@clisp.org>
8490
8491         Make uN_strstr functions O(n) worst-case.
8492         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8493         16-bit and 32-bit unit cases, use the unibyte algorithm from
8494         lib/mbsstr.c.
8495         * lib/unistr/u8-strstr.c: Include <string.h>.
8496         (UNIT_IS_UINT8_T): New macro.
8497         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8498         (U_STRLEN, U_STRNLEN): New macros.
8499         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8500         (U_STRLEN, U_STRNLEN): New macros.
8501         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8502         (configure.ac): Update required libunistring version.
8503         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8504         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8505         malloca.
8506         (configure.ac): Update required libunistring version.
8507         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8508         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8509         malloca.
8510         (configure.ac): Update required libunistring version.
8511
8512 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8513             Bruno Haible  <bruno@clisp.org>
8514
8515         Prepare for faster uN_strstr functions.
8516         * lib/str-kmp.h: Support definable UNITs.
8517         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8518         needle_len argument.
8519         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8520         * lib/mbscasestr.c (mbscasestr): Likewise.
8521
8522 2011-01-21  Pádraig Brady <P@draigBrady.com>
8523
8524         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8525         * tests/test-malloca.c (main): Unset the environment variable
8526         to greatly speed up the test.
8527         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8528         * modules/malloca-tests: Depend on unsetenv.
8529
8530 2011-01-21  Pádraig Brady <P@draigBrady.com>
8531
8532         ignore-value: remove stdint dependency
8533         * lib/ignore-value.h: Remove <stdint.h>
8534         * modules/ignore-value: Remove stdint dependency.
8535
8536 2011-01-21  Jim Meyering  <meyering@redhat.com>
8537
8538         maint.mk: adjust variable name to be consistent with other gl_ vars
8539         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8540         to be lower case.
8541
8542 2011-01-20  Jim Meyering  <meyering@redhat.com>
8543
8544         maint.mk: make "check" depend on public-submodule-commit by default
8545         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8546
8547 2011-01-20  Bruno Haible  <bruno@clisp.org>
8548
8549         mbfile, mbiter: Complete change from 2008-12-21.
8550         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8551         * m4/mbiter.m4 (gl_MBITER): Likewise.
8552
8553 2011-01-20  Jim Meyering  <meyering@redhat.com>
8554
8555         init.sh: insert space between each function name and "()"
8556         * tests/init.sh: Make it a little easier to see that a function's
8557         name is "warn_", and not "warn" when looking at the first part of
8558         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8559
8560 2011-01-20  Jim Meyering  <meyering@redhat.com>
8561
8562         mountlist: clean up code formatting
8563         * lib/mountlist.c (read_file_system_list): Split a long line,
8564         correct bracing style, use NULL in place of "(struct statfs *)0",
8565         don't parenthesize return value, add spaces around "=" and after
8566         ";-in-for-stmt".
8567
8568 2011-01-14  Markus Duft <mduft@gentoo.org>
8569
8570         mountlist: add support for Interix
8571         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8572         Apply statvfs to all entries of /dev/fs.
8573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8574         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8575
8576 2011-01-20  Jim Meyering  <meyering@redhat.com>
8577
8578         maint.mk: improve the public-submodule-commit rule
8579         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8580         to suppress printing of its commands... unless V=1.
8581         Add git submodule's --quiet option to suppress printing of e.g.,
8582         "Entering gnulib" output.
8583         "cd" into $(srcdir) before running git submodule.
8584
8585 2011-01-20  Bruno Haible  <bruno@clisp.org>
8586
8587         include_next: Fix bug introduced on 2011-01-18.
8588         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8589         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8590         ac_cv_header_... variable if the second argument is not 'check'.
8591         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8592         gl_NEXT_HEADERS_INTERNAL.
8593
8594 2011-01-20  Bruno Haible  <bruno@clisp.org>
8595
8596         Allow the user to avoid the GNULIB_TEST_* macros.
8597         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8598         Suggested by Paul Eggert.
8599
8600 2011-01-14  Jim Meyering  <meyering@redhat.com>
8601
8602         bootstrap: avoid failure when there is no .gitmodules file
8603         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8604         has been assigned to, even when its value is the empty string.
8605         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8606         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8607         Reported by John W. Eaton <jwe@gnu.org>.
8608
8609 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8610
8611         assume <ctype.h>, ..., <time.h> exist
8612         For years gnulib has been assuming the existence of the headers
8613         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8614         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8615         them, since they don't appear to be needed.
8616         * README (Portability guidelines): Document this.
8617         * lib/flock.c: Assume <fcntl.h> exists.
8618         * lib/regex_internal.h: Assume <locale.h> exists.
8619         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8620         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8621         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8622         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8623         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8624         * m4/regex.m4 (gl_REGEX): Likewise.
8625         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8626         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8627         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8628         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8629         * tests/test-argp.c: Likewise.
8630         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8631
8632         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8633         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8634         AA_APPLE_UNIVERSAL_BUILD.  See
8635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8636         * NEWS: Document this.
8637
8638 2011-01-19  Eric Blake  <eblake@redhat.com>
8639
8640         c-stack: assume stack overflow if SA_SIGINFO unsupported
8641         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8642         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8643         sigaction will work.
8644         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8645         behavior match Linux.
8646         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8647
8648         stdbool-tests: accomodate Haiku
8649         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8650
8651         binary-io: fix O_TEXT on Haiku
8652         * modules/binary-io (Depends-on): Add fcntl-h.
8653         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8654         than blindly undefining O_TEXT.
8655         Reported by Scott McCreary.
8656
8657 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8658
8659         include_next: do not check for standard headers like stddef.h
8660
8661         I found this problem when modifying Emacs to use gnulib.
8662         I noticed that it added HAVE_STDDEF_H to config.h, even though
8663         gnulib always assumes <stddef.h> exists as per README and this
8664         symbol is unnecessary.
8665         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8666         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8667         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8668         faster for headers like stddef.h that are known to exist.
8669         (gl_CHECK_NEXT_HEADERS): Use it.
8670         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8671         rather than gl_CHECK_NEXT_HEADERS.
8672         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8673         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8674
8675 2011-01-18  Eric Blake  <eblake@redhat.com>
8676
8677         ansi-c++-opt: skip C++ dependency style if C++ is unused
8678         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8679         tests when we know C++ compilation is not desired.
8680         Reported by Scott McCreary.
8681
8682 2011-01-18  Bruno Haible  <bruno@clisp.org>
8683
8684         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8685         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8686         (main): Perform test also when getrlimit and setrlimit don't exist or
8687         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8688         limiting the address space size using setrlimit, compare the address
8689         space size before and after the the test.
8690         * tests/test-dprintf-posix2.c: Likewise.
8691         * tests/test-fprintf-posix3.sh: Update skip messages.
8692         * tests/test-dprintf-posix2.sh: Likewise.
8693         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8694         * modules/dprintf-posix-tests (Depends-on): Likewise.
8695         Reported by Bruce Korb <bkorb@gnu.org> and
8696         Gary V. Vaughan <gary@gnu.org>.
8697
8698 2011-01-18  Bruno Haible  <bruno@clisp.org>
8699
8700         get-rusage-as: Improvement for Cygwin.
8701         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8702         areas that are merely reserved.
8703
8704 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8705
8706         strftime: remove dependencies on multibyte modules
8707
8708         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8709         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8710         only if __osf__ is defined, and I suspect OSF doesn't need these
8711         other modules.  If my guess is wrong, we'll need to come up with a
8712         variant of strftime that doesn't need the multibyte modules.
8713
8714         I discovered this problem when attempting modify Emacs to use the
8715         strftime module.  With the previous gnulib, this caused Emacs to
8716         need 31 new files, ranging from lib/config.charset to
8717         m4/wint_t.m4.  This was overkill and I expect would be offputting
8718         to the Emacs maintainers.  After this change, only 6 new files are
8719         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8720         stdbool.m4, and tm_gmtoff.m4.
8721
8722         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8723         Suggested by Bruno Haible in
8724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8725         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8726         and do not check for wchar.h.
8727         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8728         (Depends-on): Remove mbrlen, mbsinit, wchar.
8729
8730 2011-01-18  Bruno Haible  <bruno@clisp.org>
8731
8732         Tests for module 'get-rusage-as'.
8733         * modules/get-rusage-as-tests: New file.
8734         * tests/test-get-rusage-as.c: New file.
8735
8736         New module 'get-rusage-as'.
8737         * modules/get-rusage-as: New file.
8738         * lib/resource-ext.h: New file.
8739         * lib/get-rusage-as.c: New file.
8740
8741 2011-01-17  Eric Blake  <eblake@redhat.com>
8742
8743         sigaction: relax license from LGPLv3+ to LGPLv2+
8744         * modules/sigaction (License): Relax to LGPLv2+.
8745
8746 2011-01-14  Bruno Haible  <bruno@clisp.org>
8747
8748         filemode: Make function declarations usable in C++ mode.
8749         * lib/filemode.h: Enclose function declarations in extern "C" block.
8750         Reported by John W. Eaton <jwe@gnu.org>.
8751
8752 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8753
8754         save-cwd: no longer include "xgetcwd.h"
8755         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8756         This avoids a compilation failure in projects that use save-cwd
8757         without also using the xgetcwd module.
8758
8759 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8762         This is so that a program like Emacs, which needs only dtoastr,
8763         does not have to bother with distributing and compiling ftoastr
8764         and ldtoastr.
8765         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8766         * modules/dtoastr, modules/ldtoastr: New files.
8767         * modules/ftoastr: Now works just for 'float'.
8768         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8769         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8770         dtoastr.c, ldtoastr.c.
8771
8772 2011-01-11  Jim Meyering  <meyering@redhat.com>
8773
8774         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8775         There is no need to work around the lack of the fchdir function,
8776         since gnulib can now provide a replacement when required.
8777         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8778         * modules/save-cwd (Depends-on): Add fchdir.
8779
8780 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8781
8782         openat, save-cwd: avoid xmalloc
8783
8784         This removes a direct (but undocumented) dependency of openat on
8785         xalloc, along with an indirect dependency via save-cwd.  It also
8786         removes a dependency of save-cwd on xgetcwd, and thereby
8787         indirectly on xalloc.  This change causes the openat substitute
8788         to fall back on save_cwd when memory is tight, and for save_cwd to
8789         fail instead of dying when memory is tight, but that's good enough.
8790         Problem and initial idea for fix reported by Bastien Roucaries in
8791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8792
8793         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8794         xalloc.h (for xmalloc).
8795         (openat_proc_name): Use malloc, not xmalloc.
8796         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8797         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8798
8799         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8800         This avoids heap allocation for file names whose lengths are in
8801         the range 512..1023, with the upper bound increasing to at most
8802         4031 depending on the platform's PATH_MAX.  (We do not want
8803         pathmax.h here as it might supply a non-constant PATH_MAX.)
8804         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8805         Perhaps they should be moved to malloca.h?
8806         (OPENAT_BUFFER_SIZE): Use them.
8807
8808 2011-01-10  Bruno Haible  <bruno@clisp.org>
8809
8810         doc: Update users.txt.
8811         * users.txt: Add recutils.
8812
8813 2011-01-09  Karl Berry  <karl@gnu.org>
8814
8815         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8816
8817         * doc/configmake.texi: New file.
8818         * doc/gnulib.texi: Include it.
8819         * modules/configmake: Move documentation from here.
8820
8821 2011-01-09  Bruno Haible  <bruno@clisp.org>
8822
8823         Update to Unicode 6.0.0.
8824         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8825         (get_lbp): Update for Unicode 6.0.0.
8826         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8827         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8828         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8829         U+11001, U+11038..U+11046. Remove U+06DE.
8830         (uc_width): Fix bounds of planes.
8831         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8832         lib/uniwidth/width.c.
8833         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8834         trailing whitespace removed.
8835         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8836         without comments, but with the original copyright notice.
8837         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8838         * lib/unicase/ignorable.h: Likewise.
8839         * lib/unicase/tocasefold.h: Likewise.
8840         * lib/unicase/tolower.h: Likewise.
8841         * lib/unicase/totitle.h: Likewise.
8842         * lib/unicase/toupper.h: Likewise.
8843         * lib/unictype/bidi_of.h: Likewise.
8844         * lib/unictype/blocks.h: Likewise.
8845         * lib/unictype/categ_C.h: Likewise.
8846         * lib/unictype/categ_Cn.h: Likewise.
8847         * lib/unictype/categ_L.h: Likewise.
8848         * lib/unictype/categ_Ll.h: Likewise.
8849         * lib/unictype/categ_Lm.h: Likewise.
8850         * lib/unictype/categ_Lo.h: Likewise.
8851         * lib/unictype/categ_Lu.h: Likewise.
8852         * lib/unictype/categ_M.h: Likewise.
8853         * lib/unictype/categ_Mc.h: Likewise.
8854         * lib/unictype/categ_Me.h: Likewise.
8855         * lib/unictype/categ_Mn.h: Likewise.
8856         * lib/unictype/categ_N.h: Likewise.
8857         * lib/unictype/categ_Nd.h: Likewise.
8858         * lib/unictype/categ_No.h: Likewise.
8859         * lib/unictype/categ_P.h: Likewise.
8860         * lib/unictype/categ_Po.h: Likewise.
8861         * lib/unictype/categ_S.h: Likewise.
8862         * lib/unictype/categ_Sc.h: Likewise.
8863         * lib/unictype/categ_Sk.h: Likewise.
8864         * lib/unictype/categ_Sm.h: Likewise.
8865         * lib/unictype/categ_So.h: Likewise.
8866         * lib/unictype/categ_of.h: Likewise.
8867         * lib/unictype/combining.h: Likewise.
8868         * lib/unictype/ctype_alnum.h: Likewise.
8869         * lib/unictype/ctype_alpha.h: Likewise.
8870         * lib/unictype/ctype_graph.h: Likewise.
8871         * lib/unictype/ctype_lower.h: Likewise.
8872         * lib/unictype/ctype_print.h: Likewise.
8873         * lib/unictype/ctype_punct.h: Likewise.
8874         * lib/unictype/ctype_upper.h: Likewise.
8875         * lib/unictype/decdigit.h: Likewise.
8876         * lib/unictype/digit.h: Likewise.
8877         * lib/unictype/numeric.h: Likewise.
8878         * lib/unictype/pr_alphabetic.h: Likewise.
8879         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8880         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8881         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8882         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8883         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8884         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8885         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8886         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8887         * lib/unictype/pr_case_ignorable.h: Likewise.
8888         * lib/unictype/pr_cased.h: Likewise.
8889         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8890         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8891         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8892         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8893         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8894         * lib/unictype/pr_combining.h: Likewise.
8895         * lib/unictype/pr_composite.h: Likewise.
8896         * lib/unictype/pr_currency_symbol.h: Likewise.
8897         * lib/unictype/pr_decimal_digit.h: Likewise.
8898         * lib/unictype/pr_deprecated.h: Likewise.
8899         * lib/unictype/pr_format_control.h: Likewise.
8900         * lib/unictype/pr_grapheme_base.h: Likewise.
8901         * lib/unictype/pr_grapheme_extend.h: Likewise.
8902         * lib/unictype/pr_grapheme_link.h: Likewise.
8903         * lib/unictype/pr_id_continue.h: Likewise.
8904         * lib/unictype/pr_id_start.h: Likewise.
8905         * lib/unictype/pr_ideographic.h: Likewise.
8906         * lib/unictype/pr_lowercase.h: Likewise.
8907         * lib/unictype/pr_math.h: Likewise.
8908         * lib/unictype/pr_numeric.h: Likewise.
8909         * lib/unictype/pr_other_alphabetic.h: Likewise.
8910         * lib/unictype/pr_other_id_continue.h: Likewise.
8911         * lib/unictype/pr_other_math.h: Likewise.
8912         * lib/unictype/pr_punctuation.h: Likewise.
8913         * lib/unictype/pr_sentence_terminal.h: Likewise.
8914         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8915         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8916         * lib/unictype/pr_unified_ideograph.h: Likewise.
8917         * lib/unictype/pr_uppercase.h: Likewise.
8918         * lib/unictype/pr_xid_continue.h: Likewise.
8919         * lib/unictype/pr_xid_start.h: Likewise.
8920         * lib/unictype/scripts.h: Likewise.
8921         * lib/unictype/scripts_byname.gperf: Likewise.
8922         * lib/unictype/sy_java_ident.h: Likewise.
8923         * lib/unigbrk/gbrkprop.h: Likewise.
8924         * lib/unilbrk/lbrkprop1.h: Likewise.
8925         * lib/unilbrk/lbrkprop2.h: Likewise.
8926         * lib/uninorm/decomposition-table2.h: Likewise.
8927         * lib/uniwbrk/wbrkprop.h: Likewise.
8928         * tests/unicase/test-cased.c: Likewise.
8929         * tests/unicase/test-ignorable.c: Likewise.
8930         * tests/unicase/test-uc_tolower.c: Likewise.
8931         * tests/unicase/test-uc_totitle.c: Likewise.
8932         * tests/unicase/test-uc_toupper.c: Likewise.
8933         * tests/unictype/test-categ_C.c: Likewise.
8934         * tests/unictype/test-categ_Cn.c: Likewise.
8935         * tests/unictype/test-categ_L.c: Likewise.
8936         * tests/unictype/test-categ_Ll.c: Likewise.
8937         * tests/unictype/test-categ_Lm.c: Likewise.
8938         * tests/unictype/test-categ_Lo.c: Likewise.
8939         * tests/unictype/test-categ_Lu.c: Likewise.
8940         * tests/unictype/test-categ_M.c: Likewise.
8941         * tests/unictype/test-categ_Mc.c: Likewise.
8942         * tests/unictype/test-categ_Me.c: Likewise.
8943         * tests/unictype/test-categ_Mn.c: Likewise.
8944         * tests/unictype/test-categ_N.c: Likewise.
8945         * tests/unictype/test-categ_Nd.c: Likewise.
8946         * tests/unictype/test-categ_No.c: Likewise.
8947         * tests/unictype/test-categ_P.c: Likewise.
8948         * tests/unictype/test-categ_Po.c: Likewise.
8949         * tests/unictype/test-categ_S.c: Likewise.
8950         * tests/unictype/test-categ_Sc.c: Likewise.
8951         * tests/unictype/test-categ_Sk.c: Likewise.
8952         * tests/unictype/test-categ_Sm.c: Likewise.
8953         * tests/unictype/test-categ_So.c: Likewise.
8954         * tests/unictype/test-ctype_alnum.c: Likewise.
8955         * tests/unictype/test-ctype_alpha.c: Likewise.
8956         * tests/unictype/test-ctype_graph.c: Likewise.
8957         * tests/unictype/test-ctype_lower.c: Likewise.
8958         * tests/unictype/test-ctype_print.c: Likewise.
8959         * tests/unictype/test-ctype_punct.c: Likewise.
8960         * tests/unictype/test-ctype_upper.c: Likewise.
8961         * tests/unictype/test-decdigit.h: Likewise.
8962         * tests/unictype/test-digit.h: Likewise.
8963         * tests/unictype/test-numeric.h: Likewise.
8964         * tests/unictype/test-pr_alphabetic.c: Likewise.
8965         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8966         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8967         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8968         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8969         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8970         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8971         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8972         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8973         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8974         * tests/unictype/test-pr_cased.c: Likewise.
8975         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8976         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8977         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8978         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8979         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8980         * tests/unictype/test-pr_combining.c: Likewise.
8981         * tests/unictype/test-pr_composite.c: Likewise.
8982         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8983         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8984         * tests/unictype/test-pr_deprecated.c: Likewise.
8985         * tests/unictype/test-pr_format_control.c: Likewise.
8986         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8987         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8988         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8989         * tests/unictype/test-pr_id_continue.c: Likewise.
8990         * tests/unictype/test-pr_id_start.c: Likewise.
8991         * tests/unictype/test-pr_ideographic.c: Likewise.
8992         * tests/unictype/test-pr_lowercase.c: Likewise.
8993         * tests/unictype/test-pr_math.c: Likewise.
8994         * tests/unictype/test-pr_numeric.c: Likewise.
8995         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8996         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8997         * tests/unictype/test-pr_other_math.c: Likewise.
8998         * tests/unictype/test-pr_punctuation.c: Likewise.
8999         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9000         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9001         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9002         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9003         * tests/unictype/test-pr_uppercase.c: Likewise.
9004         * tests/unictype/test-pr_xid_continue.c: Likewise.
9005         * tests/unictype/test-pr_xid_start.c: Likewise.
9006         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9007         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9008         changes.
9009         * lib/unictype/categ_Cc.h: Likewise.
9010         * lib/unictype/categ_Cf.h: Likewise.
9011         * lib/unictype/categ_Co.h: Likewise.
9012         * lib/unictype/categ_Cs.h: Likewise.
9013         * lib/unictype/categ_Lt.h: Likewise.
9014         * lib/unictype/categ_Nl.h: Likewise.
9015         * lib/unictype/categ_Pc.h: Likewise.
9016         * lib/unictype/categ_Pd.h: Likewise.
9017         * lib/unictype/categ_Pe.h: Likewise.
9018         * lib/unictype/categ_Pf.h: Likewise.
9019         * lib/unictype/categ_Pi.h: Likewise.
9020         * lib/unictype/categ_Ps.h: Likewise.
9021         * lib/unictype/categ_Z.h: Likewise.
9022         * lib/unictype/categ_Zl.h: Likewise.
9023         * lib/unictype/categ_Zp.h: Likewise.
9024         * lib/unictype/categ_Zs.h: Likewise.
9025         * lib/unictype/ctype_blank.h: Likewise.
9026         * lib/unictype/ctype_cntrl.h: Likewise.
9027         * lib/unictype/ctype_digit.h: Likewise.
9028         * lib/unictype/ctype_space.h: Likewise.
9029         * lib/unictype/ctype_xdigit.h: Likewise.
9030         * lib/unictype/mirror.h: Likewise.
9031         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9032         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9033         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9034         * lib/unictype/pr_bidi_control.h: Likewise.
9035         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9036         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9037         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9038         * lib/unictype/pr_bidi_pdf.h: Likewise.
9039         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9040         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9041         * lib/unictype/pr_dash.h: Likewise.
9042         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9043         * lib/unictype/pr_diacritic.h: Likewise.
9044         * lib/unictype/pr_extender.h: Likewise.
9045         * lib/unictype/pr_hex_digit.h: Likewise.
9046         * lib/unictype/pr_hyphen.h: Likewise.
9047         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9048         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9049         * lib/unictype/pr_ignorable_control.h: Likewise.
9050         * lib/unictype/pr_iso_control.h: Likewise.
9051         * lib/unictype/pr_join_control.h: Likewise.
9052         * lib/unictype/pr_left_of_pair.h: Likewise.
9053         * lib/unictype/pr_line_separator.h: Likewise.
9054         * lib/unictype/pr_logical_order_exception.h: Likewise.
9055         * lib/unictype/pr_non_break.h: Likewise.
9056         * lib/unictype/pr_not_a_character.h: Likewise.
9057         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9058         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9059         * lib/unictype/pr_other_id_start.h: Likewise.
9060         * lib/unictype/pr_other_lowercase.h: Likewise.
9061         * lib/unictype/pr_other_uppercase.h: Likewise.
9062         * lib/unictype/pr_paired_punctuation.h: Likewise.
9063         * lib/unictype/pr_paragraph_separator.h: Likewise.
9064         * lib/unictype/pr_pattern_syntax.h: Likewise.
9065         * lib/unictype/pr_pattern_white_space.h: Likewise.
9066         * lib/unictype/pr_private_use.h: Likewise.
9067         * lib/unictype/pr_quotation_mark.h: Likewise.
9068         * lib/unictype/pr_radical.h: Likewise.
9069         * lib/unictype/pr_soft_dotted.h: Likewise.
9070         * lib/unictype/pr_space.h: Likewise.
9071         * lib/unictype/pr_titlecase.h: Likewise.
9072         * lib/unictype/pr_variation_selector.h: Likewise.
9073         * lib/unictype/pr_white_space.h: Likewise.
9074         * lib/unictype/pr_zero_width.h: Likewise.
9075         * lib/unictype/sy_c_ident.h: Likewise.
9076         * lib/unictype/sy_c_whitespace.h: Likewise.
9077         * lib/unictype/sy_java_whitespace.h: Likewise.
9078         * lib/uninorm/composition-table.gperf: Likewise.
9079         * lib/uninorm/decomposition-table1.h: Likewise.
9080         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9081         LB8.
9082         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9083         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9084         * modules/unictype/*: Bump version number of expected libunistring
9085         version.
9086
9087 2011-01-09  Bruno Haible  <bruno@clisp.org>
9088
9089         Update to Unicode 5.2.0.
9090         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9091         trailing whitespace removed.
9092
9093 2011-01-09  Bruno Haible  <bruno@clisp.org>
9094
9095         New Unicode character properties, from Unicode 5.2.0.
9096         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9097         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9098         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9099         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9100         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9101         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9102         uc_is_property_cased, uc_is_property_case_ignorable,
9103         uc_is_property_changes_when_lowercased,
9104         uc_is_property_changes_when_uppercased,
9105         uc_is_property_changes_when_titlecased,
9106         uc_is_property_changes_when_casefolded,
9107         uc_is_property_changes_when_casemapped): New declarations.
9108         * lib/unictype/pr_byname.gperf: Add the new properties.
9109         * modules/unictype/property-byname (Depends-on): Depend on the new
9110         properties modules.
9111         * modules/unictype/property-all (Depends-on): Likewise.
9112         * MODULES.html.sh (Unicode string functions): Add
9113         unictype/property-case-ignorable, unictype/property-cased,
9114         unictype/property-changes-when-casefolded,
9115         unictype/property-changes-when-casemapped,
9116         unictype/property-changes-when-lowercased,
9117         unictype/property-changes-when-titlecased,
9118         unictype/property-changes-when-uppercased.
9119
9120         New module 'unictype/property-changes-when-casemapped'.
9121         * modules/unictype/property-changes-when-casemapped: New file.
9122         * lib/unictype/pr_changes_when_casemapped.c: New file.
9123         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9124         generated by gen-uni-tables.
9125         * modules/unictype/property-changes-when-casemapped-tests: New file.
9126         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9127         automatically generated by gen-uni-tables.
9128
9129         New module 'unictype/property-changes-when-casefolded'.
9130         * modules/unictype/property-changes-when-casefolded: New file.
9131         * lib/unictype/pr_changes_when_casefolded.c: New file.
9132         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9133         generated by gen-uni-tables.
9134         * modules/unictype/property-changes-when-casefolded-tests: New file.
9135         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9136         automatically generated by gen-uni-tables.
9137
9138         New module 'unictype/property-changes-when-titlecased'.
9139         * modules/unictype/property-changes-when-titlecased: New file.
9140         * lib/unictype/pr_changes_when_titlecased.c: New file.
9141         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9142         generated by gen-uni-tables.
9143         * modules/unictype/property-changes-when-titlecased-tests: New file.
9144         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9145         automatically generated by gen-uni-tables.
9146
9147         New module 'unictype/property-changes-when-uppercased'.
9148         * modules/unictype/property-changes-when-uppercased: New file.
9149         * lib/unictype/pr_changes_when_uppercased.c: New file.
9150         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9151         generated by gen-uni-tables.
9152         * modules/unictype/property-changes-when-uppercased-tests: New file.
9153         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9154         automatically generated by gen-uni-tables.
9155
9156         New module 'unictype/property-changes-when-lowercased'.
9157         * modules/unictype/property-changes-when-lowercased: New file.
9158         * lib/unictype/pr_changes_when_lowercased.c: New file.
9159         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9160         generated by gen-uni-tables.
9161         * modules/unictype/property-changes-when-lowercased-tests: New file.
9162         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9163         automatically generated by gen-uni-tables.
9164
9165         New module 'unictype/property-case-ignorable'.
9166         * modules/unictype/property-case-ignorable: New file.
9167         * lib/unictype/pr_case_ignorable.c: New file.
9168         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9169         by gen-uni-tables.
9170         * modules/unictype/property-case-ignorable-tests: New file.
9171         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9172         generated by gen-uni-tables.
9173
9174         New module 'unictype/property-cased'.
9175         * modules/unictype/property-cased: New file.
9176         * lib/unictype/pr_cased.c: New file.
9177         * lib/unictype/pr_cased.h: New file, automatically generated by
9178         gen-uni-tables.
9179         * modules/unictype/property-cased-tests: New file.
9180         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9181         gen-uni-tables.
9182
9183 2011-01-09  Bruno Haible  <bruno@clisp.org>
9184
9185         Update to Unicode 5.2.0.
9186         * lib/gen-uni-tables.c (output_predicate, output_category,
9187         output_combclass, output_bidi_category, output_decimal_digit_test,
9188         output_decimal_digit, output_digit_test, output_digit,
9189         output_numeric_test, output_numeric, output_mirror, output_scripts,
9190         output_scripts_byname, output_blocks, output_ident_category): Fix
9191         comment header.
9192         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9193         get_wbp.
9194         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9195         items.
9196         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9197         Changes_When_Lowercased, Changes_When_Uppercased,
9198         Changes_When_Titlecased, Changes_When_Casefolded,
9199         Changes_When_Casemapped.
9200         (is_property_alphabetic, is_property_default_ignorable_code_point):
9201         Update for Unicode 5.2.0.
9202         (is_property_cased, is_property_case_ignorable,
9203         is_property_changes_when_lowercased,
9204         is_property_changes_when_uppercased,
9205         is_property_changes_when_titlecased,
9206         is_property_changes_when_casefolded,
9207         is_property_changes_when_casemapped): New functions.
9208         (output_properties): Output also the properties cased, case_ignorable,
9209         changes_when_lowercased, changes_when_uppercased,
9210         changes_when_titlecased, changes_when_casefolded,
9211         changes_when_casemapped.
9212         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9213         Unicode TR#11 revision 17 -> 19.
9214         (LBP_CP): New enumeration value.
9215         (LBP_*): Adjust values accordingly.
9216         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9217         TR#14 revision 22 -> 24.
9218         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9219         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9220         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9221         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9222         is_WBP_MIDLETTER.
9223         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9224         the code1 and code2 of each composition rule.
9225         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9226         * lib/unicase/ignorable.h: Likewise.
9227         * lib/unicase/tocasefold.h: Likewise.
9228         * lib/unicase/tolower.h: Likewise.
9229         * lib/unicase/totitle.h: Likewise.
9230         * lib/unicase/toupper.h: Likewise.
9231         * lib/unictype/bidi_of.h: Likewise.
9232         * lib/unictype/blocks.h: Likewise.
9233         * lib/unictype/categ_C.h: Likewise.
9234         * lib/unictype/categ_Cf.h: Likewise.
9235         * lib/unictype/categ_Cn.h: Likewise.
9236         * lib/unictype/categ_L.h: Likewise.
9237         * lib/unictype/categ_Ll.h: Likewise.
9238         * lib/unictype/categ_Lm.h: Likewise.
9239         * lib/unictype/categ_Lo.h: Likewise.
9240         * lib/unictype/categ_Lu.h: Likewise.
9241         * lib/unictype/categ_M.h: Likewise.
9242         * lib/unictype/categ_Mc.h: Likewise.
9243         * lib/unictype/categ_Mn.h: Likewise.
9244         * lib/unictype/categ_N.h: Likewise.
9245         * lib/unictype/categ_Nd.h: Likewise.
9246         * lib/unictype/categ_Nl.h: Likewise.
9247         * lib/unictype/categ_No.h: Likewise.
9248         * lib/unictype/categ_P.h: Likewise.
9249         * lib/unictype/categ_Pd.h: Likewise.
9250         * lib/unictype/categ_Po.h: Likewise.
9251         * lib/unictype/categ_S.h: Likewise.
9252         * lib/unictype/categ_Sc.h: Likewise.
9253         * lib/unictype/categ_So.h: Likewise.
9254         * lib/unictype/categ_of.h: Likewise.
9255         * lib/unictype/combining.h: Likewise.
9256         * lib/unictype/ctype_alnum.h: Likewise.
9257         * lib/unictype/ctype_alpha.h: Likewise.
9258         * lib/unictype/ctype_graph.h: Likewise.
9259         * lib/unictype/ctype_lower.h: Likewise.
9260         * lib/unictype/ctype_print.h: Likewise.
9261         * lib/unictype/ctype_punct.h: Likewise.
9262         * lib/unictype/ctype_upper.h: Likewise.
9263         * lib/unictype/decdigit.h: Likewise.
9264         * lib/unictype/digit.h: Likewise.
9265         * lib/unictype/numeric.h: Likewise.
9266         * lib/unictype/pr_alphabetic.h: Likewise.
9267         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9268         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9269         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9270         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9271         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9272         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9273         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9274         * lib/unictype/pr_combining.h: Likewise.
9275         * lib/unictype/pr_composite.h: Likewise.
9276         * lib/unictype/pr_currency_symbol.h: Likewise.
9277         * lib/unictype/pr_dash.h: Likewise.
9278         * lib/unictype/pr_decimal_digit.h: Likewise.
9279         * lib/unictype/pr_deprecated.h: Likewise.
9280         * lib/unictype/pr_diacritic.h: Likewise.
9281         * lib/unictype/pr_extender.h: Likewise.
9282         * lib/unictype/pr_grapheme_base.h: Likewise.
9283         * lib/unictype/pr_grapheme_extend.h: Likewise.
9284         * lib/unictype/pr_grapheme_link.h: Likewise.
9285         * lib/unictype/pr_id_continue.h: Likewise.
9286         * lib/unictype/pr_id_start.h: Likewise.
9287         * lib/unictype/pr_ideographic.h: Likewise.
9288         * lib/unictype/pr_ignorable_control.h: Likewise.
9289         * lib/unictype/pr_logical_order_exception.h: Likewise.
9290         * lib/unictype/pr_lowercase.h: Likewise.
9291         * lib/unictype/pr_numeric.h: Likewise.
9292         * lib/unictype/pr_other_alphabetic.h: Likewise.
9293         * lib/unictype/pr_punctuation.h: Likewise.
9294         * lib/unictype/pr_sentence_terminal.h: Likewise.
9295         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9296         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9297         * lib/unictype/pr_unified_ideograph.h: Likewise.
9298         * lib/unictype/pr_uppercase.h: Likewise.
9299         * lib/unictype/pr_xid_continue.h: Likewise.
9300         * lib/unictype/pr_xid_start.h: Likewise.
9301         * lib/unictype/pr_zero_width.h: Likewise.
9302         * lib/unictype/scripts.h: Likewise.
9303         * lib/unictype/scripts_byname.gperf: Likewise.
9304         * lib/unictype/sy_java_ident.h: Likewise.
9305         * lib/unigbrk/gbrkprop.h: Likewise.
9306         * lib/unilbrk/lbrkprop1.h: Likewise.
9307         * lib/unilbrk/lbrkprop2.h: Likewise.
9308         * lib/unilbrk/lbrktables.h: Likewise.
9309         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9310         LBP_CP. Implement rule LB30.
9311         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9312         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9313         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9314         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9315         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9316         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9317         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9318         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9319         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9320         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9321         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9322         bits instead of 16 bits in the code1 and code2 of each composition
9323         rule.
9324         (uc_composition): Update for Unicode 5.2.0.
9325         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9326         * lib/uninorm/decomposition-table2.h: Likewise.
9327         * lib/uniwbrk/wbrkprop.h: Likewise.
9328         * tests/unicase/test-cased.c: Likewise.
9329         * tests/unicase/test-ignorable.c: Likewise.
9330         * tests/unicase/test-uc_tolower.c: Likewise.
9331         * tests/unicase/test-uc_totitle.c: Likewise.
9332         * tests/unicase/test-uc_toupper.c: Likewise.
9333         * tests/unictype/test-categ_C.c: Likewise.
9334         * tests/unictype/test-categ_Cf.c: Likewise.
9335         * tests/unictype/test-categ_Cn.c: Likewise.
9336         * tests/unictype/test-categ_L.c: Likewise.
9337         * tests/unictype/test-categ_Ll.c: Likewise.
9338         * tests/unictype/test-categ_Lm.c: Likewise.
9339         * tests/unictype/test-categ_Lo.c: Likewise.
9340         * tests/unictype/test-categ_Lu.c: Likewise.
9341         * tests/unictype/test-categ_M.c: Likewise.
9342         * tests/unictype/test-categ_Mc.c: Likewise.
9343         * tests/unictype/test-categ_Mn.c: Likewise.
9344         * tests/unictype/test-categ_N.c: Likewise.
9345         * tests/unictype/test-categ_Nd.c: Likewise.
9346         * tests/unictype/test-categ_Nl.c: Likewise.
9347         * tests/unictype/test-categ_No.c: Likewise.
9348         * tests/unictype/test-categ_P.c: Likewise.
9349         * tests/unictype/test-categ_Pd.c: Likewise.
9350         * tests/unictype/test-categ_Po.c: Likewise.
9351         * tests/unictype/test-categ_S.c: Likewise.
9352         * tests/unictype/test-categ_Sc.c: Likewise.
9353         * tests/unictype/test-categ_So.c: Likewise.
9354         * tests/unictype/test-ctype_alnum.c: Likewise.
9355         * tests/unictype/test-ctype_alpha.c: Likewise.
9356         * tests/unictype/test-ctype_graph.c: Likewise.
9357         * tests/unictype/test-ctype_lower.c: Likewise.
9358         * tests/unictype/test-ctype_print.c: Likewise.
9359         * tests/unictype/test-ctype_punct.c: Likewise.
9360         * tests/unictype/test-ctype_upper.c: Likewise.
9361         * tests/unictype/test-decdigit.h: Likewise.
9362         * tests/unictype/test-digit.h: Likewise.
9363         * tests/unictype/test-numeric.h: Likewise.
9364         * tests/unictype/test-pr_alphabetic.c: Likewise.
9365         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9366         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9367         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9368         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9369         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9370         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9371         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9372         * tests/unictype/test-pr_combining.c: Likewise.
9373         * tests/unictype/test-pr_composite.c: Likewise.
9374         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9375         * tests/unictype/test-pr_dash.c: Likewise.
9376         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9377         * tests/unictype/test-pr_deprecated.c: Likewise.
9378         * tests/unictype/test-pr_diacritic.c: Likewise.
9379         * tests/unictype/test-pr_extender.c: Likewise.
9380         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9381         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9382         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9383         * tests/unictype/test-pr_id_continue.c: Likewise.
9384         * tests/unictype/test-pr_id_start.c: Likewise.
9385         * tests/unictype/test-pr_ideographic.c: Likewise.
9386         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9387         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9388         * tests/unictype/test-pr_lowercase.c: Likewise.
9389         * tests/unictype/test-pr_numeric.c: Likewise.
9390         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9391         * tests/unictype/test-pr_punctuation.c: Likewise.
9392         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9393         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9394         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9395         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9396         * tests/unictype/test-pr_uppercase.c: Likewise.
9397         * tests/unictype/test-pr_xid_continue.c: Likewise.
9398         * tests/unictype/test-pr_xid_start.c: Likewise.
9399         * tests/unictype/test-pr_zero_width.c: Likewise.
9400         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9401         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9402         changed behaviour: line breaking is now disallowed between a letter
9403         or '=' and '('.
9404         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9405         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9406         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9407         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9408         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9409         lib/uniwidth/width.c.
9410         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9411         without comments, but with the original copyright notice.
9412         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9413         changes.
9414         * lib/unictype/categ_Cc.h: Likewise.
9415         * lib/unictype/categ_Co.h: Likewise.
9416         * lib/unictype/categ_Cs.h: Likewise.
9417         * lib/unictype/categ_Lt.h: Likewise.
9418         * lib/unictype/categ_Me.h: Likewise.
9419         * lib/unictype/categ_Pc.h: Likewise.
9420         * lib/unictype/categ_Pe.h: Likewise.
9421         * lib/unictype/categ_Pf.h: Likewise.
9422         * lib/unictype/categ_Pi.h: Likewise.
9423         * lib/unictype/categ_Ps.h: Likewise.
9424         * lib/unictype/categ_Sk.h: Likewise.
9425         * lib/unictype/categ_Sm.h: Likewise.
9426         * lib/unictype/categ_Z.h: Likewise.
9427         * lib/unictype/categ_Zl.h: Likewise.
9428         * lib/unictype/categ_Zp.h: Likewise.
9429         * lib/unictype/categ_Zs.h: Likewise.
9430         * lib/unictype/ctype_blank.h: Likewise.
9431         * lib/unictype/ctype_cntrl.h: Likewise.
9432         * lib/unictype/ctype_digit.h: Likewise.
9433         * lib/unictype/ctype_space.h: Likewise.
9434         * lib/unictype/ctype_xdigit.h: Likewise.
9435         * lib/unictype/mirror.h: Likewise.
9436         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9437         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9438         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9439         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9440         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9441         * lib/unictype/pr_bidi_control.h: Likewise.
9442         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9443         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9444         * lib/unictype/pr_bidi_pdf.h: Likewise.
9445         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9446         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9447         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9448         * lib/unictype/pr_format_control.h: Likewise.
9449         * lib/unictype/pr_hex_digit.h: Likewise.
9450         * lib/unictype/pr_hyphen.h: Likewise.
9451         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9452         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9453         * lib/unictype/pr_iso_control.h: Likewise.
9454         * lib/unictype/pr_join_control.h: Likewise.
9455         * lib/unictype/pr_left_of_pair.h: Likewise.
9456         * lib/unictype/pr_line_separator.h: Likewise.
9457         * lib/unictype/pr_math.h: Likewise.
9458         * lib/unictype/pr_non_break.h: Likewise.
9459         * lib/unictype/pr_not_a_character.h: Likewise.
9460         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9461         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9462         * lib/unictype/pr_other_id_continue.h: Likewise.
9463         * lib/unictype/pr_other_id_start.h: Likewise.
9464         * lib/unictype/pr_other_lowercase.h: Likewise.
9465         * lib/unictype/pr_other_math.h: Likewise.
9466         * lib/unictype/pr_other_uppercase.h: Likewise.
9467         * lib/unictype/pr_paired_punctuation.h: Likewise.
9468         * lib/unictype/pr_paragraph_separator.h: Likewise.
9469         * lib/unictype/pr_pattern_syntax.h: Likewise.
9470         * lib/unictype/pr_pattern_white_space.h: Likewise.
9471         * lib/unictype/pr_private_use.h: Likewise.
9472         * lib/unictype/pr_quotation_mark.h: Likewise.
9473         * lib/unictype/pr_radical.h: Likewise.
9474         * lib/unictype/pr_soft_dotted.h: Likewise.
9475         * lib/unictype/pr_space.h: Likewise.
9476         * lib/unictype/pr_titlecase.h: Likewise.
9477         * lib/unictype/pr_variation_selector.h: Likewise.
9478         * lib/unictype/pr_white_space.h: Likewise.
9479         * lib/unictype/sy_c_ident.h: Likewise.
9480         * lib/unictype/sy_c_whitespace.h: Likewise.
9481         * lib/unictype/sy_java_whitespace.h: Likewise.
9482         * modules/uni*/*: Bump version number of expected libunistring version.
9483         Reported by Simon Josefsson.
9484
9485 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9486
9487         useless-if-before-free: fix typo in --help and make the internal,
9488         automatic version date update process work once again.
9489         --help output contained a NUL character instead of the
9490         backslash-zero that was intended.  Also, the "must lie within
9491         the first 8 lines" line is on line 9, and hence not getting
9492         automatically updated.
9493         * build-aux/useless-if-before-free: Fix the former by adding a
9494         backslash, and the latter by condensing the three lines of what-it-does
9495         to a single line, leaving one line of slack for the future.
9496
9497 2011-01-09  Bruno Haible  <bruno@clisp.org>
9498
9499         uniwidth/width: Fix width of U+1D173..U+1D17A.
9500         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9501         symbolic_width, output_width_property_test): New functions.
9502         (main): Invoke output_nonspacing_property, output_width_property_test.
9503         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9504         U+1D173..U+1D17A.
9505         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9506         1.
9507         * modules/uniwidth/*: Bump version number of expected libunistring
9508         version.
9509         * modules/unilbrk/*: Likewise.
9510
9511 2011-01-08  Bruno Haible  <bruno@clisp.org>
9512
9513         uninorm tests: Preserve copyright of Unicode data file.
9514         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9515         Mention modifications.
9516
9517 2011-01-08  Bruno Haible  <bruno@clisp.org>
9518
9519         gen-uni-tables: Prepare for Unicode 5.2.0.
9520         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9521         (debug_output_lbp, output_lbp): Update.
9522
9523 2011-01-08  Bruno Haible  <bruno@clisp.org>
9524
9525         unilbrk: Clarify gen-uni-tables.c code.
9526         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9527         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9528         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9529
9530 2011-01-07  Bruno Haible  <bruno@clisp.org>
9531
9532         strtod: Restore errno when successfully parsing Infinity or NaN.
9533         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9534         restore the original errno.
9535
9536 2011-01-07  Bruno Haible  <bruno@clisp.org>
9537
9538         remove test: Avoid failure on HP-UX 11.
9539         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9540
9541 2011-01-07  Bruno Haible  <bruno@clisp.org>
9542
9543         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9544         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9545         error code.
9546
9547 2011-01-07  Pádraig Brady <P@draigBrady.com>
9548
9549         ignore-value: fixup comments, and add Eric Blake
9550         as an author since he rewrote the macros.
9551         * lib/ignore-value.h (ignore_value):  State that
9552         we now support aggregates.  Also specify exactly
9553         when the GCC warn_unused_result feature was added.
9554
9555 2011-01-06  Eric Blake  <eblake@redhat.com>
9556
9557         ignore-value: support aggregate types
9558         * lib/ignore-value.h (ignore_value): Provide separate gcc
9559         definition.
9560         * modules/ignore-value-tests: New test module.
9561         * tests/test-ignore-value.c: New test.
9562
9563         maint.mk: improve sc_prohibit_strcmp regex
9564         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9565         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9566         definition of STRNEQ.
9567
9568         signal: work around Haiku issue with SIGBUS
9569         * lib/siglist.h: Add comment.
9570         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9571         strsignal's favoring of SIGSEGV.
9572         * tests/test-signal.c (main): Avoid test failure.
9573         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9574         Reported by Scott McCreary.
9575
9576         maint.mk: add pre-release check to ensure submodule commits are public
9577         * top/maint.mk (public-submodule-commit): New rule.
9578         (submodule-checks): New variable.
9579         (alpha beta stable): Depend on the variable.
9580
9581 2011-01-05  Pádraig Brady <P@draigBrady.com>
9582         and Jim Meyering  <meyering@redhat.com>
9583
9584         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9585         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9586         (ATTRIBUTE_DEPRECATED): Define.
9587         (_ignore_case): New function.
9588         (ignore_value): New macro, to replace the old function.
9589         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9590         * modules/ignore-value (Depends-on): Add stdint.
9591
9592 2011-01-04  Eric Blake  <eblake@redhat.com>
9593
9594         doc: regenerate INSTALL
9595         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9596         @firstparagraphindent support, now that autoconf dropped it.
9597         (INSTALL_PRELUDE): Reinstate old macro.
9598         * doc/install.texi: Resync from autoconf.
9599         * doc/INSTALL: Reflect recent autoconf update.
9600         * doc/INSTALL.ISO: Likewise.
9601         * doc/INSTALL.UTF-8: Likewise.
9602         Reported by Karl Berry.
9603
9604 2011-01-04  Bruce Korb  <address@hidden>
9605
9606         git-version-gen: avoid a sub-shell
9607         * build-aux/git-version-gen: Redirect stderr in `...` via
9608         "exec 2>...", rather than via an added sub-shell.
9609
9610 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9611
9612         git-version-gen: use (...) rather than sh -c '...'
9613         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9614         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9615
9616 2011-01-03  Jim Meyering  <meyering@redhat.com>
9617
9618         git-version-gen: convert leading TABs to spaces
9619         * build-aux/git-version-gen: Expand leading TABs.
9620
9621         git-version-gen: handle failed "git rev-list"
9622         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9623         from git and proceeding as if it had succeeded but printed no SHA1
9624         checksums, suppress the diagnostic and handle the failure.
9625         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9626
9627         git-version-gen: include command name in one more diagnostic
9628         * build-aux/git-version-gen: When the required .tarball-version file
9629         was missing or unreadable, you might see the diagnostic from "cat",
9630         but no trace of the name of the invoking script.  Now, you still see
9631         the diagnostic from cat, but also get one from "git-version-gen: ".
9632         Inspired by a patch from Bruce Korb.
9633
9634         update-copyright: adjust test to match changed code
9635         * tests/test-update-copyright.sh: Change test's expected output
9636         to match new actual output.
9637
9638 2011-01-02  Bruno Haible  <bruno@clisp.org>
9639
9640         getlogin_r: Avoid test failure on HP-UX 11.
9641         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9642         ERANGE when the second argument is zero.
9643         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9644         portability problem.
9645
9646 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9647
9648         * build-aux/update-copyright: doc Simon's changes
9649
9650 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9651
9652         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9653         environment variable.
9654
9655 2011-01-02  Bruno Haible  <bruno@clisp.org>
9656
9657         unigbrk: Avoid gcc warnings.
9658         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9659         unused variable.
9660         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9661         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9662         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9663         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9664         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9665         Change type of first argument to 'const char *'.
9666         (main): Remove unused variable.
9667         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9668         type of first argument to 'const char *'.
9669         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9670         Likewise.
9671         (main): Change type of variable 's'.
9672         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9673         to 'int'.
9674
9675 2011-01-02  Bruno Haible  <bruno@clisp.org>
9676
9677         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9678         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9679         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9680         bug.
9681         * lib/pwrite.c: Undo 2010-12-31 patch.
9682         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9683
9684 2011-01-02  Bruno Haible  <bruno@clisp.org>
9685
9686         pread: Fix test whether it works.
9687         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9688
9689 2011-01-02  Bruno Haible  <bruno@clisp.org>
9690
9691         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9692         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9693         ends in "6". Don't require a specific month name. Try also the locale
9694         names found on HP-UX 11 and Solaris 7.
9695
9696 2011-01-02  Bruno Haible  <bruno@clisp.org>
9697
9698         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9699         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9700         C linkage.
9701         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9702
9703 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9704
9705         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9706         for consistency, since the "cluster" term is not used elsewhere.
9707         * lib/unigbrk.in.h: Update name.
9708         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9709         * lib/unigbrk/u16-grapheme-next.c: Update name.
9710         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9711         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9712         * lib/unigbrk/u32-grapheme-next.c: Update name.
9713         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9714         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9715         * lib/unigbrk/u8-grapheme-next.c: Update name.
9716         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9717         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9718         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9719         Suggested by Bruno Haible.
9720
9721 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9722
9723         Remove module 'u8-grapheme-len' as too redundant with
9724         'u8-grapheme-next'.
9725         * modules/unigbrk/u8-grapheme-len: Delete file.
9726         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9727         * lib/unigbrk.in.h: Remove prototype for deleted function.
9728         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9729         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9730
9731         Remove module 'u16-grapheme-len' as too redundant with
9732         'u16-grapheme-next'.
9733         * modules/unigbrk/u16-grapheme-len: Delete file.
9734         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9735         * lib/unigbrk.in.h: Remove prototype for deleted function.
9736         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9737         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9738
9739         Remove module 'u32-grapheme-len' as too redundant with
9740         'u32-grapheme-next'.
9741         * modules/unigbrk/u32-grapheme-len: Delete file.
9742         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9743         * lib/unigbrk.in.h: Remove prototype for deleted function.
9744         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9745         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9746
9747         Suggested by Bruno Haible.
9748
9749 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9750
9751         * unigbrk.in.h: Fix typo: "ben" => "been".
9752         Reported by Bruno Haible.
9753
9754 2011-01-01  Jim Meyering  <meyering@redhat.com>
9755
9756         maint: update almost all copyright ranges to include 2011
9757         Run the new "make update-copyright" rule.
9758
9759 2011-01-01  Jim Meyering  <meyering@redhat.com>
9760
9761         maint: update-copyright: exempt doc/INSTALL*
9762         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9763         since they are generated.  Suggested by Bruno Haible.
9764
9765 2011-01-01  Jim Meyering  <meyering@redhat.com>
9766
9767         maint: refine the update-copyright rule
9768         * Makefile (update-copyright): Also exclude any file that includes
9769         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9770         code that merely generates the comment.
9771
9772 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9773
9774         New module 'u8-grapheme-len'.
9775         * modules/unigbrk/u8-grapheme-len: New file.
9776         * modules/unigbrk/u8-grapheme-len-tests: New file.
9777         * lib/unigbrk.in.h: Add prototype for new function.
9778         * lib/unigbrk/u8-grapheme-len.c: New file.
9779         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9780
9781         New module 'u16-grapheme-len'.
9782         * modules/unigbrk/u16-grapheme-len: New file.
9783         * modules/unigbrk/u16-grapheme-len-tests: New file.
9784         * lib/unigbrk.in.h: Add prototype for new function.
9785         * lib/unigbrk/u16-grapheme-len.c: New file.
9786         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9787
9788         New module 'u32-grapheme-len'.
9789         * modules/unigbrk/u32-grapheme-len: New file.
9790         * modules/unigbrk/u32-grapheme-len-tests: New file.
9791         * lib/unigbrk.in.h: Add prototype for new function.
9792         * lib/unigbrk/u32-grapheme-len.c: New file.
9793         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9794
9795         New module 'u8-grapheme-next'.
9796         * modules/unigbrk/u8-grapheme-next: New file.
9797         * modules/unigbrk/u8-grapheme-next-tests: New file.
9798         * lib/unigbrk.in.h: Add prototype for new function.
9799         * lib/unigbrk/u8-grapheme-next.c: New file.
9800         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9801
9802         New module 'u16-grapheme-next'.
9803         * modules/unigbrk/u16-grapheme-next: New file.
9804         * modules/unigbrk/u16-grapheme-next-tests: New file.
9805         * lib/unigbrk.in.h: Add prototype for new function.
9806         * lib/unigbrk/u16-grapheme-next.c: New file.
9807         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9808
9809         New module 'u32-grapheme-next'.
9810         * modules/unigbrk/u32-grapheme-next: New file.
9811         * modules/unigbrk/u32-grapheme-next-tests: New file.
9812         * lib/unigbrk.in.h: Add prototype for new function.
9813         * lib/unigbrk/u32-grapheme-next.c: New file.
9814         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9815
9816         New module 'u8-grapheme-prev'.
9817         * modules/unigbrk/u8-grapheme-prev: New file.
9818         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9819         * lib/unigbrk.in.h: Add prototype for new function.
9820         * lib/unigbrk/u8-grapheme-prev.c: New file.
9821         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9822
9823         New module 'u16-grapheme-prev'.
9824         * modules/unigbrk/u16-grapheme-prev: New file.
9825         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9826         * lib/unigbrk.in.h: Add prototype for new function.
9827         * lib/unigbrk/u16-grapheme-prev.c: New file.
9828         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9829
9830         New module 'u32-grapheme-prev'.
9831         * modules/unigbrk/u32-grapheme-prev: New file.
9832         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9833         * lib/unigbrk.in.h: Add prototype for new function.
9834         * lib/unigbrk/u32-grapheme-prev.c: New file.
9835         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9836
9837         New module 'u8-grapheme-breaks'.
9838         * modules/unigbrk/u8-grapheme-breaks: New file.
9839         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9840         * lib/unigbrk.in.h: Add prototype for new function.
9841         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9842         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9843
9844         New module 'u16-grapheme-breaks'.
9845         * modules/unigbrk/u16-grapheme-breaks: New file.
9846         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9847         * lib/unigbrk.in.h: Add prototype for new function.
9848         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9849         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9850
9851         New module 'u32-grapheme-breaks'.
9852         * modules/unigbrk/u32-grapheme-breaks: New file.
9853         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9854         * lib/unigbrk.in.h: Add prototype for new function.
9855         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9856         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9857
9858         New module 'ulc-grapheme-breaks'.
9859         * modules/unigbrk/ulc-grapheme-breaks: New file.
9860         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9861         * m4/locale-ar.m4: New file.
9862         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9863         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9864         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9865
9866 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9867
9868         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9869         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9870         modified how this file was generated before I initially submitted
9871         the module, but failed to regenerate it.  This meant that several
9872         of the level2 entries were wrong.
9873         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9874         Remove the division-by-2 that is folded into the table now that
9875         gbrkprop.h has been regenerated properly.  Now -1 entries are
9876         handled correctly.
9877
9878         New module 'unigbrk/uc-gbrk-prop-tests'.
9879         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9880         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9881         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9882         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9883
9884 2011-01-01  Bruno Haible  <bruno@clisp.org>
9885
9886         Avoid use of hexadecimal escapes.
9887         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9888         instead of hexadecimal escapes.
9889
9890 2011-01-01  Jim Meyering  <meyering@redhat.com>
9891
9892         maint: new rule to update copyright year ranges
9893         * Makefile (update-copyright): New rule.
9894
9895         maint: indent with TABs in Makefile
9896         * Makefile: Expand leading sequences of spaces to TABs
9897
9898         version-etc: update the copyright year it reports
9899         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9900
9901 2010-12-31  Bruno Haible  <bruno@clisp.org>
9902
9903         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9904         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9905         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9906         zero.
9907
9908 2010-12-31  Bruno Haible  <bruno@clisp.org>
9909
9910         pwrite: Work around HP-UX 11.11 bug.
9911         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9912         works and set REPLACE_PWRITE if not.
9913         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9914         function.
9915         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9916
9917 2010-12-31  Bruno Haible  <bruno@clisp.org>
9918
9919         pread: Work around HP-UX 11 bugs.
9920         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9921         and set REPLACE_PREAD if not.
9922         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9923
9924 2010-12-31  Eric Blake  <eblake@redhat.com>
9925
9926         nl_langinfo: fix YESEXPR on Irix 6.5
9927         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9928         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9929         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9930         it.
9931
9932 2010-12-31  Bruno Haible  <bruno@clisp.org>
9933
9934         iconv: Document HP-UX 11 bug.
9935         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9936
9937 2010-12-31  Bruno Haible  <bruno@clisp.org>
9938
9939         ldexpl: Fix link error on HP-UX 11.
9940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9941         LDEXPL_LIBM, using $ISNANL_LIBM.
9942
9943 2010-12-31  Eric Blake  <eblake@redhat.com>
9944
9945         ftello: avoid compilation failure with SunStudio c89
9946         * lib/ftello.c (ftello): Use lseek, not llseek.
9947
9948         tests: avoid failing coreutils tests on cygwin
9949         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9950         (create_exe_shims_): Return 0 when skipping.
9951
9952 2010-12-31  Bruno Haible  <bruno@clisp.org>
9953
9954         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9955         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9956
9957 2010-12-31  Bruno Haible  <bruno@clisp.org>
9958
9959         waitpid: Fix link error in C++ mode.
9960         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9961
9962 2010-12-31  Bruno Haible  <bruno@clisp.org>
9963
9964         isnan: Use GCC built-ins when possible.
9965         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9966         __builtin_isnan.
9967         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9968         (isnan): Define using GCC built-ins for GCC >= 4.0.
9969
9970 2010-12-31  Bruno Haible  <bruno@clisp.org>
9971
9972         isnand: Fix mistake.
9973         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9974         __builtin_isnand.
9975
9976 2010-12-31  Bruno Haible  <bruno@clisp.org>
9977
9978         open: Avoid C++ error on HP-UX 11.
9979         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9980
9981 2010-12-31  Bruno Haible  <bruno@clisp.org>
9982
9983         time_r: Add missing declarations on HP-UX 11.
9984         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9985         instead of HAVE_LOCALTIME_R.
9986         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9987         HAVE_LOCALTIME_R always.
9988         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9989         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9990         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9991         HAVE_LOCALTIME_R.
9992         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9993         * doc/posix-functions/localtime_r.texi: Likewise.
9994
9995 2010-12-29  Eric Blake  <eblake@redhat.com>
9996
9997         mountlist: tweak previous commit
9998         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9999         Reported by Paul Eggert.
10000
10001         mountlist: fix local drive detection on cygwin
10002         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10003         that works for cygwin.
10004
10005 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10006
10007         ftoastr, snprintf: ftoastr + snprintf module
10008         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10009         since the snprintf module now should be good enough here.
10010         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10011         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10012         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10013         GNULIB_SNPRINTF only for the test directory, and the latter
10014         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10015         seems to suffice by itself.
10016
10017 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10018
10019         alloca: one step towards thread-safety
10020         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10021         need for a static variable.  All callers changed.  This does not
10022         make the alloca replacement thread-safe, but it's one step.
10023
10024         tests: minor indenting change
10025         * tests/init.sh: Sync from coreutils housekeeping patch
10026         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10027         to keep lines within 80 columns.
10028
10029 2010-12-28  Jim Meyering  <meyering@redhat.com>
10030
10031         regex: don't infloop on persistent failing calloc
10032         * lib/regexec.c (build_trtable): Return failure indication upon
10033         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10034         In glibc, this was fixed for version 2.13:
10035         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10036
10037 2010-12-28  Bruno Haible  <bruno@clisp.org>
10038             Paul Eggert <eggert@cs.ucla.edu>
10039
10040         linkat: Make implementation robust against system behaviour variations.
10041         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10042         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10043         way, and to -2 if it needs a generic runtime test.
10044         * lib/linkat.c (solaris_optimized_link_immediate,
10045         solaris_optimized_link_follow): New functions.
10046         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10047         (check_same_link): Use it.
10048
10049 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10050
10051         New module 'unigbrk/base'.
10052         * modules/unigbrk/base: New file.
10053         * lib/unigbrk.in.h: New file.
10054
10055         New module 'unigbrk/uc-gbrk-prop'.
10056         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10057         * modules/unigbrk/uc-gbrk-prop: New file.
10058         * lib/unigbrk/gbrkprop.h: New file.
10059         * lib/unigbrk/uc-gbrk-prop.c: New file.
10060
10061         New module 'unigbrk/uc-is-grapheme-break'.
10062         * modules/unigbrk/uc-is-grapheme-break: New file.
10063         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10064         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10065         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10066         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10067         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10068
10069         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10070
10071 2010-12-27  Bruno Haible  <bruno@clisp.org>
10072
10073         linkat test: Avoid failure on Solaris 11 2010-11.
10074         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10075
10076 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10077
10078         utimens: work around glibc rounding bug on more platforms
10079         * lib/utimens.c (fdutimens): Work around rounding bug even if
10080         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10081         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10082
10083 2010-12-27  Bruno Haible  <bruno@clisp.org>
10084
10085         select tests: Improve comments.
10086         * tests/test-select.c (do_select): Add comments.
10087
10088 2010-12-27  Bruno Haible  <bruno@clisp.org>
10089
10090         select tests: Safer way of handling timeout.
10091         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10092         at every invocation.
10093
10094 2010-12-27  Bruno Haible  <bruno@clisp.org>
10095
10096         select tests: Use 'bool' where appropriate.
10097         * tests/test-select.c (connect_to_socket): Change argument type to
10098         'bool'.
10099
10100 2010-12-27  Bruno Haible  <bruno@clisp.org>
10101
10102         select tests: Use existing modules.
10103         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10104         (configure.ac): Don't test for unistd.h.
10105         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10106         declared in <unistd.h>.
10107
10108 2010-12-27  Bruno Haible  <bruno@clisp.org>
10109
10110         mbrtowc: Work around a Solaris 7 bug.
10111         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10112         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10113         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10114         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10115         MBRTOWC_NULL_ARG1_BUG.
10116         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10117         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10118         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10119         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10120
10121 2010-12-27  Jim Meyering  <meyering@redhat.com>
10122
10123         read-file.c: tweak syntax
10124         * lib/read-file.c (fread_file): Remove space after "*" in function
10125         definitions.
10126
10127 2010-12-27  Bruno Haible  <bruno@clisp.org>
10128
10129         times test: Avoid gcc warnings on OSF/1.
10130         * tests/test-times.c (main): Cast printf arguments from clock_t to
10131         'long int'.
10132
10133 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10134
10135         utimens: work around glibc rounding bug on older Linux kernels
10136         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10137         on Linux with a glibc whose utimes might not work, then work
10138         around a longstanding glibc bug involving rounding rather than
10139         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10141
10142 2010-12-26  Bruno Haible  <bruno@clisp.org>
10143
10144         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10145         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10146         _GL_CXXALIAS_SYS.
10147         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10148
10149 2010-12-26  Bruno Haible  <bruno@clisp.org>
10150
10151         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10152         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10153         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10154         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10155         looking for the declaration.
10156         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10157         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10158         problem.
10159         * doc/posix-functions/inet_pton.texi: Likewise.
10160
10161 2010-12-26  Bruno Haible  <bruno@clisp.org>
10162
10163         arpa_inet: Use the common idioms with C++ support.
10164         * lib/arpa_inet.in.h: Include c++defs.h.
10165         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10166         support.
10167         * modules/arpa_inet (Depends-on): Add c++defs.
10168         (Makefile.am): Substitute the contents of c++defs.h.
10169         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10170         * modules/arpa_inet-c++-tests: New file.
10171         * tests/test-arpa_inet-c++.cc: New file.
10172
10173 2010-12-25  Bruno Haible  <bruno@clisp.org>
10174
10175         Fix more C++ link errors on Solaris 8.
10176         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10177         $(LIB_EACCESS).
10178         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10179         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10180         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10181         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10182         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10183
10184 2010-12-25  Bruno Haible  <bruno@clisp.org>
10185
10186         printf-posix: Fix link error when a non-GCC compiler is used.
10187         * lib/stdio.in.h (printf): When not using GCC, override printf
10188         correctly.
10189         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10190
10191 2010-12-25  Bruno Haible  <bruno@clisp.org>
10192
10193         strerror_r-posix: Update doc.
10194         * doc/posix-functions/strerror_r.texi: Update doc about the return
10195         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10196
10197 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10198
10199         utimens: simplify the logic of the previous change
10200         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10201         This should not affect whether the test succeeds or fails.
10202
10203         utimens: configure better on hosts with NFS clock skew
10204         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10205         uses the clock of the local host.  It might use the clock of the
10206         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10208
10209 2010-12-25  Bruno Haible  <bruno@clisp.org>
10210
10211         ptsname test: Avoid failure on Solaris.
10212         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10213         open a pseudo-terminal; don't use BSD-style ptys.
10214         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10215
10216 2010-12-25  Bruno Haible  <bruno@clisp.org>
10217
10218         ptsname: Avoid ERANGE failure on some systems.
10219         * lib/ptsname.c (buffer): Increase size.
10220
10221 2010-12-25  Bruno Haible  <bruno@clisp.org>
10222
10223         rename, renameat: Avoid test failures at NFS mounted locations.
10224         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10225         so that subsequent mkdir calls succeed.
10226
10227 2010-12-25  Bruno Haible  <bruno@clisp.org>
10228
10229         iswblank: Fix C++ link error on Solaris 8.
10230         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10231         _GL_FUNCDECL_SYS.
10232
10233 2010-12-25  Bruno Haible  <bruno@clisp.org>
10234
10235         unistd: Fix C++ link error on Solaris 8.
10236         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10237
10238 2010-12-25  Bruno Haible  <bruno@clisp.org>
10239
10240         readlink doc: Mention an old glibc bug.
10241         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10242
10243 2010-12-25  Bruno Haible  <bruno@clisp.org>
10244
10245         fcntl-h: Fix for use of C++ on glibc systems.
10246         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10247         also on glibc systems in C++ mode.
10248         Reported by Gary V. Vaughan <gary@gnu.org>.
10249
10250 2010-12-25  Bruno Haible  <bruno@clisp.org>
10251
10252         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10253         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10254
10255 2010-12-25  Bruno Haible  <bruno@clisp.org>
10256
10257         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10258         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10259         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10260         test whether truncl works according to ISO C 99 with IEC 60559.
10261         * m4/truncl-ieee.m4: New file.
10262         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10263         m4/signbit.m4.
10264         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10265
10266 2010-12-25  Bruno Haible  <bruno@clisp.org>
10267
10268         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10269         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10270         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10271         test whether ceill works according to ISO C 99 with IEC 60559.
10272         * m4/ceill-ieee.m4: New file.
10273         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10274         m4/signbit.m4.
10275         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10276
10277 2010-12-25  Bruno Haible  <bruno@clisp.org>
10278
10279         Ensure all prerequisites of <wchar.h> are included.
10280         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10281         before <wchar.h>.
10282         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10283         gl_MBRLEN_NUL_RETVAL): Likewise.
10284         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10285         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10286         AC_FUNC_MBRTOWC): Likewise.
10287         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10288         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10290         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10291         Likewise.
10292         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10293         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10294         (gl_WCHAR_H): Improve comments.
10295         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10296
10297 2010-12-25  Bruno Haible  <bruno@clisp.org>
10298
10299         strtok_r: Fix C syntax error in autoconf macro.
10300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10301         characters in test program.
10302
10303 2010-12-24  Bruno Haible  <bruno@clisp.org>
10304
10305         ceil, trunc, round: Fix gcc warnings.
10306         * lib/ceil.c (MIN): Undefine before redefining.
10307         * lib/trunc.c (MIN): Likewise.
10308         * lib/round.c (MIN): Likewise.
10309         Include <math.h> first.
10310
10311 2010-12-24  Bruno Haible  <bruno@clisp.org>
10312
10313         select tests: Avoid failures on OSF/1 5.1.
10314         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10315         failure of closing the last socket; it may fail with ECONNRESET.
10316
10317 2010-12-24  Eric Blake  <eblake@redhat.com>
10318
10319         stdint: avoid HP-UX 10.20 preprocessor bug
10320         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10321         than #if.
10322         * tests/test-floor2.c (main): Likewise.
10323         Reported by Peter O'Gorman.
10324
10325         pipe: make obsoletion transition easier
10326         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10327         * modules/pipe (Files): Include revived file.
10328         (Include): Drop reference, to mirror getdate's behavior.
10329
10330 2010-12-24  Bruno Haible  <bruno@clisp.org>
10331
10332         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10333         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10334         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10335         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10336
10337 2010-12-24  Bruno Haible  <bruno@clisp.org>
10338
10339         gethostname: Ensure declaration on NonStop Kernel.
10340         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10342
10343 2010-12-24  Bruno Haible  <bruno@clisp.org>
10344
10345         sys_select: Ensure all necessary types on NonStop Kernel.
10346         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10347         include <sys/time.h>.
10348         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10349         NonStop Kernel.
10350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10351
10352 2010-12-24  Bruno Haible  <bruno@clisp.org>
10353
10354         sys_select: Remove unneeded include.
10355         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10356         have <sys/select.h>.
10357
10358 2010-12-24  Bruno Haible  <bruno@clisp.org>
10359
10360         gethostname: Provide a fallback for HOST_NAME_MAX.
10361         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10362         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10363         instead.
10364         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10365
10366 2010-12-24  Bruno Haible  <bruno@clisp.org>
10367
10368         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10369         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10370         (SA_RESTART): Likewise.
10371         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10372
10373 2010-12-24  Bruno Haible  <bruno@clisp.org>
10374
10375         signal: Define NSIG.
10376         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10377         * tests/test-signal.c (nsig): New variable.
10378         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10379
10380 2010-12-24  Bruno Haible  <bruno@clisp.org>
10381
10382         rename, renameat: Avoid test failures on OSF/1 5.1.
10383         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10384         alternative error codes.
10385         * tests/test-renameat.c (main): Likewise.
10386
10387 2010-12-24  Bruno Haible  <bruno@clisp.org>
10388
10389         *printf: Detect large precisions bug on Solaris 10/SPARC.
10390         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10391         by Paul Eggert.
10392         * tests/test-snprintf-posix.h (test_function): Add this test code here
10393         too.
10394         * tests/test-sprintf-posix.h (test_function): Likewise.
10395         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10396         * tests/test-vasprintf-posix.c (test_function): Likewise.
10397         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10398         around by gnulib.
10399         * doc/posix-functions/printf.texi: Likewise.
10400         * doc/posix-functions/snprintf.texi: Likewise.
10401         * doc/posix-functions/sprintf.texi: Likewise.
10402         * doc/posix-functions/vfprintf.texi: Likewise.
10403         * doc/posix-functions/vprintf.texi: Likewise.
10404         * doc/posix-functions/vsnprintf.texi: Likewise.
10405         * doc/posix-functions/vsprintf.texi: Likewise.
10406         * doc/posix-functions/dprintf.texi: Undo last commit.
10407         * doc/posix-functions/vdprintf.texi: Likewise.
10408
10409 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10410
10411         tests: port test-fdutimensat.c to Solaris 8
10412         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10413         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10414         On Solaris 8, it fails with errno == ENOSYS, because there is no
10415         futimens (so it can't use the fd), and there is no lutimens (so it
10416         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10417
10418         vsnprintf: make more consistent with snprintf; doc fixes
10419
10420         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10421         the byte count return problem was promoted from the snprintf-posix
10422         to the snprintf module.
10423         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10424         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10425         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10426         * tests/test-snprintf.c (main): Check the byte count returned.
10427         * tests/test-vsnprintf.c (main): Likewise.
10428
10429 2010-12-23  Eric Blake  <eblake@redhat.com>
10430
10431         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10432         * modules/sigpipe (License): Relax license.
10433
10434 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10435
10436         doc: document Solaris printf bug with large float precisions
10437         * doc/posix-functions/dprintf.texi (dprintf):
10438         * doc/posix-functions/fprintf.texi (fprintf):
10439         * doc/posix-functions/printf.texi (printf):
10440         * doc/posix-functions/snprintf.texi (snprintf):
10441         * doc/posix-functions/sprintf.texi (sprintf):
10442         * doc/posix-functions/vdprintf.texi (vdprintf):
10443         * doc/posix-functions/vfprintf.texi (vfprintf):
10444         * doc/posix-functions/vprintf.texi (vprintf):
10445         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10446         * doc/posix-functions/vsprintf.texi (vsprintf):
10447         Mention that these functions mishandle large floating point
10448         precisions on Solaris 10.  The same bug is also present in Solaris
10449         8, and I assume earlier.  This causes "cd gnulib-tests; make
10450         check" to fail on Solaris 8 (and I assume, later) when building
10451         the latest coreutils, in test-vasprintf-posix's call to
10452         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10453         the wide flavors (e.g., wprintf) so this patch just updates the
10454         documentation for the narrow ones.
10455
10456         test-posixtm.c: add two tests
10457         * tests/test-posixtm.c: Add two tests, to highlight the
10458         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10459         around this bug; this is merely to document it.
10460
10461 2010-12-22  Bruno Haible  <bruno@clisp.org>
10462
10463         getlogin_r: Work around portability problem on OSF/1.
10464         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10465         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10466         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10467         test for a truncated result.
10468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10469         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10470         * modules/getlogin_r (Depends-on): Add memchr.
10471         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10472
10473 2010-12-22  Bruno Haible  <bruno@clisp.org>
10474
10475         ptsname: Avoid test failure on OSF/1 5.1.
10476         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10477         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10478         (same_slave): New function.
10479         (main): Use it to compare ptsname's result with the expected file name.
10480
10481 2010-12-22  Bruno Haible  <bruno@clisp.org>
10482
10483         Port extended stdio modules to HP NonStop Kernel.
10484         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10485         macros.
10486         * lib/fbufmode.c: Update comments.
10487         * lib/fflush.c: Likewise.
10488         * lib/fpurge.c: Likewise.
10489         * lib/freadable.c: Likewise.
10490         * lib/freadahead.c: Likewise.
10491         * lib/freading.c: Likewise.
10492         * lib/freadptr.c: Likewise.
10493         * lib/freadseek.c: Likewise.
10494         * lib/fseeko.c: Likewise.
10495         * lib/fseterr.c: Likewise.
10496         * lib/fwritable.c: Likewise.
10497         * lib/fwriting.c: Likewise.
10498         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10499
10500 2010-12-22  Bruno Haible  <bruno@clisp.org>
10501
10502         ttyname_r: Work around bug on OSF/1 5.1.
10503         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10504         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10505         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10506         present.
10507         * lib/ttyname_r.c (ttyname_r): Update comments.
10508
10509 2010-12-22  Bruno Haible  <bruno@clisp.org>
10510
10511         round: Implement result sign according to IEEE 754.
10512         * lib/round.c (MIN, MINUS_ZERO): New macros.
10513         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10514         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10515         * tests/test-round-ieee.c (main): Likewise.
10516         * tests/test-roundl-ieee.c (main): Likewise.
10517
10518         trunc: Implement result sign according to IEEE 754.
10519         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10520         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10521         * tests/test-trunc2.c: Include minus-zero.h.
10522         (MINUS_ZERO): New macro.
10523         (trunc_reference): Keep in sync with lib/trunc.c.
10524         * tests/test-truncf2.c: Include minus-zero.h.
10525         (MINUS_ZERO): New macro.
10526         (truncf_reference): Keep in sync with lib/trunc.c.
10527         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10528         * tests/test-trunc-ieee.c (main): Likewise.
10529         * tests/test-truncl-ieee.c (main): Likewise.
10530
10531         ceil: Implement result sign according to IEEE 754.
10532         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10533         (FUNC): Return -0.0 for -1 < x < 0.
10534         * tests/test-ceil2.c: Include minus-zero.h.
10535         (MINUS_ZERO): New macro.
10536         (ceil_reference): Keep in sync with lib/ceil.c.
10537         * tests/test-ceilf2.c: Include minus-zero.h.
10538         (MINUS_ZERO): New macro.
10539         (ceilf_reference): Keep in sync with lib/ceil.c.
10540         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10541         * tests/test-ceil-ieee.c (main): Likewise.
10542         * tests/test-ceill-ieee.c (main): Likewise.
10543
10544         floor: Implement result sign according to IEEE 754.
10545         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10546         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10547         * tests/test-floorf2.c (floorf_reference): Likewise.
10548         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10549         * tests/test-floor-ieee.c (main): Likewise.
10550         * tests/test-floorl-ieee.c (main): Likewise.
10551
10552 2010-12-22  Bruno Haible  <bruno@clisp.org>
10553
10554         getaddrinfo: Update doc.
10555         * doc/posix-functions/gai_strerror.texi: Return type is also different
10556         on AIX and HP-UX.
10557
10558 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10559
10560         getaddrinfo, inet_ntop: Update doc for Solaris.
10561         * doc/posix-functions/gai_strerror.texi: Return type is also an
10562         issue on Solaris 9 and earlier.
10563         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10564         on Solaris 10 and earlier.
10565
10566 2010-12-21  Bruno Haible  <bruno@clisp.org>
10567
10568         New module 'roundl-ieee'.
10569         * modules/roundl-ieee: New file.
10570         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10571         test whether roundl works according to ISO C 99 with IEC 60559.
10572         * m4/roundl-ieee.m4: New file.
10573         * modules/roundl-ieee-tests: New file.
10574         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10575         * tests/test-roundl.c (main): Remove signbit tests.
10576         * modules/roundl-tests (Depends-on): Remove signbit.
10577         * doc/posix-functions/roundl.texi: Mention the new module.
10578
10579 2010-12-21  Bruno Haible  <bruno@clisp.org>
10580
10581         New module 'truncl-ieee'.
10582         * modules/truncl-ieee: New file.
10583         * modules/truncl-ieee-tests: New file.
10584         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10585         * tests/test-truncl.c (main): Remove signbit tests.
10586         * modules/truncl-tests (Depends-on): Remove signbit.
10587         * doc/posix-functions/truncl.texi: Mention the new module.
10588
10589 2010-12-21  Bruno Haible  <bruno@clisp.org>
10590
10591         New module 'ceill-ieee'.
10592         * modules/ceill-ieee: New file.
10593         * modules/ceill-ieee-tests: New file.
10594         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10595         * tests/test-ceill.c (main): Remove signbit tests.
10596         * modules/ceill-tests (Depends-on): Remove signbit.
10597         * doc/posix-functions/ceill.texi: Mention the new module.
10598
10599 2010-12-21  Bruno Haible  <bruno@clisp.org>
10600
10601         New module 'floorl-ieee'.
10602         * modules/floorl-ieee: New file.
10603         * modules/floorl-ieee-tests: New file.
10604         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10605         * tests/test-floorl.c (main): Remove signbit tests.
10606         * modules/floorl-tests (Depends-on): Remove signbit.
10607         * doc/posix-functions/floorl.texi: Mention the new module.
10608
10609 2010-12-21  Bruno Haible  <bruno@clisp.org>
10610
10611         New module 'round-ieee'.
10612         * modules/round-ieee: New file.
10613         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10614         whether round works according to ISO C 99 with IEC 60559.
10615         * m4/round-ieee.m4: New file.
10616         * modules/round-ieee-tests: New file.
10617         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10618         * tests/test-round1.c (main): Remove signbit tests.
10619         * modules/round-tests (Depends-on): Remove 'signbit'.
10620         * doc/posix-functions/round.texi: Mention the new module.
10621
10622 2010-12-21  Bruno Haible  <bruno@clisp.org>
10623
10624         New module 'trunc-ieee'.
10625         * modules/trunc-ieee: New file.
10626         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10627         whether trunc works according to ISO C 99 with IEC 60559.
10628         * m4/trunc-ieee.m4: New file.
10629         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10631         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10632         * modules/trunc-ieee-tests: New file.
10633         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10634         * tests/test-trunc1.c (main): Remove signbit tests.
10635         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10636         * doc/posix-functions/trunc.texi: Mention the new module.
10637
10638 2010-12-21  Bruno Haible  <bruno@clisp.org>
10639
10640         New module 'ceil-ieee'.
10641         * modules/ceil-ieee: New file.
10642         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10643         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10644         ISO C 99 with IEC 60559.
10645         * m4/ceil-ieee.m4: New file.
10646         * modules/ceil (Files): Add lib/ceil.c.
10647         (Depends-on): Add 'float'.
10648         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10649         * lib/math.in.h (ceil): New declaration.
10650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10651         REPLACE_CEIL.
10652         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10653         * modules/ceil-ieee-tests: New file.
10654         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10655         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10656         * doc/posix-functions/ceil.texi: Mention the new module.
10657
10658 2010-12-21  Bruno Haible  <bruno@clisp.org>
10659
10660         New module 'floor-ieee'.
10661         * modules/floor-ieee: New file.
10662         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10663         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10664         ISO C 99 with IEC 60559.
10665         * m4/floor-ieee.m4: New file.
10666         * modules/floor (Files): Add lib/floor.c.
10667         (Depends-on): Add 'float'.
10668         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10669         * lib/math.in.h (floor): New declaration.
10670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10671         REPLACE_FLOOR.
10672         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10673         * modules/floor-ieee-tests: New file.
10674         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10675         * tests/test-math-c++.cc: Check the signature of 'floor'.
10676         * doc/posix-functions/floor.texi: Mention the new module.
10677
10678 2010-12-21  Bruno Haible  <bruno@clisp.org>
10679
10680         New module 'roundf-ieee'.
10681         * modules/roundf-ieee: New file.
10682         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10683         test whether roundf works according to ISO C 99 with IEC 60559.
10684         * m4/roundf-ieee.m4: New file.
10685         * modules/roundf-ieee-tests: New file.
10686         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10687         * tests/test-roundf1.c (main): Remove signbit tests.
10688         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10689         * doc/posix-functions/roundf.texi: Mention the new module.
10690
10691 2010-12-21  Bruno Haible  <bruno@clisp.org>
10692
10693         New module 'truncf-ieee'.
10694         * modules/truncf-ieee: New file.
10695         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10696         test whether truncf works according to ISO C 99 with IEC 60559.
10697         * m4/truncf-ieee.m4: New file.
10698         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10700         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10701         * modules/truncf-ieee-tests: New file.
10702         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10703         * tests/test-truncf1.c (main): Remove signbit tests.
10704         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10705         * doc/posix-functions/truncf.texi: Mention the new module.
10706
10707 2010-12-21  Bruno Haible  <bruno@clisp.org>
10708
10709         New module 'ceilf-ieee'.
10710         * modules/ceilf-ieee: New file.
10711         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10712         test whether ceilf works according to ISO C 99 with IEC 60559.
10713         * m4/ceilf-ieee.m4: New file.
10714         * modules/ceilf-ieee-tests: New file.
10715         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10716         * tests/test-ceilf1.c (main): Remove signbit tests.
10717         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10718         * doc/posix-functions/ceilf.texi: Mention the new module.
10719
10720 2010-12-21  Bruno Haible  <bruno@clisp.org>
10721
10722         New module 'floorf-ieee'.
10723         * modules/floorf-ieee: New file.
10724         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10725         test whether floorf works according to ISO C 99 with IEC 60559.
10726         * m4/floorf-ieee.m4: New file.
10727         * modules/floorf-ieee-tests: New file.
10728         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10729         * tests/test-floorf1.c (main): Remove signbit tests.
10730         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10731         * doc/posix-functions/floorf.texi: Mention the new module.
10732
10733 2010-12-21  Bruno Haible  <bruno@clisp.org>
10734
10735         Support for minus zero in autoconf macros.
10736         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10737         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10738         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10739         * tests/minus-zero.h: Update comments.
10740
10741 2010-12-21  Bruno Haible  <bruno@clisp.org>
10742
10743         Tests for module 'ceil'.
10744         * modules/ceil-tests: New file.
10745         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10746         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10747
10748 2010-12-21  Bruno Haible  <bruno@clisp.org>
10749
10750         Tests for module 'floor'.
10751         * modules/floor-tests: New file.
10752         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10753         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10754
10755 2010-12-21  Bruno Haible  <bruno@clisp.org>
10756
10757         math: Fix indentation.
10758         * lib/math.in.h (floorf): Fix indentation.
10759
10760 2010-12-21  Bruno Haible  <bruno@clisp.org>
10761
10762         Fix cross-compilation guesses on Solaris.
10763         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10764         not match "solaris2.10".
10765         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10766         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10767         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10768
10769 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10770
10771         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10772         This fixes a problem observed with the latest coreutils snapshot
10773         that caused a test to fail on Solaris 8.  src/csplit.c's call
10774         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10775         earlier, instead of returning the number of bytes that would have
10776         been generated; this causes csplit to incorrectly report memory
10777         exhaustion.
10778         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10779         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10780         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10781         comments to match.
10782         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10783         Fix typo in matching older versions of Solaris: "solaris2.10"
10784         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10785         only for guessing while cross-compiling.
10786         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10787
10788 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10789
10790         ftoastr: fix comment again
10791         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10793         Also, simplify example a bit by using flags = 0.
10794
10795 2010-12-20  Bruno Haible  <bruno@clisp.org>
10796
10797         round*, trunc*: Update documentation regarding glibc.
10798         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10799         * doc/posix-functions/round.texi: Likewise.
10800         * doc/posix-functions/roundl.texi: Likewise.
10801         * doc/posix-functions/truncf.texi: Likewise.
10802         * doc/posix-functions/trunc.texi: Likewise.
10803         * doc/posix-functions/truncl.texi: Likewise.
10804
10805 2010-12-20  Bruno Haible  <bruno@clisp.org>
10806
10807         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10808         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10809         * doc/posix-functions/round.texi: Likewise.
10810         * doc/posix-functions/roundl.texi: Likewise.
10811
10812 2010-12-20  Bruno Haible  <bruno@clisp.org>
10813
10814         ttyname_r: Add missing declaration on HP-UX 11.
10815         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10816         HAVE_TTYNAME_R.
10817         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10818         declared. Set HAVE_TTYNAME_R always.
10819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10820         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10821         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10822         HAVE_TTYNAME_R.
10823         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10824
10825 2010-12-20  Bruno Haible  <bruno@clisp.org>
10826
10827         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10828         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10829         * doc/posix-functions/getlogin_r.texi: Likewise.
10830         * tests/test-getlogin.c: Include <errno.h>.
10831         (main): Avoid test failure on HP-UX 11.11.
10832         * tests/test-getlogin_r.c (main): Likewise.
10833
10834 2010-12-20  Bruno Haible  <bruno@clisp.org>
10835
10836         getlogin_r: Add missing declaration on HP-UX 11.
10837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10838         declared also when it exists as a function.
10839         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10840
10841 2010-12-20  Bruno Haible  <bruno@clisp.org>
10842
10843         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10844         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10845         through wcrtomb.
10846
10847 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10848
10849         ftoastr: fix comment
10850         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10851         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10852
10853 2010-12-19  Bruno Haible  <bruno@clisp.org>
10854
10855         isnan: Ensure it is a macro.
10856         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10857         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10858         Solaris.
10859
10860 2010-12-19  Bruno Haible  <bruno@clisp.org>
10861
10862         ldexpl test: Fix link error on OSF/1 5.1.
10863         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10864
10865 2010-12-19  Bruno Haible  <bruno@clisp.org>
10866
10867         wctype: Make it work in C++ mode on OSF/1 5.1.
10868         * lib/wctype.in.h (iswblank): Declare but not define here.
10869         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10870         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10871         * modules/wctype (Files): Add lib/iswblank.c.
10872
10873 2010-12-19  Bruno Haible  <bruno@clisp.org>
10874
10875         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10876         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10877         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10878
10879 2010-12-19  Bruno Haible  <bruno@clisp.org>
10880
10881         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10882         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10883         _POSIX_PII_SOCKET.
10884         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10885         * doc/posix-functions/recvfrom.texi: Likewise.
10886         * doc/posix-functions/send.texi: Likewise.
10887         * doc/posix-functions/sendto.texi: Likewise.
10888
10889 2010-12-19  Bruno Haible  <bruno@clisp.org>
10890
10891         tcgetsid: Add missing declaration on OSF/1 5.1.
10892         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10893         HAVE_TCGETSID.
10894         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10895         Don't set HAVE_TCGETSID.
10896         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10897         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10898         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10899         HAVE_TCGETSID.
10900         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10901
10902 2010-12-19  Bruno Haible  <bruno@clisp.org>
10903
10904         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10905         * lib/stdio.in.h: During the include_next statement, let recursive
10906         includes of this file include only the system header file.
10907
10908 2010-12-19  Bruno Haible  <bruno@clisp.org>
10909
10910         iconv_open: Fix regression from 2010-12-04.
10911         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10912         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10913
10914 2010-12-19  Bruno Haible  <bruno@clisp.org>
10915
10916         stdbool test: Avoid a gcc warning.
10917         * tests/test-stdbool.c (main): Fail if e1 is false.
10918         Reported by Jim Meyering.
10919
10920 2010-12-19  Jim Meyering  <meyering@redhat.com>
10921
10922         setenv: restore to working order
10923         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10924         mistakenly removed.
10925         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10926         HAVE_SETENV.
10927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10928         HAVE_SETENV.
10929
10930 2010-12-19  Bruno Haible  <bruno@clisp.org>
10931
10932         Document some different function declarations on OSF/1 5.1.
10933         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10934         * doc/posix-functions/inet_ntop.texi: Likewise.
10935         * doc/posix-functions/gethostname.texi: Likewise.
10936         * lib/unistd.in.h (gethostname): Update comment.
10937
10938 2010-12-19  Bruno Haible  <bruno@clisp.org>
10939
10940         doc: Mention vasprintf-posix module.
10941         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10942         the 'vasprintf-posix' module.
10943         * doc/glibc-functions/vasprintf.texi: Likewise.
10944
10945 2010-12-19  Bruno Haible  <bruno@clisp.org>
10946
10947         unsetenv: Add missing declaration on OSF/1 5.1.
10948         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10949         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10950         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10952         not HAVE_UNSETENV.
10953         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10954         HAVE_UNSETENV.
10955         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10956
10957 2010-12-19  Bruno Haible  <bruno@clisp.org>
10958
10959         setenv: Add missing declaration on OSF/1 5.1.
10960         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10961         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10962         declared. Don't set HAVE_SETENV.
10963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10964         not HAVE_SETENV.
10965         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10966         HAVE_SETENV.
10967         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10968
10969 2010-12-19  Bruno Haible  <bruno@clisp.org>
10970
10971         nl_langinfo tests: Avoid gcc warning.
10972         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10973
10974 2010-12-19  Bruno Haible  <bruno@clisp.org>
10975
10976         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10977         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10978         _GL_CXXALIAS_SYS.
10979
10980 2010-12-19  Bruno Haible  <bruno@clisp.org>
10981
10982         stdbool: Relax test.
10983         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10984         address to 'bool' work in static initializer, for compilers other than
10985         GCC.
10986
10987 2010-12-19  Bruno Haible  <bruno@clisp.org>
10988
10989         ftello: Add missing declaration on OSF/1 5.1.
10990         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10991         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10993         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10994         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10995
10996 2010-12-19  Bruno Haible  <bruno@clisp.org>
10997
10998         fseeko: Add missing declaration on OSF/1 5.1.
10999         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11002         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11003         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11004
11005 2010-12-19  Bruno Haible  <bruno@clisp.org>
11006
11007         fchdir: Add missing declaration on OSF/1 5.1.
11008         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11011         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11012         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11013
11014 2010-12-19  Bruno Haible  <bruno@clisp.org>
11015
11016         relocatable-prog-wrapper: Separate from relocatable-prog.
11017         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11018         uninstall-relocwrapper rule here.
11019         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11020         Reported by Ian Beckwith <ianb@erislabs.net>.
11021
11022 2010-12-19  Bruno Haible  <bruno@clisp.org>
11023
11024         unistr/u8-mbsnlen: Add missing dependency.
11025         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11026         Reported by Ian Beckwith <ianb@erislabs.net>.
11027
11028 2010-12-19  Bruno Haible  <bruno@clisp.org>
11029
11030         iconv: Make it possible again to use this module without 'iconv-h'.
11031         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11032         if it is not defined.
11033         Reported by Ian Beckwith <ianb@erislabs.net>.
11034
11035 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         acl: port to Solaris 8 when copying from tmpfs to ufs
11038         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11039         error number.  Problem observed on Solaris 8 with latest
11040         coreutils, with "mv A B", where A is on a tmpfs file system and B
11041         is on a ufs file system.  This caused coreutils' mv/part-symlink
11042         test to fail.
11043
11044         tests: set fail=0 at start
11045         * tests/init.sh (setup_): Move fail=0 initialization here ...
11046         (mktempd_): ... from here, so that tests can rely on fail being
11047         set to 0 initially.  This fixes a problem in coreutils; see:
11048         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11049
11050 2010-12-18  Bruno Haible  <bruno@clisp.org>
11051
11052         memmem-simple: Stylistic changes.
11053         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11054         Fix preprocessor directive indentation.
11055
11056 2010-12-15  Pádraig Brady <P@draigBrady.com>
11057
11058         memmem, memmem-simple: reorganize and expand empty needle check
11059         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11060         functional checks to memmem-simple so that one has a fully functional
11061         memmem by using just this module.
11062         Restrict the performance only check to the memmem module.
11063         Also expand the empty needle check to ensure the correct
11064         pointer is returned, not just a non NULL pointer.
11065         * doc/glibc-functions/memmem.texi: Rearrange the portability
11066         documentation to correlate with the rearranged checks.
11067         Clarify exactly how the memmem and memmem-simple modules
11068         relate to each other.
11069
11070 2010-12-15  Pádraig Brady <P@draigBrady.com>
11071             Bruno Haible  <bruno@clisp.org>
11072
11073         Improve cross-compilation guesses for uClibc.
11074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11075         that uClibc does not have the glibc bug.
11076         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11077         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11078
11079 2010-12-14  Eric Blake  <eblake@redhat.com>
11080
11081         configmake: provide fallbacks for oldest supported autotools
11082         * m4/configmake.m4: New file.
11083         * modules/configmake (Files): Ship it.
11084         (configure.ac): Use it to guarantee fallbacks.
11085
11086 2010-12-13  Pádraig Brady <P@draigBrady.com>
11087
11088         read-file: Improve handling of large files
11089         * lib/read-file.c (fread_file): Minimize realloc()s
11090         for regular files, and better manage sizes around SIZE_MAX.
11091
11092 2010-12-13  Eric Blake  <eblake@redhat.com>
11093
11094         cloexec, fcntl: relax license
11095         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11096         consent from all contributors.
11097         * modules/fcntl (License): Likewise.
11098
11099 2010-12-10  Bruno Haible  <bruno@clisp.org>
11100
11101         Tests for module 'pipe-posix'.
11102         * modules/pipe-posix-tests: New file.
11103         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11104
11105 2010-12-10  Bruno Haible  <bruno@clisp.org>
11106
11107         pipe-posix: Make it work in C++ mode.
11108         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11109         (pipe): Use common idiom, not a macro definition.
11110         * lib/pipe.c: New file.
11111         * m4/pipe.m4: New file.
11112         * modules/pipe-posix (Description): Enhance.
11113         (Files): Add lib/pipe.c, m4/pipe.m4.
11114         (configure.ac): Invoke gl_FUNC_PIPE.
11115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11116         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11117         * tests/test-unistd-c++.cc: Check the signature of pipe.
11118
11119 2010-12-10  Bruno Haible  <bruno@clisp.org>
11120
11121         Rename module 'pipe' to 'spawn-pipe'.
11122         * modules/spawn-pipe: New file, renamed from modules/pipe.
11123         (Files, configure.ac, Makefile.am): Update.
11124         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11125         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11126         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11127         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11128         "spawn-pipe.h" instead of "pipe.h".
11129         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11130         to gl_SPAWN_PIPE.
11131         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11132         (Files, Makefile.am): Update.
11133         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11134         Update.
11135         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11136         Include "spawn-pipe.h" instead of "pipe.h".
11137         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11138         * lib/javacomp.c: Likewise.
11139         * lib/javaversion.c: Likewise.
11140         * lib/pipe-filter-gi.c: Likewise.
11141         * lib/pipe-filter-ii.c: Likewise.
11142         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11143         * modules/javacomp (Depends-on): Likewise.
11144         * modules/javaversion (Depends-on): Likewise.
11145         * modules/pipe-filter-gi (Depends-on): Likewise.
11146         * modules/pipe-filter-ii (Depends-on): Likewise.
11147         * MODULES.html.sh (Executing programs): Update.
11148         * NEWS: Mention the change.
11149
11150 2010-12-10  Eric Blake  <eblake@redhat.com>
11151
11152         pipe-posix: new module
11153         * modules/pipe-posix: New file.
11154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11155         (gl_UNISTD_H): Check for declaration.
11156         * modules/unistd (Makefile.am): Substitute it.
11157         * lib/unistd.in.h (pipe): Provide it for mingw.
11158         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11159         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11160
11161 2010-12-07  Bruno Haible  <bruno@clisp.org>
11162
11163         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11164         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11165         u8_strcmp_gnu.
11166         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11167
11168 2010-12-06  Bruno Haible  <bruno@clisp.org>
11169
11170         Update internal documentation.
11171         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11172
11173 2010-12-04  Bruno Haible  <bruno@clisp.org>
11174
11175         Put more information about failed tests into the test return codes.
11176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11177         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11178         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11180         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11181         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11182         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11183         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11184         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11187         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11188         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11189         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11190         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11191         returns a bit mask.
11192         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11193         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11194         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11195         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11196         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11197         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11200         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11201         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11202         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11203         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11204         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11205         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11206         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11207         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11208         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11209         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11213         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11215         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11216         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11217         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11218         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11219         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11220         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11221         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11222         gl_PRINTF_PRECISION): Likewise.
11223         * m4/regex.m4 (gl_REGEX): Likewise.
11224         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11225         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11226         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11227         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11230         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11231         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11232         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11233         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11234         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11235         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11237         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11238         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11239         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11240         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11244         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11245         enumerated value.
11246         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11247
11248 2010-12-04  Bruno Haible  <bruno@clisp.org>
11249
11250         Update for Solaris 11 2010-11.
11251         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11252         Express, released in November 2010.
11253
11254 2010-12-04  Bruno Haible  <bruno@clisp.org>
11255
11256         nproc: Relax license.
11257         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11258         and Paul Eggert.
11259         Requested by Ludovic Courtès <ludo@gnu.org>.
11260
11261 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11262
11263         utimecmp: fine-grained src to nearby coarse-grained dest
11264
11265         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11266         and the source is on a file system with higher-resolution time
11267         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11268         not work, and the time stamps are close together, the algorithm to
11269         determine the exact resolution from the read-back mtime was buggy:
11270         it had a "!=" where it should have had an "==".  This bug has been
11271         in the code ever since it was introduced to gnulib.
11272         Problem reported by Dan Jacobson in
11273         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11274
11275 2010-11-30  Bruno Haible  <bruno@clisp.org>
11276
11277         strerror_r-posix: Fix autoconf test.
11278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11279
11280 2010-11-28  Bruno Haible  <bruno@clisp.org>
11281             Paul Eggert  <eggert@cs.ucla.edu>
11282
11283         Tests for module 'getdomainname'.
11284         * modules/getdomainname-tests: New file.
11285         * tests/test-getdomainname.c: New file, based on
11286         tests/test-gethostname.c.
11287
11288 2010-11-28  Bruno Haible  <bruno@clisp.org>
11289             Paul Eggert  <eggert@cs.ucla.edu>
11290
11291         getdomainname: Use the system function when possible.
11292         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11293         (getdomainname): Replace if needed. Provide the declaration if it is
11294         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11295         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11296         (getdomainname): When the system has getdomainname, call the system
11297         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11298         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11299         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11300         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11301         the function if its second argument is of type 'int' or if it is found
11302         in libnsl.
11303         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11304         <sys/systeminfo.h> and sysinfo().
11305         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11307         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11308         HAVE_GETDOMAINNAME.
11309         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11310         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11311         * doc/glibc-functions/getdomainname.texi: Document the problems with
11312         the getdomainname declaration.
11313
11314 2010-11-28  Bruno Haible  <bruno@clisp.org>
11315
11316         sys_socket: Ensure ss_family field on AIX.
11317         * lib/sys_socket.in.h (ss_family): New macro definition.
11318         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11319         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11320         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11321         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11322         * modules/sys_socket (Makefile.am): Substitute
11323         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11324         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11325
11326 2010-11-27  Bruno Haible  <bruno@clisp.org>
11327
11328         readline: Improve configure output.
11329         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11330         "checking for readline..." result understandable.
11331
11332 2010-11-27  Bruno Haible  <bruno@clisp.org>
11333
11334         *printf-posix: Detect a bug on Solaris 10/x86.
11335         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11336         for floating-point output.
11337         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11338         directive.
11339         * tests/test-snprintf-posix.h (test_function): Likewise.
11340         * tests/test-sprintf-posix.h (test_function): Likewise.
11341         * tests/test-vasprintf-posix.c (test_function): Likewise.
11342         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11343         * doc/posix-functions/printf.texi: Likewise.
11344         * doc/posix-functions/snprintf.texi: Likewise.
11345         * doc/posix-functions/sprintf.texi: Likewise.
11346         * doc/posix-functions/vfprintf.texi: Likewise.
11347         * doc/posix-functions/vprintf.texi: Likewise.
11348         * doc/posix-functions/vsnprintf.texi: Likewise.
11349         * doc/posix-functions/vsprintf.texi: Likewise.
11350         * doc/glibc-functions/obstack_printf.texi: Likewise.
11351         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11352
11353 2010-11-27  Bruno Haible  <bruno@clisp.org>
11354
11355         Fix link error when module libunistring-optional is in use.
11356         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11357         * modules/striconveha-tests (Makefile.am): Likewise.
11358
11359 2010-11-27  Bruno Haible  <bruno@clisp.org>
11360
11361         regex: Mention link dependencies.
11362         * modules/regex (Link): New section.
11363         * modules/rpmatch (Link): Likewise.
11364         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11365
11366 2010-11-27  Bruno Haible  <bruno@clisp.org>
11367
11368         ftoastr: Fix compilation error on Solaris.
11369         * lib/ftoastr.c: Include <config.h>.
11370
11371 2010-11-27  Bruno Haible  <bruno@clisp.org>
11372
11373         getloadavg: Update documentation.
11374         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11375
11376 2010-11-27  Bruno Haible  <bruno@clisp.org>
11377
11378         sys_socket: Fix test whether the functions are declared.
11379         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11380         not <sys/select.h>.
11381
11382 2010-11-27  Bruno Haible  <bruno@clisp.org>
11383
11384         getpass: Make sure to get system declaration on some platforms.
11385         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11386         gl_USE_SYSTEM_EXTENSIONS.
11387         * modules/getpass (Depends-on): Add extensions.
11388
11389 2010-11-26  Bruno Haible  <bruno@clisp.org>
11390
11391         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11392         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11393         'iconv' module is present.
11394         (ICONV_CONST): New macro.
11395         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11396         ICONV_CONST.
11397         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11398         set ICONV_CONST.
11399         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11400         here.
11401         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11402         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11403         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11404         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11405         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11406         present.
11407
11408 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11409
11410         ftoastr: comment fix
11411         * lib/ftoastr.c: "little" -> "little or no" in comment
11412
11413 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11414
11415         stdint: port to GCC 4.3 + OSX + Octave
11416         On this platform, stdint.h is buggy and defines int64_t to long
11417         long int.  The replacement defined it to long int, causing
11418         problems with C++ style name mangling.  Instead, trust the system
11419         definition if INT64_MAX is defined, and likewise for the unsigned
11420         variant.   Problem reported by Jarno Rajahalme in
11421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11422         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11423         and don't mess with int64_t and INT64_MAX in this case.
11424         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11425
11426 2010-11-24  Bruno Haible  <bruno@clisp.org>
11427
11428         doc: Corrections regarding MacOS X 10.4 and 10.5.
11429         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11430         MacOS X.
11431         Reported by Simon Josefsson.
11432
11433 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11434
11435         Uninstall ".bin" files installed by relocwrapper.
11436         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11437         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11438         unless it is already there.
11439
11440 2010-11-21  Bruno Haible  <bruno@clisp.org>
11441
11442         Update for NetBSD 5.0.
11443         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11444         NetBSD; the test fails on NetBSD 5.0.
11445         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11446         about NetBSD.
11447
11448 2010-11-21  Bruno Haible  <bruno@clisp.org>
11449
11450         Update for HP-UX 11.23 and HP-UX 11.31.
11451         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11452         HP-UX.
11453
11454 2010-11-21  Bruno Haible  <bruno@clisp.org>
11455
11456         Update for MacOS X 10.5.
11457         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11458         MacOS X; the test fails on MacOS X 10.5.8.
11459         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11460         about MacOS X.
11461
11462 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11463
11464         bootstrap: add bootstrap_sync option.
11465         See discussion at
11466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11467         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11468         * build-aux/bootstrap: Accept --bootstrap-sync to update
11469         bootstrap if it is not identical to the local gnulib's
11470         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11471         enable this by default.  Accept --no-bootstrap-sync to disable
11472         it.
11473
11474 2010-11-20  Bruno Haible  <bruno@clisp.org>
11475
11476         Ensure that <features.h> is included before __GLIBC__ is tested.
11477         * lib/printf-parse.h: Include <features.h>.
11478         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11479         Reported by Mike Frysinger <vapier@gentoo.org>.
11480
11481         Ensure that <features.h> is included before __GLIBC__ is tested.
11482         * lib/wchar.in.h: Include <features.h>.
11483         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11484         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11485         Reported by Mike Frysinger <vapier@gentoo.org>.
11486
11487         Ensure that <features.h> is included before __GLIBC__ is tested.
11488         * lib/arpa_inet.in.h: Include <features.h>.
11489         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11490         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11491         Reported by Mike Frysinger <vapier@gentoo.org>.
11492
11493         Ensure that <features.h> is included before __GLIBC__ is tested.
11494         * build-aux/link-warning.h: Include <features.h>.
11495         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11496         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11497         Reported by Mike Frysinger <vapier@gentoo.org>.
11498
11499         Ensure that <features.h> is included before __GLIBC__ is tested.
11500         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11501         Reported by Mike Frysinger <vapier@gentoo.org>.
11502
11503 2010-11-20  Bruno Haible  <bruno@clisp.org>
11504
11505         memmem: Fix autoconf test.
11506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11507
11508 2010-11-20  Bruno Haible  <bruno@clisp.org>
11509
11510         Port to uClibc.
11511         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11512         * lib/fcntl.in.h: Likewise.
11513         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11514         * lib/mbrtowc.c (mbrtowc): Likewise.
11515         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11516         * lib/strerror_r.c: Likewise.
11517         * lib/unistr/u8-strnlen.c: Likewise.
11518         * lib/vasnprintf.c (decimal_point_char): Likewise.
11519         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11520         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11521         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11522         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11523         * tests/test-sigaction.c (handler, main): Likewise.
11524         * lib/freading.h: Treat uClibc like a non-glibc platform.
11525         * lib/freading.c: Likewise.
11526         * lib/gettext.h: Likewise.
11527         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11528         Likewise.
11529         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11530         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11531         * lib/propername.c (proper_name_utf8): Likewise.
11532         * lib/spawn.in.h: Likewise.
11533         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11534         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11535         mem_cd_iconveh_internal): Likewise.
11536         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11537         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11538         strstr, strcasestr): Likewise.
11539         * lib/unicodeio.c (unicode_to_mb): Likewise.
11540         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11541         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11542         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11543         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11544         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11545         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11546         * lib/unistr/u8-stpncpy.c: Likewise.
11547         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11548         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11549         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11550         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11551         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11552         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11553         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11556         Likewise.
11557         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11558         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11559         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11561         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11562         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11563         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11564         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11565         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11566         * tests/test-striconveha.c (main): Likewise.
11567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11568         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11569         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11570         * doc/posix-functions/getline.texi: Likewise.
11571         Reported by Mike Frysinger <vapier@gentoo.org>.
11572
11573 2010-11-20  Bruno Haible  <bruno@clisp.org>
11574
11575         nproc: Fix condition.
11576         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11577         HAVE_PTHREAD_AFFINITY_NP.
11578
11579 2010-11-20  Bruno Haible  <bruno@clisp.org>
11580
11581         Fix a comment.
11582         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11583
11584 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11585
11586         ftoastr: don't assume snprintf
11587         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11588         Implement a subset of snprintf here, by using sprintf safely.
11589         * modules/ftoastr (Depends-on): Remove snprintf.
11590
11591 2010-11-19  Jim Meyering  <meyering@redhat.com>
11592
11593         test-rename.h: fix compilation failure
11594         * tests/test-rename.h (test_rename): Add omitted "}".
11595
11596 2010-11-17  Jim Meyering  <meyering@redhat.com>
11597
11598         maint.mk: add a URL discussing the no-@acronym policy
11599         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11600
11601 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11602
11603         ftoastr: depend on snprintf, improve comments
11604         * lib/ftoastr.c: Also mention Loitsch's draft.
11605         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11606         needed in the current implementation, but it might simplify
11607         speeding up the code later.
11608         * modules/ftoastr: Depend on snprintf; this improves portability.
11609         Suggested by Bruno Haible in the same email.
11610
11611         ftoastr: port to hosts lacking strtof and strtold
11612         Problem reported by Bruno Haible in
11613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11614         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11615         environment and strtold (and presumably strtof) are not available.
11616         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11617         (configure.ac): Require gl_C99_STRTOLD.
11618
11619 2010-11-18  Bruno Haible  <bruno@clisp.org>
11620
11621         c-strtold: Avoid link error on AIX 7.
11622         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11623         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11624         (gl_C_STRTOLD): Test whether strtold_l exists.
11625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11626
11627 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11628
11629         intprops: new macro INT_BITS_STRLEN_BOUND
11630         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11631         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11632         not exposed.  Also, it uses a slightly tighter bound than before;
11633         though this makes no practical difference, we might as well be as
11634         tight as we easily can.
11635
11636         ftoastr: new module, for lossless conversion of floats to short strings
11637         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11638         * modules/ftoastr: New files.
11639
11640 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11641
11642         bootstrap: port to Solaris sed
11643         * build-aux/bootstrap (get_version): Port to Solaris sed.
11644         See Ralf Wildenhues's note in
11645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11646
11647 2010-11-14  Jim Meyering  <meyering@redhat.com>
11648
11649         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11650         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11651         and move definition closer to sole use.
11652
11653 2010-11-13  Jim Meyering  <meyering@redhat.com>
11654
11655         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11656         Now we require at least autoconf-2.59, which means the work-around
11657         is no longer needed.
11658         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11660         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11661         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11662         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11663
11664 2010-11-13  Bruno Haible  <bruno@clisp.org>
11665
11666         rename, renameat: Avoid test failures at NFS mounted locations.
11667         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11668         functions.
11669         (test_rename): Use assert_nonexistent.
11670         * tests/test-rename.c: Include <dirent.h>.
11671         * tests/test-renameat.c: Likewise.
11672         Reported by Gary V. Vaughan <gary@gnu.org>.
11673
11674         rename, renameat: Document Linux bug with NFS
11675         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11676         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11677         * doc/posix-functions/renameat.texi: Likewise.
11678         Suggested by Eric Blake.
11679
11680 2010-11-13  Bruno Haible  <bruno@clisp.org>
11681
11682         rename test: Add comments.
11683         * tests/test-rename.h (test_rename): Add structure and comments.
11684
11685 2010-11-13  Eric Blake  <eblake@redhat.com>
11686
11687         maintainer-makefile: cover a few more files
11688         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11689         scripts generated within C files, for libvirt.
11690
11691 2010-11-13  Bruno Haible  <bruno@clisp.org>
11692
11693         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11694         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11695         character, return the number of bytes that belong together, not always
11696         1.
11697         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11698         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11699         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11700         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11701         number of bytes of an invalid character.
11702         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11703         (main): Invoke it.
11704         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11705         results.
11706         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11707         malformed byte sequences.
11708         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11709         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11710         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11711         Reported by Ben Pfaff and Paolo Bonzini.
11712
11713 2010-11-13  Bruno Haible  <bruno@clisp.org>
11714
11715         openat: Work around glibc bug with fchownat() and empty file names.
11716         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11717         (gl_FUNC_FCHOWNAT): Invoke it.
11718         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11719         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11720         Reported by Gary V. Vaughan <gary@gnu.org>.
11721
11722 2010-11-13  Bruno Haible  <bruno@clisp.org>
11723
11724         openat: Ensure autoconf macro ordering.
11725         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11726         gl_USE_SYSTEM_EXTENSIONS.
11727         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11728
11729 2010-11-13  Bruno Haible  <bruno@clisp.org>
11730
11731         Update comments.
11732         * lib/unistr/u8-check.c: Update file name in comments.
11733         * lib/unistr/u8-mblen.c: Likewise.
11734         * lib/unistr/u8-prev.c: Likewise.
11735         * lib/unistr/u8-strmblen.c: Likewise.
11736         * lib/unistr/u8-strmbtouc.c: Likewise.
11737
11738 2010-11-13  Jim Meyering  <meyering@redhat.com>
11739
11740         tests: avoid test failure on Solaris 10 due to lack of PATH export
11741         * tests/test-update-copyright.sh: Don't forget to export PATH.
11742
11743         init.sh: ensure that IFS is defined, just in case...
11744         * tests/init.sh (setup_): Ensure that IFS is defined,
11745         so that saving and restoring it works as expected.  This
11746         appears to be useful at least for an old version of dash
11747         from a long time ago (RH 6).  See here for details:
11748         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11749
11750         maint.mk: tighten "test a == b" check
11751         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11752         test to files that contain something like #!/bin/sh.
11753         Without this, coreutils would get two false positives in
11754         the comments of C source files.
11755
11756 2010-11-12  Eric Blake  <eblake@redhat.com>
11757
11758         bootstrap: fix typo in previous attempt
11759         * build-aux/bootstrap (buildreq): Correct the grouping.
11760         Reported by Paul Eggert.
11761
11762         maintainer-makefile: prohibit test x == x
11763         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11764         Based on a report by Matthias Bolte.
11765
11766         bootstrap: allow FreeBSD gzip
11767         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11768         which has no '.' and goes to stderr.
11769         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11770         Reported by Matthias Bolte.
11771
11772         maintainer-makefile: check for i18n setup
11773         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11774         will likely work.
11775
11776 2010-11-12  Bruno Haible  <bruno@clisp.org>
11777
11778         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11779         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11780         * lib/nanosleep.c (nanosleep): Likewise.
11781
11782 2010-11-11  Bruno Haible  <bruno@clisp.org>
11783
11784         fcntl-h: Fix for use of C++ on glibc systems.
11785         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11786         also on glibc systems in C++ mode.
11787         Reported by Gary V. Vaughan <gary@gnu.org>.
11788
11789 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11790
11791         mknod: avoid false failure with dash
11792         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11793
11794 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11795
11796         unlink: Fix "is it should" typo in diagnostic.
11797         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11799
11800 2010-11-11  Bruno Haible  <bruno@clisp.org>
11801
11802         Tests for module 'strerror_r-posix'.
11803         * modules/strerror_r-posix-tests: New file.
11804         * tests/test-strerror_r.c: New file.
11805         * tests/test-string-c++.cc: Check the signature of strerror_r.
11806
11807         New module 'strerror_r-posix'.
11808         * lib/string.in.h (strerror_r): New declaration.
11809         * lib/strerror_r.c: New file.
11810         * m4/strerror_r.m4: New file.
11811         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11812         of strerror_r.
11813         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11814         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11815         * modules/strerror_r-posix: New file.
11816         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11817         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11818         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11819         portability problems.
11820
11821 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11822
11823         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11824         line is also considered for output. Quoted function name in shell
11825         command, so temporary files for functions like MyClass::operator()
11826         are removed correctly without errors.
11827
11828 2010-11-09  Bruno Haible  <bruno@clisp.org>
11829
11830         * doc/posix-functions/strerror.texi: List more failing platforms.
11831
11832         * doc/posix-functions/strerror.texi: Add a comment.
11833
11834 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11835
11836         fdopendir: fix bug on MacOS X when low on file descriptors
11837
11838         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11839         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11840         All callers changed.
11841         (fdopendir): Invoke save_cwd at the top level, not after using
11842         multiple dup() calls to use up file descriptors.  Then retry
11843         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11844         less than the maximum number of open file descriptors, because
11845         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11846         on Mac OS X 10.6.4 for tar 1.24
11847         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11848         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11849         and for tar 1.25
11850         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11851
11852 2010-11-07  Bruno Haible  <bruno@clisp.org>
11853
11854         vasnprintf: Support I flag on glibc systems.
11855         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11856         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11857         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11858         snprintf function.
11859         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11860         glibc systems.
11861         * tests/test-vasnprintf-posix3.c: New file.
11862         * modules/vasnprintf-posix-tests (Files): Add it.
11863         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11864
11865 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11866
11867         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11868         * MODULES.html.sh: For compiler warnings, use name
11869         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11870
11871 2010-11-05  Eric Blake  <eblake@redhat.com>
11872
11873         ceil, floor: avoid spurious failure with icc
11874         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11875         [denormals-as-zero] when optimizing without -mieee-fp option.
11876         * tests/test-floorf2.c (floorf_reference): Likewise.
11877         * tests/test-ceilf1.c (dummy): New function.
11878         (main): Use it to outsmart icc's optimization.
11879         * tests/test-floorf1.c (dummy, main): Likewise.
11880
11881         tests: require working signbit
11882         * modules/ceilf-tests (Depends-on): Add signbit.
11883         * modules/ceill-tests (Depends-on): Likewise.
11884         * modules/floorf-tests (Depends-on): Likewise.
11885         * modules/floorl-tests (Depends-on): Likewise.
11886         * modules/round-tests (Depends-on): Likewise.
11887         * modules/roundf-tests (Depends-on): Likewise.
11888         * modules/roundl-tests (Depends-on): Likewise.
11889         * modules/trunc-tests (Depends-on): Likewise.
11890         * modules/truncf-tests (Depends-on): Likewise.
11891         * modules/truncl-tests (Depends-on): Likewise.
11892
11893         strtod: work around icc bug
11894         * lib/strtod.c (minus_zero): Define to working value.
11895         (strtod): Use it to avoid icc bug.
11896
11897         copysign: enhance tests
11898         * modules/copysign-tests (Files): Add minus-zero.h.
11899         * tests/test-copysign.c (main): Also test zeros.
11900
11901 2010-11-04  Eric Blake  <eblake@redhat.com>
11902
11903         ceil, floor, round, trunc: enhance tests of -0
11904         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11905         * tests/test-ceill.c (main): Likewise.
11906         * tests/test-floorf1.c (main): Likewise.
11907         * tests/test-floorl.c (main): Likewise.
11908         * tests/test-round1.c (main): Likewise.
11909         * tests/test-roundf1.c (main): Likewise.
11910         * tests/test-roundl.c (main): Likewise.
11911         * tests/test-trunc1.c (main): Likewise.
11912         * tests/test-truncf1.c (main): Likewise.
11913         * tests/test-truncl.c (main): Likewise.
11914
11915 2010-11-04  Eric Blake  <eblake@redhat.com>
11916
11917         frexp, tests: work around ICC bug with -zero
11918         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11919         works with more compilers.
11920         * tests/minus-zero.h: New file.
11921         * modules/ceilf-tests (Files): Include it.
11922         * modules/ceill-tests (Files): Likewise.
11923         * modules/floorf-tests (Files): Likewise.
11924         * modules/floorl-tests (Files): Likewise.
11925         * modules/frexp-nolibm-tests (Files): Likewise.
11926         * modules/frexp-tests (Files): Likewise.
11927         * modules/frexpl-nolibm-tests (Files): Likewise.
11928         * modules/frexpl-tests (Files): Likewise.
11929         * modules/isnan-tests (Files): Likewise.
11930         * modules/isnand-nolibm-tests (Files): Likewise.
11931         * modules/isnand-tests (Files): Likewise.
11932         * modules/isnanf-nolibm-tests (Files): Likewise.
11933         * modules/isnanf-tests (Files): Likewise.
11934         * modules/isnanl-nolibm-tests (Files): Likewise.
11935         * modules/isnanl-tests (Files): Likewise.
11936         * modules/round-tests (Files): Likewise.
11937         * modules/roundf-tests (Files): Likewise.
11938         * modules/roundl-tests (Files): Likewise.
11939         * modules/ldexpl-tests (Files): Likewise.
11940         * modules/signbit-tests (Files): Likewise.
11941         * modules/snprintf-posix-tests (Files): Likewise.
11942         * modules/sprintf-posix-tests (Files): Likewise.
11943         * modules/strtod-tests (Files): Likewise.
11944         * modules/trunc-tests (Files): Likewise.
11945         * modules/truncf-tests (Files): Likewise.
11946         * modules/truncl-tests (Files): Likewise.
11947         * modules/vsnprintf-posix-tests (Files): Likewise.
11948         * modules/vsprintf-posix-tests (Files): Likewise.
11949         * modules/vasnprintf-posix-tests (Files): Likewise.
11950         * modules/vasprintf-posix-tests (Files): Likewise.
11951         * tests/test-ceilf1.c (main): Use it.
11952         * tests/test-ceill.c (main): Likewise.
11953         * tests/test-floorf1.c (main): Likewise.
11954         * tests/test-floorl.c (main): Likewise.
11955         * tests/test-frexp.c (main): Likewise.
11956         * tests/test-frexpl.c (main): Likewise.
11957         * tests/test-isnan.c (main): Likewise.
11958         * tests/test-isnand.h (main): Likewise.
11959         * tests/test-isnanf.h (main): Likewise.
11960         * tests/test-isnanl.h (main): Likewise.
11961         * tests/test-ldexpl.c (main): Likewise.
11962         * tests/test-round.c (main): Likewise.
11963         * tests/test-roundf.c (main): Likewise.
11964         * tests/test-roundl.c (main): Likewise.
11965         * tests/test-signbit.c (test_signbitf, test_signbitd)
11966         (test_signbitl): Likewise.
11967         * tests/test-snprintf-posix.h (test_function): Likewise.
11968         * tests/test-sprintf-posix.h (test_function): Likewise.
11969         * tests/test-strtod.c (main): Likewise.
11970         * tests/test-trunc1.c (main): Likewise.
11971         * tests/test-truncf1.c (main): Likewise.
11972         * tests/test-truncl.c (main): Likewise.
11973
11974         isnanl: work around icc bug
11975         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11976
11977 2010-11-03  Eric Blake  <eblake@redhat.com>
11978
11979         tests: fix compiler warnings
11980         * tests/test-getopt.h (test_getopt): Fix condition.
11981         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11982         * tests/test-pipe2.c (main): Likewise.
11983         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11984
11985         utimens: fix broken m4 test
11986         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11987
11988 2010-10-28  Bruno Haible  <bruno@clisp.org>
11989
11990         posix_spawn*, getdtablesize: Relax license.
11991         * modules/posix_spawn (License): Change to LGPLv2+.
11992         * modules/posix_spawnp (License): Likewise.
11993         * modules/posix_spawn-internal (License): Likewise.
11994         * modules/posix_spawnattr_init (License): Likewise.
11995         * modules/posix_spawnattr_getflags (License): Likewise.
11996         * modules/posix_spawnattr_setflags (License): Likewise.
11997         * modules/posix_spawnattr_getpgroup (License): Likewise.
11998         * modules/posix_spawnattr_setpgroup (License): Likewise.
11999         * modules/posix_spawnattr_getschedparam (License): Likewise.
12000         * modules/posix_spawnattr_setschedparam (License): Likewise.
12001         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12002         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12003         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12004         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12005         * modules/posix_spawnattr_getsigmask (License): Likewise.
12006         * modules/posix_spawnattr_setsigmask (License): Likewise.
12007         * modules/posix_spawnattr_destroy (License): Likewise.
12008         * modules/posix_spawn_file_actions_init (License): Likewise.
12009         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12010         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12011         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12012         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12013         * modules/getdtablesize (License): Likewise.
12014         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12015
12016 2010-10-26  Bruno Haible  <bruno@clisp.org>
12017
12018         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12019         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12020         Cygwin and mingw.
12021         Suggested by Eric Blake.
12022
12023 2010-10-26  Bruno Haible  <bruno@clisp.org>
12024
12025         stdio: Work around compilation error due to renameat() on Solaris 10.
12026         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12027         * lib/renameat.c: Don't include <unistd.h> here.
12028         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12029         Reported by Paul Eggert and Eric Blake.
12030
12031 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         renameat: port to Solaris 10, which declares renameat in unistd.h
12034
12035         * lib/renameat.c: Include unistd.h before stdio.h, because
12036         Solaris 10 declares renameat in unistd.h.  Problem encountered
12037         when building GNU tar 1.24 on Solaris 10.
12038
12039 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12040
12041         fdopendir: fix C89 compilation
12042         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12043         compilers.
12044
12045 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12046
12047         inttostr: simplify by removing unnecessary redundancy
12048         * lib/anytostr.c: Don't include verify.h.
12049         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12050         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12051         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12052         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12053         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12054         Likewise.
12055         * modules/inttostr (Depends-on): Remove 'verify'.
12056
12057 2010-10-23  Bruno Haible  <bruno@clisp.org>
12058
12059         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12060         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12061         Reported by Eric Blake.
12062
12063 2010-10-23  Bruno Haible  <bruno@clisp.org>
12064
12065         Tests: Fix LOCALE_JA on MirBSD 10.
12066         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12067         to an UTF-8 locale.
12068         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12069         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12070         Reported by Eric Blake.
12071
12072 2010-10-21  Bruno Haible  <bruno@clisp.org>
12073
12074         nl_langinfo test: Avoid test failure on NetBSD 5.
12075         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12076         Reported by Eric Blake.
12077
12078 2010-10-21  Eric Blake  <eblake@redhat.com>
12079
12080         c-stack: work around libsigsegv 2.8 bug
12081         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12082         overflow on at least PowerPC64.
12083
12084 2010-10-17  Bruno Haible  <bruno@clisp.org>
12085
12086         userspec: Drop redundant file.
12087         * modules/userspec (Files): Remove lib/inttostr.h.
12088
12089 2010-10-17  Bruno Haible  <bruno@clisp.org>
12090
12091         nl_langinfo tests: Silence some warnings.
12092         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12093         Reported by Jim Meyering.
12094
12095 2010-10-17  Bruno Haible  <bruno@clisp.org>
12096
12097         Make use of GCC's attribute __alloc_size__.
12098         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12099         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12100         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12101         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12102         __alloc_size__.
12103         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12104         Suggested by Jim Meyering.
12105
12106 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12107
12108         bootstrap: anchor .gitignore entries.
12109         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12110         with...
12111         (insert_vc_ignore): ... this new function, which prepends `/' to
12112         all .gitignore entries before passing them to
12113         insert_sorted_if_absent.
12114
12115 2010-10-16  Bruno Haible  <bruno@clisp.org>
12116
12117         nextafter: Fix configure check.
12118         * modules/nextafter (configure.ac): Correct expected prototype.
12119
12120 2010-10-16  Bruno Haible  <bruno@clisp.org>
12121
12122         termios: Update documentation.
12123         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12124
12125 2010-10-16  Bruno Haible  <bruno@clisp.org>
12126
12127         tests: Make them compile with TinyCC.
12128         * tests/test-strstr.c (main): Remove parentheses around array
12129         initializer.
12130
12131 2010-10-15  Eric Blake  <eblake@redhat.com>
12132
12133         ignore-value: make header idempotent
12134         * lib/ignore-value.h: Add double-inclusion guards.
12135         Reported by Stefan Berger.
12136
12137 2010-10-15  Jim Meyering  <meyering@redhat.com>
12138
12139         GNUmakefile: handle "stable" target, not "major"
12140         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12141         lists in maint.mk and announce-gen.  Without this, "make stable"
12142         would fail to ensure that $(VERSION) is up to date.
12143
12144 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12145
12146         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12147         & co.
12148
12149 2010-10-14  Bruno Haible  <bruno@clisp.org>
12150
12151         vasnprintf: Don't set errno to 0.
12152         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12153         block that sets it to 0.
12154         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12155
12156 2010-10-14  Bruno Haible  <bruno@clisp.org>
12157
12158         socketlib: Fix.
12159         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12160         gl_PREREQ_SYS_H_WINSOCK2.
12161         Reported by Ian Beckwith <ianb@erislabs.net>.
12162
12163 2010-10-13  Jim Meyering  <meyering@redhat.com>
12164
12165         test-select-stdin.c: avoid warn_unused_result warnings
12166         * tests/test-select-stdin.c: Include "macros.h".
12167         ASSERT that read and fflush succeed.
12168
12169 2010-10-13  Jim Meyering  <meyering@redhat.com>
12170
12171         git-version-gen: do require git-VC'd files in cwd
12172         * build-aux/git-version-gen: Reject a git version string
12173         if there are no commits associated with the current directory.
12174         This avoids an unlikely false-positive (unrelated dir whose parent
12175         repository also contains a tag matching v*), as pointed out
12176         by Giuseppe Scrivano in
12177         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12178
12179 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         argv-iter: omit nonconforming declaration
12182         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12183         enum arg_iter_err declaration, which doesn't conform to C99.
12184         Solaris 10 cc warns about this.
12185
12186 2010-10-13  Eric Blake  <eblake@redhat.com>
12187
12188         termios: fix compilation on mingw
12189         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12190         (gl_TERMIOS_H): Adjust it on mingw.
12191         * modules/termios (Makefile.am): Substitute new key.
12192         * lib/termios.in.h (includes): Make include_next conditional.
12193         * doc/posix-headers/termios.texi (termios.h): Update
12194         documentation.
12195         Reported by Daniel P. Berrange.
12196
12197 2010-10-13  Jim Meyering  <meyering@redhat.com>
12198
12199         git-version-gen: don't require that .git/ be in the current dir
12200         * build-aux/git-version-gen: Adjust this script so that it works
12201         when run from any working directory beneath the top-level .git/-
12202         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12203         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12204
12205         test-select: avoid warn_unused_result warnings
12206         * tests/test-select.c: Include "macros.h".
12207         ASSERT that each call to read, write, and pipe succeeds.
12208         While not technically required, also check each "close".
12209         * modules/select-tests (Files): Add tests/macros.h.
12210
12211         test-symlinkat: remove declaration of unused local
12212         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12213
12214         test-inttostr: avoid shadowing warnings
12215         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12216         and use malloc rather than the stack for the same reason as
12217         mentioned in the comment justifying the other allocation.
12218
12219 2010-10-11  Bruno Haible  <bruno@clisp.org>
12220
12221         stdlib: Allow multiple gnulib generated replacements to coexist.
12222         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12223         Reported by Sam Steingold <sds@gnu.org>.
12224
12225 2010-10-11  Jim Meyering  <meyering@redhat.com>
12226
12227         fix a documentation typo
12228         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12229
12230 2010-10-11  Eric Blake  <eblake@redhat.com>
12231
12232         futimens: work around Solaris 11 bug
12233         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12234         * tests/test-futimens.h (test_futimens): Enhance, rather than
12235         weaken test.
12236         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12237
12238 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12239
12240         Indentation.
12241         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12242         higher-level operators more to the left.
12243
12244 2010-10-11  Jim Meyering  <meyering@redhat.com>
12245
12246         test-futimens: avoid unwarranted test failure on Solaris 5.11
12247         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12248         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12249         because it tries to dereference the NULL name argument.
12250
12251 2010-10-11  Bruno Haible  <bruno@clisp.org>
12252
12253         Indentation.
12254         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12255         indentation.
12256
12257 2010-10-11  Jim Meyering  <meyering@redhat.com>
12258
12259         spawn.in.h: make indentation consistent with parentheses
12260         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12261         Make indentation consistent with parentheses.
12262
12263 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12264
12265         Fix mismatched parens in previous commit
12266         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12267         parens.
12268
12269 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12272
12273         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12274         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12275         * lib/malloca.c: Include "verify.h".
12276         (verify1): Remove, replacing with a verify call.
12277         * lib/relocwrapper.c (verify1): Likewise.
12278         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12279         Likewise.
12280         * modules/malloca (Depends-on): Add 'verify'.
12281         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12282         * modules/vasnprintf (Depends-on): Add 'verify'.
12283         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12284         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12285         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12286         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12287         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12288         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12289         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12290
12291         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12292
12293         Formerly the style was sometimes 2*X - 1, because the C standard
12294         was wrongly thought to disallow ?: in integral constant expressions.
12295         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12296         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12297         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12298         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12299         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12300         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12301         verify that time_t cannot be floating.
12302
12303 2010-10-08  Eric Blake  <eblake@redhat.com>
12304
12305         time: enforce recent POSIX ruling that time_t is integral
12306         * lib/time.in.h (__time_t_must_be_integral): Detect any
12307         problematic systems, allowing the rest of gnulib to assume POSIX.
12308
12309 2010-10-08  Jim Meyering  <meyering@redhat.com>
12310
12311         fdopendir: fix a bug on systems lacking openat and /proc support
12312         OpenBSD 4.7 is one such system.  The most noticeable effect was
12313         failure of any application making nontrivial use of fts: rm, du,
12314         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12315           ./rm: traversal failed: `a': Bad file descriptor
12316         Debugging that, you see that even though FD 6 was closed just
12317         prior to the opendir call in fd_clone_opendir, its resulting
12318         dir->dd_fd was 8, rather than the expected value of 6:
12319
12320         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12321         93                close (fd);
12322         (gdb) n
12323         94                dir = fd_clone_opendir (dupfd);
12324         (gdb) n
12325         95                saved_errno = errno;
12326         (gdb) p dir->dd_fd
12327         $11 = 8
12328
12329         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12330         The problem is that on OpenBSD, fd_clone_opendir has to resort
12331         to using the old-style save/restore CWD mechanism, due to its
12332         lack of openat/proc support, and *that* would steal the FD (6)
12333         that opendir was supposed to use.
12334
12335         The fix is to squirrel away the desired FD so that save_cwd uses a
12336         different one, and then free the dest FD right before calling opendir.
12337         That guarantees opendir will use the required file descriptor.
12338
12339         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12340
12341 2010-10-08  Bruno Haible  <bruno@clisp.org>
12342
12343         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12344         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12345
12346 2010-10-08  Bruno Haible  <bruno@clisp.org>
12347
12348         nanosleep: Make replacement POSIX compliant.
12349         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12350         is out of range.
12351         Reported by Jim Meyering.
12352
12353 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12354
12355         bootstrap: add hook for altering gnulib.mk, for Bison
12356         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12357         the Bison bootstrapping process can rewrite file names and variables
12358         in this file before later parts of 'bootstrap' use the file.
12359         Bison wants to include lib/gnulib.mk from the top-level makefile,
12360         so it needs the file names in this file to be relative to the top
12361         level, not relative to lib; plus it needs variable names to be
12362         rewritten.
12363         (slurp): Use the new function.
12364
12365         bootstrap: reformat for readability
12366         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12367
12368 2010-10-08  Eric Blake  <eblake@redhat.com>
12369
12370         docs: update cygwin progress
12371         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12372         1.7.7.
12373         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12374         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12375         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12376         * doc/posix-functions/carg.texi (carg): Likewise.
12377         * doc/posix-functions/cargf.texi (cargf): Likewise.
12378         * doc/posix-functions/casin.texi (casin): Likewise.
12379         * doc/posix-functions/casinf.texi (casinf): Likewise.
12380         * doc/posix-functions/casinh.texi (casinh): Likewise.
12381         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12382         * doc/posix-functions/catan.texi (catan): Likewise.
12383         * doc/posix-functions/catanf.texi (catanf): Likewise.
12384         * doc/posix-functions/catanh.texi (catanh): Likewise.
12385         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12386         * doc/posix-functions/ccos.texi (ccos): Likewise.
12387         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12388         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12389         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12390         * doc/posix-functions/cexp.texi (cexp): Likewise.
12391         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12392         * doc/posix-functions/cimag.texi (cimag): Likewise.
12393         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12394         * doc/posix-functions/clog.texi (clog): Likewise.
12395         * doc/posix-functions/clogf.texi (clogf): Likewise.
12396         * doc/posix-functions/conj.texi (conj): Likewise.
12397         * doc/posix-functions/conjf.texi (conjf): Likewise.
12398         * doc/posix-functions/cpow.texi (cpow): Likewise.
12399         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12400         * doc/posix-functions/cproj.texi (cproj): Likewise.
12401         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12402         * doc/posix-functions/creal.texi (creal): Likewise.
12403         * doc/posix-functions/crealf.texi (crealf): Likewise.
12404         * doc/posix-functions/csin.texi (csin): Likewise.
12405         * doc/posix-functions/csinf.texi (csinf): Likewise.
12406         * doc/posix-functions/csinh.texi (csinh): Likewise.
12407         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12408         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12409         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12410         * doc/posix-functions/ctan.texi (ctan): Likewise.
12411         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12412         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12413         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12414         * doc/posix-headers/complex.texi (complex.h): Likewise.
12415
12416 2010-10-07  Jim Meyering  <meyering@redhat.com>
12417
12418         parse-datetime: avoid compilation failure on OpenBSD 4.7
12419         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12420         This works around a compilation failure on OpenBSD 4.7:
12421         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12422
12423 2010-10-07  Eric Blake  <eblake@redhat.com>
12424
12425         docs: update cygwin progress
12426         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12427         1.7.6.
12428         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12429         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12430         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12431         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12432         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12433         Likewise.
12434         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12435         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12436         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12437         Likewise.
12438         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12439         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12440         Likewise.
12441         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12442         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12443         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12444         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12445         Likewise.
12446         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12447         Likewise.
12448         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12449
12450         docs: update parse-datetime history
12451         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12452         documentation of this function's history and alternatives.
12453
12454         cygwin: use more robust version check
12455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12456         exclude an eventual cygwin 1.9.1.
12457         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12459         (gl_FUNC_STRCASESTR): Likewise.
12460         Reported by Bruno Haible.
12461
12462 2010-10-06  Bruno Haible  <bruno@clisp.org>
12463
12464         string, sys_select: Avoid #including large headers unless necessary.
12465         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12466         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12467         OSF/1, BeOS, Haiku.
12468         Reported by Jim Meyering.
12469
12470 2010-10-05  Eric Blake  <eblake@redhat.com>
12471
12472         memmem, strstr, strcasestr: fix bug with long periodic needle
12473         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12474         periodic needle having false positive.
12475         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12476         and cygwin 1.7.7.
12477         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12479         (gl_FUNC_STRCASESTR): Likewise.
12480         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12481         * tests/test-memmem.c (main): Expose the bug.
12482         * tests/test-strcasestr.c (main): Likewise.
12483         * tests/test-strstr.c (main): Likewise.
12484         * tests/test-c-strcasestr.c (main): Likewise.
12485         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12486         * doc/posix-functions/strstr.texi (strstr): Likewise.
12487         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12488         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12489
12490 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12491
12492         parse-datetime: do some more renaming
12493         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12494         parse_datetime, not get_date.  Mention the renaming.
12495         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12496         in comments.
12497         * m4/bison.m4: Likewise.
12498
12499 2010-10-05  Eric Blake  <eblake@redhat.com>
12500
12501         parse-datetime: better name than get_date
12502         * NEWS: Reword the deprecation notice.
12503         * modules/get_date: Rename to modules/parse-datetime.
12504         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12505         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12506         * lib/get_date.y: Rename to lib/parse-datetime.y.
12507         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12508         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12509         * doc/getdate.texi: Provide fallback wrapper.
12510         * lib/getdate.h: Move guts, and wrap...
12511         * lib/parse-datetime.h: ...new file.
12512         * lib/parse-datetime.y (get_date): Rename...
12513         (parse_datetime): ...to this.
12514         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12515         (gl_PARSE_DATETIME): ...to this.
12516         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12517         documentation.
12518         * modules/getdate (Files): Provide fallback docs and header.
12519         (Notice, Depends-on): Update references.
12520         * tests/test-parse-datetime.c: Likewise.
12521         * DEPENDENCIES: Likewise.
12522         * MODULES.html.sh (Date and time <time.h>): Likewise.
12523         * doc/parse-datetime.texi (Date input formats)
12524         (Authors of parse_datetime): Likewise.
12525         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12526         (Include): Likewise.
12527         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12528         * gnulib-tool: Likewise.
12529         * m4/bison.m4 (gl_BISON): Likewise.
12530         Suggested by Bruno Haible.
12531
12532 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12533
12534         more ports to Solaris tr, which needs [] around ranges
12535         * gnulib-tool: Solaris tr needs [] around ranges.
12536         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12537         * tests/test-pipe-filter-gi1.c (main): Likewise.
12538         * tests/test-pipe-filter-ii1.c (main): Likewise.
12539
12540 2010-10-05  Eric Blake  <eblake@redhat.com>
12541
12542         bootstrap: fix Solaris regression
12543         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12544         around ranges.
12545         Reported by Pádraig Brady.
12546
12547         bootstrap: work with pkg-config
12548         * build-aux/bootstrap (check_versions): Also transliterate - in
12549         prerequisite name.
12550         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12551         prerequisites that were already found, to avoid confusion.
12552         Reported by Justin Clift.
12553
12554         faccessat: remove unused wrappers
12555         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12556         presence of these wrappers dragged in -lgen on Solaris.
12557         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12558
12559 2010-10-05  Jim Meyering  <meyering@redhat.com>
12560
12561         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12562         * Makefile (sc_pragma_columns): New syntax-check rule.
12563
12564 2010-10-04  Bruno Haible  <bruno@clisp.org>
12565
12566         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12567         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12568         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12569         Reported by Bruce Korb and Eric Blake.
12570
12571 2010-10-04  Bruno Haible  <bruno@clisp.org>
12572
12573         threadlib: Make option --with-libpth-prefix work.
12574         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12575         use $LIBPTH, not just -lpth.
12576
12577 2010-10-04  Bruno Haible  <bruno@clisp.org>
12578
12579         Avoid line length limitation from HP NonStop system header files.
12580         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12581         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12582         * lib/ctype.in.h: Likewise.
12583         * lib/dirent.in.h: Likewise.
12584         * lib/errno.in.h: Likewise.
12585         * lib/fcntl.in.h: Likewise.
12586         * lib/float.in.h: Likewise.
12587         * lib/getopt.in.h: Likewise.
12588         * lib/iconv.in.h: Likewise.
12589         * lib/inttypes.in.h: Likewise.
12590         * lib/langinfo.in.h: Likewise.
12591         * lib/locale.in.h: Likewise.
12592         * lib/math.in.h: Likewise.
12593         * lib/netdb.in.h: Likewise.
12594         * lib/netinet_in.in.h: Likewise.
12595         * lib/poll.in.h: Likewise.
12596         * lib/pthread.in.h: Likewise.
12597         * lib/pty.in.h: Likewise.
12598         * lib/sched.in.h: Likewise.
12599         * lib/se-selinux.in.h: Likewise.
12600         * lib/search.in.h: Likewise.
12601         * lib/signal.in.h: Likewise.
12602         * lib/spawn.in.h: Likewise.
12603         * lib/stdarg.in.h: Likewise.
12604         * lib/stddef.in.h: Likewise.
12605         * lib/stdint.in.h: Likewise.
12606         * lib/stdio.in.h: Likewise.
12607         * lib/stdlib.in.h: Likewise.
12608         * lib/string.in.h: Likewise.
12609         * lib/strings.in.h: Likewise.
12610         * lib/sys_file.in.h: Likewise.
12611         * lib/sys_ioctl.in.h: Likewise.
12612         * lib/sys_select.in.h: Likewise.
12613         * lib/sys_socket.in.h: Likewise.
12614         * lib/sys_stat.in.h: Likewise.
12615         * lib/sys_time.in.h: Likewise.
12616         * lib/sys_times.in.h: Likewise.
12617         * lib/sys_utsname.in.h: Likewise.
12618         * lib/sys_wait.in.h: Likewise.
12619         * lib/sysexits.in.h: Likewise.
12620         * lib/termios.in.h: Likewise.
12621         * lib/time.in.h: Likewise.
12622         * lib/unistd.in.h: Likewise.
12623         * lib/wchar.in.h: Likewise.
12624         * lib/wctype.in.h: Likewise.
12625         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12626         * modules/ctype (Makefile.am): Likewise.
12627         * modules/dirent (Makefile.am): Likewise.
12628         * modules/errno (Makefile.am): Likewise.
12629         * modules/fcntl-h (Makefile.am): Likewise.
12630         * modules/float (Makefile.am): Likewise.
12631         * modules/getopt-posix (Makefile.am): Likewise.
12632         * modules/iconv-h (Makefile.am): Likewise.
12633         * modules/inttypes (Makefile.am): Likewise.
12634         * modules/langinfo (Makefile.am): Likewise.
12635         * modules/locale (Makefile.am): Likewise.
12636         * modules/math (Makefile.am): Likewise.
12637         * modules/netdb (Makefile.am): Likewise.
12638         * modules/netinet_in (Makefile.am): Likewise.
12639         * modules/poll-h (Makefile.am): Likewise.
12640         * modules/pthread (Makefile.am): Likewise.
12641         * modules/pty (Makefile.am): Likewise.
12642         * modules/sched (Makefile.am): Likewise.
12643         * modules/search (Makefile.am): Likewise.
12644         * modules/selinux-h (Makefile.am): Likewise.
12645         * modules/signal (Makefile.am): Likewise.
12646         * modules/spawn (Makefile.am): Likewise.
12647         * modules/stdarg (Makefile.am): Likewise.
12648         * modules/stddef (Makefile.am): Likewise.
12649         * modules/stdint (Makefile.am): Likewise.
12650         * modules/stdio (Makefile.am): Likewise.
12651         * modules/stdlib (Makefile.am): Likewise.
12652         * modules/string (Makefile.am): Likewise.
12653         * modules/strings (Makefile.am): Likewise.
12654         * modules/sys_file (Makefile.am): Likewise.
12655         * modules/sys_ioctl (Makefile.am): Likewise.
12656         * modules/sys_select (Makefile.am): Likewise.
12657         * modules/sys_socket (Makefile.am): Likewise.
12658         * modules/sys_stat (Makefile.am): Likewise.
12659         * modules/sys_time (Makefile.am): Likewise.
12660         * modules/sys_times (Makefile.am): Likewise.
12661         * modules/sys_utsname (Makefile.am): Likewise.
12662         * modules/sys_wait (Makefile.am): Likewise.
12663         * modules/sysexits (Makefile.am): Likewise.
12664         * modules/termios (Makefile.am): Likewise.
12665         * modules/time (Makefile.am): Likewise.
12666         * modules/unistd (Makefile.am): Likewise.
12667         * modules/wchar (Makefile.am): Likewise.
12668         * modules/wctype (Makefile.am): Likewise.
12669
12670 2010-10-04  Bruno Haible  <bruno@clisp.org>
12671
12672         read-file tests: Avoid a test failure on NonStop Kernel.
12673         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12674         a regular file.
12675         Reported by Joachim Schmitz <schmitz@hp.com>.
12676
12677 2010-10-03  Bruno Haible  <bruno@clisp.org>
12678
12679         gnulib-tool: Fixes for --create-testdir with --libtool.
12680         * gnulib-tool (func_get_automake_snippet): Don't augment
12681         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12682         an executable.
12683         (func_create_testdir): Handle module 'alloca' like func_import.
12684         Reported by Bruce Korb <bruce.korb@gmail.com>.
12685
12686 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12687
12688         Avoid some lines longer than 80 characters.
12689         * lib/stdint.in.h: Break long comment lines.
12690         * lib/math.in.h: Likewise.
12691         (_GL_NUM_UINT_WORDS): New macro, for readability.
12692         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12693         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12694         * lib/stdlib.in.h: Likewise.
12695         * lib/spawn.in.h: Likewise.
12696         * lib/sys_socket.in.h: Update an URL.
12697         * lib/sys_stat.in.h: Break long line.
12698
12699 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12700
12701         Improve pmccabe2html.
12702         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12703         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12704         when the sources change. Remove the line in the HTML about "Used
12705         ranges" (which implied that there might be other unused ranges),
12706         rename "Resume" to "Summary" (easier to understand for more users).
12707         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12708         styles, and some unnecessary blank lines.
12709
12710 2010-10-03  Bruno Haible  <bruno@clisp.org>
12711             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12712
12713         acl: Add support for ACLs on NonStop Kernel.
12714         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12715         Check whether the function aclsort() exists.
12716         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12717         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12718         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12719         (acl_nontrivial [HAVE_ACLSORT]: New function.
12720         (file_has_acl): Implement for NonStop Kernel.
12721         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12722         (qset_acl): Implement for NonStop Kernel.
12723         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12724         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12725         (main): Implement for NonStop Kernel.
12726         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12727         Kernel. Handle this flavor.
12728         * tests/test-set-mode-acl.sh: Likewise.
12729         * tests/test-copy-acl.sh: Likewise.
12730         * tests/test-copy-file.sh: Likewise.
12731
12732 2010-10-03  Bruno Haible  <bruno@clisp.org>
12733
12734         Info about ACLs on NonStop Kernel.
12735         * doc/acl-resources.txt: Add info about NonStop Kernel.
12736         References by Joachim Schmitz <schmitz@hp.com>.
12737
12738 2010-10-02  Bruno Haible  <bruno@clisp.org>
12739
12740         Define missing EDQUOT on NonStop Kernel.
12741         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12742         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12743         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12744         missing.
12745         * doc/posix-headers/errno.texi: Mention the NSK bug.
12746         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12747         Reported by Joachim Schmitz <schmitz@hp.com>.
12748
12749 2010-10-02  Bruno Haible  <bruno@clisp.org>
12750
12751         Update doc for POSIX:2008.
12752         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12753         Update URL of POSIX specification.
12754
12755 2010-10-02  Bruno Haible  <bruno@clisp.org>
12756
12757         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12758         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12759         from gnulib, not from Automake.
12760
12761 2010-10-02  Bruno Haible  <bruno@clisp.org>
12762
12763         New module 'system-posix'.
12764         * modules/system-posix: New file.
12765         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12766         module is present.
12767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12768         GNULIB_SYSTEM_POSIX.
12769         * modules/stdlib (Depends-on): Remove sys_wait.
12770         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12771         * doc/posix-functions/system.texi: Mention the new module.
12772         * doc/posix-headers/stdlib.texi: Likewise.
12773         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12774         define test_sys_wait_macros to a no-op.
12775         Reported by Sam Steingold <sds@gnu.org>.
12776
12777 2010-09-30  Bruno Haible  <bruno@clisp.org>
12778
12779         More renaming from 'getdate' to 'get_date'.
12780         * doc/get_date.texi: Renamed from doc/getdate.texi.
12781         * modules/get_date (Files): Update.
12782         * MODULES.html.sh (Date and time <time.h>): Update.
12783         * DEPENDENCIES: Update.
12784         * gnulib-tool: Update comment.
12785         * m4/bison.m4 (gl_BISON): Likewise.
12786         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12787
12788 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12789
12790         bootstrap: support ACLOCAL_FLAGS during aclocal
12791         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12792         can add additional -I dir for third-party .m4 files.
12793
12794 2010-09-30  Eric Blake  <eblake@redhat.com>
12795
12796         bootstrap: use glibtoolize on MacOS
12797         * build-aux/bootstrap (check_versions): Convert libtool into
12798         libtoolize.
12799         (tool search): Move libtool check earlier, and look for
12800         glibtoolize for MacOS.
12801         (gnulib_tool_options): Auto-add --libtool when appropriate.
12802         Reported by Justin Clift.
12803
12804         poll: fix typo that broke test on MacOS
12805         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12806         Reported by Justin Clift.
12807
12808         getdate: rename to get_date
12809         Note: getdate.h is not renamed, to minimize client impact.
12810         * modules/getdate: Mark obsolete.  Move old contents...
12811         * modules/get_date: ...to new module name.
12812         * modules/getdate-tests: Move...
12813         * modules/get_date-tests: ...here.
12814         * m4/getdate.m4: Move...
12815         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12816         * lib/getdate.y: Move...
12817         * lib/get_date.y: ...here.
12818         * tests/test-getdate.c: Move...
12819         * tests/test-get_date.c: ...here.
12820         * doc/posix-functions/getdate.texi (getdate): Update name.
12821         * NEWS: Mention the change.
12822
12823 2010-09-29  Bruno Haible  <bruno@clisp.org>
12824
12825         Separate the module 'waitpid' from the module 'sys_wait'.
12826         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12827         present.
12828         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12829         gl_MODULE_INDICATOR_FOR_TESTS.
12830         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12831         * modules/sys_wait (Depends-on): Remove waitpid.
12832         (Makefile.am): Substitute GNULIB_WAITPID.
12833         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12834         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12835         signature only if the 'waitpid' module is present.
12836         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12837         * NEWS: Mention the change.
12838         * modules/grantpt (Depends-on): Add waitpid.
12839         * modules/wait-process (Depends-on): Likewise.
12840
12841 2010-09-29  Bruno Haible  <bruno@clisp.org>
12842
12843         More tests for module 'sys_wait'.
12844         * modules/sys_wait-c++-tests: New file.
12845         * tests/test-sys_wait-c++.cc: New file.
12846         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12847         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12848
12849 2010-09-29  Bruno Haible  <bruno@clisp.org>
12850
12851         New module 'waitpid'.
12852         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12853         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12854         Don't include <process.h>.
12855         (waitpid): Declare only, using modern idiom.
12856         * m4/waitpid.m4: New file.
12857         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12858         * modules/waitpid: New file.
12859         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12860         (Makefile.am): Update.
12861         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12862
12863 2010-09-28  Bruno Haible  <bruno@clisp.org>
12864
12865         poll: Assume ANSI C.
12866         * lib/poll.c (poll): Use an ANSI C declaration.
12867
12868 2010-09-28  Bruno Haible  <bruno@clisp.org>
12869
12870         poll-h: Create poll.h on all platforms.
12871         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12872         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12873         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12874         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12875         (gl_REPLACE_POLL_H): Don't set POLL_H.
12876         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12877         * modules/poll-h (Depends-on): Add include_next.
12878         (Makefile.am): Create poll.h unconditionally. Substitute also
12879         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12880
12881 2010-09-28  Bruno Haible  <bruno@clisp.org>
12882
12883         Tests for module 'poll-h'.
12884         * modules/poll-h-c++-tests: New file.
12885         * tests/test-poll-h-c++.cc: New file.
12886
12887         Tests for module 'poll-h'.
12888         * modules/poll-h-tests: New file.
12889         * tests/test-poll-h.c: New file.
12890
12891 2010-09-28  Bruno Haible  <bruno@clisp.org>
12892
12893         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12894         * modules/poll-h (Depends-on): Add 'extensions'.
12895
12896 2010-09-28  Bruno Haible  <bruno@clisp.org>
12897
12898         New module 'poll-h'.
12899         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12900         (poll): Use modern idiom.
12901         * modules/poll-h: New file.
12902         * modules/poll (Files): Remove lib/poll.in.h.
12903         (Depends-on): Add poll-h.
12904         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12905         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12906         * m4/poll_h.m4: New file.
12907         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12908         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12909         and invoke gl_REPLACE_POLL_H.
12910         * lib/poll.c: Use common idiom.
12911         * tests/test-poll.c: Likewise.
12912         * doc/posix-headers/poll.texi: Mention the poll-h module.
12913         Suggested by Eric Blake.
12914
12915 2010-09-26  Bruno Haible  <bruno@clisp.org>
12916
12917         sys_wait: Implement WSTOPSIG.
12918         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12919         Reported by Simon Josefsson.
12920
12921 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12922
12923         stdlib, sys_wait: Avoid compilation error on mingw.
12924         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12925
12926 2010-09-26  Bruno Haible  <bruno@clisp.org>
12927
12928         stdlib tests: Avoid code duplication.
12929         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12930         * modules/sys_wait-tests (Files): Likewise.
12931         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12932         * tests/test-stdlib.c: Include test-sys_wait.h.
12933         (main): Invoke test_sys_wait_macros.
12934         * tests/test-sys_wait.c: Include test-sys_wait.h.
12935         (main): Invoke test_sys_wait_macros.
12936
12937 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12938
12939         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12940         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12941         sure Windows sockets are working before calling getaddrinfo.
12942         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12943         * doc/gnulib.texi (Windows sockets): Fix typo.
12944
12945 2010-09-25  Bruno Haible  <bruno@clisp.org>
12946
12947         Tests for module 'regex-quote'.
12948         * modules/regex-quote-tests: New file.
12949         * tests/test-regex-quote.c: New file.
12950
12951         New module 'regex-quote'.
12952         * lib/regex-quote.h: New file.
12953         * lib/regex-quote.c: New file.
12954         * modules/regex-quote: New file.
12955         Suggested by Reuben Thomas <rrt@sc3d.org>.
12956
12957 2010-09-24  Bruno Haible  <bruno@clisp.org>
12958
12959         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12960         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12961
12962 2010-09-23  Bruno Haible  <bruno@clisp.org>
12963
12964         setenv: Relax license.
12965         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12966         Blake.
12967         Requested by Eric Blake.
12968
12969 2010-09-22  Bruno Haible  <bruno@clisp.org>
12970
12971         termios: Relax license.
12972         * modules/termios (License): Change to LGPLv2+.
12973         Requested by Eric Blake.
12974
12975 2010-09-22  Bruno Haible  <bruno@clisp.org>
12976
12977         threadlib: Allow the package to change the default to 'no'.
12978         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12979         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12980         Reported by Paul Eggert.
12981
12982 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12983             Bruno Haible  <bruno@clisp.org>
12984
12985         Fix endless loop in mbmemcasecoll.
12986         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12987         byte.
12988         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12989
12990 2010-09-22  Bruno Haible  <bruno@clisp.org>
12991
12992         Tests for module 'memcoll'.
12993         * modules/memcoll-tests: New file.
12994         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12995
12996         memcoll, xmemcoll: Clarify size vs. length.
12997         * modules/memcoll.c (memcoll0): Clarify specification.
12998         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12999         passed to collate_error.
13000
13001 2010-09-22  Bruno Haible  <bruno@clisp.org>
13002
13003         Tests for module 'memcasecmp'.
13004         * modules/memcasecmp-tests: New file.
13005         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13006
13007 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         * lib/pthread.in.h: Add split double-inclusion guard, and include
13010         system <pthread.h> if there is one.  Use @@-style as in other
13011         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13012         pthread.h doesn't.
13013         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13014         (pthread_mutexattr_settype, pthread_mutex_trylock):
13015         New static inline functions, if there's no system <pthread.h>.
13016         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13017         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13018         Approximate with mutexes if the system lacks spinlocks, as in
13019         MacOS.
13020         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13021         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13022         @@-style.  Check for spinlocks separately.
13023         (gl_PTHREAD_DEFAULTS): New macro.
13024         * modules/pthread: Redo to use a more typical style for in.h files.
13025
13026 2010-09-21  Eric Blake  <eblake@redhat.com>
13027
13028         net_if: enhance tests
13029         * tests/test-net_if.c (main): Move signature checks earlier.
13030         Print failures to stderr.
13031         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13032         Document the bug that we do not yet fix.
13033
13034 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13035
13036         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13037         about gnulib, not GSS.
13038
13039 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13040
13041         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13042         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13043         for Emacs.
13044         * build-aux/pmccabe2html: Make Makefile.am example code more
13045         cut-and-paste friendly.
13046
13047 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13048
13049         * tests/test-net_if.c: New file.
13050         * modules/net_if-tests: New file.
13051
13052 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13053
13054         pthread: add pthread_spin_destroy
13055         * lib/pthread.in.h (pthread_spin_destroy): New function.
13056
13057 2010-09-19  Bruno Haible  <bruno@clisp.org>
13058
13059         gnulib-tool: Fix --help output.
13060         * gnulib-tool (func_usage): Fix help message.
13061         Reported by Reuben Thomas <rrt@sc3d.org>.
13062
13063 2010-09-18  Jim Meyering  <meyering@redhat.com>
13064
13065         maint.mk: avoid unexpanded \n in two diagnostics
13066         * top/maint.mk (sc_prohibit_always_true_header_tests):
13067         Don't use a literal \n in a halt=... assignment.  It would not be
13068         expanded, and the two \n bytes would appear in the diagnostic output
13069         rather than the desired newline.  Use halt=$$(printf ... instead.
13070         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13071
13072 2010-09-18  Bruno Haible  <bruno@clisp.org>
13073
13074         netinet_in: Doc tweak.
13075         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13076         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13077
13078 2010-09-18  Jim Meyering  <meyering@redhat.com>
13079
13080         init.sh: correct an outdated comment
13081         * tests/init.sh (create_exe_shims_):  s/function/alias/
13082
13083         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13084         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13085         a file named "*.exe" is removed between the glob expansion and the
13086         processing of that oddly named file.
13087
13088 2010-09-17  Eric Blake  <eblake@redhat.com>
13089
13090         mirbsd: add some more support
13091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13092         in BSD family.
13093         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13094         devices as OpenBSD.
13095         * m4/host-os.m4 (mirbsd): Add MirBSD.
13096
13097         tests: fix unportable assumption on sys/wait.h
13098         * tests/test-sys_wait.c (main): Relax test.
13099         * tests/test-stdlib.c (main): Likewise.
13100
13101         init.sh: accomodate directory with no .exes
13102         * tests/init.sh: Accomodate directory containing only scripts.
13103
13104         tests: avoid compiler warning
13105         * tests/test-stdlib.c (main): Use the variable.
13106
13107         fdutimens, fdutimensat: update signature, again
13108         * lib/utimens.h (gl_futimens): Delete, and move signature...
13109         (fdutimens): ...here.
13110         (fdutimensat): Rearrange signature.
13111         (lutimensat): Rename variable for clarity.
13112         * lib/fdutimensat.c (fdutimensat): Update signature.
13113         * lib/utimens.c (fdutimens): Likewise.
13114         (gl_futimens): Delete.
13115         (utimens, lutimens): Update callers.
13116         * lib/futimens.c (futimens): Likewise.
13117         * tests/test-fdutimensat.c: Likewise.
13118         * tests/test-utimens.c: Likewise.
13119         * tests/test-futimens.h: Update comment.
13120         * NEWS: Mention this.
13121         Suggested by Paul Eggert.
13122
13123 2010-09-17  Bruno Haible  <bruno@clisp.org>
13124
13125         Take over the maintenance of some older macros from Autoconf.
13126         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13127         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13128         GNU Autoconf.
13129         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13130         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13131
13132 2010-09-17  Eric Blake  <eblake@redhat.com>
13133
13134         fdutimensat: drop atflag validation
13135         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13136         with valid fd, to close a race scenario where futimens is
13137         unsupported and FILE was replaced by a symlink.
13138         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13139         accordingly.
13140         Suggested by Paul Eggert.
13141
13142 2010-09-16  Bruno Haible  <bruno@clisp.org>
13143
13144         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13145         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13146
13147 2010-09-16  Bruno Haible  <bruno@clisp.org>
13148
13149         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13150         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13151         login_tty exists.
13152         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13153
13154 2010-09-16  Bruno Haible  <bruno@clisp.org>
13155
13156         login_tty: Make the replacement code work on BSD systems.
13157         * lib/login_tty.c: Include <sys/ioctl.h>.
13158         (login_tty): Use ioctl TIOCSCTTY when available.
13159         * modules/login_tty (Depends-on): Add sys_ioctl.
13160         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13161
13162 2010-09-16  Bruno Haible  <bruno@clisp.org>
13163
13164         login_tty: Stricter unit test.
13165         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13166         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13167         and tcgetsid() after login_tty.
13168         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13169
13170 2010-09-16  Bruno Haible  <bruno@clisp.org>
13171
13172         New module 'tcgetsid'.
13173         * lib/tcgetsid.c: New file.
13174         * m4/tcgetsid.m4: New file.
13175         * modules/tcgetsid: New file.
13176         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13177         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13178         GNULIB_TCGETSID, HAVE_TCGETSID.
13179         * lib/termios.in.h: Include <sys/types.h>.
13180         (tcgetsid): New declaration.
13181         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13182         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13183         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13184         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13185
13186 2010-09-16  Bruno Haible  <bruno@clisp.org>
13187
13188         Tests for module 'termios'.
13189         * modules/termios-c++-tests: New file.
13190         * modules/termios-tests: New file.
13191         * tests/test-termios-c++.cc: New file.
13192         * tests/test-termios.c: New file.
13193
13194         New module 'termios'.
13195         * modules/termios: New file.
13196         * lib/termios.in.h: New file.
13197         * m4/termios_h.m4: New file.
13198         * doc/posix-headers/termios.texi: Mention the new module.
13199
13200 2010-09-16  Eric Blake  <eblake@redhat.com>
13201
13202         fdutimensat: add an atflag parameter
13203         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13204         * lib/utimens.h (fdutimensat): Update prototype.
13205         * tests/test-fdutimensat.c: Adjust test to match.
13206         * NEWS: Document the change.
13207         Suggested by Paul Eggert.
13208
13209 2010-09-16  Bruno Haible  <bruno@clisp.org>
13210
13211         Fix typos in comments.
13212         * lib/striconveh.h: Fix typo in comment.
13213         * lib/login_tty.c (login_tty): Likewise.
13214
13215 2010-09-15  Bruno Haible  <bruno@clisp.org>
13216
13217         stdlib: clarify MirBSD WEXITSTATUS bug
13218         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13219         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13220
13221 2010-09-15  Eric Blake  <eblake@redhat.com>
13222
13223         stdlib: work around MirBSD WEXITSTATUS bug
13224         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13225         * modules/stdlib (Depends-on): Add sys_wait.
13226         * tests/test-sys_wait.c (main): Enhance test.
13227         * tests/test-stdlib.c (main): Likewise.
13228         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13229
13230         docs: mention MacOS issue with WEXITSTATUS(constant)
13231         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13232         issue.
13233         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13234
13235         strnlen: add tests
13236         * modules/strnlen-tests: New file.
13237         * tests/test-strnlen.c: Likewise.
13238
13239 2010-09-14  Bruno Haible  <bruno@clisp.org>
13240
13241         unistr/base: Avoid link errors when module 'libunistring' is also used.
13242         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13243         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13244         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13245         Declare also when HAVE_LIBUNISTRING is set.
13246         Reported by Pádraig Brady <P@draigbrady.com>.
13247
13248 2010-09-14  Eric Blake  <eblake@redhat.com>
13249
13250         test-rawmemchr: make more robust
13251         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13252         (Depends-on, configure.ac): Add needed prerequisites to use it.
13253         * modules/memchr-tests (Files, Depends-on, configure.ac):
13254         Likewise, to avoid implicit reliance on memchr module prereqs.
13255         * tests/test-memchr.c (main): Ensure proper masking.
13256         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13257         reads.
13258
13259         memchr: detect glibc Alpha bug
13260         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13261         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13262         Alpha.
13263         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13264         * tests/test-memchr.c (main): Enhance test.
13265         Reported by Nelson H. F. Beebe.
13266
13267 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         fts, getcwd, glob: audit for dirfd returning -1
13270         * lib/fts.c (opendir): Remove #define; no longer used.
13271         (opendirat): New arg PDIR_FD.  All callers changed.
13272         (fts_build, _opendir2): Use new opendirat to avoid the need for
13273         dirfd, or for checking whether dirfd returns a negative value.
13274         Don't use opendir; always use openat followed by fdopendir.
13275         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13276         it.
13277         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13278         returns -1 here.
13279         * modules/fts (Depends-on): Remove dirfd.
13280         * modules/getcwd (Depends-on): Likewise.
13281
13282 2010-09-13  Eric Blake  <eblake@redhat.com>
13283
13284         float: fix broken MirBSD header
13285         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13286         * doc/posix-headers/float.texi (float.h): Document it.
13287
13288 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13289
13290         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13291         * lib/fts.c (opendirat): New arg extra_flags.
13292         (__opendir2): Use it to avoid following symlinks when opening
13293         a directory, if symlinks are not supposed to be followed.  See
13294         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13295
13296         fdopendir: preserve argument fd before returning
13297         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13298         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13299         (fdopendir): Use them, arranging for FD to be open to the same
13300         directory that it was when it started.  (It might be temporarily
13301         closed while fdopendir is running, so this not thread- or
13302         signal-safe.)  Be careful to do the right thing even when file
13303         descriptors are scarce and dup fails with errno == EMFILE.  See
13304         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13305
13306 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13307
13308         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13309         * NEWS: Document change.
13310         * m4/regex.m4: Disable test for regoff_t size.
13311
13312 2010-09-13  Jim Meyering  <meyering@redhat.com>
13313
13314         fts: don't operate on an invalid file descriptor after failed dup
13315         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13316         negative file descriptor.
13317
13318 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13319
13320         savedir: add streamsavedir, deprecate fdsavedir
13321         * NEWS: Mention deprecation of fdsavedir.
13322         * lib/savedir.c (streamsavedir): New extern function, whose name
13323         ends in "savedir" to be consistent with the others.  This differs
13324         from savedirstream in that it doesn't close its argument.  The
13325         next version of GNU tar will use this instead of fdsavedir, to
13326         avoid some race conditions and conserve file descriptors.
13327         (savedirstream): Reimplement as a wrapper around streamsavedir.
13328         (fdsavedir): Add a comment deprecating this function.  As far as
13329         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13330         * lib/savedir.h (streamsavedir): New decl.
13331         (fdsavedir): Add a comment deprecating this.
13332
13333 2010-09-10  Bruno Haible  <bruno@clisp.org>
13334
13335         langinfo: Fix last commit.
13336         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13337         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13338         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13339
13340 2010-09-10  Bruno Haible  <bruno@clisp.org>
13341
13342         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13343         * lib/progreloc.c (O_EXEC): Define fallback.
13344
13345 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13346
13347         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13348         * NEWS: Document recent changes to fcntl-h.
13349         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13350         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13351         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13352         Similarly for O_SEARCH; this last was already true, but not documented.
13353         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13354         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13355         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13356         Likewise.
13357         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13358         is zero, not whether it is defined.
13359         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13360         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13361         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13362
13363 2010-09-10  Bruno Haible  <bruno@clisp.org>
13364
13365         langinfo, nl_langinfo: Fix for IRIX 5.3.
13366         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13367         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13368         HAVE_LANGINFO_YESEXPR.
13369         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13370         HAVE_LANGINFO_YESEXPR.
13371         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13372         HAVE_LANGINFO_T_FMT_AMPM is 0.
13373         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13374         HAVE_LANGINFO_YESEXPR is 0.
13375         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13376         NOEXPR.
13377         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13378         * doc/posix-functions/nl_langinfo.texi: Likewise.
13379         Reported by Eric Blake.
13380
13381 2010-09-10  Bruno Haible  <bruno@clisp.org>
13382
13383         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13384         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13385         on FreeBSD 8.0 and OpenBSD 4.6.
13386         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13387         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13388         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13389         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13390         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13391         ac_includes_default.
13392         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13393
13394 2010-09-09  Eric Blake  <eblake@redhat.com>
13395
13396         strsignal: work around NetBSD bug
13397         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13398         * lib/string.in.h (includes): Likewise.
13399         * doc/posix-functions/strsignal.texi (strsignal): Document the
13400         bug.
13401         Reported by Nelson H. F. Beebe.
13402
13403         gnulib-tool: work with NetBSD /bin/sh
13404         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13405         (func_get_description, func_get_comment, func_get_status)
13406         (func_get_notice, func_get_applicability, func_get_filelist)
13407         (func_get_dependencies, func_get_autoconf_early_snippet)
13408         (func_get_autoconf_snippet, func_get_automake_snippet)
13409         (func_get_include_directive, func_get_link_directive)
13410         (func_get_license, func_get_maintainer, func_import): Avoid
13411         shell syntax errors from parsing syntax extensions.
13412
13413 2010-09-09  Bruno Haible  <bruno@clisp.org>
13414
13415         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13416         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13417         a reliable way to determine whether the 'alias' command works.
13418
13419 2010-09-08  Jim Meyering  <meyering@redhat.com>
13420
13421         init.sh: penalize a set-x-impaired shell; don't disqualify it
13422         * tests/init.sh: Too many shells corrupt application stderr when
13423         you set -x, so we can't afford to disqualify them, since at least
13424         on Irix-6.5, that would disqualify all bourne shells.
13425         Instead, use a two-pass approach.
13426         On the first pass, try to find a shell that meets the stricter
13427         condition that set -x does not corrupt stderr.
13428         If no shell meets the stricter condition, retest each candidate
13429         shell, but without that extra condition.  Finally, when
13430         VERBOSE=yes is requested and set -x might cause trouble, simply
13431         issue a warning and refrain from enabling debug output.
13432
13433 2010-09-08  Eric Blake  <eblake@redhat.com>
13434
13435         unsetenv: fix OpenBSD bug
13436         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13437         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13438         documentation.
13439         Reported by Jim Meyering.
13440
13441         strtod: work around IRIX 6.5 bug
13442         * lib/strtod.c (strtod): Reparse number on shorter string if
13443         exponent parse was invalid.
13444         * tests/test-strtod.c (main): Add check for "0x1p 2".
13445         Reported by Tom G. Christensen.
13446
13447         getopt: optimize previous patch
13448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13449         empty variable.  Speed up awk script.
13450         Reported by Paolo Bonzini.
13451
13452 2010-09-08  Jim Meyering  <meyering@redhat.com>
13453
13454         test.sh: disqualify shells for which set -x corrupts stderr
13455         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13456         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13457         appear in stderr output.  For example, this command:
13458             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13459         prints "P=1" on those two systems:
13460
13461 2010-09-08  Bruno Haible  <bruno@clisp.org>
13462
13463         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13464         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13465         commands, because some shells ignore redirections when there is an
13466         error in the command lookup.
13467         Reported by Eric Blake.
13468
13469 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13470
13471         * lib/regex.h: Fix a mention of `regex_compile' (should be
13472         `re_compile_pattern').
13473         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13474         (re_set_registers): Correct name of parameter in comment.
13475
13476         * doc/regex.texi: Add documentation for missing syntax flags.
13477         Remove commented-out documentation of defunct syntax option
13478         RE_NO_EMPTY_ALTS.
13479         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13480         Add documentation of re_set_registers.
13481         Document trick to re-use a pattern buffer by setting fastmap manually.
13482         Update documentation of struct re_pattern_buffer per public members.
13483         Uncomment documentation of equivalence class operators and
13484         collating symbol operators, since they are now implemented,
13485         Explain leftmost-longest matching in relation to alternatives.
13486         Tidy documentation of substring matching.
13487         Remove POSIX documentation, which is done better in
13488         glibc, and refer the reader there. Keep BSD API documentation, as
13489         that is not readily available elsewhere.
13490
13491 2010-09-07  Eric Blake  <eblake@redhat.com>
13492
13493         getopt: handle POSIXLY_CORRECT set but not exported
13494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13495         export state of POSIXLY_CORRECT, due to bash set -o posix.
13496         Reported by Dustin J. Mitchell.
13497
13498 2010-09-05  Bruno Haible  <bruno@clisp.org>
13499
13500         gnulib-tool: Highlight the changed options.
13501         * gnulib-tool (func_usage): Display the --import, --add-import,
13502         --remove-import explanations in bold font.
13503
13504 2010-09-06  Karl Berry  <karl@gnu.org>
13505
13506         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13507
13508 2010-09-05  Bruno Haible  <bruno@clisp.org>
13509
13510         uniwidth/width: Update comment.
13511         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13512         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13513
13514 2010-09-05  Bruno Haible  <bruno@clisp.org>
13515
13516         isinf, isnan: Relax license.
13517         * modules/isinf (License): Change from GPL to LGPL, with consent from
13518         Ben Pfaff.
13519         * modules/isnan (License): Likewise.
13520         Requested by Ludovic Courtès.
13521
13522 2010-09-04  Bruno Haible  <bruno@clisp.org>
13523
13524         gnulib-tool: Help migration from --import to --add-import or --update.
13525         * gnulib-tool: Emit a verbose error message when --import is used
13526         without any module name.
13527
13528 2010-09-04  Bruno Haible  <bruno@clisp.org>
13529
13530         Update doc about gnulib-tool.
13531         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13532         'gnulib-tool --update' in more detail.
13533         Reported by Eric Blake.
13534
13535 2010-09-04  Bruno Haible  <bruno@clisp.org>
13536
13537         gnulib-tool: Change --import. New options --add/remove-import.
13538         * gnulib-tool: New options --add-import, --remove-import.
13539         (func_usage): Document them.
13540         (have_associative): Define always.
13541         (func_import): In import mode, don't merge the specified settings with
13542         the cached settings. Implement remove-import mode.
13543         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13544         Explain when to use them versus --import.
13545         (Simple update): Use --add-import instead of --import.
13546         * NEWS: Mention the change.
13547
13548 2010-09-04  Bruno Haible  <bruno@clisp.org>
13549
13550         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13551         separate gnulib.mk.
13552
13553 2010-09-04  Bruno Haible  <bruno@clisp.org>
13554
13555         gnulib-tool: Don't talk about CVS any more.
13556         * gnulib-tool (func_usage, func_import): Write "version control"
13557         instead of CVS.
13558
13559 2010-09-04  Jim Meyering  <meyering@redhat.com>
13560
13561         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13562         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13563         false positives (whose names may be ill-chosen) when searching
13564         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13565         would cause a false-positive.
13566
13567         avoid coreutils "make distcheck" failure
13568         Coreutils tests with an absolute build directory name that contains
13569         a space.  Not quoting this directory name caused a failure.
13570         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13571         * tests/test-vc-list-files-cvs.sh: Likewise.
13572
13573 2010-09-04  Bruno Haible  <bruno@clisp.org>
13574
13575         gnulib-tool: Avoid error when run in a package without Makefile.am.
13576         * gnulib-tool: When collecting the m4dirs in a package that does not
13577         have a Makefile.am, eliminate those directories that contain no
13578         gnulib-cache.m4. Fix expression that counts these directories.
13579
13580 2010-09-04  Bruno Haible  <bruno@clisp.org>
13581
13582         update-copyright test: Improve output when perl is missing or too old.
13583         * tests/test-update-copyright.sh: Move test of Perl version down after
13584         the test whether Perl exists. Provide an explanation relating Perl's
13585         error message to Automake's SKIP: message.
13586
13587 2010-09-04  Bruno Haible  <bruno@clisp.org>
13588
13589         Don't augment PATH in TESTS_ENVIRONMENT.
13590         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13591         set abs_aux_dir instead of augmenting PATH.
13592         * modules/vc-list-files-tests (Makefile.am): Likewise.
13593         * tests/test-update-copyright.sh: Augment PATH here.
13594         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13595         path_prepend_.
13596         * tests/test-vc-list-files-git.sh: Likewise.
13597
13598 2010-09-04  Jim Meyering  <meyering@redhat.com>
13599
13600         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13601         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13602
13603 2010-09-04  Bruno Haible  <bruno@clisp.org>
13604
13605         strdup: Fix compilation error in C++ mode.
13606         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13607         the macro.
13608
13609 2010-09-04  Bruno Haible  <bruno@clisp.org>
13610
13611         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13612         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13613         macro into a function.
13614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13615
13616 2010-09-04  Bruno Haible  <bruno@clisp.org>
13617
13618         Set PATH_SEPARATOR the same way autoconf does.
13619         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13620         the value of PATH_SEPARATOR the same way autoconf-generated configure
13621         scripts do.
13622         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13623         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13624
13625 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13626
13627         Set PATH_SEPARATOR the same way autoconf does.
13628         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13629         the same way autoconf-generated configure scripts do.
13630         * posix-modules: Likewise.
13631
13632 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13633
13634         hash: fix safe_hasher const typo
13635         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13636         const; otherwise, there is a type error later.
13637
13638 2010-09-02  Jim Meyering  <meyering@redhat.com>
13639
13640         test-update-copyright.sh: require perl 5.8.0
13641         * tests/test-update-copyright.sh: Require 5.8.0,
13642         which Tom G. Christensen has confirmed is adequate,
13643         while 5.6.1 is not.
13644
13645 2010-09-02  Eric Blake  <eblake@redhat.com>
13646
13647         tests: init.sh improvements for re-exec'ing with zsh
13648         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13649         -vx through shell re-exec.
13650         Reported by Tom G. Christensen.
13651
13652         wctype: fix typo in previous commit
13653         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13654         Reported by Ludovic Courtès.
13655
13656 2010-09-02  Jim Meyering  <meyering@redhat.com>
13657
13658         test-update-copyright.sh: skip test if Perl is too old
13659         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13660         Reported by Tom G. Christensen.
13661
13662 2010-09-02  Bruno Haible  <bruno@clisp.org>
13663
13664         wctype: Avoid compilation error on IRIX 6.5.30.
13665         * lib/wctype.in.h (iswblank): Declare with a replacement if
13666         REPLACE_ISWBLANK is set.
13667         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13668         declared. Set REPLACE_ISWBLANK.
13669         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13670         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13671         * doc/posix-headers/wctype.texi: Likewise.
13672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13673
13674 2010-09-01  Bruno Haible  <bruno@clisp.org>
13675
13676         New module 'socketlib'.
13677         * modules/socketlib: New file.
13678         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13679         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13680         * modules/sockets (Depends-on): Add socketlib.
13681         Suggested by Sam Steingold <sds@gnu.org>.
13682
13683 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13684
13685         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13686
13687         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13688         when one needs search access to a directory but not read access.
13689         On systems where it is available, it works in some cases where
13690         O_RDONLY does not, namely on directories that are searchable but
13691         not readable, and which need only to be searchable.  If O_SEARCH
13692         is not available, fall back to the traditional method of using
13693         O_RDONLY.
13694
13695         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13696         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13697         when opening a directory that needs only to be searchable.
13698         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13699         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13700         * lib/openat-proc.c (openat_proc_name): Likewise.
13701         * lib/openat.c (openat_needs_fchdir): Likewise.
13702         * lib/save-cwd.c (save_cwd): Likewise.
13703         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13704
13705 2010-08-28  Bruno Haible  <bruno@clisp.org>
13706
13707         New module 'host-cpu-c-abi'.
13708         * modules/host-cpu-c-abi: New file.
13709         * m4/host-cpu-c-abi.m4: New file, based on part of
13710         clisp/src/m4/general.m4.
13711         Requested by Sam Steingold <sds@gnu.org>.
13712
13713 2010-08-31  Eric Blake  <eblake@redhat.com>
13714         and Jim Meyering  <meyering@redhat.com>
13715
13716         hash: factor, and guard against misbehaving hasher function
13717         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13718         of table->hasher's return value.  Also protect against a hash value
13719         so large that adding it to table->bucket results in a NULL pointer.
13720         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13721         Use it in place of open-coded check-and-abort.
13722
13723 2010-08-30  Bruno Haible  <bruno@clisp.org>
13724
13725         hash: silence spurious clang warning
13726         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13727         Reported by Eric Blake.
13728
13729 2010-08-30  Eric Blake  <eblake@redhat.com>
13730
13731         strstr, memmem, strcasestr: avoid leaked shell message
13732         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13733         FreeBSD.
13734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13735         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13736
13737         tests: silence clang warning
13738         * tests/test-malloca.c (do_allocation): Avoid dead store.
13739
13740 2010-08-29  Bruno Haible  <bruno@clisp.org>
13741
13742         gettext: Fix recent mistake.
13743         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13744
13745 2010-08-29  Bruno Haible  <bruno@clisp.org>
13746
13747         selinux-h: Offer a --without-selinux option.
13748         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13749         --without-selinux was specified, skip all tests and define
13750         HAVE_SELINUX_SELINUX_H to 0.
13751         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13752         set LIB_SELINUX to empty.
13753         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13754         gl_LIBSELINUX. If --without-selinux was specified, replace
13755         selinux/context.h.
13756         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13757
13758 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13759             Bruno Haible  <bruno@clisp.org>
13760
13761         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13762         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13763         of HAVE_REALLOC.
13764         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13765         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13766         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13767         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13768
13769 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13770             Bruno Haible  <bruno@clisp.org>
13771
13772         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13773         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13774         HAVE_CALLOC.
13775         * lib/xmalloc.c: Update accordingly.
13776         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13777         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13778         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13779
13780 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13781             Bruno Haible  <bruno@clisp.org>
13782
13783         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13784         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13785         HAVE_MALLOC.
13786         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13787         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13788         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13789
13790 2010-08-29  Bruno Haible  <bruno@clisp.org>
13791
13792         Update modules list.
13793         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13794         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13795         (String handling <string.h>): Add astrxfrm.
13796         (File system functions): Add readlinkat.
13797
13798 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13799
13800         Tests for module 'realloc-gnu'.
13801         * modules/realloc-gnu-tests: New file.
13802         * tests/test-realloc-gnu.c: New file.
13803
13804         Tests for module 'calloc-gnu'.
13805         * modules/calloc-gnu-tests: New file.
13806         * tests/test-calloc-gnu.c: New file.
13807
13808         Tests for module 'malloc-gnu'.
13809         * modules/malloc-gnu-tests: New file.
13810         * tests/test-malloc-gnu.c: New file.
13811
13812 2010-08-28  Bruno Haible  <bruno@clisp.org>
13813
13814         Rename module 'realloc' -> 'realloc-gnu'.
13815         * modules/realloc-gnu: New file, copied from modules/realloc.
13816         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13817         obsolete.
13818         * modules/mgetgroups (Depends-on): Update.
13819         * doc/posix-functions/realloc.texi: Update.
13820         * NEWS: Mention the change.
13821
13822         Rename module 'calloc' -> 'calloc-gnu'.
13823         * modules/calloc-gnu: New file, copied from modules/calloc.
13824         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13825         obsolete.
13826         * doc/posix-functions/calloc.texi: Update.
13827         * NEWS: Mention the change.
13828
13829         Rename module 'malloc' -> 'malloc-gnu'.
13830         * modules/malloc-gnu: New file, copied from modules/malloc.
13831         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13832         obsolete.
13833         * modules/argp (Depends-on): Update.
13834         * modules/regex (Depends-on): Update.
13835         * doc/posix-functions/malloc.texi: Update.
13836         * NEWS: Mention the change.
13837
13838 2010-08-28  Eric Blake  <eblake@redhat.com>
13839
13840         pread, pwrite: add missing dependency
13841         * modules/pread (Depends-on): Add extensions.
13842         * modules/pwrite (Depends-on): Likewise.
13843
13844 2010-08-28  Bruno Haible  <bruno@clisp.org>
13845
13846         unistr/u*-strchr: Fix tests dependencies.
13847         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13848         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13849         Reported by Ian Beckwith <ianb@erislabs.net>.
13850
13851 2010-08-28  Bruno Haible  <bruno@clisp.org>
13852
13853         read-file: Don't occupy too much unused memory.
13854         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13855
13856 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13857             Eric Blake  <eblake@redhat.com>
13858             Bruno Haible  <bruno@clisp.org>
13859
13860         read-file: Avoid memory reallocations with regular files.
13861         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13862         (fread_file): With regular files, use the remaining length as the
13863         initial buffer size.  Check against overflow.
13864         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13865         sys_stat.
13866
13867 2010-08-28  Bruno Haible  <bruno@clisp.org>
13868
13869         ftello: Relax license.
13870         * modules/ftello (License): Relax to LGPLv2+.
13871         Reported by Eric Blake.
13872
13873 2010-08-28  Bruno Haible  <bruno@clisp.org>
13874
13875         Avoid relocwrapper link errors due to gnulib replacement functions.
13876         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13877         function.
13878         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13879
13880 2010-08-28  Bruno Haible  <bruno@clisp.org>
13881
13882         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13883         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13884         defined.
13885         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13886         Suggested by Eric Blake.
13887
13888 2010-08-28  Bruno Haible  <bruno@clisp.org>
13889
13890         sys_socket, netdb: Ensure socklen_t gets defined.
13891         * modules/sys_socket (Depends-on): Add socklen.
13892         * modules/netdb (Depends-on): Likewise.
13893         * modules/getaddrinfo (Depends-on): Remove socklen.
13894         * modules/getsockopt (Depends-on): Likewise.
13895         * modules/setsockopt (Depends-on): Likewise.
13896         * tests/test-sys_socket.c: Check that socklen_t is defined.
13897         * tests/test-netdb.c: Likewise.
13898         * m4/socklen.m4: Update comments.
13899         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13900
13901 2010-08-27  Eric Blake  <eblake@redhat.com>
13902
13903         login_tty: add missing dependency
13904         * modules/login_tty (Depends-on): Add pty.
13905
13906 2010-08-26  Eric Blake  <eblake@redhat.com>
13907
13908         lib-symbol-versions: fix m4 quoting
13909         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13910         format for AC_LINK_IFELSE.
13911
13912         glob: fix compile test
13913         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13914
13915         btowc: fix missing file
13916         * modules/btowc (Files): Also ship locale-fr.m4.
13917
13918         lseek: fix link test
13919         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13920         AC_LINK_IFELSE.
13921
13922         include_next: silence autoconf 2.68 warning
13923         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13924         AC_COMPILE_IFELSE as special.
13925         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13926         autoconf < 2.68.
13927
13928         acl: fix compilation test
13929         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13930         AC_COMPILE_IFELSE.
13931
13932 2010-08-26  Bruno Haible  <bruno@clisp.org>
13933
13934         Modernize AC_TRY_RUN invocations.
13935         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13936         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13937         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13938         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13939         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13940         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13941         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13943         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13944         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13946         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13947         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13948         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13950         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13951         gl_MBRLEN_NUL_RETVAL): Likewise.
13952         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13953         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13954         Likewise.
13955         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13956         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13957         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13958         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13959         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13960         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13961         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13962         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13963         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13964         Likewise.
13965         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13966         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13968         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13969         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13970         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13971         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13972         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13973         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13975
13976 2010-08-26  Bruno Haible  <bruno@clisp.org>
13977
13978         Modernize AC_TRY_LINK invocations.
13979         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13980         AC_TRY_LINK.
13981         * m4/argp.m4 (gl_ARGP): Likewise.
13982         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13983         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13984         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13985         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13986         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13987         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13988         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13989         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13990         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13991         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13992         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13993         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13994         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13995         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13996         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13997         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13998         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13999         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14000         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14001         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14002         Likewise.
14003         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14004         Likewise.
14005         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14006         Likewise.
14007         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14008         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14009         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14010         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14011         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14012         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14013         * m4/servent.m4 (gl_SERVENT): Likewise.
14014         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14015         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14016         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14017         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14018         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14019         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14020         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14021         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14022         * modules/tsearch-tests (configure.ac): Likewise.
14023
14024 2010-08-26  Bruno Haible  <bruno@clisp.org>
14025
14026         Modernize AC_TRY_COMPILE invocations.
14027         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14028         AC_TRY_COMPILE.
14029         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14030         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14031         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14032         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14033         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14034         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14035         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14036         * m4/lock.m4 (gl_LOCK): Likewise.
14037         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14038         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14039         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14040         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14041         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14042         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14043         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14045         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14046         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14047         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14048         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14049         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14050         extraneous semicolon.
14051
14052 2010-08-26  Jim Meyering  <meyering@redhat.com>
14053
14054         stat-time: relax license LGPL
14055         * modules/stat-time (License): Change from GPL to LGPL,
14056         with consent from all contributors, for use in libguile.
14057         Requested by Ludovic Courtès.
14058
14059 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14060
14061         poll: return immediately on POLLHUP.
14062         * lib/poll.c (poll): Always set timeout before wait_timeout is
14063         computed.
14064
14065 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14066
14067         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14068         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14069         rmdir ("dir/.//"), unlinkat.
14070
14071 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14072
14073         stdbool: avoid spurious failure with modern xlc
14074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14075
14076 2010-08-24  Bruno Haible  <bruno@clisp.org>
14077
14078         getloadavg: simplify code
14079         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14080         gl_have_func. Update comments.
14081
14082 2010-08-24  Eric Blake  <eblake@redhat.com>
14083
14084         getloadavg: don't define SVR4 on cygwin
14085         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14086         only define SVR4 when -lkvm is required.
14087         Reported by Yaakov Selkowitz.
14088
14089 2010-08-24  Bruno Haible  <bruno@clisp.org>
14090
14091         priv-set: fix comment
14092         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14093
14094 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14095
14096         priv-set: fix comments
14097         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14098         to match code, as suggested by David Bartley in:
14099         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14100
14101 2010-08-23  Eric Blake  <eblake@redhat.com>
14102
14103         stdbool: avoid rejecting clang
14104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14105         * tests/test-stdbool.c: Enable more tests if using the system
14106         <stdbool.h> instead of the gnulib replacement.
14107         (main): Move xlc bug test to a runtime test for all compilers.
14108         Reported by Anders Kaseorg.
14109
14110         argz: fix shell quoting issue
14111         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14112         Reported by Charles Wilson.
14113
14114 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14115             Erik Faye-Lund <kusmabite@gmail.com>
14116
14117         poll, select: handle ERROR_BROKEN_PIPE.
14118         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14119         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14120         * lib/select.c (win32_compute_revents): Do not mark a pipe
14121         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14122
14123 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14124
14125         fts: allow compilation with C++
14126         * lib/fts_.h: Specify extern "C" linkage with C++.
14127
14128 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14129
14130         Fix gnulib-tool sed script de-commentation for AIX sed.
14131         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14132         sed.
14133
14134 2010-08-17  Eric Blake  <eblake@redhat.com>
14135
14136         test-stddef: test for (some) offsetof bugs
14137         * tests/test-stddef.c: Enhance test to ensure correct type of
14138         offsetof.
14139         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14140         that we are not fixing at this time.
14141
14142 2010-08-15  Bruno Haible  <bruno@clisp.org>
14143
14144         stpncpy: Allow stpncpy to be defined as a macro.
14145         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14146         if it's already correctly declared.
14147         * lib/string.in.h (stpncpy): Undefine before redefining.
14148         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14149
14150 2010-08-14  Bruno Haible  <bruno@clisp.org>
14151
14152         Rename module 'memxfrm' to 'amemxfrm'.
14153         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14154         (amemxfrm): Renamed from memxfrm.
14155         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14156         (amemxfrm): Renamed from memxfrm.
14157         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14158         * NEWS: Mention the change.
14159         * MODULES.html.sh (String handling <string.h>): Update.
14160         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14161         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14162         * lib/unicase/u16-casexfrm.c: Likewise.
14163         * lib/unicase/u32-casexfrm.c: Likewise.
14164         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14165         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14166         * lib/uninorm/u16-normxfrm.c: Likewise.
14167         * lib/uninorm/u32-normxfrm.c: Likewise.
14168         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14169         memxfrm.
14170         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14171         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14172         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14173         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14174         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14175         Suggested by Paul Eggert.
14176
14177 2010-08-14  Bruno Haible  <bruno@clisp.org>
14178
14179         Tests for module 'astrxfrm'.
14180         * modules/astrxfrm-tests: New file.
14181         * tests/test-astrxfrm.c: New file.
14182
14183         New module 'astrxfrm'.
14184         * lib/astrxfrm.h: New file.
14185         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14186         * modules/astrxfrm: New file.
14187
14188 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14189
14190         regex: Tweak doc.
14191         * doc/regex.texi (Overview): Don't mention regex.c.
14192         (GNU Regular Expression Compiling): Likewise.
14193         (Match-end-of-line Operator): Mention 'not_eol'.
14194
14195 2010-08-14  Brian Gough  <bjg@gnu.org>
14196             Bruno Haible  <bruno@clisp.org>
14197
14198         git-merge-changelog: add doc relating to use with bzr and hg.
14199         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14200
14201 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14202
14203         pthread: fix pthread.h creation for srcdir != builddir
14204         * modules/pthread (Makefile.am): Fix the rule to work also in a
14205         non-srcdir build.
14206
14207 2010-08-13  Karl Berry  <karl@gnu.org>
14208
14209         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14210         * doc/posix-*/*: force line break before @url of POSIX
14211         specifications.
14212         Suggested by Werner Lemberg.
14213
14214 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         strtod: fix const diagnostic
14217         * lib/strtod.c (strtod): Don't assign const char * to char *,
14218         as this elicits a warning from GCC when warnings are enabled.
14219
14220 2010-08-10  Pádraig Brady <P@draigbrady.com>
14221         and Eric Blake  <eblake@redhat.com>
14222
14223         copy-acl: ignore ENOTSUP on HP-UX
14224         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14225         so that it is available for HP-UX.
14226         * lib/copy-acl.c (qcopy_acl): Use it.
14227         Reported by Patrick M. Callahan.
14228
14229 2010-08-10  Eric Blake  <eblake@redhat.com>
14230
14231         open, chown: relax license
14232         * modules/open (License): Change to LGPLv2+, with consent by all
14233         authors, for use in augeas.
14234         * modules/chown (License): Likewise.
14235         * modules/lchown (Likewise): Likewise.
14236         Requested by Adam Stokes.
14237
14238 2010-08-09  Karl Berry  <karl@gnu.org>
14239
14240         * build-aux/ar-lib: new file, import from Automake.
14241         * config/srclist.txt: autocheck for updates.
14242
14243 2010-08-09  Eric Blake  <eblake@redhat.com>
14244
14245         readlinkat: adjust client modules
14246         * modules/areadlinkat (Depends-on): Use readlinkat, not
14247         symlinkat.
14248         * modules/areadlinkat-with-size (Depends-on): Likewise.
14249
14250         mknod: be more vocal about danger of running tests as root
14251         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14252         root, since that is just asking for problems.
14253         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14254
14255         readlinkat: split into its own module
14256         * modules/symlinkat: Split readlinkat...
14257         * modules/readlinkat: ...into separate module.
14258         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14259         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14260         * lib/symlinkat.c (readlinkat): Move...
14261         * lib/readlinkat.c: ...into new file.
14262         * modules/symlinkat-tests: Split readlinkat test...
14263         * modules/readlinkat-tests: ...into separate module.
14264         * tests/test-symlinkat.c: Split...
14265         * tests/test-readlinkat.c: ...into new file.
14266         * NEWS: Document the split.
14267         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14268         * lib/unistd.in.h (readlinkat): Likewise.
14269         Suggested by Bruno Haible.
14270
14271 2010-08-08  Bruno Haible  <bruno@clisp.org>
14272
14273         memxfrm: Speed up.
14274         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14275         that usually only one call to strxfrm is necessary for each string
14276         part.
14277         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14278
14279 2010-08-07  Karl Berry  <karl@gnu.org>
14280
14281         * doc/posix-headers/limits.texi,
14282         * doc/posix-functions/malloc.texi,
14283         * doc/posix-functions/strsignal.texi: missing @item.
14284         * doc/ld-version-script.texi: spurious leading i.
14285         * doc/regex.texi (Interval Operators): no commas inside @var.
14286
14287 2010-08-01  Bruno Haible  <bruno@clisp.org>
14288
14289         Integrate the regex documentation.
14290         * doc/gnulib.texi: Define 'cn' index.
14291         (Regular expressions): New a chapter that includes regex.texi and
14292         regexprops-generic.texi.
14293         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14294         syntax.
14295
14296         Whitespace cleanup.
14297         * doc/regex.texi: Remove trailing spaces.
14298
14299         Add regex documentation.
14300         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14301         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14302         Written by Kathy A. Hargreaves and Karl Berry.
14303
14304 2010-08-01  Bruno Haible  <bruno@clisp.org>
14305
14306         link: Update documentation.
14307         * doc/posix-functions/link.texi: Update regarding Solaris.
14308
14309 2010-07-31  Bruno Haible  <bruno@clisp.org>
14310
14311         Update modules list.
14312         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14313         (String handling <string.h>): Add memcmp2, memxfrm.
14314         (Container data structures): Add xlist, xsublist, xoset.
14315         (Core language properties): Add alignof, unused-parameter.
14316         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14317         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14318         (Unibyte characters <ctype.h>): New section.
14319         (String handling <string.h>): New section.
14320         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14321         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14322         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14323         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14324         tan, tanh, tanl, y0, y1, yn.
14325         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14326         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14327         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14328         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14329         unlockpt, vdprintf, vdprintf-posix.
14330         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14331         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14332         xconcat-filename.
14333         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14334         getdtablesize, pipe2, pipe2-safer.
14335         (Security): New section.
14336         (Networking functions): Add accept4.
14337         (Signal handling): Add sigpipe.
14338         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14339         mbmemcasecoll.
14340         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14341         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14342         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14343         pipe-filter-ii.
14344         (Misc): Add argp-version-etc, login_tty, parse-duration.
14345
14346 2010-07-31  Bruno Haible  <bruno@clisp.org>
14347
14348         Improve doc in MODULES.html.
14349         * modules/linkat (Description): Add the word "function".
14350         * modules/mkfifo (Description): Likewise.
14351         * modules/mknod (Description): Likewise.
14352         * modules/remove (Description): Likewise.
14353         * modules/renameat (Description): Likewise.
14354         * modules/stat (Description): Likewise.
14355         * modules/symlink (Description): Likewise.
14356         * modules/unlink (Description): Likewise.
14357
14358 2010-07-31  Bruno Haible  <bruno@clisp.org>
14359
14360         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14361         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14362         option --enable/disable-c++ instead of --enable/disable-cxx.
14363         * NEWS: Mention the change.
14364
14365 2010-07-31  Bruno Haible  <bruno@clisp.org>
14366
14367         readlink, areadlink: Relax test a bit.
14368         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14369         alternative to ENOTDIR.
14370         * tests/test-areadlink.h (test_areadlink): Likewise.
14371         Reported by Rainer Tammer.
14372
14373 2010-07-31  Bruno Haible  <bruno@clisp.org>
14374
14375         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14376         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14377         character, perform the search using U_STRCHR.
14378         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14379         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14380         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14381         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14382         Suggested by Paolo Bonzini.
14383
14384 2010-07-31  Bruno Haible  <bruno@clisp.org>
14385
14386         unistr/u*-strstr: Fix dependencies.
14387         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14388         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14389         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14390
14391 2010-07-31  Bruno Haible  <bruno@clisp.org>
14392
14393         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14394         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14395         the beginning of the loop.
14396         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14397         cases in 'switch' statement.
14398
14399         unistr/u8-strchr: Fix several bugs.
14400         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14401         the string. When not found, return NULL, not a pointer near the end.
14402
14403         More tests for unistr/u8-strchr.
14404         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14405         that the function does not read past the first occurrence of the byte
14406         being searched.
14407         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14408         * tests/unistr/test-u16-strchr.c (main): New function.
14409         * tests/unistr/test-u32-strchr.c (main): New function.
14410
14411 2010-07-31  Bruno Haible  <bruno@clisp.org>
14412
14413         posix-modules: Ignore backup files of documentation files.
14414         * posix-modules: grep only through files named *.texi.
14415
14416 2010-07-31  Bruno Haible  <bruno@clisp.org>
14417
14418         symlinkat: Fix documentation.
14419         * doc/posix-functions/readlinkat.texi: Fix module name.
14420
14421 2010-07-31  Bruno Haible  <bruno@clisp.org>
14422
14423         fchownat: Replace also when chown has the trailing slash bug.
14424         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14425         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14426         introduced on 2010-04-10.
14427         Reported by Rainer Tammer.
14428
14429 2010-07-31  Bruno Haible  <bruno@clisp.org>
14430
14431         linkat: Work around AIX 7.1 bug.
14432         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14433         whether linkat handles trailing slash correctly. If not, replace linkat
14434         and define LINKAT_TRAILING_SLASH_BUG.
14435         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14436         check whether (fd1,file1) points to a directory if file1 or file2 ends
14437         in a slash. Code taken from lib/link.c.
14438         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14439         Reported by Rainer Tammer.
14440
14441 2010-07-31  Bruno Haible  <bruno@clisp.org>
14442
14443         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14444         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14445         This disables an xlc optimization that was causing wrong test results.
14446         Reported by Rainer Tammer.
14447
14448 2010-07-31  Bruno Haible  <bruno@clisp.org>
14449
14450         iconv: Work around AIX 6.1..7.1 bug.
14451         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14452         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14453         cross-compiling, guess no on all versions of AIX.
14454         Reported by Rainer Tammer.
14455
14456 2010-07-31  Bruno Haible  <bruno@clisp.org>
14457
14458         readlink: Relax test a bit.
14459         * tests/test-readlink.h (test_readlink): Allow different errno value
14460         when readlink is called with a file name that ends in / and refers to
14461         a file.
14462         Suggested by Eric Blake.
14463         Reported by Rainer Tammer.
14464
14465 2010-07-31  Bruno Haible  <bruno@clisp.org>
14466
14467         copysign: Does not require -lm on glibc systems.
14468         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14469         gl_COMMON_DOUBLE_MATHFUNC.
14470         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14471
14472 2010-07-31  Bruno Haible  <bruno@clisp.org>
14473
14474         duplocale: Work around AIX 7.1 bug.
14475         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14476         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14477         * lib/duplocale.c (rpl_duplocale): Update comment.
14478         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14479         Reported by Rainer Tammer.
14480
14481 2010-07-30  Bruno Haible  <bruno@clisp.org>
14482
14483         dirfd: Avoid link error on AIX 7.1.
14484         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14485         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14486         exist, set REPLACE_DIRFD.
14487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14488         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14489         * doc/posix-functions/dirfd.texi: Update.
14490         Reported by Rainer Tammer.
14491
14492 2010-07-30  Eric Blake  <eblake@redhat.com>
14493
14494         strtod: next round of AIX fixes
14495         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14496         exponent.
14497         * tests/test-strtod.c (main): Enhance tests.
14498         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14499         Reported by Rainer Tammer.
14500
14501         futimens: fix configure check
14502         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14503         Reported by Bruno Haible.
14504
14505 2010-07-30  Bruno Haible  <bruno@clisp.org>
14506
14507         getline: Update regarding AIX.
14508         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14509         Reported by Rainer Tammer.
14510
14511 2010-07-30  Bruno Haible  <bruno@clisp.org>
14512
14513         wcwidth: Drop replacement on AIX 7.
14514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14515         AIX 7.
14516         Reported by Rainer Tammer.
14517
14518 2010-07-30  Bruno Haible  <bruno@clisp.org>
14519
14520         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14522         a 'char *'.
14523         Reported by Rainer Tammer.
14524
14525 2010-07-30  Bruno Haible  <bruno@clisp.org>
14526
14527         unlink: Update regarding AIX.
14528         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14529         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14530         Reported by Rainer Tammer.
14531
14532 2010-07-30  Bruno Haible  <bruno@clisp.org>
14533
14534         symlink: Update regarding AIX.
14535         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14536         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14537         Reported by Rainer Tammer.
14538
14539 2010-07-30  Bruno Haible  <bruno@clisp.org>
14540
14541         strndup: Update regarding AIX.
14542         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14543         AIX 7.
14544         Reported by Rainer Tammer.
14545
14546 2010-07-30  Bruno Haible  <bruno@clisp.org>
14547
14548         stat: Update regarding AIX.
14549         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14550         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14551         Reported by Rainer Tammer.
14552
14553 2010-07-30  Bruno Haible  <bruno@clisp.org>
14554
14555         truncl: Fix autoconf test.
14556         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14557         whether truncl works.
14558         Reported by Rainer Tammer.
14559
14560 2010-07-30  Bruno Haible  <bruno@clisp.org>
14561
14562         round: Update regarding AIX.
14563         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14564         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14565         Reported by Rainer Tammer.
14566
14567 2010-07-30  Bruno Haible  <bruno@clisp.org>
14568
14569         rename: Update regarding AIX.
14570         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14571         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14572         Reported by Rainer Tammer.
14573
14574 2010-07-30  Bruno Haible  <bruno@clisp.org>
14575
14576         printf.m4: Update regarding AIX.
14577         * m4/printf.m4: Update comments regarding AIX.
14578         Reported by Rainer Tammer.
14579
14580 2010-07-30  Bruno Haible  <bruno@clisp.org>
14581
14582         iconv: Update regarding AIX.
14583         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14584         AIX 7.
14585         Reported by Rainer Tammer.
14586
14587 2010-07-30  Bruno Haible  <bruno@clisp.org>
14588
14589         getopt: Update regarding AIX.
14590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14591         no on AIX.
14592         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14593         Reported by Rainer Tammer.
14594
14595 2010-07-30  Bruno Haible  <bruno@clisp.org>
14596
14597         ldexpl; Update regarding AIX.
14598         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14599         on AIX 7.
14600         Reported by Rainer Tammer.
14601
14602 2010-07-30  Bruno Haible  <bruno@clisp.org>
14603
14604         frexpl: Update regarding AIX.
14605         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14606         on AIX 7.
14607         Reported by Rainer Tammer.
14608
14609 2010-07-30  Bruno Haible  <bruno@clisp.org>
14610
14611         open, fopen: Update regarding AIX.
14612         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14613         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14614         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14615         * doc/posix-functions/fopen.texi: Likewise.
14616         Reported by Rainer Tammer.
14617
14618 2010-07-30  Bruno Haible  <bruno@clisp.org>
14619
14620         chown: Update doc regarding AIX.
14621         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14622         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14623         Reported by Rainer Tammer.
14624
14625 2010-07-30  Eric Blake  <eblake@redhat.com>
14626
14627         strtod: fix bug in replacement function on AIX
14628         * lib/strtod.c (strtod): Special case broken "0x" parse in
14629         underlying strtod.
14630         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14631         * doc/posix-functions/strtod.texi (strtod): Likewise.
14632         Reported by Rainer Tammer.
14633
14634 2010-07-30  Bruno Haible  <bruno@clisp.org>
14635
14636         mbrlen: Fix cross-compilation guess for AIX.
14637         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14638         guess. Leftover from 2008-12-22.
14639
14640 2010-07-30  Bruno Haible  <bruno@clisp.org>
14641
14642         mbrtowc: Fix cross-compilation guess for AIX.
14643         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14644         guess. Leftover from 2008-12-21.
14645
14646 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14647
14648         init.sh: work around trap limitation of some shells
14649         * tests/init.sh (setup_): Move exit trap outside of shell function.
14650
14651 2010-07-29  Eric Blake  <eblake@redhat.com>
14652
14653         strtod: aid debugging
14654         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14655         understanding why strtod is rejected.
14656
14657 2010-07-28  Bruno Haible  <bruno@clisp.org>
14658
14659         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14660         * lib/unistr/u8-chr.c: Include <string.h>.
14661         * tests/unistr/test-u8-chr.c: Likewise.
14662         * tests/unistr/test-u16-chr.c: Likewise.
14663         * tests/unistr/test-u32-chr.c: Likewise.
14664         * tests/unistr/test-u8-strchr.c: Likewise.
14665         * tests/unistr/test-u16-strchr.c: Likewise.
14666         * tests/unistr/test-u32-strchr.c: Likewise.
14667         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14668         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14669         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14670         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14671
14672 2010-07-28  Bruno Haible  <bruno@clisp.org>
14673
14674         Use spaces for indentation, not tabs.
14675         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14676
14677 2010-07-27  Bruno Haible  <bruno@clisp.org>
14678
14679         mbspcasecmp: Fix function specification.
14680         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14681         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14682         Reported by Eric Blake <eblake@redhat.com>.
14683
14684 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14685
14686         timespec: use cast and not conditional, as truncation isn't possible
14687         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14688         instead of a conditional.  Comment about the situation in more detail.
14689         This undoes most of the 2009-10-29 patch.
14690
14691 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14692
14693         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14694         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14695         * lib/unistr/u8-strchr.c: Likewise.
14696         * modules/unistr/u8-chr: Depend on memchr.
14697
14698         unistr/u*-strchr: add tests
14699         * modules/unistr/u8-strchr-tests: New file.
14700         * modules/unistr/u16-strchr-tests: New file.
14701         * modules/unistr/u32-strchr-tests: New file.
14702         * tests/unistr/test-strchr.h: New file.
14703         * tests/unistr/test-u8-strchr.c: New file.
14704         * tests/unistr/test-u16-strchr.c: New file.
14705         * tests/unistr/test-u32-strchr.c: New file.
14706
14707         unistr/u*-chr: test multibyte sequences more
14708         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14709         test vector.
14710         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14711         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14712         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14713
14714         unistr/u*-chr: test multibyte sequences
14715         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14716
14717         unistr/u*-chr: prepare for multibyte tests
14718         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14719         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14720         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14721         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14722         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14723         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14724
14725 2010-07-18  Bruno Haible  <bruno@clisp.org>
14726
14727         unistr/u8-strchr: Optimize non-ASCII argument case.
14728         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14729         because the first byte often matches anyway.
14730         Reported by Pádraig Brady <P@draigbrady.com>.
14731
14732 2010-07-15  Karl Berry  <karl@gnu.org>
14733
14734         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14735
14736 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14737
14738         getcwd: on Solaris, work better if ancestors are inaccessible
14739         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14740         buffer and size, try again with a large buffer.  This works better
14741         on Solaris, since its getcwd succeeds even if the path to the root
14742         is inaccessible, and this is helpful in common cases such as .zfs
14743         hidden directories.  Problem reported by J Chapman Flack in
14744         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14745         Use system getcwd if it's declared, not merely if it's partly
14746         working; use the partly-working test only to avoid needless effort
14747         if the system getcwd fails.
14748         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14749         comment that was already obsolete and is now even more obsolete.
14750         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14751         now might call strdup.
14752
14753 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14754
14755         pthread: Add enough so that coreutils/src/sort.c compiles.
14756         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14757         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14758         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14759         Include <sys/types.h>, in case it defines pthread_t.
14760         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14761         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14762         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14763         (pthread_rwlockattr_t, pthread_spinlock_t):
14764         New typedefs, if HAVE_PTHREAD_T is not defined.
14765         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14766         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14767         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14768         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14769         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14770         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14771         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14772         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14773         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14774         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14775         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14776         New macros.
14777         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14778         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14779         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14780         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14781         (pthread_spin_unlock): New dummy functions.
14782         (pthread_create): Return EAGAIN; don't set errno.
14783         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14784         require AC_C_INLINE.
14785         * modules/pthread (Depends-on): Add sched, time.
14786         (pthread.h): Use AM_V_GEN.
14787
14788 2010-07-13  Bruno Haible  <bruno@clisp.org>
14789
14790         striconveh: Don't malloc memory if the result buffer is sufficient.
14791         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14792         buffer if its size is sufficient.
14793         Reported by Ludovic Courtès <ludo@gnu.org>.
14794
14795 2010-07-13  Bruno Haible  <bruno@clisp.org>
14796
14797         strtod: Add safety check.
14798         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14799
14800 2010-07-12  Bruno Haible  <bruno@clisp.org>
14801
14802         Unify tests that set gl_cv_func_ldexpl_no_libm.
14803         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14804         gl_FUNC_LDEXPL.
14805         (gl_FUNC_LDEXPL): Invoke it.
14806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14807
14808 2010-07-12  Bruno Haible  <bruno@clisp.org>
14809
14810         Unify tests that set gl_cv_func_ldexp_no_libm.
14811         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14812         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14813         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14814         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14815         * modules/strtod (Files): Add m4/ldexp.m4.
14816
14817 2010-07-12  Bruno Haible  <bruno@clisp.org>
14818
14819         Unify tests that set gl_cv_func_frexpl_no_libm.
14820         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14821         gl_FUNC_FREXPL_NO_LIBM.
14822         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14823         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14824
14825 2010-07-12  Bruno Haible  <bruno@clisp.org>
14826
14827         Unify tests that set gl_cv_func_frexp_no_libm.
14828         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14829         gl_FUNC_FREXP_NO_LIBM.
14830         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14831         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14832
14833 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14834
14835         memcoll: clarify sizes versus lengths, document better, and tweak perf
14836         * lib/memcoll.c (strcoll_loop, memcoll0):
14837         Improve quality of descriptive comments.  Name variables
14838         consistently as to whether they are lengths (which do not include
14839         terminating null) versus sizes (which do).
14840         * lib/xmemcoll.c (xmemcoll0): Likewise.
14841         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14842         returned when s1size == 0; this is easier to compile and saves
14843         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14844
14845 2010-07-12  Bruno Haible  <bruno@clisp.org>
14846
14847         Tests for module '_Exit'.
14848         * modules/_Exit-tests: New file.
14849         * tests/test-_Exit.sh: New file.
14850         * tests/test-_Exit.c: New file.
14851
14852         New module '_Exit'.
14853         * lib/stdlib.in.h (__attribute__): New macro.
14854         (_Exit): New declaration.
14855         * lib/_Exit.c: New file.
14856         * m4/_Exit.m4: New file.
14857         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14858         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14859         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14860         * modules/_Exit: New file.
14861         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14862         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14863
14864 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14865
14866         strtod: make it more-accurate typically, and don't require libm
14867         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14868         Include limits.h.  Don't include string.h.
14869         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14870         (locale_isspace): New function, so that no casts are needed to
14871         check whether *s is a space.
14872         (ldexp): Provide an unused dummy if not available.
14873         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14874         (strtod): Use them.  This implementation prefers to use the
14875         underlying strtod if available, falling back on our own code
14876         only to fix known bugs.  This is more likely to produce an
14877         accurate result.  Also, it avoids the use of libm functions.
14878         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14879         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14880         was absent, but it caused a test failure with coreutils.
14881         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14882         with libm.
14883         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14884         * modules/strtod-tests (Makefile.am): Likewise.
14885
14886 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14887             Bruno Haible  <bruno@clisp.org>
14888
14889         unistr/u8-strchr: Optimize ASCII argument case.
14890         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14891
14892 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         (x)memcoll: minor tweaks
14895         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14896         is after the type that it qualifies.
14897         (memcoll0): Likewise.
14898         * lib/memcoll.h (memcoll0): Likewise.
14899         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14900         * lib/xmemcoll.h (xmemcoll0): Likewise.
14901         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14902         differs from memcoll in that the NUL byte is part of the argument.
14903         Omit the abort-checks, as performance is a real issue here.  Plus,
14904         the checks were wrong anyway (an off-by-one error).  Omit local
14905         variable 'diff', as it's a bit clearer that way.
14906         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14907         no longer needed.
14908
14909 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14910
14911         (x)memcoll: speedup when input is known to be NUL delimited
14912         * lib/memcoll.c: Include stdlib.
14913         (memcoll0): New function.
14914         (strcoll_loop): New function, refactored for use in both memcoll
14915         and memcoll0.
14916         * lib/memcoll.h (memcoll0): Add prototype.
14917         * lib/xmemcoll.c (xmemcoll0): New function.
14918         (collate_error): New function, refactored for use in both xmemcoll
14919         and xmemcoll0.
14920         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14921         * m4/memcoll.m4: add inline invocation.
14922
14923 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14924
14925         * build-aux/bootstrap: Remove any local translations
14926         from the translation project synchronization directory,
14927         so that local only translations are not distributed.
14928
14929 2010-07-04  Bruno Haible  <bruno@clisp.org>
14930
14931         fsusage: Clarify which code applies to which platforms.
14932         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14933         platform.
14934         * lib/fsusage.c (get_fs_usage): Likewise.
14935
14936 2010-07-04  Bruno Haible  <bruno@clisp.org>
14937
14938         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14939         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14940         Reported by Martin Lambers <marlam@marlam.de>.
14941
14942 2010-07-04  Jim Meyering  <meyering@redhat.com>
14943
14944         hash: once again explicitly disallow insertion of NULL
14945         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14946         inserting a NULL pointer cannot work with these functions.
14947         Add a comment with details.
14948         This reverts part of the 2010-07-01 commit, 5bef1a35
14949         "hash: extend module to deal with non-pointer keys".
14950
14951 2010-07-01  Bruno Haible  <bruno@clisp.org>
14952
14953         stdbool: Update doc.
14954         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14955         Info from Christian Weisgerber <naddy@mips.inka.de>.
14956
14957 2010-07-01  Jim Meyering  <meyering@redhat.com>
14958
14959         hash: extend module to deal with non-pointer keys
14960         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14961         but that allows insertion of non-pointer entries.
14962         Do not disallow an ENTRY value of NULL.
14963         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14964         * lib/hash.h (hash_insert0): Declare.
14965
14966 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14967
14968         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14969         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14970         not present (i.e. with autoconf 2.59 and when using gettextize, not
14971         gnulib), require AC_GNU_SOURCE instead.
14972
14973 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14974
14975         idpriv-drop: Fix tests.
14976         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14977         not to the test-idpriv-droptemp program.
14978
14979 2010-06-29  Bruno Haible  <bruno@clisp.org>
14980
14981         string: Fix syntax error with g++ 2.96.
14982         * lib/string.in.h (__pure__): Remove definition.
14983         (_GL_ATTRIBUTE_PURE): New macro.
14984         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14985         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14986         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14987
14988 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14989
14990         unitypes: Fix bug introduced on 2010-05-18.
14991         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14992
14993 2010-06-22  Eric Blake  <eblake@redhat.com>
14994
14995         memmem: slight optimization
14996         * lib/str-two-way.h (critical_factorization): Update comments.
14997         Reduce work during factorization phase.
14998         Reported by Carlos Bueno <carlos@bueno.org>.
14999
15000 2010-06-21  Bruno Haible  <bruno@clisp.org>
15001
15002         Fix HAVE_CALLOC_POSIX misnomer.
15003         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15004         !HAVE_CALLOC_POSIX.
15005         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15006         HAVE_CALLOC_POSIX.
15007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15008         instead of HAVE_CALLOC_POSIX.
15009         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15010         HAVE_CALLOC_POSIX.
15011
15012         Use modern idiom for calloc() replacement.
15013         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15014         AC_FUNC_CALLOC.
15015         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15016         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15017         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15018         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15019         (gl_REPLACE_CALLOC): New macro.
15020
15021 2010-06-21  Bruno Haible  <bruno@clisp.org>
15022
15023         Fix HAVE_REALLOC_POSIX misnomer.
15024         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15025         !HAVE_REALLOC_POSIX.
15026         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15027         HAVE_REALLOC_POSIX.
15028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15029         instead of HAVE_REALLOC_POSIX.
15030         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15031         HAVE_REALLOC_POSIX.
15032
15033         Use modern idiom for realloc() replacement.
15034         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15035         AC_FUNC_REALLOC.
15036         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15037         Autoconf's AC_FUNC_REALLOC.
15038         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15039         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15040         (gl_REPLACE_REALLOC): New macro.
15041         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15042
15043 2010-06-21  Bruno Haible  <bruno@clisp.org>
15044
15045         Fix HAVE_MALLOC_POSIX misnomer.
15046         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15047         !HAVE_MALLOC_POSIX.
15048         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15049         HAVE_MALLOC_POSIX.
15050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15051         instead of HAVE_MALLOC_POSIX.
15052         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15053         HAVE_MALLOC_POSIX.
15054
15055         Use modern idiom for malloc() replacement.
15056         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15057         AC_FUNC_MALLOC.
15058         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15059         Autoconf's AC_FUNC_MALLOC.
15060         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15061         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15062         (gl_REPLACE_MALLOC): New macro.
15063         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15064
15065 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15066
15067         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15068         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15069         This macro takes 3 arguments, not 4.
15070
15071 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15072
15073         ipv6: fix detection under mingw
15074         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15075         in6_addr.
15076
15077 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15078
15079         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15080         that strtod() works when cross-compiling to a glibc version known
15081         to work.
15082
15083 2010-06-15  Bruno Haible  <bruno@clisp.org>
15084
15085         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15086
15087 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15088
15089         select: Correct timeout.
15090         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15091
15092 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15093
15094         git-version-gen: init shell var to avoid env var influence
15095         * build-aux/git-version-gen (v): Init shell var to empty.
15096
15097 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         priv-set: Don't assume that priv.h exists merely because getppriv does.
15100         See Jan Andersen's bug report about AIX 5L in
15101         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15102         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15103         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15104         * lib/priv-set.h: Likewise.
15105         * tests/test-priv-set.c: Likewise.
15106
15107 2010-06-13  Bruno Haible  <bruno@clisp.org>
15108
15109         relocatable: Make it easier to test whether to install wrappers.
15110         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15111         RELOCATABLE_VIA_WRAPPER.
15112
15113 2010-06-13  Bruno Haible  <bruno@clisp.org>
15114
15115         gnulib-tool: Display specified modules and dependencies differently.
15116         * gnulib-tool (func_show_module_list): New function.
15117         (func_import, func_create_testdir): Invoke it.
15118         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15119
15120 2010-06-13  Bruno Haible  <bruno@clisp.org>
15121
15122         gnulib-tool: Align code of func_import and func_create_testdir.
15123         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15124         specified_modules.
15125
15126 2010-06-12  Jim Meyering  <meyering@redhat.com>
15127
15128         test-inttostr: avoid spurious failure on Solaris 9
15129         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15130         to accept "%ju".  Reported by Bruno Haible.
15131
15132 2010-06-11  Jim Meyering  <meyering@redhat.com>
15133
15134         test-sys_socket: mark variables as used more readably
15135         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15136         as "used" explicitly via (void) statement casts.  This is more
15137         readable than using them in an artificial return expression.
15138         Suggestion from Bruno Haible.
15139
15140 2010-06-11  Bruno Haible  <bruno@clisp.org>
15141
15142         Avoid some more warnings from "gcc -Wwrite-strings".
15143         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15144         to 'const char *'.
15145         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15146         * tests/test-c-strcasestr.c (main): Likewise.
15147         * tests/test-mbscasestr1.c (main): Likewise.
15148         * tests/test-mbscasestr2.c (main): Likewise.
15149         * tests/test-memmem.c (main): Likewise.
15150         * tests/test-strstr.c (main): Likewise.
15151         * tests/test-strcasestr.c (main): Likewise.
15152
15153 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15154
15155         init.sh: change framework_failure_ to fail with status 99, not 1
15156         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15157         automake's parallel-tests rule that this is an unexpected failure,
15158         even if the test is listed in XFAIL_TESTS.
15159
15160 2010-06-11  Jim Meyering  <meyering@redhat.com>
15161
15162         test-inttostr: avoid warnings about 4-6KB literal strings
15163         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15164         Include "macros.h", for its definition of ASSERT.
15165         (CK): s/assert/ASSERT/
15166         * modules/inttostr-tests (Files): Add macros.h.
15167
15168         init.sh: don't use $ME_ or skip_ before they are defined
15169         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15170         their first uses.  Also hoist their companions: warn_, fail_,
15171         framework_failure_, $stderr_fileno.  Prompted by a patch from
15172         Stefano Lattarini.
15173
15174         test-sys_socket: avoid set-but-not-used warnings from gcc
15175         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15176         avoid warning about set-but-not-used variables.
15177
15178         test-xvasprintf: avoid 'const' discard warnings
15179         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15180         "const" when assigning from literal strings.
15181         (test_xasprintf): Add "void" in function argument list to placate
15182         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15183
15184         tests: avoid compilation warnings in argmatch and exclude tests...
15185         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15186         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15187         Since it always exits, declare with the "noreturn" attribute.
15188         * tests/test-argmatch.c: Likewise.
15189
15190         tests: avoid 'const' discard warnings in mbsstr tests
15191         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15192         * tests/test-mbsstr2.c (main): Likewise.
15193
15194         test-verify: avoid warning from gcc's -Wmissing-declarations
15195         * tests/test-verify.c (function): Declare to be static.
15196
15197         test-inttostr.c: include <string.h> for use of strcmp
15198         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15199
15200         test-linkat: avoid failed assertion on "other" architectures
15201         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15202         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15203         sparc: https://bugs.launchpad.net/bugs/591968
15204
15205 2010-06-11  Jim Meyering  <meyering@redhat.com>
15206
15207         printf.m4: avoid autoconf's "Expanded Before Required" warning
15208         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15209         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15210         autoconf warning.
15211
15212 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15213
15214         Replacement header templates are now named with ".in", not "_".
15215         * doc/gnulib-intro.texi: Correct.
15216
15217 2010-06-10  Jim Meyering  <meyering@redhat.com>
15218
15219         inttostr-tests: depend on snprintf, not snprintf-posix
15220         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15221         snprintf-posix, to avoid this aclocal failure:
15222           missing file gnulib-tests/vasnprintf.c
15223           configure.ac:45: error: expected source file, required through \
15224           AC_LIBSOURCES, not found
15225
15226 2010-06-10  Jim Meyering  <meyering@redhat.com>
15227
15228         inttostr: add a new function, inttostr, and tests
15229         The namesake function was not available.  The existence of the
15230         template file, inttostr.c makes its addition nontrivial.
15231         * lib/anytostr.c: Rename from inttostr.c.
15232         (anytostr): Rename from inttostr.
15233         * lib/inttostr.c: New file.
15234         * modules/inttostr (Files): Add anytostr.c.
15235         (Makefile.am): Set lib_SOURCES instead of ...
15236         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15237         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15238         * lib/offtostr.c: Likewise.
15239         * lib/uinttostr.c: Likewise.
15240         * lib/umaxtostr.c: Likewise.
15241         * modules/inttostr-tests: New file.
15242         * tests/test-inttostr.c: New file.  Test these functions.
15243
15244 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15245             Bruno Haible  <bruno@clisp.org>
15246
15247         Add "Extending Gnulib" chapter to manual.
15248         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15249         chapter.
15250         (Extending Gnulib): New chapter.
15251         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15252         chapter.
15253
15254 2010-06-09  Bruno Haible  <bruno@clisp.org>
15255
15256         Avoid relocwrapper link errors due to gnulib replacement functions.
15257         * lib/areadlink.c: Use the system's malloc, realloc functions.
15258         (areadlink): Set errno to ENOMEM explicitly.
15259         * modules/areadlink (Depends-on): Remove malloc-posix.
15260         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15261
15262 2010-06-09  Bruno Haible  <bruno@clisp.org>
15263
15264         Avoid relocwrapper link errors due to gnulib replacement functions.
15265         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15266         * lib/malloca.c: Likewise.
15267         * lib/relocatable.c: Likewise.
15268         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15269         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15270         * lib/setenv.c: Use the system's malloc, realloc functions.
15271         * lib/strerror.c: Use the system's sprintf function.
15272         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15273
15274 2010-06-04  Bruno Haible  <bruno@clisp.org>
15275
15276         Prefer documented low-level autoconf macro names.
15277         * m4/lib-link.m4: Use m4_translit instead of translit.
15278         * m4/environ.m4: Likewise.
15279         * m4/mathfunc.m4: Likewise.
15280         * m4/onceonly.m4: Likewise.
15281         * m4/stdint.m4: Likewise.
15282         Suggested by Eric Blake.
15283
15284 2010-06-04  Martin Lambers  <marlam@marlam.de>
15285             Bruno Haible  <bruno@clisp.org>
15286
15287         havelib: Allow library names with '+' characters.
15288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15289         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15290
15291 2010-06-09  Bruno Haible  <bruno@clisp.org>
15292
15293         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15294         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15295         realloc failed.
15296
15297 2010-06-08  Peter Simons  <simons@cryp.to>
15298
15299         maint.mk: make the news-check rule more configurable
15300         * top/maint.mk (news-check-lines-spec): New variable.
15301         (news-check): Use "sed -n 1,10p" in place of "head".
15302
15303 2010-06-07  Jim Meyering  <meyering@redhat.com>
15304
15305         do-release-commit-and-tag: fix typo in --help
15306         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15307
15308         regex: avoid new dead-code warning with gcc-4.6.0
15309         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15310         if-block containing a while-loop.  It's been unused for at least
15311         5 years.
15312
15313 2010-06-05  Bruno Haible  <bruno@clisp.org>
15314
15315         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15316         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15317
15318 2010-06-04  Bruno Haible  <bruno@clisp.org>
15319
15320         Update to GNU gettext 0.18.1.
15321         * modules/gettext (configure.ac): Require gettext infrastructure from
15322         version 0.18.1.
15323
15324 2010-06-03  Bruno Haible  <bruno@clisp.org>
15325
15326         Don't use AC_LIBOBJ with file names in subdirectories.
15327         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15328         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15329         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15330         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15331         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15332         gl_LIBUNISTRING_LIBSOURCE.
15333         (Makefile.am): Augment lib_SOURCES here, conditionally.
15334         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15335
15336 2010-06-03  Bruno Haible  <bruno@clisp.org>
15337
15338         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15339         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15340         expansion does not end with a newline.
15341         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15342         unnecessary newline.
15343
15344 2010-06-03  Bruno Haible  <bruno@clisp.org>
15345
15346         Reduce dependencies.
15347         * tests/test-quotearg.h: New file, extracted from
15348         tests/test-quotearg.c.
15349         * tests/test-quotearg-simple.c: New file, extracted from
15350         tests/test-quotearg.c.
15351         * tests/test-quotearg.c: Don't include <ctype.h>.
15352         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15353         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15354         use_quote_double_quotes, use_quotearg_colon): Moved to
15355         tests/test-quotearg.h.
15356         (results_g, flag_results, custom_quotes, custom_results): Moved
15357         to tests/test-quotearg-simple.c.
15358         (main): Moved the part that does not depend on gettext to
15359         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15360         performed.
15361         * modules/quotearg-simple: New file.
15362         * modules/quotearg-simple-tests: New file.
15363         * modules/quotearg (Depends-on): Add quotearg-simple.
15364         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15365         (Files): Add tests/test-quotearg.h.
15366         Reported by Paolo Bonzini.
15367
15368 2010-06-03  Bruno Haible  <bruno@clisp.org>
15369
15370         Reduce dependencies.
15371         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15372
15373 2010-06-03  Bruno Haible  <bruno@clisp.org>
15374
15375         time: Undefine more broken macros.
15376         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15377         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15378         Reported by Eric Blake.
15379
15380 2010-06-03  Bruno Haible  <bruno@clisp.org>
15381
15382         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15383         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15384         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15385         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15386         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15387         Reported by Ludovic Courtès <ludo@gnu.org>.
15388
15389 2010-06-02  Eric Blake  <eblake@redhat.com>
15390
15391         time: work with mingw + pthreads-win32 library
15392         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15393         if timespec is defined only in pthread.h.
15394         * modules/time (Makefile.am): Substitute it.
15395         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15396         <pthread.h>, when needed.
15397         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15398         from the library.
15399
15400 2010-05-31  Bruno Haible  <bruno@clisp.org>
15401
15402         Avoid expanding two macros in the wrong order.
15403         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15404         gl_LIBUNISTRING if it is defined.
15405         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15406         autoconf >= 2.64.
15407         Reported by Ludovic Courtès <ludo@gnu.org>.
15408
15409 2010-05-27  Jim Meyering  <meyering@redhat.com>
15410
15411         maint.mk: also prohibit "#undef" of always-defined symbols
15412         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15413         Allow more than one space before the symbol name.
15414         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15415         the regexp uses alternation.
15416
15417 2010-05-26  Eric Blake  <eblake@redhat.com>
15418
15419         maint.mk: avoid echo -e
15420         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15421         Convert all uses of echo -* to printf.
15422         Reported by Matthias Bolte.
15423
15424 2010-05-25  Bruno Haible  <bruno@clisp.org>
15425
15426         Update to GNU gettext 0.18, part 2.
15427         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15428         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15429
15430 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15431
15432         Add missing include in test-pwrite.c.
15433         * tests/test-pwrite.c: Include string.h, for strcmp.
15434
15435 2010-05-24  Bruno Haible  <bruno@clisp.org>
15436
15437         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15438
15439 2010-05-24  Bruno Haible  <bruno@clisp.org>
15440
15441         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15442         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15443         iconveh_error argument.
15444         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15445         U_STRCONV_TO_LOCALE.
15446         * lib/unistr/u16-strcoll.c: Likewise.
15447         * lib/unistr/u32-strcoll.c: Likewise.
15448         * modules/unistr/u8-strcoll (Depends-on): Add
15449         uniconv/u8-strconv-to-enc, localcharset. Remove
15450         uniconv/u8-strconv-to-locale.
15451         (configure.ac): Bump version number.
15452         * modules/unistr/u16-strcoll (Depends-on): Add
15453         uniconv/u16-strconv-to-enc, localcharset. Remove
15454         uniconv/u16-strconv-to-locale.
15455         (configure.ac): Bump version number.
15456         * modules/unistr/u32-strcoll (Depends-on): Add
15457         uniconv/u32-strconv-to-enc, localcharset. Remove
15458         uniconv/u32-strconv-to-locale.
15459         (configure.ac): Bump version number.
15460
15461 2010-05-24  Bruno Haible  <bruno@clisp.org>
15462
15463         Avoid a test failure on NetBSD 5.0.
15464         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15465         an iconv() bug.
15466
15467 2010-05-24  Bruno Haible  <bruno@clisp.org>
15468
15469         Adjust #include directive style.
15470         * modules/regex (Includes): Recommend to write <regex.h>.
15471
15472 2010-05-24  Bruno Haible  <bruno@clisp.org>
15473
15474         regex: Don't require alloca.
15475         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15476         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15477         only inside if (0).
15478
15479 2010-05-23  Jim Meyering  <meyering@redhat.com>
15480
15481         test-renameat.c: include <sys/stat.h>
15482         * tests/test-renameat.c: Include <sys/stat.h>; required for
15483         definition of S_IS* macros.
15484
15485 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15486
15487         Update maintainer documentation for 'relocatable-prog' module.
15488         * doc/relocatable-maint.texi: Update.
15489         Comments by Bruno Haible.
15490
15491 2010-05-23  Bruno Haible  <bruno@clisp.org>
15492
15493         git-merge-changelog: Enable --split-merged-entry by default.
15494         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15495         (usage): Don't mention this option any more.
15496         Reported by Ralf Wildenhues.
15497
15498 2010-05-23  Jim Meyering  <meyering@redhat.com>
15499
15500         test-pwrite: do not leave behind a test file named "out"
15501         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15502         The trivial-looking use of init.sh is really necessary.
15503         It ensures that the temporary file, "out", is created in
15504         a temporary directory, and removed upon termination.
15505         * tests/test-pwrite.sh: Re-add file.
15506         * modules/pwrite-tests: Reference it.
15507
15508 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15509
15510         Fix output redirection buglet in init.sh.
15511         * tests/init.sh: Fix redirection of stderr.
15512
15513 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15514
15515         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15516
15517 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15518
15519         * modules/valgrind-tests: New file.
15520         * m4/valgrind-tests.m4: New file.
15521         * doc/valgrind-tests.texi: New file.
15522         * doc/gnulib.texi (Running self-tests under valgrind): New
15523         section.
15524
15525 2010-05-19  Bruno Haible  <bruno@clisp.org>
15526
15527         Clean up dead code in recent commit.
15528         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15529         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15530         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15531         Suggested by Paolo Bonzini.
15532
15533 2010-05-19  Bruno Haible  <bruno@clisp.org>
15534
15535         Avoid valgrind error reports from libunistring.
15536         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15537         * modules/libunistring (Files): Add it.
15538         * modules/libunistring-optional (Files): Likewise.
15539
15540 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15541             Bruno Haible  <bruno@clisp.org>
15542
15543         New module 'libunistring-optional'.
15544         * modules/libunistring-optional: New file.
15545         * m4/libunistring-base.m4: New file.
15546         * m4/libunistring-optional.m4: New file.
15547         * lib/unicase.in.h: Renamed from lib/unicase.h.
15548         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15549         * lib/unictype.in.h: Renamed from lib/unictype.h.
15550         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15551         * lib/uniname.in.h: Renamed from lib/uniname.h.
15552         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15553         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15554         * lib/unistr.in.h: Renamed from lib/unistr.h.
15555         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15556         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15557         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15558         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15559         gl_LIBUNISTRING. If the library was found, determine the installed
15560         version and set LIBUNISTRING_VERSION.
15561         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15562         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15563         handle a configuration option --with-included-libunistring.
15564         * modules/libunistring (Files): Add m4/absolute-header.m4.
15565         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15566         Add m4/libunistring-base.m4.
15567         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15568         (Makefile.am): Build unicase.h from unicase.in.h.
15569         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15570         Add m4/libunistring-base.m4.
15571         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15572         (Makefile.am): Build uniconv.h from uniconv.in.h.
15573         * modules/unictype/base (Files): Use unictype.in.h instead of
15574         unictype.h. Add m4/libunistring-base.m4.
15575         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15576         (Makefile.am): Build unictype.h from unictype.in.h.
15577         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15578         Add m4/libunistring-base.m4.
15579         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15580         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15581         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15582         Add m4/libunistring-base.m4.
15583         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15584         (Makefile.am): Build uniname.h from uniname.in.h.
15585         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15586         Add m4/libunistring-base.m4.
15587         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15588         (Makefile.am): Build uninorm.h from uninorm.in.h.
15589         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15590         unistdio.h. Add m4/libunistring-base.m4.
15591         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15592         (Makefile.am): Build unistdio.h from unistdio.in.h.
15593         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15594         Add m4/libunistring-base.m4.
15595         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15596         (Makefile.am): Build unistr.h from unistr.in.h.
15597         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15598         Add m4/libunistring-base.m4.
15599         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15600         (Makefile.am): Build unitypes.h from unitypes.in.h.
15601         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15602         Add m4/libunistring-base.m4.
15603         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15604         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15605         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15606         uniwidth.h. Add m4/libunistring-base.m4.
15607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15608         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15609         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15610         instead of augmenting lib_SOURCES.
15611         * modules/unicase/empty-suffix-context: Likewise.
15612         * modules/unicase/locale-language: Likewise.
15613         * modules/unicase/tolower: Likewise.
15614         * modules/unicase/totitle: Likewise.
15615         * modules/unicase/toupper: Likewise.
15616         * modules/unicase/u8-casecmp: Likewise.
15617         * modules/unicase/u8-casecoll: Likewise.
15618         * modules/unicase/u8-casefold: Likewise.
15619         * modules/unicase/u8-casexfrm: Likewise.
15620         * modules/unicase/u8-ct-casefold: Likewise.
15621         * modules/unicase/u8-ct-tolower: Likewise.
15622         * modules/unicase/u8-ct-totitle: Likewise.
15623         * modules/unicase/u8-ct-toupper: Likewise.
15624         * modules/unicase/u8-is-cased: Likewise.
15625         * modules/unicase/u8-is-casefolded: Likewise.
15626         * modules/unicase/u8-is-lowercase: Likewise.
15627         * modules/unicase/u8-is-titlecase: Likewise.
15628         * modules/unicase/u8-is-uppercase: Likewise.
15629         * modules/unicase/u8-prefix-context: Likewise.
15630         * modules/unicase/u8-suffix-context: Likewise.
15631         * modules/unicase/u8-tolower: Likewise.
15632         * modules/unicase/u8-totitle: Likewise.
15633         * modules/unicase/u8-toupper: Likewise.
15634         * modules/unicase/u16-casecmp: Likewise.
15635         * modules/unicase/u16-casecoll: Likewise.
15636         * modules/unicase/u16-casefold: Likewise.
15637         * modules/unicase/u16-casexfrm: Likewise.
15638         * modules/unicase/u16-ct-casefold: Likewise.
15639         * modules/unicase/u16-ct-tolower: Likewise.
15640         * modules/unicase/u16-ct-totitle: Likewise.
15641         * modules/unicase/u16-ct-toupper: Likewise.
15642         * modules/unicase/u16-is-cased: Likewise.
15643         * modules/unicase/u16-is-casefolded: Likewise.
15644         * modules/unicase/u16-is-lowercase: Likewise.
15645         * modules/unicase/u16-is-titlecase: Likewise.
15646         * modules/unicase/u16-is-uppercase: Likewise.
15647         * modules/unicase/u16-prefix-context: Likewise.
15648         * modules/unicase/u16-suffix-context: Likewise.
15649         * modules/unicase/u16-tolower: Likewise.
15650         * modules/unicase/u16-totitle: Likewise.
15651         * modules/unicase/u16-toupper: Likewise.
15652         * modules/unicase/u32-casecmp: Likewise.
15653         * modules/unicase/u32-casecoll: Likewise.
15654         * modules/unicase/u32-casefold: Likewise.
15655         * modules/unicase/u32-casexfrm: Likewise.
15656         * modules/unicase/u32-ct-casefold: Likewise.
15657         * modules/unicase/u32-ct-tolower: Likewise.
15658         * modules/unicase/u32-ct-totitle: Likewise.
15659         * modules/unicase/u32-ct-toupper: Likewise.
15660         * modules/unicase/u32-is-cased: Likewise.
15661         * modules/unicase/u32-is-casefolded: Likewise.
15662         * modules/unicase/u32-is-lowercase: Likewise.
15663         * modules/unicase/u32-is-titlecase: Likewise.
15664         * modules/unicase/u32-is-uppercase: Likewise.
15665         * modules/unicase/u32-prefix-context: Likewise.
15666         * modules/unicase/u32-suffix-context: Likewise.
15667         * modules/unicase/u32-tolower: Likewise.
15668         * modules/unicase/u32-totitle: Likewise.
15669         * modules/unicase/u32-toupper: Likewise.
15670         * modules/unicase/ulc-casecmp: Likewise.
15671         * modules/unicase/ulc-casecoll: Likewise.
15672         * modules/unicase/ulc-casexfrm: Likewise.
15673         * modules/uniconv/u8-conv-from-enc: Likewise.
15674         * modules/uniconv/u8-conv-to-enc: Likewise.
15675         * modules/uniconv/u8-strconv-from-enc: Likewise.
15676         * modules/uniconv/u8-strconv-from-locale: Likewise.
15677         * modules/uniconv/u8-strconv-to-enc: Likewise.
15678         * modules/uniconv/u8-strconv-to-locale: Likewise.
15679         * modules/uniconv/u16-conv-from-enc: Likewise.
15680         * modules/uniconv/u16-conv-to-enc: Likewise.
15681         * modules/uniconv/u16-strconv-from-enc: Likewise.
15682         * modules/uniconv/u16-strconv-from-locale: Likewise.
15683         * modules/uniconv/u16-strconv-to-enc: Likewise.
15684         * modules/uniconv/u16-strconv-to-locale: Likewise.
15685         * modules/uniconv/u32-conv-from-enc: Likewise.
15686         * modules/uniconv/u32-conv-to-enc: Likewise.
15687         * modules/uniconv/u32-strconv-from-enc: Likewise.
15688         * modules/uniconv/u32-strconv-from-locale: Likewise.
15689         * modules/uniconv/u32-strconv-to-enc: Likewise.
15690         * modules/uniconv/u32-strconv-to-locale: Likewise.
15691         * modules/unictype/bidicategory-byname: Likewise.
15692         * modules/unictype/bidicategory-name: Likewise.
15693         * modules/unictype/bidicategory-of: Likewise.
15694         * modules/unictype/bidicategory-test: Likewise.
15695         * modules/unictype/block-list: Likewise.
15696         * modules/unictype/block-test: Likewise.
15697         * modules/unictype/category-C: Likewise.
15698         * modules/unictype/category-Cc: Likewise.
15699         * modules/unictype/category-Cf: Likewise.
15700         * modules/unictype/category-Cn: Likewise.
15701         * modules/unictype/category-Co: Likewise.
15702         * modules/unictype/category-Cs: Likewise.
15703         * modules/unictype/category-L: Likewise.
15704         * modules/unictype/category-Ll: Likewise.
15705         * modules/unictype/category-Lm: Likewise.
15706         * modules/unictype/category-Lo: Likewise.
15707         * modules/unictype/category-Lt: Likewise.
15708         * modules/unictype/category-Lu: Likewise.
15709         * modules/unictype/category-M: Likewise.
15710         * modules/unictype/category-Mc: Likewise.
15711         * modules/unictype/category-Me: Likewise.
15712         * modules/unictype/category-Mn: Likewise.
15713         * modules/unictype/category-N: Likewise.
15714         * modules/unictype/category-Nd: Likewise.
15715         * modules/unictype/category-Nl: Likewise.
15716         * modules/unictype/category-No: Likewise.
15717         * modules/unictype/category-P: Likewise.
15718         * modules/unictype/category-Pc: Likewise.
15719         * modules/unictype/category-Pd: Likewise.
15720         * modules/unictype/category-Pe: Likewise.
15721         * modules/unictype/category-Pf: Likewise.
15722         * modules/unictype/category-Pi: Likewise.
15723         * modules/unictype/category-Po: Likewise.
15724         * modules/unictype/category-Ps: Likewise.
15725         * modules/unictype/category-S: Likewise.
15726         * modules/unictype/category-Sc: Likewise.
15727         * modules/unictype/category-Sk: Likewise.
15728         * modules/unictype/category-Sm: Likewise.
15729         * modules/unictype/category-So: Likewise.
15730         * modules/unictype/category-Z: Likewise.
15731         * modules/unictype/category-Zl: Likewise.
15732         * modules/unictype/category-Zp: Likewise.
15733         * modules/unictype/category-Zs: Likewise.
15734         * modules/unictype/category-and: Likewise.
15735         * modules/unictype/category-and-not: Likewise.
15736         * modules/unictype/category-byname: Likewise.
15737         * modules/unictype/category-name: Likewise.
15738         * modules/unictype/category-none: Likewise.
15739         * modules/unictype/category-of: Likewise.
15740         * modules/unictype/category-or: Likewise.
15741         * modules/unictype/category-test: Likewise.
15742         * modules/unictype/combining-class: Likewise.
15743         * modules/unictype/ctype-alnum: Likewise.
15744         * modules/unictype/ctype-alpha: Likewise.
15745         * modules/unictype/ctype-blank: Likewise.
15746         * modules/unictype/ctype-cntrl: Likewise.
15747         * modules/unictype/ctype-digit: Likewise.
15748         * modules/unictype/ctype-graph: Likewise.
15749         * modules/unictype/ctype-lower: Likewise.
15750         * modules/unictype/ctype-print: Likewise.
15751         * modules/unictype/ctype-punct: Likewise.
15752         * modules/unictype/ctype-space: Likewise.
15753         * modules/unictype/ctype-upper: Likewise.
15754         * modules/unictype/ctype-xdigit: Likewise.
15755         * modules/unictype/decimal-digit: Likewise.
15756         * modules/unictype/digit: Likewise.
15757         * modules/unictype/mirror: Likewise.
15758         * modules/unictype/numeric: Likewise.
15759         * modules/unictype/property-alphabetic: Likewise.
15760         * modules/unictype/property-ascii-hex-digit: Likewise.
15761         * modules/unictype/property-bidi-arabic-digit: Likewise.
15762         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15763         * modules/unictype/property-bidi-block-separator: Likewise.
15764         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15765         * modules/unictype/property-bidi-common-separator: Likewise.
15766         * modules/unictype/property-bidi-control: Likewise.
15767         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15768         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15769         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15770         * modules/unictype/property-bidi-european-digit: Likewise.
15771         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15772         * modules/unictype/property-bidi-left-to-right: Likewise.
15773         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15774         * modules/unictype/property-bidi-other-neutral: Likewise.
15775         * modules/unictype/property-bidi-pdf: Likewise.
15776         * modules/unictype/property-bidi-segment-separator: Likewise.
15777         * modules/unictype/property-bidi-whitespace: Likewise.
15778         * modules/unictype/property-byname: Likewise.
15779         * modules/unictype/property-combining: Likewise.
15780         * modules/unictype/property-composite: Likewise.
15781         * modules/unictype/property-currency-symbol: Likewise.
15782         * modules/unictype/property-dash: Likewise.
15783         * modules/unictype/property-decimal-digit: Likewise.
15784         * modules/unictype/property-default-ignorable-code-point: Likewise.
15785         * modules/unictype/property-deprecated: Likewise.
15786         * modules/unictype/property-diacritic: Likewise.
15787         * modules/unictype/property-extender: Likewise.
15788         * modules/unictype/property-format-control: Likewise.
15789         * modules/unictype/property-grapheme-base: Likewise.
15790         * modules/unictype/property-grapheme-extend: Likewise.
15791         * modules/unictype/property-grapheme-link: Likewise.
15792         * modules/unictype/property-hex-digit: Likewise.
15793         * modules/unictype/property-hyphen: Likewise.
15794         * modules/unictype/property-id-continue: Likewise.
15795         * modules/unictype/property-id-start: Likewise.
15796         * modules/unictype/property-ideographic: Likewise.
15797         * modules/unictype/property-ids-binary-operator: Likewise.
15798         * modules/unictype/property-ids-trinary-operator: Likewise.
15799         * modules/unictype/property-ignorable-control: Likewise.
15800         * modules/unictype/property-iso-control: Likewise.
15801         * modules/unictype/property-join-control: Likewise.
15802         * modules/unictype/property-left-of-pair: Likewise.
15803         * modules/unictype/property-line-separator: Likewise.
15804         * modules/unictype/property-logical-order-exception: Likewise.
15805         * modules/unictype/property-lowercase: Likewise.
15806         * modules/unictype/property-math: Likewise.
15807         * modules/unictype/property-non-break: Likewise.
15808         * modules/unictype/property-not-a-character: Likewise.
15809         * modules/unictype/property-numeric: Likewise.
15810         * modules/unictype/property-other-alphabetic: Likewise.
15811         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15812         * modules/unictype/property-other-grapheme-extend: Likewise.
15813         * modules/unictype/property-other-id-continue: Likewise.
15814         * modules/unictype/property-other-id-start: Likewise.
15815         * modules/unictype/property-other-lowercase: Likewise.
15816         * modules/unictype/property-other-math: Likewise.
15817         * modules/unictype/property-other-uppercase: Likewise.
15818         * modules/unictype/property-paired-punctuation: Likewise.
15819         * modules/unictype/property-paragraph-separator: Likewise.
15820         * modules/unictype/property-pattern-syntax: Likewise.
15821         * modules/unictype/property-pattern-white-space: Likewise.
15822         * modules/unictype/property-private-use: Likewise.
15823         * modules/unictype/property-punctuation: Likewise.
15824         * modules/unictype/property-quotation-mark: Likewise.
15825         * modules/unictype/property-radical: Likewise.
15826         * modules/unictype/property-sentence-terminal: Likewise.
15827         * modules/unictype/property-soft-dotted: Likewise.
15828         * modules/unictype/property-space: Likewise.
15829         * modules/unictype/property-terminal-punctuation: Likewise.
15830         * modules/unictype/property-test: Likewise.
15831         * modules/unictype/property-titlecase: Likewise.
15832         * modules/unictype/property-unassigned-code-value: Likewise.
15833         * modules/unictype/property-unified-ideograph: Likewise.
15834         * modules/unictype/property-uppercase: Likewise.
15835         * modules/unictype/property-variation-selector: Likewise.
15836         * modules/unictype/property-white-space: Likewise.
15837         * modules/unictype/property-xid-continue: Likewise.
15838         * modules/unictype/property-xid-start: Likewise.
15839         * modules/unictype/property-zero-width: Likewise.
15840         * modules/unictype/scripts: Likewise.
15841         * modules/unictype/syntax-c-ident: Likewise.
15842         * modules/unictype/syntax-c-whitespace: Likewise.
15843         * modules/unictype/syntax-java-ident: Likewise.
15844         * modules/unictype/syntax-java-whitespace: Likewise.
15845         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15846         * modules/unilbrk/u8-width-linebreaks: Likewise.
15847         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15848         * modules/unilbrk/u16-width-linebreaks: Likewise.
15849         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15850         * modules/unilbrk/u32-width-linebreaks: Likewise.
15851         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15852         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15853         * modules/uniname/uniname: Likewise.
15854         * modules/uninorm/canonical-decomposition: Likewise.
15855         * modules/uninorm/composition: Likewise.
15856         * modules/uninorm/decomposing-form: Likewise.
15857         * modules/uninorm/decomposition: Likewise.
15858         * modules/uninorm/filter: Likewise.
15859         * modules/uninorm/nfc: Likewise.
15860         * modules/uninorm/nfd: Likewise.
15861         * modules/uninorm/nfkc: Likewise.
15862         * modules/uninorm/nfkd: Likewise.
15863         * modules/uninorm/u8-normalize: Likewise.
15864         * modules/uninorm/u8-normcmp: Likewise.
15865         * modules/uninorm/u8-normcoll: Likewise.
15866         * modules/uninorm/u8-normxfrm: Likewise.
15867         * modules/uninorm/u16-normalize: Likewise.
15868         * modules/uninorm/u16-normcmp: Likewise.
15869         * modules/uninorm/u16-normcoll: Likewise.
15870         * modules/uninorm/u16-normxfrm: Likewise.
15871         * modules/uninorm/u32-normalize: Likewise.
15872         * modules/uninorm/u32-normcmp: Likewise.
15873         * modules/uninorm/u32-normcoll: Likewise.
15874         * modules/uninorm/u32-normxfrm: Likewise.
15875         * modules/unistdio/u8-asnprintf: Likewise.
15876         * modules/unistdio/u8-asprintf: Likewise.
15877         * modules/unistdio/u8-snprintf: Likewise.
15878         * modules/unistdio/u8-sprintf: Likewise.
15879         * modules/unistdio/u8-u8-asnprintf: Likewise.
15880         * modules/unistdio/u8-u8-asprintf: Likewise.
15881         * modules/unistdio/u8-u8-snprintf: Likewise.
15882         * modules/unistdio/u8-u8-sprintf: Likewise.
15883         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15884         * modules/unistdio/u8-u8-vasprintf: Likewise.
15885         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15886         * modules/unistdio/u8-u8-vsprintf: Likewise.
15887         * modules/unistdio/u8-vasnprintf: Likewise.
15888         * modules/unistdio/u8-vasprintf: Likewise.
15889         * modules/unistdio/u8-vsnprintf: Likewise.
15890         * modules/unistdio/u8-vsprintf: Likewise.
15891         * modules/unistdio/u16-asnprintf: Likewise.
15892         * modules/unistdio/u16-asprintf: Likewise.
15893         * modules/unistdio/u16-snprintf: Likewise.
15894         * modules/unistdio/u16-sprintf: Likewise.
15895         * modules/unistdio/u16-u16-asnprintf: Likewise.
15896         * modules/unistdio/u16-u16-asprintf: Likewise.
15897         * modules/unistdio/u16-u16-snprintf: Likewise.
15898         * modules/unistdio/u16-u16-sprintf: Likewise.
15899         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15900         * modules/unistdio/u16-u16-vasprintf: Likewise.
15901         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15902         * modules/unistdio/u16-u16-vsprintf: Likewise.
15903         * modules/unistdio/u16-vasnprintf: Likewise.
15904         * modules/unistdio/u16-vasprintf: Likewise.
15905         * modules/unistdio/u16-vsnprintf: Likewise.
15906         * modules/unistdio/u16-vsprintf: Likewise.
15907         * modules/unistdio/u32-asnprintf: Likewise.
15908         * modules/unistdio/u32-asprintf: Likewise.
15909         * modules/unistdio/u32-snprintf: Likewise.
15910         * modules/unistdio/u32-sprintf: Likewise.
15911         * modules/unistdio/u32-u32-asnprintf: Likewise.
15912         * modules/unistdio/u32-u32-asprintf: Likewise.
15913         * modules/unistdio/u32-u32-snprintf: Likewise.
15914         * modules/unistdio/u32-u32-sprintf: Likewise.
15915         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15916         * modules/unistdio/u32-u32-vasprintf: Likewise.
15917         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15918         * modules/unistdio/u32-u32-vsprintf: Likewise.
15919         * modules/unistdio/u32-vasnprintf: Likewise.
15920         * modules/unistdio/u32-vasprintf: Likewise.
15921         * modules/unistdio/u32-vsnprintf: Likewise.
15922         * modules/unistdio/u32-vsprintf: Likewise.
15923         * modules/unistdio/ulc-asnprintf: Likewise.
15924         * modules/unistdio/ulc-asprintf: Likewise.
15925         * modules/unistdio/ulc-fprintf: Likewise.
15926         * modules/unistdio/ulc-snprintf: Likewise.
15927         * modules/unistdio/ulc-sprintf: Likewise.
15928         * modules/unistdio/ulc-vasnprintf: Likewise.
15929         * modules/unistdio/ulc-vasprintf: Likewise.
15930         * modules/unistdio/ulc-vfprintf: Likewise.
15931         * modules/unistdio/ulc-vsnprintf: Likewise.
15932         * modules/unistdio/ulc-vsprintf: Likewise.
15933         * modules/unistr/u8-check: Likewise.
15934         * modules/unistr/u8-chr: Likewise.
15935         * modules/unistr/u8-cmp: Likewise.
15936         * modules/unistr/u8-cmp2: Likewise.
15937         * modules/unistr/u8-cpy: Likewise.
15938         * modules/unistr/u8-cpy-alloc: Likewise.
15939         * modules/unistr/u8-endswith: Likewise.
15940         * modules/unistr/u8-mblen: Likewise.
15941         * modules/unistr/u8-mbsnlen: Likewise.
15942         * modules/unistr/u8-mbtouc: Likewise.
15943         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15944         * modules/unistr/u8-mbtoucr: Likewise.
15945         * modules/unistr/u8-move: Likewise.
15946         * modules/unistr/u8-next: Likewise.
15947         * modules/unistr/u8-prev: Likewise.
15948         * modules/unistr/u8-set: Likewise.
15949         * modules/unistr/u8-startswith: Likewise.
15950         * modules/unistr/u8-stpcpy: Likewise.
15951         * modules/unistr/u8-stpncpy: Likewise.
15952         * modules/unistr/u8-strcat: Likewise.
15953         * modules/unistr/u8-strchr: Likewise.
15954         * modules/unistr/u8-strcmp: Likewise.
15955         * modules/unistr/u8-strcoll: Likewise.
15956         * modules/unistr/u8-strcpy: Likewise.
15957         * modules/unistr/u8-strcspn: Likewise.
15958         * modules/unistr/u8-strdup: Likewise.
15959         * modules/unistr/u8-strlen: Likewise.
15960         * modules/unistr/u8-strmblen: Likewise.
15961         * modules/unistr/u8-strmbtouc: Likewise.
15962         * modules/unistr/u8-strncat: Likewise.
15963         * modules/unistr/u8-strncmp: Likewise.
15964         * modules/unistr/u8-strncpy: Likewise.
15965         * modules/unistr/u8-strnlen: Likewise.
15966         * modules/unistr/u8-strpbrk: Likewise.
15967         * modules/unistr/u8-strrchr: Likewise.
15968         * modules/unistr/u8-strspn: Likewise.
15969         * modules/unistr/u8-strstr: Likewise.
15970         * modules/unistr/u8-strtok: Likewise.
15971         * modules/unistr/u8-to-u16: Likewise.
15972         * modules/unistr/u8-to-u32: Likewise.
15973         * modules/unistr/u8-uctomb: Likewise.
15974         * modules/unistr/u16-check: Likewise.
15975         * modules/unistr/u16-chr: Likewise.
15976         * modules/unistr/u16-cmp: Likewise.
15977         * modules/unistr/u16-cmp2: Likewise.
15978         * modules/unistr/u16-cpy: Likewise.
15979         * modules/unistr/u16-cpy-alloc: Likewise.
15980         * modules/unistr/u16-endswith: Likewise.
15981         * modules/unistr/u16-mblen: Likewise.
15982         * modules/unistr/u16-mbsnlen: Likewise.
15983         * modules/unistr/u16-mbtouc: Likewise.
15984         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15985         * modules/unistr/u16-mbtoucr: Likewise.
15986         * modules/unistr/u16-move: Likewise.
15987         * modules/unistr/u16-next: Likewise.
15988         * modules/unistr/u16-prev: Likewise.
15989         * modules/unistr/u16-set: Likewise.
15990         * modules/unistr/u16-startswith: Likewise.
15991         * modules/unistr/u16-stpcpy: Likewise.
15992         * modules/unistr/u16-stpncpy: Likewise.
15993         * modules/unistr/u16-strcat: Likewise.
15994         * modules/unistr/u16-strchr: Likewise.
15995         * modules/unistr/u16-strcmp: Likewise.
15996         * modules/unistr/u16-strcoll: Likewise.
15997         * modules/unistr/u16-strcpy: Likewise.
15998         * modules/unistr/u16-strcspn: Likewise.
15999         * modules/unistr/u16-strdup: Likewise.
16000         * modules/unistr/u16-strlen: Likewise.
16001         * modules/unistr/u16-strmblen: Likewise.
16002         * modules/unistr/u16-strmbtouc: Likewise.
16003         * modules/unistr/u16-strncat: Likewise.
16004         * modules/unistr/u16-strncmp: Likewise.
16005         * modules/unistr/u16-strncpy: Likewise.
16006         * modules/unistr/u16-strnlen: Likewise.
16007         * modules/unistr/u16-strpbrk: Likewise.
16008         * modules/unistr/u16-strrchr: Likewise.
16009         * modules/unistr/u16-strspn: Likewise.
16010         * modules/unistr/u16-strstr: Likewise.
16011         * modules/unistr/u16-strtok: Likewise.
16012         * modules/unistr/u16-to-u32: Likewise.
16013         * modules/unistr/u16-to-u8: Likewise.
16014         * modules/unistr/u16-uctomb: Likewise.
16015         * modules/unistr/u32-check: Likewise.
16016         * modules/unistr/u32-chr: Likewise.
16017         * modules/unistr/u32-cmp: Likewise.
16018         * modules/unistr/u32-cmp2: Likewise.
16019         * modules/unistr/u32-cpy: Likewise.
16020         * modules/unistr/u32-cpy-alloc: Likewise.
16021         * modules/unistr/u32-endswith: Likewise.
16022         * modules/unistr/u32-mblen: Likewise.
16023         * modules/unistr/u32-mbsnlen: Likewise.
16024         * modules/unistr/u32-mbtouc: Likewise.
16025         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16026         * modules/unistr/u32-mbtoucr: Likewise.
16027         * modules/unistr/u32-move: Likewise.
16028         * modules/unistr/u32-next: Likewise.
16029         * modules/unistr/u32-prev: Likewise.
16030         * modules/unistr/u32-set: Likewise.
16031         * modules/unistr/u32-startswith: Likewise.
16032         * modules/unistr/u32-stpcpy: Likewise.
16033         * modules/unistr/u32-stpncpy: Likewise.
16034         * modules/unistr/u32-strcat: Likewise.
16035         * modules/unistr/u32-strchr: Likewise.
16036         * modules/unistr/u32-strcmp: Likewise.
16037         * modules/unistr/u32-strcoll: Likewise.
16038         * modules/unistr/u32-strcpy: Likewise.
16039         * modules/unistr/u32-strcspn: Likewise.
16040         * modules/unistr/u32-strdup: Likewise.
16041         * modules/unistr/u32-strlen: Likewise.
16042         * modules/unistr/u32-strmblen: Likewise.
16043         * modules/unistr/u32-strmbtouc: Likewise.
16044         * modules/unistr/u32-strncat: Likewise.
16045         * modules/unistr/u32-strncmp: Likewise.
16046         * modules/unistr/u32-strncpy: Likewise.
16047         * modules/unistr/u32-strnlen: Likewise.
16048         * modules/unistr/u32-strpbrk: Likewise.
16049         * modules/unistr/u32-strrchr: Likewise.
16050         * modules/unistr/u32-strspn: Likewise.
16051         * modules/unistr/u32-strstr: Likewise.
16052         * modules/unistr/u32-strtok: Likewise.
16053         * modules/unistr/u32-to-u16: Likewise.
16054         * modules/unistr/u32-to-u8: Likewise.
16055         * modules/unistr/u32-uctomb: Likewise.
16056         * modules/uniwbrk/u8-wordbreaks: Likewise.
16057         * modules/uniwbrk/u16-wordbreaks: Likewise.
16058         * modules/uniwbrk/u32-wordbreaks: Likewise.
16059         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16060         * modules/uniwbrk/wordbreak-property: Likewise.
16061         * modules/uniwidth/u8-strwidth: Likewise.
16062         * modules/uniwidth/u8-width: Likewise.
16063         * modules/uniwidth/u16-strwidth: Likewise.
16064         * modules/uniwidth/u16-width: Likewise.
16065         * modules/uniwidth/u32-strwidth: Likewise.
16066         * modules/uniwidth/u32-width: Likewise.
16067         * modules/uniwidth/width: Likewise.
16068         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16069         with $(LIBUNISTRING).
16070         * modules/unicase/ignorable-tests: Likewise.
16071         * modules/unicase/locale-language-tests: Likewise.
16072         * modules/unicase/tolower-tests: Likewise.
16073         * modules/unicase/totitle-tests: Likewise.
16074         * modules/unicase/toupper-tests: Likewise.
16075         * modules/unicase/u8-casecmp-tests: Likewise.
16076         * modules/unicase/u8-casecoll-tests: Likewise.
16077         * modules/unicase/u8-casefold-tests: Likewise.
16078         * modules/unicase/u8-is-cased-tests: Likewise.
16079         * modules/unicase/u8-is-casefolded-tests: Likewise.
16080         * modules/unicase/u8-is-lowercase-tests: Likewise.
16081         * modules/unicase/u8-is-titlecase-tests: Likewise.
16082         * modules/unicase/u8-is-uppercase-tests: Likewise.
16083         * modules/unicase/u8-tolower-tests: Likewise.
16084         * modules/unicase/u8-totitle-tests: Likewise.
16085         * modules/unicase/u8-toupper-tests: Likewise.
16086         * modules/unicase/u16-casecmp-tests: Likewise.
16087         * modules/unicase/u16-casecoll-tests: Likewise.
16088         * modules/unicase/u16-casefold-tests: Likewise.
16089         * modules/unicase/u16-is-cased-tests: Likewise.
16090         * modules/unicase/u16-is-casefolded-tests: Likewise.
16091         * modules/unicase/u16-is-lowercase-tests: Likewise.
16092         * modules/unicase/u16-is-titlecase-tests: Likewise.
16093         * modules/unicase/u16-is-uppercase-tests: Likewise.
16094         * modules/unicase/u16-tolower-tests: Likewise.
16095         * modules/unicase/u16-totitle-tests: Likewise.
16096         * modules/unicase/u16-toupper-tests: Likewise.
16097         * modules/unicase/u32-casecmp-tests: Likewise.
16098         * modules/unicase/u32-casecoll-tests: Likewise.
16099         * modules/unicase/u32-casefold-tests: Likewise.
16100         * modules/unicase/u32-is-cased-tests: Likewise.
16101         * modules/unicase/u32-is-casefolded-tests: Likewise.
16102         * modules/unicase/u32-is-lowercase-tests: Likewise.
16103         * modules/unicase/u32-is-titlecase-tests: Likewise.
16104         * modules/unicase/u32-is-uppercase-tests: Likewise.
16105         * modules/unicase/u32-tolower-tests: Likewise.
16106         * modules/unicase/u32-totitle-tests: Likewise.
16107         * modules/unicase/u32-toupper-tests: Likewise.
16108         * modules/unicase/ulc-casecmp-tests: Likewise.
16109         * modules/unicase/ulc-casecoll-tests: Likewise.
16110         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16111         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16112         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16113         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16114         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16115         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16116         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16117         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16118         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16119         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16120         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16121         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16122         * modules/unictype/bidicategory-byname-tests: Likewise.
16123         * modules/unictype/bidicategory-name-tests: Likewise.
16124         * modules/unictype/bidicategory-of-tests: Likewise.
16125         * modules/unictype/bidicategory-test-tests: Likewise.
16126         * modules/unictype/block-list-tests: Likewise.
16127         * modules/unictype/block-of-tests: Likewise.
16128         * modules/unictype/block-test-tests: Likewise.
16129         * modules/unictype/category-C-tests: Likewise.
16130         * modules/unictype/category-Cc-tests: Likewise.
16131         * modules/unictype/category-Cf-tests: Likewise.
16132         * modules/unictype/category-Cn-tests: Likewise.
16133         * modules/unictype/category-Co-tests: Likewise.
16134         * modules/unictype/category-Cs-tests: Likewise.
16135         * modules/unictype/category-L-tests: Likewise.
16136         * modules/unictype/category-Ll-tests: Likewise.
16137         * modules/unictype/category-Lm-tests: Likewise.
16138         * modules/unictype/category-Lo-tests: Likewise.
16139         * modules/unictype/category-Lt-tests: Likewise.
16140         * modules/unictype/category-Lu-tests: Likewise.
16141         * modules/unictype/category-M-tests: Likewise.
16142         * modules/unictype/category-Mc-tests: Likewise.
16143         * modules/unictype/category-Me-tests: Likewise.
16144         * modules/unictype/category-Mn-tests: Likewise.
16145         * modules/unictype/category-N-tests: Likewise.
16146         * modules/unictype/category-Nd-tests: Likewise.
16147         * modules/unictype/category-Nl-tests: Likewise.
16148         * modules/unictype/category-No-tests: Likewise.
16149         * modules/unictype/category-P-tests: Likewise.
16150         * modules/unictype/category-Pc-tests: Likewise.
16151         * modules/unictype/category-Pd-tests: Likewise.
16152         * modules/unictype/category-Pe-tests: Likewise.
16153         * modules/unictype/category-Pf-tests: Likewise.
16154         * modules/unictype/category-Pi-tests: Likewise.
16155         * modules/unictype/category-Po-tests: Likewise.
16156         * modules/unictype/category-Ps-tests: Likewise.
16157         * modules/unictype/category-S-tests: Likewise.
16158         * modules/unictype/category-Sc-tests: Likewise.
16159         * modules/unictype/category-Sk-tests: Likewise.
16160         * modules/unictype/category-Sm-tests: Likewise.
16161         * modules/unictype/category-So-tests: Likewise.
16162         * modules/unictype/category-Z-tests: Likewise.
16163         * modules/unictype/category-Zl-tests: Likewise.
16164         * modules/unictype/category-Zp-tests: Likewise.
16165         * modules/unictype/category-Zs-tests: Likewise.
16166         * modules/unictype/category-and-not-tests: Likewise.
16167         * modules/unictype/category-and-tests: Likewise.
16168         * modules/unictype/category-byname-tests: Likewise.
16169         * modules/unictype/category-name-tests: Likewise.
16170         * modules/unictype/category-none-tests: Likewise.
16171         * modules/unictype/category-of-tests: Likewise.
16172         * modules/unictype/category-or-tests: Likewise.
16173         * modules/unictype/category-test-withtable-tests: Likewise.
16174         * modules/unictype/combining-class-tests: Likewise.
16175         * modules/unictype/ctype-alnum-tests: Likewise.
16176         * modules/unictype/ctype-alpha-tests: Likewise.
16177         * modules/unictype/ctype-blank-tests: Likewise.
16178         * modules/unictype/ctype-cntrl-tests: Likewise.
16179         * modules/unictype/ctype-digit-tests: Likewise.
16180         * modules/unictype/ctype-graph-tests: Likewise.
16181         * modules/unictype/ctype-lower-tests: Likewise.
16182         * modules/unictype/ctype-print-tests: Likewise.
16183         * modules/unictype/ctype-punct-tests: Likewise.
16184         * modules/unictype/ctype-space-tests: Likewise.
16185         * modules/unictype/ctype-upper-tests: Likewise.
16186         * modules/unictype/ctype-xdigit-tests: Likewise.
16187         * modules/unictype/decimal-digit-tests: Likewise.
16188         * modules/unictype/digit-tests: Likewise.
16189         * modules/unictype/mirror-tests: Likewise.
16190         * modules/unictype/numeric-tests: Likewise.
16191         * modules/unictype/property-alphabetic-tests: Likewise.
16192         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16193         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16194         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16195         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16196         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16197         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16198         * modules/unictype/property-bidi-control-tests: Likewise.
16199         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16200         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16201         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16202         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16203         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16204         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16205         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16206         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16207         * modules/unictype/property-bidi-pdf-tests: Likewise.
16208         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16209         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16210         * modules/unictype/property-byname-tests: Likewise.
16211         * modules/unictype/property-combining-tests: Likewise.
16212         * modules/unictype/property-composite-tests: Likewise.
16213         * modules/unictype/property-currency-symbol-tests: Likewise.
16214         * modules/unictype/property-dash-tests: Likewise.
16215         * modules/unictype/property-decimal-digit-tests: Likewise.
16216         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16217         * modules/unictype/property-deprecated-tests: Likewise.
16218         * modules/unictype/property-diacritic-tests: Likewise.
16219         * modules/unictype/property-extender-tests: Likewise.
16220         * modules/unictype/property-format-control-tests: Likewise.
16221         * modules/unictype/property-grapheme-base-tests: Likewise.
16222         * modules/unictype/property-grapheme-extend-tests: Likewise.
16223         * modules/unictype/property-grapheme-link-tests: Likewise.
16224         * modules/unictype/property-hex-digit-tests: Likewise.
16225         * modules/unictype/property-hyphen-tests: Likewise.
16226         * modules/unictype/property-id-continue-tests: Likewise.
16227         * modules/unictype/property-id-start-tests: Likewise.
16228         * modules/unictype/property-ideographic-tests: Likewise.
16229         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16230         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16231         * modules/unictype/property-ignorable-control-tests: Likewise.
16232         * modules/unictype/property-iso-control-tests: Likewise.
16233         * modules/unictype/property-join-control-tests: Likewise.
16234         * modules/unictype/property-left-of-pair-tests: Likewise.
16235         * modules/unictype/property-line-separator-tests: Likewise.
16236         * modules/unictype/property-logical-order-exception-tests: Likewise.
16237         * modules/unictype/property-lowercase-tests: Likewise.
16238         * modules/unictype/property-math-tests: Likewise.
16239         * modules/unictype/property-non-break-tests: Likewise.
16240         * modules/unictype/property-not-a-character-tests: Likewise.
16241         * modules/unictype/property-numeric-tests: Likewise.
16242         * modules/unictype/property-other-alphabetic-tests: Likewise.
16243         * modules/unictype/property-other-default-ignorable-code-point-tests:
16244         Likewise.
16245         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16246         * modules/unictype/property-other-id-continue-tests: Likewise.
16247         * modules/unictype/property-other-id-start-tests: Likewise.
16248         * modules/unictype/property-other-lowercase-tests: Likewise.
16249         * modules/unictype/property-other-math-tests: Likewise.
16250         * modules/unictype/property-other-uppercase-tests: Likewise.
16251         * modules/unictype/property-paired-punctuation-tests: Likewise.
16252         * modules/unictype/property-paragraph-separator-tests: Likewise.
16253         * modules/unictype/property-pattern-syntax-tests: Likewise.
16254         * modules/unictype/property-pattern-white-space-tests: Likewise.
16255         * modules/unictype/property-private-use-tests: Likewise.
16256         * modules/unictype/property-punctuation-tests: Likewise.
16257         * modules/unictype/property-quotation-mark-tests: Likewise.
16258         * modules/unictype/property-radical-tests: Likewise.
16259         * modules/unictype/property-sentence-terminal-tests: Likewise.
16260         * modules/unictype/property-soft-dotted-tests: Likewise.
16261         * modules/unictype/property-space-tests: Likewise.
16262         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16263         * modules/unictype/property-test-tests: Likewise.
16264         * modules/unictype/property-titlecase-tests: Likewise.
16265         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16266         * modules/unictype/property-unified-ideograph-tests: Likewise.
16267         * modules/unictype/property-uppercase-tests: Likewise.
16268         * modules/unictype/property-variation-selector-tests: Likewise.
16269         * modules/unictype/property-white-space-tests: Likewise.
16270         * modules/unictype/property-xid-continue-tests: Likewise.
16271         * modules/unictype/property-xid-start-tests: Likewise.
16272         * modules/unictype/property-zero-width-tests: Likewise.
16273         * modules/unictype/scripts-tests: Likewise.
16274         * modules/unictype/syntax-c-ident-tests: Likewise.
16275         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16276         * modules/unictype/syntax-java-ident-tests: Likewise.
16277         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16278         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16279         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16280         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16281         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16282         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16283         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16284         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16285         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16286         * modules/uniname/uniname-tests: Likewise.
16287         * modules/uninorm/canonical-decomposition-tests: Likewise.
16288         * modules/uninorm/compat-decomposition-tests: Likewise.
16289         * modules/uninorm/composition-tests: Likewise.
16290         * modules/uninorm/decomposing-form-tests: Likewise.
16291         * modules/uninorm/decomposition-tests: Likewise.
16292         * modules/uninorm/filter-tests: Likewise.
16293         * modules/uninorm/nfc-tests: Likewise.
16294         * modules/uninorm/nfd-tests: Likewise.
16295         * modules/uninorm/nfkc-tests: Likewise.
16296         * modules/uninorm/nfkd-tests: Likewise.
16297         * modules/uninorm/u8-normcmp-tests: Likewise.
16298         * modules/uninorm/u8-normcoll-tests: Likewise.
16299         * modules/uninorm/u16-normcmp-tests: Likewise.
16300         * modules/uninorm/u16-normcoll-tests: Likewise.
16301         * modules/uninorm/u32-normcmp-tests: Likewise.
16302         * modules/uninorm/u32-normcoll-tests: Likewise.
16303         * modules/unistdio/u8-asnprintf-tests: Likewise.
16304         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16305         * modules/unistdio/u8-vasprintf-tests: Likewise.
16306         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16307         * modules/unistdio/u8-vsprintf-tests: Likewise.
16308         * modules/unistdio/u16-asnprintf-tests: Likewise.
16309         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16310         * modules/unistdio/u16-vasprintf-tests: Likewise.
16311         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16312         * modules/unistdio/u16-vsprintf-tests: Likewise.
16313         * modules/unistdio/u32-asnprintf-tests: Likewise.
16314         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16315         * modules/unistdio/u32-vasprintf-tests: Likewise.
16316         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16317         * modules/unistdio/u32-vsprintf-tests: Likewise.
16318         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16319         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16320         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16321         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16322         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16323         * modules/unistr/u8-check-tests: Likewise.
16324         * modules/unistr/u8-chr-tests: Likewise.
16325         * modules/unistr/u8-cmp-tests: Likewise.
16326         * modules/unistr/u8-cmp2-tests: Likewise.
16327         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16328         * modules/unistr/u8-cpy-tests: Likewise.
16329         * modules/unistr/u8-mblen-tests: Likewise.
16330         * modules/unistr/u8-mbsnlen-tests: Likewise.
16331         * modules/unistr/u8-mbtouc-tests: Likewise.
16332         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16333         * modules/unistr/u8-mbtoucr-tests: Likewise.
16334         * modules/unistr/u8-move-tests: Likewise.
16335         * modules/unistr/u8-next-tests: Likewise.
16336         * modules/unistr/u8-prev-tests: Likewise.
16337         * modules/unistr/u8-set-tests: Likewise.
16338         * modules/unistr/u8-stpcpy-tests: Likewise.
16339         * modules/unistr/u8-stpncpy-tests: Likewise.
16340         * modules/unistr/u8-strcat-tests: Likewise.
16341         * modules/unistr/u8-strcmp-tests: Likewise.
16342         * modules/unistr/u8-strcoll-tests: Likewise.
16343         * modules/unistr/u8-strcpy-tests: Likewise.
16344         * modules/unistr/u8-strdup-tests: Likewise.
16345         * modules/unistr/u8-strlen-tests: Likewise.
16346         * modules/unistr/u8-strmblen-tests: Likewise.
16347         * modules/unistr/u8-strmbtouc-tests: Likewise.
16348         * modules/unistr/u8-strncat-tests: Likewise.
16349         * modules/unistr/u8-strncmp-tests: Likewise.
16350         * modules/unistr/u8-strncpy-tests: Likewise.
16351         * modules/unistr/u8-strnlen-tests: Likewise.
16352         * modules/unistr/u8-to-u16-tests: Likewise.
16353         * modules/unistr/u8-to-u32-tests: Likewise.
16354         * modules/unistr/u8-uctomb-tests: Likewise.
16355         * modules/unistr/u16-check-tests: Likewise.
16356         * modules/unistr/u16-chr-tests: Likewise.
16357         * modules/unistr/u16-cmp-tests: Likewise.
16358         * modules/unistr/u16-cmp2-tests: Likewise.
16359         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16360         * modules/unistr/u16-cpy-tests: Likewise.
16361         * modules/unistr/u16-mblen-tests: Likewise.
16362         * modules/unistr/u16-mbsnlen-tests: Likewise.
16363         * modules/unistr/u16-mbtouc-tests: Likewise.
16364         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16365         * modules/unistr/u16-mbtoucr-tests: Likewise.
16366         * modules/unistr/u16-move-tests: Likewise.
16367         * modules/unistr/u16-next-tests: Likewise.
16368         * modules/unistr/u16-prev-tests: Likewise.
16369         * modules/unistr/u16-set-tests: Likewise.
16370         * modules/unistr/u16-stpcpy-tests: Likewise.
16371         * modules/unistr/u16-stpncpy-tests: Likewise.
16372         * modules/unistr/u16-strcat-tests: Likewise.
16373         * modules/unistr/u16-strcmp-tests: Likewise.
16374         * modules/unistr/u16-strcoll-tests: Likewise.
16375         * modules/unistr/u16-strcpy-tests: Likewise.
16376         * modules/unistr/u16-strdup-tests: Likewise.
16377         * modules/unistr/u16-strlen-tests: Likewise.
16378         * modules/unistr/u16-strmblen-tests: Likewise.
16379         * modules/unistr/u16-strmbtouc-tests: Likewise.
16380         * modules/unistr/u16-strncat-tests: Likewise.
16381         * modules/unistr/u16-strncmp-tests: Likewise.
16382         * modules/unistr/u16-strncpy-tests: Likewise.
16383         * modules/unistr/u16-strnlen-tests: Likewise.
16384         * modules/unistr/u16-to-u32-tests: Likewise.
16385         * modules/unistr/u16-to-u8-tests: Likewise.
16386         * modules/unistr/u16-uctomb-tests: Likewise.
16387         * modules/unistr/u32-check-tests: Likewise.
16388         * modules/unistr/u32-chr-tests: Likewise.
16389         * modules/unistr/u32-cmp-tests: Likewise.
16390         * modules/unistr/u32-cmp2-tests: Likewise.
16391         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16392         * modules/unistr/u32-cpy-tests: Likewise.
16393         * modules/unistr/u32-mblen-tests: Likewise.
16394         * modules/unistr/u32-mbsnlen-tests: Likewise.
16395         * modules/unistr/u32-mbtouc-tests: Likewise.
16396         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16397         * modules/unistr/u32-mbtoucr-tests: Likewise.
16398         * modules/unistr/u32-move-tests: Likewise.
16399         * modules/unistr/u32-next-tests: Likewise.
16400         * modules/unistr/u32-prev-tests: Likewise.
16401         * modules/unistr/u32-set-tests: Likewise.
16402         * modules/unistr/u32-stpcpy-tests: Likewise.
16403         * modules/unistr/u32-stpncpy-tests: Likewise.
16404         * modules/unistr/u32-strcat-tests: Likewise.
16405         * modules/unistr/u32-strcmp-tests: Likewise.
16406         * modules/unistr/u32-strcoll-tests: Likewise.
16407         * modules/unistr/u32-strcpy-tests: Likewise.
16408         * modules/unistr/u32-strdup-tests: Likewise.
16409         * modules/unistr/u32-strlen-tests: Likewise.
16410         * modules/unistr/u32-strmblen-tests: Likewise.
16411         * modules/unistr/u32-strmbtouc-tests: Likewise.
16412         * modules/unistr/u32-strncat-tests: Likewise.
16413         * modules/unistr/u32-strncmp-tests: Likewise.
16414         * modules/unistr/u32-strncpy-tests: Likewise.
16415         * modules/unistr/u32-strnlen-tests: Likewise.
16416         * modules/unistr/u32-to-u16-tests: Likewise.
16417         * modules/unistr/u32-to-u8-tests: Likewise.
16418         * modules/unistr/u32-uctomb-tests: Likewise.
16419         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16420         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16421         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16422         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16423         * modules/uniwidth/u8-strwidth-tests: Likewise.
16424         * modules/uniwidth/u8-width-tests: Likewise.
16425         * modules/uniwidth/u16-strwidth-tests: Likewise.
16426         * modules/uniwidth/u16-width-tests: Likewise.
16427         * modules/uniwidth/u32-strwidth-tests: Likewise.
16428         * modules/uniwidth/u32-width-tests: Likewise.
16429         * modules/uniwidth/width-tests: Likewise.
16430
16431 2010-05-18  Richard Jones  <rjones@redhat.com>
16432
16433         doc: users.txt: list hivex
16434         * users.txt: Add hivex.
16435
16436 2010-05-18  Richard Jones  <rjones@redhat.com>
16437
16438         doc: users.txt: list febootstrap
16439         * users.txt: Add febootstrap.
16440
16441 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16442
16443         bootstrap: fix an error when gnulib is not used as a git submodule
16444         * build-aux/bootstrap (gnulib_path): If its length is zero then
16445         assign "gnulib" to it.
16446         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16447
16448 2010-05-16  Bruno Haible  <bruno@clisp.org>
16449
16450         Avoid autoconf warnings about AM_ICONV.
16451         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16452         2.64.
16453
16454 2010-05-16  Bruno Haible  <bruno@clisp.org>
16455
16456         absolute-header: Make the macro usable in more situations.
16457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16458         from gl_ABSOLUTE_HEADER.
16459         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16460
16461 2010-05-16  James Youngman  <jay@gnu.org>
16462
16463         doc: update users.txt
16464         * users.txt: Add CSSC.
16465
16466 2010-05-16  Jim Meyering  <meyering@redhat.com>
16467
16468         init.sh: fix an error in the previous change; add more comments
16469         * tests/init.sh: Compare exit code in loop against 9, not 2.
16470         Patch by Bruno Haible.
16471         Make the two tests more similar by adding an empty "then" clause.
16472         Add comments.
16473
16474         init.sh: avoid unnecessary shell re-exec
16475         * tests/init.sh: Improve the re-exec-required check to first test the
16476         current shell.  If it passes the test, do not search for a shell that
16477         does pass, and do not re-exec.  This test is particularly contorted to
16478         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16479         of $(...) evokes a syntax error and causes immediate shell exit with
16480         status 2.  Bruno Haible reported that the re-exec made it impossible
16481         to single-step through any init.sh-using script.
16482
16483 2010-05-16  Bruno Haible  <bruno@clisp.org>
16484
16485         Fix collision between gnulib's and libintl's printf replacements.
16486         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16487         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16488         (printf): When using GNU C, map the __printf__ function to rpl_printf
16489         via __asm__. When not using GNU C, define rpl_printf instead of
16490         __printf__.
16491         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16492         commit.
16493         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16494         commit.
16495         * m4/asm-underscore.m4: New file.
16496         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16497         * modules/stdio (Files): Add m4/asm-underscore.m4.
16498         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16499         Reported by Ben Pfaff.
16500
16501 2010-05-16  Bruno Haible  <bruno@clisp.org>
16502
16503         verify: Avoid skipping the test on openSUSE 11.0.
16504         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16505
16506 2010-05-13  Bruno Haible  <bruno@clisp.org>
16507
16508         Avoid useless warnings from G++.
16509         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16510         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16511         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16512
16513 2010-05-11  Jim Meyering  <meyering@redhat.com>
16514
16515         maint.mk: tweak preceding change
16516         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16517         regexps tighter by anchoring at EOL, and make the new group "shy"
16518         for slightly decreased overhead.
16519
16520 2010-05-11  Eric Blake  <eblake@redhat.com>
16521
16522         maint.mk: gnulib doesn't guarantee NSIG
16523         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16524
16525 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16526
16527         test-pwrite.c: Remove unused variable declaration.
16528         * tests/test-pwrite.c (main): Remove read_buf declaration.
16529
16530         Remove useless test-pwrite.sh file.
16531         * tests/test-pwrite.sh: Delete file.
16532         * modules/pwrite-tests: Remove references.
16533         Reported by Bruno Haible.
16534
16535 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16536
16537         init.sh: fix a typo
16538         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16539
16540 2010-05-10  Jim Meyering  <meyering@redhat.com>
16541
16542         maint.mk: avoid using a temporary file in the always-defined-macros check
16543         * top/maint.mk (.re-defmac): Remove rule.
16544         (gl_trap_): Remove definition.
16545         (sc_prohibit_always-defined_macros): Rewrite not to create and
16546         depend on a temporary file.  Instead, depend on GNU grep's ability
16547         to read a list of regular expressions from stdin when given "-f -".
16548
16549 2010-05-09  Bruno Haible  <bruno@clisp.org>
16550
16551         Update to GNU gettext 0.18, part 1.
16552         * m4/gettext.m4: Update to GNU gettext 0.18.
16553         * m4/intl.m4: Likewise.
16554         * m4/po.m4: Likewise.
16555         * modules/gettext (Files): Add m4/fcntl-o.m4.
16556         (configure.ac): Require gettext infrastructure from version 0.18.
16557
16558 2010-05-09  Jim Meyering  <meyering@redhat.com>
16559
16560         init.sh: enable MALLOC_PERTURB_
16561         * tests/init.sh: Enable glibc's malloc-perturbing option.
16562
16563         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16564         With my recent change in init.sh from the two-line form:
16565             -#   : ${srcdir=.}
16566             -#   . "$srcdir/init.sh"; path_prepend_ .
16567             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16568         I noticed that using the one-line form would cause this test
16569         to fail with a false-positive, or to stop working altogether,
16570         depending on whether help-version changed or all the tests did.
16571         * top/maint.mk (_hv_regex): Remove this definition.
16572         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16573         (_hv_regex_strong): Use a stronger regex to check for conformance.
16574         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16575         Give a separate diagnostic for lack of conforming use.
16576
16577         maint.mk: prohibit definition of symbols defined by gnulib
16578         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16579         definition of symbols defined by gnulib.
16580
16581 2010-05-09  Bruno Haible  <bruno@clisp.org>
16582
16583         acl: Avoid test failure on Cygwin-hosted mingw.
16584         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16585
16586 2010-05-09  Bruno Haible  <bruno@clisp.org>
16587
16588         error: Use system's fcntl function.
16589         * lib/error.c (fcntl): Undefine.
16590
16591 2010-05-09  Jim Meyering  <meyering@redhat.com>
16592
16593         verify: adjust formatting to be more consistent
16594         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16595         argument-list '('s, and after one comma.
16596
16597 2010-05-09  Bruno Haible  <bruno@clisp.org>
16598
16599         error: More reliable output on mingw.
16600         * lib/error.c: Include <windows.h>.
16601         (is_open): New function.
16602         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16603         defined.
16604
16605 2010-05-09  Bruno Haible  <bruno@clisp.org>
16606
16607         vasnprintf: Fix syntax errors in libintl build on mingw.
16608         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16609         pad_ourselves and prec_ourselves after use.
16610
16611 2010-05-08  Bruno Haible  <bruno@clisp.org>
16612
16613         * lib/config.charset: Update comments for Cygwin 1.7.
16614         * lib/localcharset.c: Likewise.
16615
16616 2010-05-07  Jim Meyering  <meyering@redhat.com>
16617
16618         init.sh: improve comments
16619         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16620         . "${srcdir=.}/init.sh"; path_prepend_ .
16621         Add a note about path_prepend_ and the alternative of using
16622         TESTS_ENVIRONMENT.
16623
16624 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16625
16626         exclude: Unescape hashed patterns in wildcard mode.
16627         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16628         to the hash list.
16629         * tests/test-exclude8.sh: New test case.
16630         * modules/exclude-tests: Add new test.
16631
16632 2010-05-05  Eric Blake  <eblake@redhat.com>
16633
16634         verify: automate tests
16635         * modules/verify-tests: New module.
16636         * tests/test-verify.sh: New file.
16637         * tests/test-verify.c: Guard each negative test with a unique id.
16638         Also avoid warning about unused left hand of comma expressions.
16639
16640 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16641
16642         Further improvements to verify.h, suggested by Eric Blake.
16643         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16644         the GL_* versions, to avoid collision with OpenGL.
16645         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16646         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16647         than testing merely whether it's defined.
16648
16649         Modify verify.h to pacify gcc -Wredundant_decls.
16650         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16651         These use the prefix "GL_" since they're likely to be useful elsewhere.
16652         We may need to break them out into a different .h file.
16653         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16654         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16655         of verify_function__.
16656
16657 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16658
16659         Tests for module pwrite.
16660         * modules/pwrite-tests: New file.
16661         * tests/test-pwrite.sh: New file.
16662         * tests/test-pwrite.c: New file.
16663
16664         New module pwrite.
16665         * lib/unistd.in.h (pwrite): New declaration.
16666         * lib/pwrite.c: New file, from glibc with modifications.
16667         * m4/pwrite.m4: New file.
16668         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16669         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16670         REPLACE_PWRITE.
16671         * modules/pwrite: New file.
16672         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16673         REPLACE_PWRITE.
16674         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16675         * doc/posix-functions/pwrite.texi: Mention the new module.
16676
16677 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16678
16679         pread: Update documentation.
16680         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16681
16682 2010-05-04  Eric Blake  <eblake@redhat.com>
16683
16684         docs: update cygwin progress
16685         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16686         this bug.
16687         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16688         Added in cygwin 1.7.2.
16689         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16690         Likewise.
16691         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16692         Likewise.
16693         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16694         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16695         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16696         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16697         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16698         Mention nproc module.
16699         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16700         bug in cygwin 1.7.5 addition.
16701         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16702         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16703         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16704         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16705         1.7.5.
16706         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16707         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16708         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16709         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16710         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16711         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16712         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16713         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16714         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16715         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16716         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16717         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16718         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16719         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16720         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16721         Likewise.
16722         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16723         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16724         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16725         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16726         Likewise.
16727         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16728         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16729         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16730         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16731         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16732         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16733         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16734         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16735         Likewise.
16736         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16737         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16738         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16739         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16740         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16741         Likewise.
16742         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16743         Likewise.
16744         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16745         Likewise.
16746         * doc/glibc-functions/xdrrec_endofrecord.texi
16747         (xdrrec_endofrecord): Likewise.
16748         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16749         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16750         Likewise.
16751         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16752         Likewise.
16753
16754 2010-05-04  Jim Meyering  <meyering@redhat.com>
16755
16756         gendocs.sh: make its "-s FILE" option more useful
16757         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16758         $PACKAGE to reflect the probably-different basename of "FILE".
16759
16760 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16761
16762         bootstrap: don't ignore download_po_files failure
16763         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16764         failure.
16765
16766 2010-05-03  Jim Meyering  <meyering@redhat.com>
16767
16768         maint.mk: allow to pass options to gendocs.sh
16769         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16770         (gendocs_options_): New overridable variable.
16771
16772         gnu-web-doc-update: don't ignore configure or build failure
16773         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16774
16775         announce-gen: backslash-escape '@'s in --help output
16776         * build-aux/announce-gen: Fix syntax errors.
16777
16778         maint.mk, announce-gen: allow project-specific announcement mail headers
16779         * top/maint.mk (translation_project_): Define default.
16780         (announcement_Cc_, announcement_mail_headers_): Likewise.
16781         (announcement): Invoke announce-gen with new --mail-headers option.
16782         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16783
16784         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16785         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16786         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16787         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16788         line in the "err2" output file when running "make check" in verbose
16789         mode (i.e., with set -x enabled).
16790
16791 2010-05-03  Bruno Haible  <bruno@clisp.org>
16792
16793         wctob: Fix for weird platforms.
16794         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16795         argument value.
16796
16797 2010-05-03  Jim Meyering  <meyering@redhat.com>
16798
16799         maint.mk: prohibit unwarranted use of <strings.h>
16800         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16801         strings.h in a file that does not also use strcasecmp, strncasecmp,
16802         ffs or ffsll.
16803
16804         maint.mk: remove obsolete comments
16805         * top/maint.mk: Remove stale, commented-out rules.
16806
16807 2010-05-02  Bruno Haible  <bruno@clisp.org>
16808
16809         wcwidth: Declare also when it's aliased.
16810         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16811         macro.
16812
16813 2010-05-02  Bruno Haible  <bruno@clisp.org>
16814
16815         Fix regression from 2010-04-25.
16816         * gnulib-tool (func_modules_transitive_closure): Check the status of
16817         all modules, not only of the tests that are of the form foo-tests where
16818         foo is a module.
16819
16820 2010-05-02  Bruno Haible  <bruno@clisp.org>
16821
16822         wctob: Work around nasty Cygwin 1.7.2 bug.
16823         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16824         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16825
16826 2010-05-01  Bruno Haible  <bruno@clisp.org>
16827
16828         fpurge: Sharper test.
16829         * tests/test-fpurge.c (main): Add one more ftell check.
16830         * modules/fpurge-tests (Depends-on): Add ftell.
16831         Suggested by Eric Blake.
16832
16833 2010-05-01  Bruno Haible  <bruno@clisp.org>
16834
16835         ftello: Another test.
16836         * tests/test-ftello3.c: New file.
16837         * modules/ftello-tests (Files): Add it.
16838         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16839         MOSTLYCLEANFILES.
16840
16841         ftell: Another test.
16842         * tests/test-ftell3.c: New file.
16843         * modules/ftell-tests (Files): Add it.
16844         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16845         MOSTLYCLEANFILES.
16846
16847 2010-05-01  Bruno Haible  <bruno@clisp.org>
16848
16849         ftell, ftello: Work around Solaris bug.
16850         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16851         * lib/ftello.c: Include stdio-impl.h.
16852         (ftello): On Solaris, when _IOWRT is set, compute the result without
16853         looking at _IOREAD.
16854         * modules/ftello (Files): Add lib/stdio-impl.h.
16855         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16856         * doc/posix-functions/ftello.texi: Likewise.
16857         Reported by Eric Blake.
16858
16859 2010-05-01  Bruno Haible  <bruno@clisp.org>
16860
16861         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16862         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16863         the _IOWRT flag is also set.
16864
16865 2010-05-01  Bruno Haible  <bruno@clisp.org>
16866
16867         Fix doc about a HP-UX stdio bug.
16868         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16869         * doc/posix-functions/ftello.texi: Likewise.
16870
16871 2010-05-01  Bruno Haible  <bruno@clisp.org>
16872
16873         lseek test: Fix failure on Solaris.
16874         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16875         output.
16876
16877 2010-04-30  Jim Meyering  <meyering@redhat.com>
16878
16879         bootstrap: don't ignore failure to generate po*/Makevars
16880         * build-aux/bootstrap (with_gettext): Don't ignore failure
16881         to create po/Makevars or runtime-po/Makevars.
16882
16883 2010-04-29  Eric Blake  <eblake@redhat.com>
16884
16885         headers: relax license to LGPLv2+
16886         * modules/fcntl-h (License): Relax license.
16887         * modules/getopt-posix (License): Likewise.
16888         * modules/locale (License): Likewise.
16889         * modules/math (License): Likewise.
16890         * modules/pty (License): Likewise.
16891         * modules/sched (License): Likewise.
16892         * modules/search (License): Likewise.
16893         * modules/spawn (License): Likewise.
16894         * modules/stdarg (License): Likewise.
16895         * modules/sysexits (License): Likewise.
16896
16897 2010-04-29  Jim Meyering  <meyering@redhat.com>
16898
16899         inttypes: relax license to LGPLv2+
16900         * modules/inttypes (License): Relax license.
16901
16902 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16903
16904         * top/maint.mk (indent): Run twice to produce idempotent results.
16905
16906 2010-04-28  Bruno Haible  <bruno@clisp.org>
16907
16908         getdate: Generate getdate.c in the source directory.
16909         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16910         MOSTLYCLEANFILES.
16911         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16912
16913 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16914
16915         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16916         is not declared as a const *; avoid warnings in that case.
16917
16918 2010-04-28  Eric Blake  <eblake@redhat.com>
16919
16920         canonicalize-lgpl: avoid compiler warning
16921         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16922         declaration' / 'extraneous semicolon' warning with some compilers.
16923         Reported by Andreas Gruenbacher.
16924
16925 2010-04-28  Jim Meyering  <meyering@redhat.com>
16926
16927         init.sh: ensure a more reliable exit status when exiting via trap
16928         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16929         Inspired by patches from Dmitry V. Levin.
16930         Also trap on signal 3 (SIGQUIT).
16931
16932 2010-04-27  Bruno Haible  <bruno@clisp.org>
16933
16934         Update doc about utimes().
16935         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16936         'utimens' module.
16937         Reported by Andreas Gruenbacher <agruen@suse.de>.
16938
16939 2010-04-27  Eric Blake  <eblake@redhat.com>
16940
16941         full-read, full-write: relax license
16942         * modules/full-read (License): Drop to LGPLv2+.
16943         * modules/full-write (License): Likewise.
16944         * modules/safe-read (License): Likewise.
16945         * modules/safe-write (License): Likewise.
16946
16947         pthread: mention library for linking
16948         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16949
16950 2010-04-27  Jim Meyering  <meyering@redhat.com>
16951
16952         maint.mk: fix a bug introduced in last change
16953         * top/maint.mk (gl_assured_headers_): Now that all names are on
16954         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16955         is not anchored to end of word, it should be adequate.
16956
16957         maint.mk: avoid side-effect in latest syntax-check
16958         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16959         to run commands via $(shell...), and hence to incur cost only when
16960         the new rule is actually run.
16961
16962         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16963         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16964         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16965         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16966         (gl_assured_headers_, az_, AZ_): Define.
16967         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16968
16969 2010-04-26  Jim Meyering  <jim@meyering.net>
16970             Bruno Haible  <bruno@clisp.org>
16971
16972         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16973         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16974         Prompted by an exchange with Gilles Espinasse.
16975
16976 2010-04-26  Jim Meyering  <meyering@redhat.com>
16977
16978         git-version-gen: aesthetic tweak
16979         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16980         so that the command remains on a single line.
16981
16982 2010-04-26  Eric Blake  <eblake@redhat.com>
16983
16984         git-version-gen: allow use on EBCDIC hosts
16985         * build-aux/git-version-gen (dirty): Use literal rather than tying
16986         ourselves to ascii.
16987         Reported by Steve Goetze.
16988
16989 2010-04-25  Bruno Haible  <bruno@clisp.org>
16990
16991         netdb: Add support for GNULIB_POSIXCHECK.
16992         * lib/netdb.in.h: Include warn-on-use.h.
16993         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16994         functions are used when GNULIB_POSIXCHECK is defined and the
16995         getaddrinfo module is not in use.
16996         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16997         freeaddrinfo, gai_strerror, getnameinfo are declared.
16998         * modules/netdb (Depends-on): Add warn-on-use.
16999         (Makefile.am): Include warn-on-use.h in netdb.h.
17000
17001 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17002
17003         build: avoid "make check" failure without .git/ directory
17004         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17005         there is no .git/ directory.
17006
17007 2010-04-25  Bruno Haible  <bruno@clisp.org>
17008
17009         ptsname: Fix misuse of ttyname_r.
17010         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17011         of errno.
17012
17013 2010-04-25  Bruno Haible  <bruno@clisp.org>
17014
17015         ttyname_r: Make it work on Solaris 10.
17016         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17017         if the system function has the POSIX declaration. Test whether the
17018         function fails if the buffer is less than 128 bytes large.
17019         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17020         system's ttyname_r function. Provide a reasonably large buffer.
17021         * modules/ttyname_r (Depends-on): Add extensions.
17022         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17023
17024 2010-04-25  Bruno Haible  <bruno@clisp.org>
17025
17026         Use the 'extensions' module for some more functions on Solaris.
17027         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17028         module.
17029         * doc/posix-functions/ctime_r.texi: Likewise.
17030         * doc/posix-functions/getgrgid_r.texi: Likewise.
17031         * doc/posix-functions/getgrnam_r.texi: Likewise.
17032         * doc/posix-functions/getpwnam_r.texi: Likewise.
17033         * doc/posix-functions/getpwuid_r.texi: Likewise.
17034         * doc/posix-functions/readdir_r.texi: Likewise.
17035         * doc/posix-functions/sigwait.texi: Likewise.
17036         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17037         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17038
17039 2010-04-25  Bruno Haible  <bruno@clisp.org>
17040
17041         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17042         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17043         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17044         * lib/ttyname_r.c: Include <limits.h>.
17045         (ttyname_r): Define using the system's ttyname_r function, if it exists
17046         and not on Solaris.
17047         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17048         set.
17049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17050         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17051         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17052         Reported by Simon Josefsson.
17053
17054 2010-04-25  Bruno Haible  <bruno@clisp.org>
17055
17056         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17057         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17058         * doc/posix-functions/ctime_r.texi: Likewise.
17059         * doc/posix-functions/getgrgid_r.texi: Likewise.
17060         * doc/posix-functions/getgrnam_r.texi: Likewise.
17061         * doc/posix-functions/getlogin_r.texi: Likewise.
17062         * doc/posix-functions/getpwnam_r.texi: Likewise.
17063         * doc/posix-functions/getpwuid_r.texi: Likewise.
17064         * doc/posix-functions/readdir_r.texi: Likewise.
17065         * doc/posix-functions/sigwait.texi: Likewise.
17066         * doc/posix-functions/ttyname_r.texi: Likewise.
17067         Reported by Simon Josefsson.
17068
17069 2010-04-25  Bruno Haible  <bruno@clisp.org>
17070
17071         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17072         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17073         also to --create-testdir.
17074         (func_acceptable): Don't consider the status of *-tests modules here.
17075         (func_modules_transitive_closure): Consider it here, before including a
17076         test module.
17077         (func_import, func_create_testdir): Set inc_all_direct_tests,
17078         inc_all_indirect_tests.
17079         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17080         --create-testdir and --create-megatestdir.
17081
17082 2010-04-25  Bruno Haible  <bruno@clisp.org>
17083
17084         gnulib-tool: Add --without-*-tests options.
17085         * gnulib-tool (func_usage): Document the --without-*-tests options.
17086         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17087         excl_unportable_tests): New variables.
17088         Fail if they are specified with --import or --update.
17089         (func_acceptable): Respect the excl_*_tests variables.
17090         (func_import): Set the excl_*_tests variables to empty.
17091
17092 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17093             Bruno Haible  <bruno@clisp.org>
17094
17095         Work around a MacOS X 10.4 bug with openpty.
17096         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17097         * tests/test-openpty.c (main): Close the master side explicitly.
17098
17099 2010-04-25  Bruno Haible  <bruno@clisp.org>
17100
17101         strnlen: Fix a C++ test error on MacOS X and Solaris.
17102         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17103         the function is not declared.
17104         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17105         Simon Josefsson.
17106
17107 2010-04-24  Bruno Haible  <bruno@clisp.org>
17108
17109         Avoid a gcc warning.
17110         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17111         of correct type for %08lx directive.
17112         Reported by Eric Blake.
17113
17114 2010-04-24  Bruno Haible  <bruno@clisp.org>
17115
17116         vasnprintf: Correct errno value in case of out-of-memory.
17117         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17118         or sprintf. Use the errno value from SNPRINTF or sprintf.
17119         Reported by Ian Beckwith <ianb@erislabs.net>.
17120
17121 2010-04-24  Bruno Haible  <bruno@clisp.org>
17122
17123         ansi-c++-opt: Find correct compiler when cross-compiling.
17124         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17125         AC_CHECK_PROGS.
17126         Reported by Simon Josefsson.
17127
17128 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17129
17130         vc-list-files: Add support for subversion
17131         * build-aux/vc-list-files: Use "svn list" to generate the list of
17132         files controlled by subversion.
17133
17134 2010-04-23  Jim Meyering  <meyering@redhat.com>
17135
17136         vc-list-files tests: convert to use init.sh
17137         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17138         path_prepend_.
17139         Use Exit, not exit.
17140         Use skip_ rather than open coding it.
17141         Remove trap set-up and compare definitions.
17142         * tests/test-vc-list-files-git.sh: Likewise.
17143         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17144
17145 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17146
17147         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17148         backup files.
17149
17150 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17151
17152         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17153
17154 2010-04-20  Eric Blake  <eblake@redhat.com>
17155
17156         tests: be robust to ignored SIGPIPE
17157         * tests/test-select-in.sh: Consume all output.
17158         * tests/test-lseek.sh: Check correct exit status, while avoiding
17159         EPIPE.
17160
17161 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17162             Bruno Haible  <bruno@clisp.org>
17163
17164         visibility: Don't use -fvisibility if it leads to a warning.
17165         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17166         yes, don't pretend that visibility works if it leads to a warning.
17167         Reported by Mike Gran <spk121@yahoo.com>.
17168
17169 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17170
17171         * build-aux/bootstrap: Use "git -h" for testing for supported options
17172         instead of "git --help".  The short-form option only shows a summary,
17173         and doesn't layout the full man page.  Grep for the full option name
17174         in the summary, too.
17175
17176 2010-04-19  Bruno Haible  <bruno@clisp.org>
17177
17178         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17179         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17180         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17181         mention of RELOCATABLE_STRIP.
17182         Reported by Sylvain Beucler <beuc@beuc.net>.
17183
17184 2010-04-19  Bruno Haible  <bruno@clisp.org>
17185
17186         * lib/diffseq.h: Fix typo in comment.
17187         Reported by Eric Blake.
17188
17189 2010-04-19  Bruno Haible  <bruno@clisp.org>
17190
17191         ioctl: Move autoconf macro to a .m4 file.
17192         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17193         * modules/ioctl (Files): Add it.
17194         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17195         Reported by Ian Beckwith <ianb@erislabs.net>.
17196
17197 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17198             Bruno Haible  <bruno@clisp.org>
17199
17200         diffseq: Accommodate use-case with abstract arrays.
17201         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17202         is not defined.
17203         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17204         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17205
17206 2010-04-18  Bruno Haible  <bruno@clisp.org>
17207
17208         * doc/posix-headers/stdbool.texi: More precise wording.
17209
17210 2010-04-17  Jim Meyering  <meyering@redhat.com>
17211
17212         maint.mk: use gnu-style indentation in an embedded perl script
17213         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17214         Rename variable: s/two/last_two_bytes/
17215
17216 2010-04-16  Eric Blake  <eblake@redhat.com>
17217
17218         test-stdbool: skip test that fails with Solaris CC
17219         * tests/test-stdbool.c (f): Skip test that causes compilation
17220         error under buggy C++ compiler.
17221         * lib/stdbool.in.h: Document the limitation.
17222         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17223
17224         setenv: allow compilation with C++
17225         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17226         register keyword.
17227
17228         stdint: allow test to pass with C++
17229         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17230
17231         getopt: allow compilation with C++
17232         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17233         struct.
17234         * lib/getopt.c (_getopt_internal_r): Use correct type.
17235         Reported by Dagobert Michelson, via Joel E. Denny.
17236
17237 2010-04-16  Bruno Haible  <bruno@clisp.org>
17238
17239         Override netdb.h always.
17240         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17241         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17242         Reported by Ludovic Courtès <ludo@gnu.org>.
17243
17244 2010-04-15  Bruno Haible  <bruno@clisp.org>
17245
17246         openpty: Fix mistake from 2010-03-21.
17247         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17248         Reported by Simon Josefsson.
17249
17250 2010-04-15  Eric Blake  <eblake@redhat.com>
17251
17252         test-forkpty: fix expected signature
17253         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17254         Reported by Simon Josefsson.
17255
17256 2010-04-15  Jim Meyering  <meyering@redhat.com>
17257
17258         maint.mk: texinfo_suffix_re_: correct the default regexp
17259         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17260
17261         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17262         make it configurable via texinfo_suffix_re_.
17263
17264 2010-04-14  Eric Blake  <eblake@redhat.com>
17265
17266         strtok_r: relax license to LGPLv2+
17267         * modules/strtok_r (License): Relax license.
17268         Reported by Matthias Bolte.
17269
17270 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17271
17272         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17273         version 1.4.4 by default instead of requiring the libgcrypt
17274         version used during build.  This makes it possible to use the
17275         application with older but still binary compatible libgcrypt
17276         versions.
17277
17278 2010-04-13  Eric Blake  <eblake@redhat.com>
17279
17280         getopt-gnu: match recent glibc fixes and posix ruling
17281         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17282         '+' handling, when requesting extensions.
17283         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17284         'W;' handling.
17285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17286         * doc/posix-functions/getopt.texi (getopt): Document this.
17287         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17288         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17289         Likewise.
17290
17291         getopt: merge bug fixes from glibc
17292         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17293         diagnostics.  Honor '+:' correctly.  Reject ';'.
17294
17295         getopt-posix: detect MacOS bug
17296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17297         optind when missing a required argument.
17298         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17299         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17300         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17301         Likewise.
17302
17303         getopt-posix: avoid spurious failure on Solaris
17304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17305         an indicator that setting optind=1 is sufficient for reset.
17306
17307         getopt-posix: avoid spurious failure on FreeBSD
17308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17309         in POSIX mode, since the m4 test uses it.
17310
17311         gnulib-tool: silence warning on BSD sh
17312         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17313
17314 2010-04-13  Jim Meyering  <meyering@redhat.com>
17315
17316         doc: users.txt: GNU patch now uses gnulib
17317         * users.txt: Add patch.
17318
17319 2010-04-12  Jim Meyering  <meyering@redhat.com>
17320
17321         maint.mk: generate more concise timing data for syntax-check rules
17322         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17323         " done" from each line that reports a syntax-check test duration.
17324
17325 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17326
17327         git-version-gen: use "git update-index..." rather than "git status"
17328         * build-aux/git-version-gen: Use git update-index --refresh, not
17329         "git status".  With some versions of git, "git status" would fail
17330         to update the index and result in an unwarranted "-dirty" suffix.
17331
17332 2010-04-11  Jim Meyering  <meyering@redhat.com>
17333
17334         openat: correct formatting (no semantic change)
17335         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17336         Suggested by Bruno Haible.
17337
17338 2010-04-11  Bruno Haible  <bruno@clisp.org>
17339
17340         Stricter declaration checking in testdirs.
17341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17342         If for_tests is true, augment AM_CPPFLAGS to define
17343         GNULIB_STRICT_CHECKING.
17344         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17345         GNULIB_STRICT_CHECKING is defined, verify that the function is
17346         declared.
17347
17348 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17349             Bruno Haible  <bruno@clisp.org>
17350
17351         libunistring: Improve configure output.
17352         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17353         Don't say "consider installing GNU libunistring" when checking again
17354         with libiconv.
17355
17356 2010-04-11  Bruno Haible  <bruno@clisp.org>
17357
17358         libunistring: Correct value of $LTLIBUNISTRING.
17359         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17360         correct the value of $LTLIBUNISTRING.
17361
17362 2010-04-11  Bruno Haible  <bruno@clisp.org>
17363
17364         havelib: Add static libraries to LIBS in the right order.
17365         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17366         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17367
17368 2010-04-11  Bruno Haible  <bruno@clisp.org>
17369
17370         libunistring: Detect libunistring also when it depends on libiconv.
17371         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17372         the second AC_LIB_HAVE_LINKFLAGS invocation.
17373
17374 2010-04-11  James Youngman  <jay@gnu.org>
17375
17376         close-stream: declare local scalars to be "const"
17377         * lib/close-stream.c (close_stream): Make boolean variables const
17378         to document the fact that we set but do not change them.
17379
17380 2010-04-11  Bruno Haible  <bruno@clisp.org>
17381
17382         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17383
17384 2010-04-11  Jim Meyering  <meyering@redhat.com>
17385
17386         maint.mk: don't include dist-check.mk
17387         * top/maint.mk: Remove bogus include directive.
17388
17389         maint.mk: improve empty-line-at-EOF check
17390         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17391         solution, rather than tail+Perl-based one.  The latter would read
17392         a few kilobytes from the end of each file, and did not handle empty
17393         files properly.
17394
17395         maint.mk: print the elapsed time for each syntax-check rule
17396         * top/maint.mk (sc_m_rules_): Save start time in a file.
17397         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17398         (local-check): Interpose the .z rules
17399
17400 2010-04-11  Jim Meyering  <meyering@redhat.com>
17401
17402         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17403         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17404         empty file with one that ends in an empty line.
17405
17406 2010-04-10  Bruno Haible  <bruno@clisp.org>
17407
17408         mkdir: Make it work on mingw64.
17409         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17410         * lib/mkdir.c: Update comment.
17411         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17412
17413 2010-04-10  Bruno Haible  <bruno@clisp.org>
17414
17415         Don't override improved macro from newer autoconf.
17416         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17417         autoconf >= 2.62.
17418         Reported by Joel E. Denny <jdenny@clemson.edu>.
17419
17420 2010-04-10  Jim Meyering  <meyering@redhat.com>
17421
17422         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17423         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17424
17425         maint.mk: correct a diagnostic
17426         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17427         in diagnostic; now use $prohibit.
17428
17429 2010-04-10  Bruno Haible  <address@hidden>
17430
17431         fchownat: Fix a C++ test error on Solaris 8.
17432         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17433         the function does not exist.
17434
17435 2010-04-10  Bruno Haible  <bruno@clisp.org>
17436
17437         vasnprintf: Add more tests.
17438         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17439         (test_function): Test converting an invalid wide string.
17440
17441         vasnprintf: Correct handling of unconvertible wide string arguments.
17442         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17443         VASNPRINTF.
17444         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17445         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17446         smaller than the expected maximum need for the directive. Set errno to
17447         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17448         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17450         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17451         * modules/vasnprintf (Files): Add m4/printf.m4.
17452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17453
17454 2010-04-10  Bruno Haible  <bruno@clisp.org>
17455
17456         vasnprintf: Fix crash in %ls directive.
17457         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17458         string is passed as argument to %ls, with no precision and no width.
17459         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17460
17461 2010-04-10  Bruno Haible  <bruno@clisp.org>
17462
17463         vasnprintf: Fix multiple test failures on mingw.
17464         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17465         _snprintf, or snwprintf, not _snwprintf.
17466
17467 2010-04-10  Bruno Haible  <bruno@clisp.org>
17468
17469         write: Fix a C++ test error on mingw.
17470         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17471
17472 2010-04-10  Bruno Haible  <bruno@clisp.org>
17473
17474         vasnprintf test: Reduce code duplication.
17475         * tests/test-vasnprintf.c (test_function): New function, extracted from
17476         test_vasnprintf.
17477         (test_vasnprintf, test_asnprintf): Invoke it.
17478
17479 2010-04-10  Bruno Haible  <bruno@clisp.org>
17480
17481         strnlen: Fix warning in C++ mode on MacOS X.
17482         * lib/string.in.h (strnlen): Use the modern idiom.
17483         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17484         defining strnlen as a macro already in <config.h>.
17485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17486         REPLACE_STRNLEN.
17487         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17488         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17489
17490 2010-04-08  James Youngman  <jay@gnu.org>
17491
17492         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17493         the example.
17494
17495 2010-04-09  Jim Meyering  <meyering@redhat.com>
17496
17497         maint.mk: print better diagnostic when there is no $(_hv_file)
17498         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17499         announce that when $(_hv_file) (aka help-version) does not exist.
17500
17501         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17502         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17503         not try to interpret its random input bytes.  Jarno Rajahalme reported
17504         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17505         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17506         (mktempd_): Likewise, just in case.
17507
17508         ftruncate: add two years to projected module removal date: 2012
17509         * m4/ftruncate.m4: Adjust comments.
17510
17511         ftruncate: mark module as obsolete; even MinGW provides it, now
17512         * modules/ftruncate (Status): Obsolete.
17513         (Notice): Say that.
17514         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17515         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17516
17517 2010-04-08  Bruno Haible  <bruno@clisp.org>
17518
17519         Fix side effects from tests-related modules.
17520         * modules/dprintf-posix (Comment): New section.
17521         * modules/fprintf-posix (Comment): Likewise.
17522         * modules/obstack-printf-posix (Comment): Likewise.
17523         * modules/printf-posix (Comment): Likewise.
17524         * modules/snprintf-posix (Comment): Likewise.
17525         * modules/sprintf-posix (Comment): Likewise.
17526         * modules/vasnprintf-posix (Comment): Likewise.
17527         * modules/vasprintf-posix (Comment): Likewise.
17528         * modules/vdprintf-posix (Comment): Likewise.
17529         * modules/vfprintf-posix (Comment): Likewise.
17530         * modules/vprintf-posix (Comment): Likewise.
17531         * modules/vsnprintf-posix (Comment): Likewise.
17532         * modules/vsprintf-posix (Comment): Likewise.
17533         * modules/xprintf-posix (Comment): Likewise.
17534         * modules/xvasprintf-posix (Comment): Likewise.
17535         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17536         * modules/floorf-tests (Depends-on): Likewise.
17537         * modules/round-tests (Depends-on): Likewise.
17538         * modules/roundf-tests (Depends-on): Likewise.
17539         * modules/trunc-tests (Depends-on): Likewise.
17540         * modules/truncf-tests (Depends-on): Likewise.
17541         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17542         'fprintf-posix' module is not present.
17543         * tests/test-floorf2.c (check): Likewise.
17544         * tests/test-trunc2.c (check): Likewise.
17545         * tests/test-truncf2.c (check): Likewise.
17546         * tests/test-round2.c (equal): Likewise.
17547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17548
17549 2010-04-07  Karl Berry  <karl@gnu.org>
17550
17551         * config/srclist.txt,
17552         * config/srclistvars.sh,
17553         * config/srclist-update: doc fixes.
17554
17555 2010-04-07  Jim Meyering  <meyering@redhat.com>
17556
17557         maint.mk: add a PATH crosschecking syntax-check rule
17558         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17559         Useful if you use a test like the one in help-version (coreutils,
17560         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17561         printed by prog --version.
17562
17563 2010-04-06  Bruno Haible  <bruno@clisp.org>
17564
17565         Fix link error on mingw.
17566         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17567         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17568
17569 2010-04-06  Bruno Haible  <bruno@clisp.org>
17570
17571         Assume rmdir exists.
17572         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17573
17574 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17575
17576         doc: update users.txt
17577         * users.txt: Add gcal.
17578
17579 2010-04-06  Jim Meyering  <meyering@redhat.com>
17580
17581         init.sh: simply unset TMPDIR rather than risking env -i
17582         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17583         although it probably works fine on all Unix-based systems, some
17584         systems (Cygwin?) cannot tolerate a totally cleared environment.
17585         Suggestion from Eric Blake.
17586
17587 2010-04-06  Jim Meyering  <meyering@redhat.com>
17588
17589         init.sh: portability fix: use env's POSIX-specified -i option not -u
17590         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17591         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17592
17593 2010-04-05  Bruno Haible  <bruno@clisp.org>
17594
17595         btowc: Work around Cygwin 1.7.2 bug.
17596         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17597         does not map NUL to 0.
17598         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17599
17600 2010-04-05  Bruno Haible  <bruno@clisp.org>
17601
17602         Make the multithread modules work on Cygwin 1.7.2.
17603         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17604         imported symbols can be declared weak, so that it returns "no" on
17605         Cygwin 1.7.2.
17606
17607 2010-04-05  Bruno Haible  <bruno@clisp.org>
17608
17609         Use the module 'strncat'.
17610         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17611
17612         Tests for module 'strncat'.
17613         * modules/strncat-tests: New file.
17614         * tests/test-strncat.c: New file.
17615
17616         New module 'strncat'.
17617         * lib/string.in.h (strncat): New declaration.
17618         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17619         * m4/strncat.m4: New file, based on m4/memchr.m4.
17620         * modules/strncat: New file.
17621         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17622         is declared.
17623         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17624         REPLACE_STRNCAT.
17625         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17626         REPLACE_STRNCAT.
17627         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17628         module.
17629         * tests/test-string-c++.cc: Check signature of strncat.
17630
17631 2010-04-05  Jim Meyering  <meyering@redhat.com>
17632
17633         xstrtoumax-tests: convert to use init.sh
17634         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17635         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17636         Use Exit, not exit.
17637         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17638
17639         xstrtoimax-tests: convert to use init.sh
17640         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17641         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17642         Use Exit, not exit.
17643         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17644
17645 2010-04-05  Bruno Haible  <bruno@clisp.org>
17646
17647         sys_socket: Avoid #define replacements in C++ mode.
17648         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17649         warning to the function if possible, rather than #defining the symbol
17650         to a dysfunctional alias.
17651
17652 2010-04-05  Bruno Haible  <bruno@clisp.org>
17653
17654         fseeko: Fix C++ test error on mingw.
17655         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17656         gl_FUNC_FSEEKO.
17657         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17658         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17659         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17660         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17661
17662 2010-04-05  Bruno Haible  <bruno@clisp.org>
17663
17664         duplocale: Improve test output.
17665         * tests/test-duplocale.c (main): Print reason for skipped test.
17666
17667 2010-04-05  Bruno Haible  <bruno@clisp.org>
17668
17669         Assume rmdir exists.
17670         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17671         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17672
17673 2010-04-05  Bruno Haible  <bruno@clisp.org>
17674
17675         Fix link error on Solaris 8 with cc.
17676         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17677
17678 2010-04-05  Bruno Haible  <bruno@clisp.org>
17679
17680         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17681         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17682
17683 2010-04-05  Bruno Haible  <bruno@clisp.org>
17684
17685         vasprintf: Update documentation.
17686         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17687
17688 2010-04-05  Bruno Haible  <bruno@clisp.org>
17689
17690         ptsname: Improve test.
17691         * tests/test-ptsname.c (main): Also try the various master names of BSD
17692         systems.
17693
17694 2010-04-05  Bruno Haible  <bruno@clisp.org>
17695
17696         memchr: Avoid a possible C++ test error.
17697         * lib/string.in.h (memchr): Provide declaration if function is missing.
17698         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17699         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17700         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17701         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17702
17703 2010-04-05  Bruno Haible  <bruno@clisp.org>
17704
17705         strtok_r: Improve idiom.
17706         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17707         AC_LIBOBJ is used.
17708
17709 2010-04-05  Bruno Haible  <bruno@clisp.org>
17710
17711         strdup: Improve idiom.
17712         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17713         AC_LIBOBJ is used.
17714         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17715         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17716         when AC_LIBOBJ is used.
17717
17718 2010-04-05  Bruno Haible  <bruno@clisp.org>
17719
17720         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17721         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17722         don't set REPLACE_MBSINIT to 1.
17723         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17724         don't set REPLACE_MBRTOWC to 1.
17725         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17726         exist, don't set REPLACE_MBSRTOWCS to 1.
17727         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17728         exist, don't set REPLACE_MBSNRTOWCS to 1.
17729         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17730         don't set REPLACE_WCRTOMB to 1.
17731         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17732         exist, don't set REPLACE_WCSRTOMBS to 1.
17733         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17734         exist, don't set REPLACE_WCSNRTOMBS to 1.
17735
17736 2010-04-05  Bruno Haible  <bruno@clisp.org>
17737
17738         ldexpl: Improve idiom.
17739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17740         make sure to set HAVE_DECL_LDEXPL to 0.
17741
17742 2010-04-05  Jim Meyering  <meyering@redhat.com>
17743
17744         xstrtol-tests: convert to use init.sh
17745         * modules/xstrtol-tests (Files): Add tests/init.sh.
17746         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17747         Use Exit, not exit.
17748         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17749
17750         atexit-tests: convert to use init.sh
17751         * modules/atexit-tests (Files): Add tests/init.sh.
17752         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17753         Use Exit, not exit.
17754         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17755
17756         init.sh: fix typo
17757         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17758
17759         init.sh: make it easier for a test script to write to the tty, ...
17760         when using automake's parallel-tests mode.
17761         * tests/init.sh (stderr_fileno_): Define overridable variable.
17762         (warn_): New function, to use it.
17763         (fail_, skip_, framework_failure_): Use warn_.
17764
17765 2010-04-04  Bruno Haible  <bruno@clisp.org>
17766
17767         btowc: Avoid warning.
17768         * lib/btowc.c: Include <stdlib.h>.
17769         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17770
17771 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17772             Bruno Haible  <bruno@clisp.org>
17773
17774         wchar: Port to NetBSD 1.5.
17775         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17776         * lib/wctype.in.h (WEOF): Likewise.
17777
17778 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17779             Bruno Haible  <bruno@clisp.org>
17780
17781         Port extended stdio to NetBSD 1.5.
17782         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17783         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17784         older.
17785
17786 2010-04-04  Bruno Haible  <bruno@clisp.org>
17787
17788         string: Remove unused substitution.
17789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17790         HAVE_DECL_STRERROR.
17791         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17792
17793 2010-04-04  Bruno Haible  <bruno@clisp.org>
17794
17795         strtod: Avoid a possible C++ test error.
17796         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17797         set REPLACE_STRTOD.
17798
17799 2010-04-04  Bruno Haible  <bruno@clisp.org>
17800
17801         strerror: Update documentation.
17802         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17803
17804 2010-04-04  Bruno Haible  <bruno@clisp.org>
17805
17806         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17807         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17808         _GL_CXXALIAS_SYS_CAST.
17809
17810 2010-04-04  Bruno Haible  <bruno@clisp.org>
17811
17812         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17813         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17814         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17815         REPLACE_FREXPL to 1.
17816         * doc/posix-functions/frexpl.texi: Update documentation.
17817
17818 2010-04-04  Bruno Haible  <bruno@clisp.org>
17819
17820         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17821         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17822
17823 2010-04-04  Bruno Haible  <bruno@clisp.org>
17824
17825         Implement nanosleep for native Windows.
17826         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17827
17828 2010-04-04  Bruno Haible  <bruno@clisp.org>
17829
17830         math: Fix some C++ test errors on Solaris 8.
17831         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17832
17833 2010-04-04  Bruno Haible  <bruno@clisp.org>
17834
17835         math: Fix some C++ test errors on Cygwin.
17836         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17837         truncl): Provide declaration if the system does not have it.
17838         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17839         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17840         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17841         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17842         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17843         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17844         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17845         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17846         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17847         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17848         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17849         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17850         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17851         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17852         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17853         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17855         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17856         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17857         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17858         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17859         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17860
17861 2010-04-04  Bruno Haible  <bruno@clisp.org>
17862
17863         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17864         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17865         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17866         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17867         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17868         * m4/isinf.m4 (gl_ISINF): Likewise.
17869         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17870
17871 2010-04-04  Bruno Haible  <bruno@clisp.org>
17872
17873         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17874         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17875
17876 2010-04-04  Bruno Haible  <bruno@clisp.org>
17877
17878         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17879         * modules/tmpfile (configure.ac): Update.
17880
17881         tmpfile: Fix C++ test error on mingw.
17882         * lib/stdio.in.h (tmpfile): New declaration.
17883         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17884         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17885         * modules/tmpfile (Depends-on): Add stdio.
17886         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17887         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17888         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17889         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17890         REPLACE_TMPFILE.
17891         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17892
17893 2010-04-04  Bruno Haible  <bruno@clisp.org>
17894
17895         ioctl: Fix C++ test error on mingw.
17896         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17897         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17898         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17899
17900 2010-04-03  Bruno Haible  <bruno@clisp.org>
17901
17902         wcwidth: Fix C++ test error on mingw.
17903         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17905         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17906
17907 2010-04-03  Bruno Haible  <bruno@clisp.org>
17908
17909         nanosleep: Fix C++ test error on mingw.
17910         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17911         * lib/time.in.h (nanosleep): Use modern idiom.
17912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17913         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17914         REPLACE_NANOSLEEP to 1.
17915         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17916         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17917
17918 2010-04-03  Bruno Haible  <bruno@clisp.org>
17919
17920         strptime: Fix C++ test error on mingw.
17921         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17922         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17923         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17924         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17925         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17926         not REPLACE_STRPTIME.
17927         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17928         REPLACE_STRPTIME.
17929
17930 2010-04-03  Bruno Haible  <bruno@clisp.org>
17931
17932         timegm: Fix C++ test error on mingw.
17933         * lib/time.in.h (timegm): Use modern idiom.
17934         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17935         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17936         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17937         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17938
17939 2010-04-03  Bruno Haible  <bruno@clisp.org>
17940
17941         timegm: Assume declaration if function exists.
17942         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17943         if it exists. Don't clobber ac_cv_func_timegm.
17944
17945 2010-04-03  Bruno Haible  <bruno@clisp.org>
17946
17947         time_r: Fix C++ test error on mingw.
17948         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17949         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17950         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17951         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17952         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17953
17954 2010-04-03  Bruno Haible  <bruno@clisp.org>
17955
17956         time_r: Minor updates.
17957         * modules/time_r (Description): Mention the provided functions.
17958         * lib/time_r.c: Don't include <string.h>.
17959         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17960         * doc/posix-functions/localtime_r.texi: Likewise.
17961
17962 2010-04-03  Bruno Haible  <bruno@clisp.org>
17963
17964         time: Fix regression introduced on 2010-03-08.
17965         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17966         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17967
17968 2010-04-03  Jim Meyering  <meyering@redhat.com>
17969
17970         maint.mk: don't silently disable project-specific syntax-check rules
17971         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17972         that they need to convert their project-specific syntax-check rules
17973         to use the new _sc_search_regexp.
17974
17975 2010-04-03  Bruno Haible  <bruno@clisp.org>
17976
17977         fchdir: Fix regression introduced on 2010-03-08.
17978         * lib/unistd.in.h (fchdir): Fix declaration.
17979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17981         REPLACE_FCHDIR.
17982         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17983         REPLACE_FCHDIR.
17984
17985 2010-04-03  Bruno Haible  <bruno@clisp.org>
17986
17987         getpagesize: Fix C++ test error on mingw.
17988         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17989         system does not declare the function.
17990         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17991         declared.
17992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17993         HAVE_DECL_GETPAGESIZE.
17994         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17995
17996 2010-04-03  Bruno Haible  <bruno@clisp.org>
17997
17998         stdio: Make C++ tests work on mingw.
17999         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18000         does not declare the function.
18001
18002 2010-04-03  Bruno Haible  <bruno@clisp.org>
18003
18004         ftello: Fix C++ test error on mingw.
18005         * lib/stdio.in.h (ftello): Use modern idiom.
18006         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18007         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18008         is missing and that it needs to be replaced.
18009         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18011         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18012
18013 2010-04-03  Bruno Haible  <bruno@clisp.org>
18014
18015         fseeko: Fix C++ test error on mingw.
18016         * lib/stdio.in.h (fseeko): Use modern idiom.
18017         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18019         is missing and that it needs to be replaced.
18020         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18022         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18023
18024 2010-04-03  Bruno Haible  <bruno@clisp.org>
18025
18026         mkstemp: Fix C++ test error on mingw.
18027         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18029         function is missing and that it needs to be replaced.
18030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18031         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18032
18033 2010-04-03  Bruno Haible  <bruno@clisp.org>
18034
18035         stpncpy: Fix C++ test error on mingw.
18036         * lib/string.in.h (stpncpy): Use modern idiom.
18037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18038         function is missing and that it needs to be replaced.
18039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18040         REPLACE_STPNCPY.
18041         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18042
18043 2010-04-03  Bruno Haible  <bruno@clisp.org>
18044
18045         sys_stat: Fix C++ test error on mingw.
18046         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18047         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18048
18049 2010-04-03  Bruno Haible  <bruno@clisp.org>
18050
18051         pty: Update doc.
18052         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18053
18054 2010-04-03  Bruno Haible  <bruno@clisp.org>
18055
18056         unistd: Fix C++ test error on mingw.
18057         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18058
18059 2010-04-03  Bruno Haible  <bruno@clisp.org>
18060
18061         Update doc regarding mingw.
18062         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18063         * doc/glibc-functions/login_tty.texi: Likewise.
18064         * doc/glibc-functions/forkpty.texi: Likewise.
18065
18066 2010-04-03  Bruno Haible  <bruno@clisp.org>
18067
18068         stdlib: Avoid compilation failure of c-strtold on mingw.
18069         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18070
18071 2010-04-03  Bruno Haible  <bruno@clisp.org>
18072
18073         locale: Make C++ tests work on Cygwin and mingw.
18074         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18075         cannot provide the function.
18076         Reported by Simon Josefsson.
18077
18078 2010-04-03  Bruno Haible  <bruno@clisp.org>
18079
18080         localename: Port to MacOS X 10.6.
18081         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18082         memory layout of the locales in MacOS X 10.6 as well.
18083         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18084
18085 2010-04-02  Bruno Haible  <bruno@clisp.org>
18086
18087         gnulib-tool: Ensure that long-running tests are executed last.
18088         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18089         running tests after the one for the other tests.
18090
18091 2010-04-02  Bruno Haible  <bruno@clisp.org>
18092
18093         gnulib-tool: Ensure the tests in the main directory are executed first.
18094         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18095         start with the current directory.
18096
18097 2010-04-02  Bruno Haible  <bruno@clisp.org>
18098
18099         Tests for module 'havelib', moved here from GNU gettext.
18100         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18101         modifications.
18102         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18103         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18104         with modifications.
18105         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18106         modifications.
18107         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18108         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18109         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18110         with modifications.
18111         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18112         with modifications.
18113         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18114         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18115         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18116         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18117         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18118         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18119         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18120         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18121         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18122         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18123         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18124         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18125         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18126         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18127         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18128         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18129         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18130         with modifications.
18131         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18132         with modifications.
18133         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18134         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18135         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18136         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18137         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18138         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18139         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18140         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18141         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18142         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18143         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18144         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18145         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18146         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18147         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18148         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18149         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18150         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18151         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18152         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18153         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18154         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18155         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18156         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18157         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18158         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18159         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18160         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18161         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18162         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18163         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18164         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18165         * tests/havelib/rpathx/rpathx.c: New file, from
18166         gettext/autoconf-lib-link.
18167         * tests/havelib/rpathx/Makefile.am: New file, from
18168         gettext/autoconf-lib-link.
18169         * tests/havelib/rpathx/configure.ac: New file, from
18170         gettext/autoconf-lib-link with modifications.
18171         * tests/havelib/rpathy/rpathy.c: New file, from
18172         gettext/autoconf-lib-link.
18173         * tests/havelib/rpathy/Makefile.am: New file, from
18174         gettext/autoconf-lib-link.
18175         * tests/havelib/rpathy/configure.ac: New file, from
18176         gettext/autoconf-lib-link with modifications.
18177         * tests/havelib/rpathz/rpathz.c: New file, from
18178         gettext/autoconf-lib-link.
18179         * tests/havelib/rpathz/Makefile.am: New file, from
18180         gettext/autoconf-lib-link.
18181         * tests/havelib/rpathz/configure.ac: New file, from
18182         gettext/autoconf-lib-link with modifications.
18183         * tests/havelib/rpathlx/usex.c: New file, from
18184         gettext/autoconf-lib-link.
18185         * tests/havelib/rpathlx/Makefile.am: New file, from
18186         gettext/autoconf-lib-link.
18187         * tests/havelib/rpathlx/configure.ac: New file, from
18188         gettext/autoconf-lib-link with modifications.
18189         * tests/havelib/rpathly/usey.c: New file, from
18190         gettext/autoconf-lib-link.
18191         * tests/havelib/rpathly/Makefile.am: New file, from
18192         gettext/autoconf-lib-link.
18193         * tests/havelib/rpathly/configure.ac: New file, from
18194         gettext/autoconf-lib-link with modifications.
18195         * tests/havelib/rpathlz/usez.c: New file, from
18196         gettext/autoconf-lib-link.
18197         * tests/havelib/rpathlz/Makefile.am: New file, from
18198         gettext/autoconf-lib-link.
18199         * tests/havelib/rpathlz/configure.ac: New file, from
18200         gettext/autoconf-lib-link with modifications.
18201         * tests/havelib/rpathlyx/usey.c: New file, from
18202         gettext/autoconf-lib-link.
18203         * tests/havelib/rpathlyx/Makefile.am: New file, from
18204         gettext/autoconf-lib-link.
18205         * tests/havelib/rpathlyx/configure.ac: New file, from
18206         gettext/autoconf-lib-link with modifications.
18207         * tests/havelib/rpathlzyx/usez.c: New file, from
18208         gettext/autoconf-lib-link.
18209         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18210         gettext/autoconf-lib-link.
18211         * tests/havelib/rpathlzyx/configure.ac: New file, from
18212         gettext/autoconf-lib-link with modifications.
18213         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18214         with modifications.
18215
18216 2010-04-02  Bruno Haible  <bruno@clisp.org>
18217
18218         gnulib-tool: Create distributed built sources also for the tests.
18219         * gnulib-tool (func_create_testdir): Also generate distributed built
18220         sources in the tests directory.
18221
18222 2010-04-02  Bruno Haible  <bruno@clisp.org>
18223
18224         gnulib-tool: Obey user's environment variables.
18225         * gnulib-tool (func_create_testdir): When creating built sources,
18226         respect the environment variables for autoconf, automake, etc. given by
18227         the user.
18228
18229 2010-04-02  Bruno Haible  <bruno@clisp.org>
18230
18231         gnulib-tool: Provide the value of --m4-base to modules.
18232         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18233         of gl_m4_base.
18234
18235 2010-04-02  Eric Blake  <eblake@redhat.com>
18236
18237         maint.mk: fix some fallout
18238         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18239         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18240
18241 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18242
18243         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18244         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18245         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18246         (sc_cast_of_x_alloc_return_value): Likewise.
18247         (sc_cast_of_alloca_return_value): Likewise.
18248         (sc_space_tab): Likewise.
18249         (sc_prohibit_atoi_atof): Likewise.
18250         (sc_prohibit_magic_number_exit): Likewise.
18251         (sc_error_exit_success): Likewise.
18252         (sc_file_system): Likewise.
18253         (sc_prohibit_have_config_h): Likewise.
18254         (sc_require_config_h): Likewise.
18255         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18256         (sc_obsolete_symbols): Likewise.
18257         (sc_changelog): Likewise.
18258         (sc_program_name): Likewise.
18259         (sc_the_the): Likewise.
18260         (sc_trailing_blank): Likewise.
18261         (sc_two_space_separator_in_usage): Likewise.
18262         (sc_useless_cpp_parens): Likewise.
18263         (sc_GPL_version): Likewise.
18264         (sc_GFDL_version): Likewise.
18265         (sc_texinfo_acronym): Likewise.
18266         (sc_prohibit_cvs_keyword): Likewise.
18267         (sc_prohibit_stat_st_blocks): Likewise.
18268         (sc_prohibit_S_IS_definition): Likewise.
18269         (sc_redundant_const): Likewise.
18270         (sc_makefile_TAB_only_indentation): Likewise.
18271         (sc_m4_quote_check): Likewise.
18272         (sc_makefile_path_separator_check): Likewise.
18273         (sc_copyright_check): Likewise.
18274         (sc_Wundef_boolean): Likewise.
18275         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18276
18277         maint.mk: match 0 or more whitespace-before-function-call '('
18278         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18279         that have zero or two-and-more spaces between the function name
18280         and the open parenthesis.
18281         (sc_error_message_warn_fatal): Likewise.
18282         (sc_error_message_uppercase): Likewise.
18283         (sc_error_message_period): Likewise.
18284
18285 2010-03-31  Eric Blake  <eblake@redhat.com>
18286
18287         maint.mk: check for [ as well as test
18288         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18289         Based on a libvirt report by Matthias Bolte.
18290
18291         gnumakefile: don't squelch _version output
18292         * top/GNUmakefile (_version): Create one-shot dependency rather
18293         than using $(shell) when version must be regenerated.
18294         (_autoreconf): Run verbosely, by default.
18295
18296         sys_time: avoid compiler warnings
18297         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18298         unconditional, fixing regression from 2010-03-29.
18299         Reported by Simon Josefsson.
18300
18301 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18302
18303         maint.mk: s/_header_without_use/_sc_header_without_use/
18304         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18305         (sc_prohibit_assert_without_use): Use the new name.
18306         (sc_prohibit_close_stream_without_use): Likewise.
18307         (sc_prohibit_getopt_without_use): Likewise.
18308         (sc_prohibit_quotearg_without_use): Likewise.
18309         (sc_prohibit_quote_without_use): Likewise.
18310         (sc_prohibit_long_options_without_use): Likewise.
18311         (sc_prohibit_inttostr_without_use): Likewise.
18312         (sc_prohibit_ignore_value_without_use): Likewise.
18313         (sc_prohibit_error_without_use): Likewise.
18314         (sc_prohibit_xalloc_without_use): Likewise.
18315         (sc_prohibit_hash_without_use): Likewise.
18316         (sc_prohibit_hash_pjw_without_use): Likewise.
18317         (sc_prohibit_safe_read_without_use): Likewise.
18318         (sc_prohibit_argmatch_without_use): Likewise.
18319         (sc_prohibit_canonicalize_without_use): Likewise.
18320         (sc_prohibit_root_dev_ino_without_use): Likewise.
18321         (sc_prohibit_openat_without_use): Likewise.
18322         (sc_prohibit_c_ctype_without_use): Likewise.
18323         (sc_prohibit_signal_without_use): Likewise.
18324         (sc_prohibit_intprops_without_use): Likewise.
18325
18326 2010-03-30  Eric Blake  <eblake@redhat.com>
18327
18328         maint: improve module indicators
18329         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18330         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18331         columns, and avoid extra macro expansion.
18332
18333         fdopendir: work around FreeBSD bug
18334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18335         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18336         * modules/dirent (Makefile.am): Substitute it.
18337         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18338         declaration.
18339         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18340         fix.
18341         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18342
18343 2010-03-29  Bruno Haible  <bruno@clisp.org>
18344
18345         Emit #pragma system_header after the inclusion guard, not before.
18346         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18347         guard that spans the entire file, not before. This enables an
18348         optimization in GCC's preprocessor.
18349         * lib/ctype.in.h: Likewise.
18350         * lib/dirent.in.h: Likewise.
18351         * lib/errno.in.h: Likewise.
18352         * lib/float.in.h: Likewise.
18353         * lib/getopt.in.h: Likewise.
18354         * lib/iconv.in.h: Likewise.
18355         * lib/langinfo.in.h: Likewise.
18356         * lib/locale.in.h: Likewise.
18357         * lib/math.in.h: Likewise.
18358         * lib/netdb.in.h: Likewise.
18359         * lib/netinet_in.in.h: Likewise.
18360         * lib/pty.in.h: Likewise.
18361         * lib/sched.in.h: Likewise.
18362         * lib/se-selinux.in.h: Likewise.
18363         * lib/search.in.h: Likewise.
18364         * lib/spawn.in.h: Likewise.
18365         * lib/stdarg.in.h: Likewise.
18366         * lib/stdint.in.h: Likewise.
18367         * lib/string.in.h: Likewise.
18368         * lib/strings.in.h: Likewise.
18369         * lib/sys_file.in.h: Likewise.
18370         * lib/sys_ioctl.in.h: Likewise.
18371         * lib/sys_time.in.h: Likewise.
18372         * lib/sys_times.in.h: Likewise.
18373         * lib/sys_utsname.in.h: Likewise.
18374         * lib/sys_wait.in.h: Likewise.
18375         * lib/sysexits.in.h: Likewise.
18376         * lib/wctype.in.h: Likewise.
18377
18378 2010-03-28  James Youngman  <jay@gnu.org>
18379
18380         save-cwd: don't leak a file descriptor when the caller execs.
18381         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18382         saved file descriptor.
18383         * modules/save-cwd (Depends-on): Depend on cloexec.
18384
18385 2010-03-29  Bruno Haible  <bruno@clisp.org>
18386
18387         Remove vestiges of fts-lgpl module.
18388         * lib/fts_.h: Assume GNULIB_FTS is 1.
18389         * lib/fts.c: Likewise.
18390         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18391
18392 2010-03-28  Bruno Haible  <bruno@clisp.org>
18393
18394         Fix definition of tests witness macro.
18395         * gnulib-tool (func_import): Fix definition of witness macro.
18396
18397 2010-03-28  Bruno Haible  <bruno@clisp.org>
18398
18399         Fix ioctl's protoype on glibc systems.
18400         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18401         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18402         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18403         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18404         signature. If not, arrange to replace the ioctl function.
18405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18406         REPLACE_IOCTL.
18407         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18408         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18409         Reported by Ludovic Courtès <ludo@gnu.org>.
18410
18411 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18412
18413         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18414         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18415         made it so grep -r --include=GLOB* ... did not work.
18416
18417 2010-03-26  Jim Meyering  <meyering@redhat.com>
18418             Eric Blake  <eblake@redhat.com>
18419
18420         maint.mk: prohibit use of test's -o and -a operators
18421         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18422
18423 2010-03-28  Bruno Haible  <bruno@clisp.org>
18424
18425         Remove unused GNULIB_XYZ macro definitions.
18426         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18427         invocation.
18428
18429 2010-03-28  Bruno Haible  <bruno@clisp.org>
18430
18431         Mark privileged tests modules.
18432         * modules/idpriv-drop-tests (Status): New section.
18433         * modules/idpriv-droptemp-tests (Status): New section.
18434
18435 2010-03-28  Bruno Haible  <bruno@clisp.org>
18436
18437         Split C++ tests into separate tests modules.
18438         * modules/dirent-c++-tests: New file, extracted from
18439         modules/dirent-tests.
18440         * modules/dirent-tests: Depend on it.
18441         * modules/fcntl-h-c++-tests: New file, extracted from
18442         modules/fcntl-h-tests.
18443         * modules/fcntl-h-tests: Depend on it.
18444         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18445         * modules/glob-tests: Depend on it.
18446         * modules/iconv-h-c++-tests: New file, extracted from
18447         modules/iconv-h-tests.
18448         * modules/iconv-h-tests: Depend on it.
18449         * modules/langinfo-c++-tests: New file, extracted from
18450         modules/langinfo-tests.
18451         * modules/langinfo-tests: Depend on it.
18452         * modules/locale-c++-tests: New file, extracted from
18453         modules/locale-tests.
18454         * modules/locale-tests: Depend on it.
18455         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18456         * modules/math-tests: Depend on it.
18457         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18458         * modules/pty-tests: Depend on it.
18459         * modules/search-c++-tests: New file, extracted from
18460         modules/search-tests.
18461         * modules/search-tests: Depend on it.
18462         * modules/signal-c++-tests: New file, extracted from
18463         modules/signal-tests.
18464         * modules/signal-tests: Depend on it.
18465         * modules/spawn-c++-tests: New file, extracted from
18466         modules/spawn-tests.
18467         * modules/spawn-tests: Depend on it.
18468         * modules/stdio-c++-tests: New file, extracted from
18469         modules/stdio-tests.
18470         * modules/stdio-tests: Depend on it.
18471         * modules/stdlib-c++-tests: New file, extracted from
18472         modules/stdlib-tests.
18473         * modules/stdlib-tests: Depend on it.
18474         * modules/string-c++-tests: New file, extracted from
18475         modules/string-tests.
18476         * modules/string-tests: Depend on it.
18477         * modules/sys_ioctl-c++-tests: New file, extracted from
18478         modules/sys_ioctl-tests.
18479         * modules/sys_ioctl-tests: Depend on it.
18480         * modules/sys_select-c++-tests: New file, extracted from
18481         modules/sys_select-tests.
18482         * modules/sys_select-tests: Depend on it.
18483         * modules/sys_socket-c++-tests: New file, extracted from
18484         modules/sys_socket-tests.
18485         * modules/sys_socket-tests: Depend on it.
18486         * modules/sys_stat-c++-tests: New file, extracted from
18487         modules/sys_stat-tests.
18488         * modules/sys_stat-tests: Depend on it.
18489         * modules/sys_time-c++-tests: New file, extracted from
18490         modules/sys_time-tests.
18491         * modules/sys_time-tests: Depend on it.
18492         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18493         * modules/time-tests: Depend on it.
18494         * modules/unistd-c++-tests: New file, extracted from
18495         modules/unistd-tests.
18496         * modules/unistd-tests: Depend on it.
18497         * modules/wchar-c++-tests: New file, extracted from
18498         modules/wchar-tests.
18499         * modules/wchar-tests: Depend on it.
18500         * modules/wctype-c++-tests: New file, extracted from
18501         modules/wctype-tests.
18502         * modules/wctype-tests: Depend on it.
18503         Reported by Simon Josefsson.
18504
18505 2010-03-28  Bruno Haible  <bruno@clisp.org>
18506
18507         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18508         * gnulib-tool (func_exists_module): New function, extracted from
18509         func_verify_module.
18510         (func_verify_module): Use it.
18511         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18512         'foo' only if 'foo' exists.
18513         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18514         module.
18515
18516 2010-03-28  Bruno Haible  <bruno@clisp.org>
18517
18518         gnulib-tool: Add support for special categories of tests.
18519         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18520         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18521         (func_usage): Document them.
18522         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18523         inc_unportable_tests, inc_all_tests): New variables.
18524         (func_acceptable): Consider these variables.
18525         (func_modules_transitive_closure): Make it work when the 'Status' field
18526         consists of multiple words.
18527         (func_import): Store and restore the values of inc_cxx_tests,
18528         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18529         inc_all_tests in gnulib-comp.m4.
18530         (func_create_testdir): Set inc_all_tests to true.
18531         * doc/gnulib.texi (Extra tests modules): New section.
18532         Suggested by Jim Meyering.
18533
18534 2010-03-28  Bruno Haible  <bruno@clisp.org>
18535
18536         ansi-c++-opt: Allow turning off the C++ build by default.
18537         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18538         gl_CXX_CHOICE_DEFAULT_NO is defined.
18539         Requested by Eric Blake.
18540
18541 2010-03-28  Bruno Haible  <bruno@clisp.org>
18542
18543         unistd: Avoid #define replacements in C++ mode.
18544         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18545         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18546         setsockopt, shutdown, select): In C++, attach a warning to the function
18547         if possible, rather than #defining the symbol to a dysfunctional alias.
18548         Reported by John W. Eaton <jwe@gnu.org>.
18549
18550 2010-03-28  Bruno Haible  <bruno@clisp.org>
18551
18552         Fix link errors on mingw.
18553         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18554         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18555         $(LIBSOCKET).
18556         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18557         $(LIBSOCKET).
18558
18559 2010-03-28  Bruno Haible  <bruno@clisp.org>
18560             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18561
18562         lib-ignore: Determine different options for different compilers.
18563         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18564         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18565         Add comments.
18566         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18567         * NEWS: Mention the change.
18568
18569 2010-03-27  Bruno Haible  <bruno@clisp.org>
18570
18571         Remove unused GNULIB_XYZ macro definitions.
18572         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18573         * modules/fseek (configure.ac): Likewise.
18574         * modules/ioctl (configure.ac): Likewise.
18575         * modules/open (configure.ac): Likewise.
18576         * modules/stdlib-safer (configure.ac): Likewise.
18577
18578 2010-03-27  Bruno Haible  <bruno@clisp.org>
18579
18580         Add a remark about certain modules.
18581         * modules/malloc (Comment): New section.
18582         * modules/realloc (Comment): Likewise.
18583         * modules/sigpipe (Comment): Likewise.
18584
18585 2010-03-27  Bruno Haible  <bruno@clisp.org>
18586
18587         Resolve conflict between the two kinds of module indicators.
18588         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18589         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18590         * modules/canonicalize (configure.ac): Invoke
18591         gl_MODULE_INDICATOR_FOR_TESTS.
18592         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18593         GNULIB_XYZ.
18594         * tests/test-dirent-c++.cc: Likewise.
18595         * tests/test-dirent-safer.c: Likewise.
18596         * tests/test-dup2.c: Likewise.
18597         * tests/test-fchdir.c: Likewise.
18598         * tests/test-fcntl-h-c++.cc: Likewise.
18599         * tests/test-getopt.c: Likewise.
18600         * tests/test-getopt.h: Likewise.
18601         * tests/test-langinfo-c++.cc: Likewise.
18602         * tests/test-locale-c++.cc: Likewise.
18603         * tests/test-math-c++.cc: Likewise.
18604         * tests/test-pty-c++.cc: Likewise.
18605         * tests/test-search-c++.cc: Likewise.
18606         * tests/test-signal-c++.cc: Likewise.
18607         * tests/test-spawn-c++.cc: Likewise.
18608         * tests/test-stdio-c++.cc: Likewise.
18609         * tests/test-stdlib-c++.cc: Likewise.
18610         * tests/test-string-c++.cc: Likewise.
18611         * tests/test-sys_ioctl-c++.cc: Likewise.
18612         * tests/test-sys_select-c++.cc: Likewise.
18613         * tests/test-sys_socket-c++.cc: Likewise.
18614         * tests/test-sys_stat-c++.cc: Likewise.
18615         * tests/test-sys_time-c++.cc: Likewise.
18616         * tests/test-time-c++.cc: Likewise.
18617         * tests/test-unistd-c++.cc: Likewise.
18618         * tests/test-wchar-c++.cc: Likewise.
18619         * tests/uninorm/test-u8-nfc.c: Likewise.
18620         * tests/uninorm/test-u8-nfd.c: Likewise.
18621         * tests/uninorm/test-u8-nfkc.c: Likewise.
18622         * tests/uninorm/test-u8-nfkd.c: Likewise.
18623         * tests/uninorm/test-u16-nfc.c: Likewise.
18624         * tests/uninorm/test-u16-nfd.c: Likewise.
18625         * tests/uninorm/test-u16-nfkc.c: Likewise.
18626         * tests/uninorm/test-u16-nfkd.c: Likewise.
18627         * tests/uninorm/test-u32-nfc.c: Likewise.
18628         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18629         * tests/uninorm/test-u32-nfd.c: Likewise.
18630         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18631         * tests/uninorm/test-u32-nfkc.c: Likewise.
18632         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18633         * tests/uninorm/test-u32-nfkd.c: Likewise.
18634         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18635         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18636
18637 2010-03-27  Bruno Haible  <bruno@clisp.org>
18638
18639         Distinguish two kinds of module indicators.
18640         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18641         gl_MODULE_INDICATOR.
18642         (gl_MODULE_INDICATOR): New macro.
18643         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18644         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18645         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18646         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18647         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18648         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18649         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18650         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18651         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18652         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18653         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18654         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18656         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18657         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18658         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18659         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18660         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18661         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18662         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18663         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18664         * modules/cloexec (configure.ac): Likewise.
18665         * modules/getopt-gnu (configure.ac): Likewise.
18666         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18667         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18668         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18669         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18670
18671 2010-03-27  Bruno Haible  <bruno@clisp.org>
18672
18673         New module description field 'Comment'.
18674         * gnulib-tool: New option --extract-comment.
18675         (func_usage): Document it.
18676         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18677         (func_get_comment): New function.
18678         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18679
18680 2010-03-27  Bruno Haible  <bruno@clisp.org>
18681
18682         Addendum to 2010-02-07 commit.
18683         * gnulib-tool (func_usage): Document --extract-applicability option.
18684
18685 2010-03-27  Bruno Haible  <bruno@clisp.org>
18686
18687         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18688         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18689         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18690         rather than link errors.
18691
18692 2010-03-27  Bruno Haible  <bruno@clisp.org>
18693
18694         Avoid side effects from tests-related modules on the compilation of lib.
18695         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18696         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18697         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18698         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18699         macro.
18700         (func_import): Define a witness macro. Assign it a value that depends
18701         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18702         tests-related modules.
18703         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18704         Reported by Jim Meyering.
18705
18706 2010-03-27  Bruno Haible  <bruno@clisp.org>
18707
18708         Factorize common .m4 code.
18709         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18710         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18711         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18712         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18713         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18714         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18715         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18716         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18717         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18718         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18719         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18720         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18721         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18722         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18723         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18724         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18725         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18726         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18727         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18728         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18729         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18730         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18731         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18732         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18733         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18734         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18735         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18737         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18738         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18739         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18740         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18741
18742 2010-03-27  Bruno Haible  <bruno@clisp.org>
18743
18744         Fix a compilation error on Cygwin with g++ >= 4.3.
18745         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18746         if it is undefined or if we alias it to chmod.
18747         (lstat): Don't warn about the use of this function if it is undefined
18748         or if we alias it to stat.
18749         Reported by Simon Josefsson.
18750
18751 2010-03-27  Bruno Haible  <bruno@clisp.org>
18752
18753         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18754         * modules/getlogin (configure.ac): Update.
18755
18756         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18757         * modules/getlogin_r (configure.ac): Update.
18758
18759         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18761         * modules/inet_ntop (configure.ac): Update.
18762
18763         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18764         * modules/inet_pton (configure.ac): Update.
18765
18766         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18767         * modules/mbslen (configure.ac): Update.
18768
18769         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18770         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18771         * modules/forkpty (configure.ac): Update.
18772         * modules/openpty (configure.ac): Update.
18773
18774 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18775
18776         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18777         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18778
18779 2010-03-25  Eric Blake  <eblake@redhat.com>
18780
18781         maint: use pragma consistently across replacement headers
18782         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18783         * lib/dirent.in.h (system_header): Likewise.
18784         * lib/errno.in.h (system_header): Likewise.
18785         * lib/float.in.h (system_header): Likewise.
18786         * lib/getopt.in.h (system_header): Likewise.
18787         * lib/iconv.in.h (system_header): Likewise.
18788         * lib/inttypes.in.h (system_header): Likewise.
18789         * lib/langinfo.in.h (system_header): Likewise.
18790         * lib/locale.in.h (system_header): Likewise.
18791         * lib/math.in.h (system_header): Likewise.
18792         * lib/netdb.in.h (system_header): Likewise.
18793         * lib/netinet_in.in.h (system_header): Likewise.
18794         * lib/pty.in.h (system_header): Likewise.
18795         * lib/sched.in.h (system_header): Likewise.
18796         * lib/se-selinux.in.h (system_header): Likewise.
18797         * lib/search.in.h (system_header): Likewise.
18798         * lib/spawn.in.h (system_header): Likewise.
18799         * lib/stdarg.in.h (system_header): Likewise.
18800         * lib/stdint.in.h (system_header): Likewise.
18801         * lib/string.in.h (system_header): Likewise.
18802         * lib/strings.in.h (system_header): Likewise.
18803         * lib/sys_file.in.h (system_header): Likewise.
18804         * lib/sys_ioctl.in.h (system_header): Likewise.
18805         * lib/sys_socket.in.h (system_header): Likewise.
18806         * lib/sys_times.in.h (system_header): Likewise.
18807         * lib/sys_utsname.in.h (system_header): Likewise.
18808         * lib/sys_wait.in.h (system_header): Likewise.
18809         * lib/sysexits.in.h (system_header): Likewise.
18810         * lib/unistd.in.h (system_header): Likewise.
18811         * lib/wctype.in.h (system_header): Likewise.
18812
18813         arpa/inet: fix mingw compilation warning
18814         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18815         Reported by Matthew Bolte.
18816
18817 2010-03-25  Bruno Haible  <bruno@clisp.org>
18818
18819         Avoid collision between gnulib wrapper and libintl wrapper.
18820         * lib/printf.c (printf): Don't define if a printf wrapper is already
18821         defined in intl/printf.c.
18822         Reported by Michel Boaventura <michel@michelboaventura.com>.
18823
18824 2010-03-25  Bruno Haible  <bruno@clisp.org>
18825
18826         Use ANSI C.
18827         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18828
18829 2010-03-25  Bruno Haible  <bruno@clisp.org>
18830
18831         Minor formatting changes.
18832         * lib/acosl.c: Insert space before function argument list.
18833         * lib/argz.c: Likewise.
18834         * lib/asinl.c: Likewise.
18835         * lib/expl.c: Likewise.
18836         * lib/gen-uni-tables.c: Likewise.
18837         * lib/gettext.h: Likewise.
18838         * lib/glthread/lock.h: Likewise.
18839         * lib/tanl.c: Likewise.
18840         * lib/uniname/uniname.c: Likewise.
18841         * tests/test-idpriv-drop.c: Likewise.
18842         * tests/test-idpriv-droptemp.c: Likewise.
18843         * tests/test-lock.c: Likewise.
18844         * tests/test-tls.c: Likewise.
18845         * lib/argp-help.c: Insert space before function-like macro argument
18846         list.
18847         * lib/memcmp.c: Likewise.
18848         * tests/test-base64.c: Likewise.
18849         * lib/localename.c: Insert space before sizeof's argument list.
18850         * lib/safe-alloc.h: Likewise.
18851         * lib/file-set.h: Insert space before macro argument list.
18852         * tests/test-argp.c: Likewise.
18853         * lib/argp-namefrob.h: Insert space before function parameter list.
18854         * lib/getaddrinfo.c: Likewise.
18855         * lib/netdb.in.h: Likewise.
18856         * lib/parse-duration.h: Likewise.
18857         * lib/parse-duration.c: Likewise.
18858         * lib/poll.c: Likewise.
18859         * lib/select.c: Likewise.
18860         * lib/trim.h: Likewise.
18861         * tests/test-usleep.c: Likewise.
18862         * lib/ldexpl.c: Insert space before function parameter list and before
18863         function argument list.
18864         * lib/logl.c: Likewise.
18865         * lib/sqrtl.c: Likewise.
18866         * lib/trim.c: Likewise.
18867         * lib/cosl.c: Use GNU style indentation. Insert space before function
18868         argument list.
18869         * lib/sinl.c: Likewise.
18870         * lib/tsearch.c: Insert space after 'for'.
18871         Reported by Jim Meyering.
18872
18873 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18874
18875         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18876         config header before grepping, as it's not present before
18877         autoreconf/configure are run.  Reported by Simon Josefsson.
18878
18879 2010-03-23  Bruno Haible  <bruno@clisp.org>
18880
18881         pt_chown: Make it work with automake < 1.11.
18882         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18883         Reported by Simon Josefsson.
18884
18885 2010-03-23  Bruno Haible  <bruno@clisp.org>
18886
18887         pt_chown: Don't depend on GPLed modules.
18888         * lib/pt_chown.c: Don't include idpriv.h.
18889         (main): Don't drop privileges.
18890         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18891         Reported by Simon Josefsson.
18892
18893 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18894
18895         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18896         suggestions from karl@freefriends.org (Karl Berry).
18897
18898 2010-03-22  Eric Blake  <eblake@redhat.com>
18899
18900         gethostname: further tweaks
18901         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18902         are overriding gethostname.
18903         Suggested by Bruno Haible.
18904
18905 2010-03-21  Bruno Haible  <bruno@clisp.org>
18906
18907         Fix comments.
18908         * lib/forkpty.c (rpl_forkpty): Fix comment.
18909         * lib/openpty.c (rpl_openpty): Likewise.
18910         Reported by Eric Blake.
18911
18912 2010-03-22  Eric Blake  <eblake@redhat.com>
18913
18914         gethostname: fix build on mingw
18915         * lib/unistd.in.h (includes): Work around fact that mingw
18916         <winsock2.h> re-includes <unistd.h>, by avoiding any
18917         redeclarations if we are being included by <winsock2.h>.
18918         Reported by Matthias Bolte.
18919
18920 2010-03-21  Bruno Haible  <bruno@clisp.org>
18921
18922         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18923         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18924         modifications.
18925         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18926         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18927         provide the replacement.
18928         * modules/forkpty (Depends-on): Add openpty, login_tty.
18929         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18930         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18931         * doc/glibc-functions/forkpty.texi: More supported platforms.
18932         * config/srclist.txt: Add forkpty.c (commented).
18933
18934 2010-03-21  Bruno Haible  <bruno@clisp.org>
18935
18936         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18937         (Makefile.am): Verify that PTY_LIB is defined.
18938
18939         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18940
18941 2010-03-21  Bruno Haible  <bruno@clisp.org>
18942
18943         Tests for module 'login_tty'.
18944         * modules/login_tty-tests: New file.
18945         * tests/test-login_tty.c: New file.
18946
18947         New module 'login_tty'.
18948         * lib/login_tty.c: New file.
18949         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18950         * modules/login_tty: New file.
18951         * doc/glibc-functions/login_tty.texi: Mention the new module.
18952
18953 2010-03-21  Bruno Haible  <bruno@clisp.org>
18954
18955         login_tty: Documentation.
18956         * doc/glibc-functions/login_tty.texi: New file.
18957         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18958
18959 2010-03-21  Bruno Haible  <bruno@clisp.org>
18960
18961         pty: Consistent macro naming.
18962         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18963         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18964         * modules/pty (configure.ac): Update.
18965
18966 2010-03-21  Bruno Haible  <bruno@clisp.org>
18967
18968         Tests for openpty: Make stricter.
18969         * tests/test-openpty.c (main): Add test of canonical processing and
18970         erase.
18971         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18972
18973         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18974         * lib/openpty.c (openpty): New replacement function.
18975         * lib/pty.in.h: Include <termios.h>.
18976         (openpty): Update declaration. Add comments.
18977         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18978         is not declared, arrange to provide the replacement. Check for _getpty
18979         and posix_openpt.
18980         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18981         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18982         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18983         * modules/pty-tests (test_pty_c___LDADD): New variable.
18984         * doc/glibc-functions/openpty.texi: More supported platforms.
18985
18986 2010-03-21  Bruno Haible  <bruno@clisp.org>
18987
18988         setenv: Tweaks.
18989         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18990         the test program.
18991         * doc/posix-functions/setenv.texi: Update platforms list.
18992
18993 2010-03-21  Bruno Haible  <bruno@clisp.org>
18994
18995         New module 'unlockpt'.
18996         * lib/unlockpt.c: New file, from glibc with modifications.
18997         * m4/unlockpt.m4: New file.
18998         * modules/unlockpt: New file.
18999         * lib/stdlib.in.h (unlockpt): New declaration.
19000         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19001         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19002         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19003         HAVE_UNLOCKPT.
19004         * doc/posix-functions/unlockpt.texi: Mention the new module.
19005         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19006         * config/srclist.txt: Add unlockpt.c (commented).
19007
19008 2010-03-21  Jim Meyering  <meyering@redhat.com>
19009
19010         maint.mk: prohibit inclusion of "intprops.h" without use
19011         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19012
19013 2010-03-21  Bruno Haible  <bruno@clisp.org>
19014
19015         New module 'grantpt'.
19016         * lib/grantpt.c: New file, from glibc with modifications.
19017         * m4/grantpt.m4: New file.
19018         * modules/grantpt: New file.
19019         * lib/stdlib.in.h (grantpt): New declaration.
19020         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19021         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19022         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19023         HAVE_GRANTPT.
19024         * doc/posix-functions/grantpt.texi: Mention the new module.
19025         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19026         * config/srclist.txt: Add grantpt.c (commented).
19027
19028 2010-03-21  Bruno Haible  <bruno@clisp.org>
19029
19030         New module 'pt_chown'.
19031         * lib/pt_chown.c: New file, from glibc with modifications.
19032         * lib/pty-private.h: New file, from glibc with modifications.
19033         * modules/pt_chown: New file.
19034         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19035
19036 2010-03-21  Bruno Haible  <bruno@clisp.org>
19037
19038         Tests for module 'ptsname'.
19039         * modules/ptsname-tests: New file.
19040         * tests/test-ptsname.c: New file.
19041
19042         New module 'ptsname'.
19043         * lib/ptsname.c: New file, from glibc with modifications.
19044         * m4/ptsname.m4: New file.
19045         * modules/ptsname: New file.
19046         * lib/stdlib.in.h (ptsname): New declaration.
19047         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19048         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19049         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19050         HAVE_PTSNAME.
19051         * doc/posix-functions/ptsname.texi: Mention the new module.
19052         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19053         * config/srclist.txt: Add ptsname.c (commented).
19054
19055 2010-03-21  Bruno Haible  <bruno@clisp.org>
19056
19057         Tests for module 'ttyname_r'.
19058         * modules/ttyname_r-tests: New file.
19059         * tests/test-ttyname_r.c: New file.
19060
19061         New module 'ttyname_r'.
19062         * lib/ttyname_r.c: New file.
19063         * m4/ttyname_r.m4: New file.
19064         * modules/ttyname_r: New file.
19065         * lib/unistd.in.h (ttyname_r): New declaration.
19066         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19067         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19068         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19069         HAVE_TTYNAME_R.
19070         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19071         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19072
19073 2010-03-20  Bruno Haible  <bruno@clisp.org>
19074
19075         signal: Undefine macro definitions in C++ mode.
19076         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19077         sigfillset): Undefine macro definitions from the system header in C++
19078         mode.
19079         Reported by John W. Eaton <jwe@gnu.org>.
19080
19081 2010-03-20  Bruno Haible  <bruno@clisp.org>
19082
19083         Ensure no #include statements inside extern "C" { ... }.
19084         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19085         contain #include statements.
19086         * lib/time.in.h: Likewise.
19087
19088 2010-03-20  Bruno Haible  <bruno@clisp.org>
19089
19090         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19091         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19092         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19093         Reported by John W. Eaton <jwe@gnu.org>.
19094
19095 2010-03-20  Bruno Haible  <bruno@clisp.org>
19096
19097         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19098         Reported by Jim Meyering.
19099
19100 2010-03-20  Bruno Haible  <bruno@clisp.org>
19101
19102         pipe: Set errno upon failure.
19103         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19104         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19105         errno value in error message.
19106
19107 2010-03-20  Bruno Haible  <bruno@clisp.org>
19108             Jim Meyering  <meyering@redhat.com>
19109
19110         lchown: Avoid "unused variable" warning.
19111         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19112
19113 2010-03-20  Bruno Haible  <bruno@clisp.org>
19114
19115         Work around unlink() bug on MacOS X 10.5.6.
19116         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19117         attempting to unlink a parent directory.
19118         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19119         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19120         activate for the replacement function.
19121         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19122
19123 2010-03-20  Bruno Haible  <bruno@clisp.org>
19124
19125         Fix link errors on Solaris 8.
19126         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19127         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19128
19129 2010-03-19  Jim Meyering  <meyering@redhat.com>
19130
19131         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19132         The _LIBC implementation of build_range_exp correctly honors the
19133         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19134         However, the non-_LIBC implementation would ignore that syntax-bit
19135         flag and return REG_ERANGE unconditionally.
19136         This change makes it honor that flag.
19137         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19138         Make two pointer parameters "const".
19139         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19140         (parse_bracket_exp): Update caller.
19141
19142         regex.m4: correct the reversed range endpoint ([b-a]) test
19143         * m4/regex.m4: When requiring that [b-a] evoke failure,
19144         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19145         test pass once again for x86-based systems.
19146
19147 2010-03-19  Bruno Haible  <bruno@clisp.org>
19148
19149         scandir: Fix link error on Solaris 8.
19150         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19151         macros.
19152
19153 2010-03-19  Bruno Haible  <bruno@clisp.org>
19154
19155         getusershell: Fix documentation.
19156         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19157         module.
19158         * doc/glibc-functions/setusershell.texi: Likewise.
19159
19160         getusershell: Provide declaration, missing on Solaris 9.
19161         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19162         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19163         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19164         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19166         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19167         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19168         HAVE_GETUSERSHELL.
19169         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19170
19171 2010-03-19  Bruno Haible  <bruno@clisp.org>
19172
19173         wctype: Provide iswblank function.
19174         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19175         exists and is fine.
19176         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19177         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19178         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19179         * doc/posix-functions/iswblank.texi: Update.
19180
19181 2010-03-19  Bruno Haible  <bruno@clisp.org>
19182
19183         Tests of module 'pty' in C++ mode.
19184         * modules/pty-tests: New file.
19185         * tests/test-pty-c++.cc: New file.
19186         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19187
19188 2010-03-19  Eric Blake  <eblake@redhat.com>
19189
19190         logb: fix documentation
19191         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19192         1.5 declaration bug.
19193
19194         forkpty, openpty: prefer glibc's const-safe prototype
19195         * lib/forkpty.c (rpl_forkpty): New file.
19196         * lib/openpty.c (rpl_openpty): Likewise.
19197         * modules/forkpty (Files): Distribute it.
19198         * modules/openpty (Files): Likewise.
19199         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19200         check...
19201         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19202         replacement for for non-const BSD signature.
19203         * modules/pty (Makefile.am): Substitute witnesses.
19204         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19205         * tests/test-forkpty.c: Update signature check.
19206         * tests/test-openpty.c: Likewise.
19207         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19208         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19209
19210         forkpty, openpty: split functions into new modules
19211         * modules/pty (Makefile.am): Substitute new witnesses.
19212         (Libraries): Move library detection...
19213         * modules/forkpty: ...into new module.
19214         * modules/openpty: Another new module.
19215         * modules/pty-tests: Rename and split...
19216         * modules/forkpty-tests: ...to this...
19217         * modules/openpty-tests: ...and this.
19218         * tests/test-pty.c: Rename and split...
19219         * tests/test-forkpty.c: ...to this...
19220         * tests/test-openpty.c: ...and this.
19221         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19222         (gl_PTY): Split library searching...
19223         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19224         (gl_FORKPTY, gl_OPENPTY): New macros.
19225         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19226         * NEWS: Mention the split.
19227         * MODULES.html.sh (Misc): Document the modules.
19228         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19229         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19230
19231         pty: improve replacement header
19232         * lib/pty.in.h: New file.
19233         * modules/pty (Files): Ship it.
19234         (Makefile.am): Always build replacement.
19235         * m4/pty.m4: Rename...
19236         * m4/pty_h.m4: ...to this.
19237         (gl_PTY): Modernize setting of witness macros; update check of
19238         forkpty to take proper advantage of cache.
19239         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19240
19241         getopt: avoid compiler warning
19242         * lib/getopt.c (attribute_hidden): Remove unused macro.
19243
19244 2010-03-18  Bruno Haible  <bruno@clisp.org>
19245
19246         Fix link errors on Solaris 8.
19247         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19248         * modules/search-tests (test_search_c___LDADD): Likewise.
19249         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19250         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19251         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19252         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19253         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19254         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19255         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19256
19257 2010-03-18  Bruno Haible  <bruno@clisp.org>
19258
19259         Fix bug introduced on 2010-03-14.
19260         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19261         (gl_SPAWN_H): Require it.
19262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19263         Reported by Simon Josefsson.
19264
19265 2010-03-18  Bruno Haible  <bruno@clisp.org>
19266
19267         Fix typo introduced on 2009-12-31.
19268         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19269         posix_spawn_file_actions_adddup2.
19270
19271 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19272         and Eric Blake  <eblake@redhat.com>
19273
19274         test-vc-list-files-git: make more robust
19275         * tests/test-vc-list-files-git.sh: Unset problematic environment
19276         variables.  Chain commands together.
19277
19278 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19279
19280         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19281         `AC_CHECK_DECL' invocation.
19282
19283 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19284
19285         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19286         appears before executable statements. Suggested by Petr Sumbera
19287         <Petr.Sumbera@Sun.COM>.
19288
19289 2010-03-14  Bruno Haible  <bruno@clisp.org>
19290
19291         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19292         portability problems. Instead use a simpler test.
19293         (main): Check that invalid arguments are rejected only on Linux.
19294
19295 2010-03-14  Bruno Haible  <bruno@clisp.org>
19296
19297         Fix bug introduced on 2009-12-31.
19298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19299         gl_PREREQ_SYS_H_WINSOCK2 always.
19300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19301         SYS_SOCKET_H variable.
19302         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19303         Update comments.
19304         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19305         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19306         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19307         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19308         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19309
19310 2010-03-14  Bruno Haible  <bruno@clisp.org>
19311
19312         Fix values returned by sinl, cosl.
19313         * lib/trigl.h: Add specification comments.
19314         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19315         that combines the values from the precomputed table with the values of
19316         the Chebyshev polynomials.
19317
19318 2010-03-14  Bruno Haible  <bruno@clisp.org>
19319
19320         Fix compilation error when modules 'posix_spawn[p]' are not used.
19321         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19323
19324 2010-03-14  Bruno Haible  <bruno@clisp.org>
19325
19326         Fix compilation error on mingw when module 'time_r' is not used.
19327         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19328         is 1.
19329         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19330         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19331         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19333
19334 2010-03-14  Bruno Haible  <bruno@clisp.org>
19335
19336         Fix compilation error with Sun C.
19337         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19338         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19339         instead of GCC specific ULONG_LONG_MAX.
19340         * lib/xstrtoll.c: Likewise.
19341         * lib/xstrtoull.c: Likewise.
19342
19343 2010-03-13  Bruno Haible  <bruno@clisp.org>
19344
19345         Allow the user to disable C++ code and tests.
19346         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19347         (gl_PROG_ANSI_CXX): Require it.
19348
19349 2010-03-13  Bruno Haible  <bruno@clisp.org>
19350
19351         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19352         cases.
19353
19354 2010-03-13  Bruno Haible  <bruno@clisp.org>
19355
19356         Test that gnulib does not break the standard C++ headers.
19357         * tests/test-locale-c++2.cc: New file.
19358         * modules/locale-tests (Files): Add it.
19359         (Makefile.am): Compile it for test-locale-c++.
19360         * tests/test-math-c++2.cc: New file.
19361         * modules/math-tests (Files): Add it.
19362         (Makefile.am): Compile it for test-math-c++.
19363         * tests/test-signal-c++2.cc: New file.
19364         * modules/signal-tests (Files): Add it.
19365         (Makefile.am): Compile it for test-signal-c++.
19366         * tests/test-stdio-c++2.cc: New file.
19367         * modules/stdio-tests (Files): Add it.
19368         (Makefile.am): Compile it for test-stdio-c++.
19369         * tests/test-stdlib-c++2.cc: New file.
19370         * modules/stdlib-tests (Files): Add it.
19371         (Makefile.am): Compile it for test-stdlib-c++.
19372         * tests/test-string-c++2.cc: New file.
19373         * modules/string-tests (Files): Add it.
19374         (Makefile.am): Compile it for test-string-c++.
19375         * tests/test-time-c++2.cc: New file.
19376         * modules/time-tests (Files): Add it.
19377         (Makefile.am): Compile it for test-time-c++.
19378         Reported by John W. Eaton <jwe@gnu.org>.
19379
19380 2010-03-13  Bruno Haible  <bruno@clisp.org>
19381
19382         * gnulib-tool (func_usage): Clarify which options are available for
19383         --create-testdir and --create-megatestdir.
19384
19385 2010-03-13  Bruno Haible  <bruno@clisp.org>
19386
19387         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19388         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19389         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19390         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19391         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19392         when appropriate.
19393         Reported by Jim Meyering.
19394
19395 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19396
19397         * gnulib-tool (func_import): Explain origin of code.
19398
19399 2010-03-12  Bruno Haible  <bruno@clisp.org>
19400
19401         Fix problem with automake's definition of CXXLINK.
19402         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19403         Reported by Simon Josefsson and Ludovic Courtès.
19404
19405 2010-03-12  Bruno Haible  <bruno@clisp.org>
19406
19407         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19408         stable releases.
19409
19410 2010-03-11  Bruno Haible  <bruno@clisp.org>
19411
19412         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19413         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19414         whether the system provides one variant or multiple variants of the
19415         function.
19416         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19417         C++ compilers.
19418         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19419         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19420         Reported by Jim Meyering.
19421
19422 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19423
19424         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19425
19426 2010-03-08  Bruno Haible  <bruno@clisp.org>
19427
19428         gnulib-tool: Add support for --libtool in --create-testdir.
19429         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19430         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19431
19432 2010-03-08  Eric Blake  <eblake@redhat.com>
19433
19434         gnulib-tool.texi: mention possibility of git submodule
19435         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19436         submodules.
19437         * doc/.gitignore: Ignore another generated file.
19438
19439 2010-03-08  Karl Berry  <karl@gnu.org>
19440
19441         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19442         of committing gnulib files while skipping others.
19443
19444 2010-03-07  Bruno Haible  <bruno@clisp.org>
19445
19446         Tests of module 'wctype' in C++ mode.
19447         * tests/test-wctype-c++.cc: New file.
19448         * modules/wctype-tests (Files): Add it and tests/signature.h.
19449         (Depends-on): Add ansi-c++-opt.
19450         (Makefile.am): Arrange to compile and run test-wctype-c++.
19451
19452         Tests of module 'wchar' in C++ mode.
19453         * tests/test-wchar-c++.cc: New file.
19454         * modules/wchar-tests (Files): Add it and tests/signature.h.
19455         (Depends-on): Add ansi-c++-opt.
19456         (Makefile.am): Arrange to compile and run test-wchar-c++.
19457         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19458         gl_MODULE_INDICATOR.
19459
19460         Tests of module 'unistd' in C++ mode.
19461         * tests/test-unistd-c++.cc: New file.
19462         * modules/unistd-tests (Files): Add it and tests/signature.h.
19463         (Depends-on): Add ansi-c++-opt.
19464         (Makefile.am): Arrange to compile and run test-unistd-c++.
19465         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19466         gl_MODULE_INDICATOR.
19467
19468         Tests of module 'time' in C++ mode.
19469         * tests/test-time-c++.cc: New file.
19470         * modules/time-tests (Files): Add it and tests/signature.h.
19471         (Depends-on): Add ansi-c++-opt.
19472         (Makefile.am): Arrange to compile and run test-time-c++.
19473         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19474
19475         Tests of module 'sys_time' in C++ mode.
19476         * tests/test-sys_time-c++.cc: New file.
19477         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19478         (Depends-on): Add ansi-c++-opt.
19479         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19480         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19481         gl_MODULE_INDICATOR.
19482
19483         Tests of module 'sys_stat' in C++ mode.
19484         * tests/test-sys_stat-c++.cc: New file.
19485         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19486         (Depends-on): Add ansi-c++-opt.
19487         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19488         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19489         gl_MODULE_INDICATOR.
19490
19491         Tests of module 'sys_socket' in C++ mode.
19492         * tests/test-sys_socket-c++.cc: New file.
19493         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19494         (Depends-on): Add ansi-c++-opt.
19495         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19497         gl_MODULE_INDICATOR.
19498
19499         Tests of module 'sys_select' in C++ mode.
19500         * tests/test-sys_select-c++.cc: New file.
19501         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19502         (Depends-on): Add ansi-c++-opt.
19503         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19504         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19505         gl_MODULE_INDICATOR.
19506
19507         Tests of module 'sys_ioctl' in C++ mode.
19508         * tests/test-sys_ioctl-c++.cc: New file.
19509         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19510         (Depends-on): Add ansi-c++-opt.
19511         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19512         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19513         gl_MODULE_INDICATOR.
19514
19515         Tests of module 'string' in C++ mode.
19516         * tests/test-string-c++.cc: New file.
19517         * modules/string-tests (Files): Add it and tests/signature.h.
19518         (Depends-on): Add ansi-c++-opt.
19519         (Makefile.am): Arrange to compile and run test-string-c++.
19520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19521         gl_MODULE_INDICATOR.
19522
19523         Tests of module 'stdlib' in C++ mode.
19524         * tests/test-stdlib-c++.cc: New file.
19525         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19526         (Depends-on): Add ansi-c++-opt.
19527         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19528         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19529         gl_MODULE_INDICATOR.
19530
19531         Tests of module 'stdio' in C++ mode.
19532         * tests/test-stdio-c++.cc: New file.
19533         * modules/stdio-tests (Files): Add it and tests/signature.h.
19534         (Depends-on): Add ansi-c++-opt.
19535         (Makefile.am): Arrange to compile and run test-stdio-c++.
19536         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19537         gl_MODULE_INDICATOR.
19538
19539         Tests of module 'spawn' in C++ mode.
19540         * tests/test-spawn-c++.cc: New file.
19541         * modules/spawn-tests (Files): Add it and tests/signature.h.
19542         (Depends-on): Add ansi-c++-opt.
19543         (Makefile.am): Arrange to compile and run test-spawn-c++.
19544         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19545         gl_MODULE_INDICATOR.
19546
19547         Tests of module 'signal' in C++ mode.
19548         * tests/test-signal-c++.cc: New file.
19549         * modules/signal-tests (Files): Add it and tests/signature.h.
19550         (Depends-on): Add ansi-c++-opt.
19551         (Makefile.am): Arrange to compile and run test-signal-c++.
19552         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19553         gl_MODULE_INDICATOR.
19554
19555         Tests of module 'search' in C++ mode.
19556         * tests/test-search-c++.cc: New file.
19557         * modules/search-tests (Files): Add it and tests/signature.h.
19558         (Depends-on): Add ansi-c++-opt.
19559         (Makefile.am): Arrange to compile and run test-search-c++.
19560         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19561         gl_MODULE_INDICATOR.
19562
19563         Tests of module 'math' in C++ mode.
19564         * tests/test-math-c++.cc: New file.
19565         * modules/math-tests (Files): Add it and tests/signature.h.
19566         (Depends-on): Add ansi-c++-opt.
19567         (Makefile.am): Arrange to compile and run test-math-c++.
19568         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19569
19570         Tests of module 'locale' in C++ mode.
19571         * tests/test-locale-c++.cc: New file.
19572         * modules/locale-tests (Files): Add it and tests/signature.h.
19573         (Depends-on): Add ansi-c++-opt.
19574         (Makefile.am): Arrange to compile and run test-locale-c++.
19575         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19576         gl_MODULE_INDICATOR.
19577
19578         Tests of module 'langinfo' in C++ mode.
19579         * tests/test-langinfo-c++.cc: New file.
19580         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19581         (Depends-on): Add ansi-c++-opt.
19582         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19583         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19584         gl_MODULE_INDICATOR.
19585
19586         Tests of module 'iconv-h' in C++ mode.
19587         * tests/test-iconv-h-c++.cc: New file.
19588         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19589         (Depends-on): Add ansi-c++-opt.
19590         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19591
19592         Tests of module 'glob' in C++ mode.
19593         * tests/test-glob-c++.cc: New file.
19594         * modules/glob-tests (Files): Add it.
19595         (Depends-on): Add ansi-c++-opt.
19596         (Makefile.am): Arrange to compile and run test-glob-c++.
19597
19598         Tests of module 'fcntl-h' in C++ mode.
19599         * tests/test-fcntl-h-c++.cc: New file.
19600         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19601         (Depends-on): Add ansi-c++-opt.
19602         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19603         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19604         gl_MODULE_INDICATOR.
19605
19606         Tests of module 'dirent' in C++ mode.
19607         * tests/test-dirent-c++.cc: New file.
19608         * modules/dirent-tests (Files): Add it and tests/signature.h.
19609         (Depends-on): Add ansi-c++-opt.
19610         (Makefile.am): Arrange to compile and run test-dirent-c++.
19611         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19612         gl_MODULE_INDICATOR.
19613
19614         New module 'ansi-c++-opt'.
19615         * modules/ansi-c++-opt: New file.
19616         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19617
19618         Document C++ namespace mode.
19619         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19620
19621         wctype: Avoid #define replacements in C++ mode.
19622         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19623         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19624         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19625         In C++, define a namespaced alias symbol.
19626         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19627         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19628         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19629         rule.
19630
19631         wchar: Avoid #define replacements in C++ mode.
19632         * lib/wchar.in.h: Include c++defs.h.
19633         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19634         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19635         symbol.
19636         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19637         * modules/wchar (Depends-on): Add c++defs.
19638         (Makefile.am): Update wchar.h rule.
19639
19640         unistd: Avoid #define replacements in C++ mode.
19641         * lib/unistd.in.h: Include c++defs.h.
19642         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19643         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19644         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19645         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19646         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19647         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19648         symbol.
19649         (environ): Update.
19650         * modules/unistd (Depends-on): Add c++defs.
19651         (Makefile.am): Update unistd.h rule.
19652
19653         time: Avoid #define replacements in C++ mode.
19654         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19655         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19656         define a namespaced alias symbol.
19657         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19658         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19659         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19660         * modules/time (Depends-on): Add c++defs, warn-on-use.
19661         (Makefile.am): Update time.h rule.
19662         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19663         * modules/nanosleep (configure.ac): Likewise.
19664         * modules/strptime (configure.ac): Likewise.
19665         * modules/timegm (configure.ac): Likewise.
19666
19667         sys_time: Avoid #define replacements in C++ mode.
19668         * lib/sys_time.in.h: Include c++defs.h.
19669         (gettimeofday): In C++, define a namespaced alias symbol.
19670         * modules/sys_time (Depends-on): Add c++defs.
19671         (Makefile.am): Update sys/time.h rule.
19672
19673         sys_stat: Avoid #define replacements in C++ mode.
19674         * lib/sys_stat.in.h: Include c++defs.h.
19675         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19676         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19677         namespaced alias symbol.
19678         In C++, define a namespaced alias symbol.
19679         * modules/sys_stat (Depends-on): Add c++defs.
19680         (Makefile.am): Update sys/stat.h rule.
19681
19682         sys_socket: Avoid #define replacements in C++ mode.
19683         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19684         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19685         definitions also when the system has a <sys/socket.h>.
19686         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19687         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19688         In C++, define a namespaced alias symbol.
19689         * modules/sys_socket (Depends-on): Add c++defs.
19690         (Makefile.am): Update sys/socket.h rule.
19691
19692         sys_select: Avoid #define replacements in C++ mode.
19693         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19694         definitions also when the system has a <sys/select.h>.
19695         (select): In C++, define a namespaced alias symbol.
19696         * modules/sys_select (Depends-on): Add c++defs.
19697         (Makefile.am): Update sys/select.h rule.
19698
19699         sys_ioctl: Avoid #define replacements in C++ mode.
19700         * lib/sys_ioctl.in.h: Include c++defs.h.
19701         (ioctl): In C++, define a namespaced alias symbol.
19702         * modules/sys_ioctl (Depends-on): Add c++defs.
19703         (Makefile.am): Update sys/ioctl.h rule.
19704
19705         string: Avoid #define replacements in C++ mode.
19706         * lib/string.in.h: Include c++defs.h.
19707         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19708         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19709         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19710         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19711         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19712         * modules/string (Depends-on): Add c++defs.
19713         (Makefile.am): Update string.h rule.
19714
19715         stdlib: Avoid #define replacements in C++ mode.
19716         * lib/stdlib.in.h: Include c++defs.h.
19717         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19718         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19719         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19720         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19721         symbol.
19722         * modules/stdlib (Depends-on): Add c++defs.
19723         (Makefile.am): Update stdlib.h rule.
19724
19725         stdio: Avoid #define replacements in C++ mode.
19726         * lib/stdio.in.h: Include c++defs.h.
19727         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19728         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19729         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19730         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19731         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19732         namespaced alias symbol.
19733         * modules/stdio (Depends-on): Add c++defs.
19734         (Makefile.am): Update stdio.h rule.
19735
19736         spawn: Avoid #define replacements in C++ mode.
19737         * lib/spawn.in.h: Include c++defs.h.
19738         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19739         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19740         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19741         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19742         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19743         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19744         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19745         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19746         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19747         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19748         In C++, define a namespaced alias symbol.
19749         * modules/spawn (Depends-on): Add c++defs.
19750         (Makefile.am): Update spawn.h rule.
19751
19752         signal: Avoid #define replacements in C++ mode.
19753         * lib/signal.in.h: Include c++defs.h.
19754         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19755         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19756         namespaced alias symbol.
19757         * modules/signal (Depends-on): Add c++defs.
19758         (Makefile.am): Update signal.h rule.
19759
19760         search: Avoid #define replacements in C++ mode.
19761         * lib/search.in.h: Include c++defs.h.
19762         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19763         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19764         symbol.
19765         * modules/search (Depends-on): Add c++defs.
19766         (Makefile.am): Update search.h rule.
19767
19768         math: Avoid #define replacements in C++ mode.
19769         * lib/math.in.h: Include c++defs.h.
19770         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19771         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19772         trunc, truncl): In C++, define a namespaced alias symbol.
19773         * modules/math (Depends-on): Add c++defs.
19774         (Makefile.am): Update math.h rule.
19775
19776         locale: Avoid #define replacements in C++ mode.
19777         * lib/locale.in.h: Include c++defs.h.
19778         (duplocale): In C++, define a namespaced alias symbol.
19779         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19780         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19781         * modules/locale (Depends-on): Add c++defs.
19782         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19783
19784         langinfo: Avoid #define replacements in C++ mode.
19785         * lib/langinfo.in.h: Include c++defs.h.
19786         (nl_langinfo): In C++, define a namespaced alias symbol.
19787         * modules/langinfo (Depends-on): Add c++defs.
19788         (Makefile.am): Update langinfo.h rule.
19789
19790         iconv-h: Avoid #define replacements in C++ mode.
19791         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19792         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19793         symbol.
19794         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19795         whenever iconv is present.
19796         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19797         (Makefile.am): Update iconv.h rule.
19798
19799         glob: Avoid #define replacements in C++ mode.
19800         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19801         (_gl_glob_errfunc_fn): New type.
19802         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19803         symbol.
19804         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19805         (Makefile.am): Update glob.h rule.
19806
19807         fcntl-h: Avoid #define replacements in C++ mode.
19808         * lib/fcntl.in.h: Include c++defs.h.
19809         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19810         * modules/fcntl-h (Depends-on): Add c++defs.
19811         (Makefile.am): Update fcntl.h rule.
19812
19813         dirent: Avoid #define replacements in C++ mode.
19814         * lib/dirent.in.h: Include c++defs.h.
19815         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19816         namespaced alias symbol.
19817         (dirfd): Update declaration.
19818         * modules/dirent (Depends-on): Add c++defs.
19819         (Makefile.am): Update dirent.h rule.
19820
19821         ctype: Make it usable in C++ code.
19822         * lib/ctype.in.h: Include c++defs.h.
19823         (isblank): Declare as extern "C".
19824         * modules/ctype (Depends-on): Add c++defs.
19825         (Makefile.am): Update ctype.h rule.
19826
19827         New module 'c++defs'.
19828         * modules/c++defs: New file.
19829         * build-aux/c++defs.h: New file.
19830         Reported by John W. Eaton <jwe@gnu.org>.
19831
19832 2010-03-07  Bruno Haible  <bruno@clisp.org>
19833
19834         logb: Provide missing declaration for Cygwin.
19835         * lib/math.in.h (logb): New declaration.
19836         * m4/logb.m4: New file.
19837         * modules/logb (Files): Add m4/logb.m4.
19838         (Depends-on): Add math.
19839         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19840         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19842         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19843         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19844
19845 2010-03-07  Bruno Haible  <bruno@clisp.org>
19846
19847         Fix test-cond link error.
19848         * tests/test-cond.c: Include <stdio.h>.
19849
19850 2010-03-07  Bruno Haible  <bruno@clisp.org>
19851
19852         Fix test-dirent-safer link error.
19853         * modules/dirent-safer-tests (Makefile.am): Define
19854         test_dirent_safer_LDADD.
19855
19856 2010-03-07  Bruno Haible  <bruno@clisp.org>
19857
19858         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19859         among default module list.
19860
19861 2010-03-07  Bruno Haible  <bruno@clisp.org>
19862
19863         Fix link error on platforms with GNU libiconv.
19864         * modules/unistr/u8-strcoll-tests (Makefile): Define
19865         test_u8_strcoll_LDADD.
19866         * modules/unistr/u16-strcoll-tests (Makefile): Define
19867         test_u16_strcoll_LDADD.
19868         * modules/unistr/u32-strcoll-tests (Makefile): Define
19869         test_u32_strcoll_LDADD.
19870
19871 2010-03-07  Bruno Haible  <bruno@clisp.org>
19872
19873         Use POSIX declarations for socket functions.
19874         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19875         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19876         rpl_sendto): Change declaration to match POSIX.
19877         * lib/connect.c (rpl_connect): Likewise.
19878         * lib/accept.c (rpl_accept): Likewise.
19879         * lib/bind.c (rpl_bind): Likewise.
19880         * lib/getpeername.c (rpl_getpeername): Likewise.
19881         * lib/getsockname.c (rpl_getsockname): Likewise.
19882         * lib/recv.c (rpl_recv): Likewise.
19883         * lib/send.c (rpl_send): Likewise.
19884         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19885         * lib/sendto.c (rpl_sendto): Likewise.
19886
19887 2010-03-06  Bruno Haible  <bruno@clisp.org>
19888
19889         Clarify access, euidaccess, faccessat.
19890         * doc/posix-functions/faccessat.texi: Mention security problem under
19891         "Other problems", not "Portability problems".
19892         * doc/posix-functions/access.texi: Likewise. Mention a related security
19893         problem.
19894         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19895         * lib/euidaccess.c: Add comments about platforms.
19896         * lib/unistd.in.h (access, euidaccess): Add warnings.
19897
19898 2010-03-07  Bruno Haible  <bruno@clisp.org>
19899
19900         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19901         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19902         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19903         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19904         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19905         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19906         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19907         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19908         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19909         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19910         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19911         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19912         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19913         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19914         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19915         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19916         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19917         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19918         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19919         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19920         Likewise.
19921         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19922         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19923         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19924         Likewise.
19925         * tests/test-spawn.c (main): Make it work when
19926         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19927
19928 2010-03-07  Bruno Haible  <bruno@clisp.org>
19929
19930         Fix incorrect Makefile.am generation in German locale.
19931         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19932         Execute sed command with character range in C locale.
19933
19934 2010-03-06  Bruno Haible  <bruno@clisp.org>
19935
19936         Tests for module 'iconv-h'.
19937         * modules/iconv-h-tests: New file.
19938         * tests/test-iconv-h.c: New file.
19939
19940         New module 'iconv-h'.
19941         * modules/iconv-h: New file.
19942         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19943         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19944         (configure.ac): Remove gl_ICONV_H.
19945         (Makefile.am): Remove rule for iconv.h.
19946
19947 2010-03-06  Bruno Haible  <bruno@clisp.org>
19948
19949         More consistent naming of *.m4 files.
19950         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19951         * modules/wctype (Files): Update.
19952
19953         More consistent naming of *.m4 files.
19954         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19955         * modules/wchar (Files): Update.
19956
19957 2010-03-06  Jim Meyering  <meyering@redhat.com>
19958
19959         euidaccess: relax license to LGPLv2+
19960         * modules/euidaccess (License): Relax to LGPLv2+.
19961
19962 2010-03-06  Bruno Haible  <bruno@clisp.org>
19963
19964         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19965         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19966         (Makefile.am): Augment lib_SOURCES instead.
19967
19968 2010-03-04  Jim Meyering  <meyering@redhat.com>
19969
19970         utime: remove obsolete module
19971         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19972         unnecessary for years, and has been marked as obsolete for 10 months.
19973         * modules/utime: Remove file.
19974         * lib/utime.c: Remove file.
19975         * m4/utime.m4: Remove file.
19976         * m4/utimes-null.m4: Remove file.
19977         * doc/posix-functions/utime.texi (utime): Remove reference to
19978         the module.  Move the sole "fixed by gnulib" item into the
19979         "problems not fixed by Gnulib" list.
19980         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19981
19982 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19983
19984         * modules/exit (License): Relax license to LGPLv2+.
19985         (Status): Mark as obsolete.
19986         * NEWS: Mention deprecated 'exit' module.
19987         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19988         of now obsolete 'exit'.
19989
19990 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19991
19992         fts-lgpl: remove unused module
19993         * modules/fts-lgpl: Remove.
19994         * MODULES.html.sh (func_all_modules): Adjust.
19995         * check-module (find_included_lib_files): Adjust.
19996         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19997
19998 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19999
20000         copy-acl: enhance Solaris ACL error handling
20001         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20002         * lib/set-mode-acl.c (qset_acl): Likewise.
20003
20004 2010-03-02  Bruno Haible  <bruno@clisp.org>
20005
20006         spawn: Don't override the system defined values on FreeBSD 8.
20007         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20008         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20009         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20010         if HAVE_POSIX_SPAWN is 1.
20011         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20012
20013 2010-03-01  Bruno Haible  <bruno@clisp.org>
20014
20015         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20016         regarding Automake.
20017
20018 2010-02-25  Bruno Haible  <bruno@clisp.org>
20019
20020         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20021         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20022         setting, not afterwards.
20023         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20024
20025 2010-02-24  Eric Blake  <eblake@redhat.com>
20026
20027         bootstrap, git-version-gen: use timestamp
20028         * build-aux/git-version-gen (scriptversion): Force UTC.
20029         * build-aux/bootstrap (scriptversion): New variable.
20030
20031         bootstrap: allow older git
20032         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20033         older than 1.6.4.  Requested by the libvirt project.
20034
20035 2010-02-23  Eric Blake  <eblake@redhat.com>
20036
20037         warn-on-use: work with old autoconf
20038         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20039         AS_VAR semantics of autoconf 2.60.
20040         Reported by Bruno Haible.
20041
20042         bootstrap: improve some comments
20043         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20044         clarification comments.
20045
20046         gettimeofday: provide correct function
20047         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20048         when replacement is declared, otherwise provide gettimeofday.
20049         Reported by Michael Goffioul.
20050
20051 2010-02-23  Jim Meyering  <meyering@redhat.com>
20052
20053         lib-ignore: relax license to "unlimited", not LGPLv2+
20054         * modules/lib-ignore (License): Relax to "unlimited".
20055
20056 2010-02-23  Jim Meyering  <meyering@redhat.com>
20057
20058         lib-ignore: relax license to LGPLv2+
20059         * modules/lib-ignore (License): Relax to LGPLv2+.
20060
20061 2010-02-22  Eric Blake  <eblake@redhat.com>
20062
20063         lseek: avoid bash 3.2 broken pipe bug
20064         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20065         warning from bash 3.2.
20066         Reported by Ben Pfaff, with analysis from Bruno Haible.
20067
20068         bootstrap: support non-FSF copyright holder
20069         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20070         bootstrap.conf override of COPYRIGHT_HOLDER.
20071         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20072
20073         bootstrap: interoperate with gettext 0.14.1
20074         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20075
20076         bootstrap: allow for alternate submodule location
20077         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20078         hardcoding submodule location.
20079         (gnulib_mk): Allow direct use of Makefile.am.
20080
20081         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20082         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20083         rather than reconfiguring where the submodule points.
20084
20085         gettimeofday: restore support for platforms that lack function
20086         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20087         replacement if function is missing.
20088         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20089         * modules/sys_time (Makefile.am): Substitute it.
20090         * lib/sys_time.in.h (gettimeofday): Check it.
20091         Reported by Michael Goffioul.
20092
20093 2010-02-21  Bruno Haible  <bruno@clisp.org>
20094
20095         * lib/stdio.in.h (obstack_printf): Fix typo.
20096
20097 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20098
20099         vc-list-files: use bzr ls's -R option
20100         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20101         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20102
20103 2010-02-21  Jim Meyering  <meyering@redhat.com>
20104
20105         init.sh: fix EXEEXT shims to work also for names like test-prog
20106         * tests/init.sh: Re-exec a better shell, when needed.
20107         If the current shell lacks support for posix $(...), an init.sh-using
20108         test will now try to find a shell that supports that.  If EXEEXT is
20109         nonempty, we also require support for hyphen-in-alias-name and shell
20110         substitutions like ${var#glob}.  Failure to find such a shell results
20111         in a skipped test.
20112
20113 2010-02-21  Bruno Haible  <bruno@clisp.org>
20114
20115         Really work around around "broken pipe" error message from bash 3.2.
20116         * gnulib-tool (func_reset_sigpipe): Remove function.
20117         (echo): In bash 3.2, define to a function that uses printf.
20118         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20119
20120 2010-02-20  Bruno Haible  <bruno@clisp.org>
20121
20122         Restore support for automake 1.9.6 with autoconf 2.61.
20123         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20124         Reported by James Youngman <jay@gnu.org>.
20125
20126 2010-02-20  Bruno Haible  <bruno@clisp.org>
20127
20128         Improve *printf warning condition.
20129         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20130         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20131         and the function is overridden due to SIGPIPE emulation.
20132
20133 2010-02-20  Bruno Haible  <bruno@clisp.org>
20134
20135         * lib/stdio.in.h: Tweak comments.
20136
20137 2010-02-19  Bruno Haible  <bruno@clisp.org>
20138
20139         Make it easier to find modules. New gnulib-tool option '--find'.
20140         * gnulib-tool: New option --find.
20141         (func_usage): Document it.
20142         (func_sanitize_modulelist): New function, extracted from
20143         func_all_modules.
20144         (func_all_modules): Invoke it.
20145         * doc/gnulib-tool.texi (Which modules?): New node.
20146
20147 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20148
20149         * lib/sys_select.in.h: Provide select replacement even if
20150         sys/select.h exists on a system, for Interix.
20151
20152 2010-02-18  Jim Meyering  <meyering@redhat.com>
20153
20154         init.sh: don't use $(...) just yet
20155         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20156         to accommodate e.g., Solaris' /bin/sh.
20157
20158 2010-02-17  Bruno Haible  <bruno@clisp.org>
20159
20160         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20161         Reported by Ludovic Courtès <ludo@gnu.org>.
20162
20163 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20164
20165         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20166         linking with -lintl.
20167
20168 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20169
20170         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20171         if not provided by the system's netdb.h.  Reported by
20172         ludo@gnu.org (Ludovic Courtès).
20173
20174 2010-02-15  Jim Meyering  <meyering@redhat.com>
20175
20176         init.sh: improve portability and efficiency
20177         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20178         "dummy" in a for loop.
20179         Use '!', not '^' to select the complement of a character set used
20180         in a "case" statement.
20181         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20182         Suggestions from Eric Blake.
20183
20184         init.sh: automatically accommodate programs with the .exe suffix
20185         Automatically arrange for an invocation of "prog" to execute the
20186         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20187         may use the simpler "prog", yet still work when built on a system
20188         that requires specifying the added suffix.
20189         Do this by constructing a function named "prog" that invokes
20190         "prog.exe" for each .exe file in selected directories.
20191         * tests/init.sh (find_exe_basenames_): New function.
20192         (create_exe_shim_functions_): New function.
20193         (path_prepend_): Use it.
20194
20195         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20196         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20197         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20198
20199 2010-02-14  Jim Meyering  <meyering@redhat.com>
20200
20201         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20202         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20203         (sc_prohibit_hash_pjw_without_use): New rule.
20204
20205         maint.mk: allow the default upload destination dir to be overridden
20206         * top/maint.mk (upload_dest_dir_): Define with a default that
20207         preserves the status quo.
20208         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20209         Reported by Peter Simons.
20210
20211         maint.mk: prohibit inclusion of "hash.h" without_use
20212         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20213
20214 2010-02-10  Jim Meyering  <meyering@redhat.com>
20215
20216         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20217         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20218
20219 2010-02-09  Eric Blake  <ebb9@byu.net>
20220         and Bruno Haible  <bruno@clisp.org>
20221
20222         obstack-printf-posix: ensure declaration
20223         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20224         extracted from gl_FUNC_OBSTACK_PRINTF.
20225         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20226         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20227         Likewise.
20228         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20229         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20230         0.
20231
20232 2010-02-08  Bruno Haible  <bruno@clisp.org>
20233
20234         gnulib-tool: Fix typo in 2010-02-07 commit.
20235         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20236         Reported by Eric Blake.
20237
20238 2010-02-07  Bruno Haible  <bruno@clisp.org>
20239
20240         gnulib-tool: Fix up caching patches.
20241         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20242         option --no-cache. Use associative arrays when supported by the shell.
20243         (sed_comments): New variable.
20244         (modcache): Renamed from do_cache.
20245         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20246         abbreviate unnecessarily.
20247         (have_associative): New variable.
20248         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20249         way also for ksh and zsh.
20250         (func_init_sed_convert_to_cache_statements): New function, extracted
20251         from func_cache_lookup_module. Add support for associative arrays.
20252         Don't set the c_MODULE_cached variable here. Ignore all lines before
20253         the first field header. Remove only the final newline, not all trailing
20254         newlines. Support empty fields correctly. Limit the use of 'eval' to
20255         assignments.
20256         (func_get_description, func_get_status, func_get_notice,
20257         func_get_applicability, func_get_filelist, func_get_dependencies,
20258         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20259         func_get_automake_snippet, func_get_include_directive,
20260         func_get_link_directive, func_get_license, func_get_maintainer):
20261         Update documentation. List the unoptimized code first. Add support for
20262         associative arrays. Limit the use of 'eval' to assignments.
20263         (func_get_applicability): Undo stylistic pessimisations.
20264         (func_get_automake_snippet, func_get_include_directive): Reduce code
20265         duplication.
20266         (func_modules_transitive_closure, func_modules_add_dummy,
20267         func_modules_notice, func_modules_to_filelist, func_add_file,
20268         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20269         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20270         func_create_testdir, func_create_megatestdir): Update documentation.
20271
20272 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20273
20274         * gnulib-tool (func_cache_lookup_module): Store the module name
20275         belonging to the cache variable; error out if two different
20276         module names map to the same cache variable name.
20277
20278 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20279
20280         gnulib-tool: Make caching optional.
20281         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20282         Update matching short versions of --no-changelog.
20283         (func_usage): Update.
20284         (sed_extract_cache_prog): Renamed from ...
20285         (sed_extract_prog): ... this; revert to old extraction script.
20286         (func_get_description, func_get_status)
20287         (func_get_notice, func_get_applicability, func_get_filelist)
20288         (func_get_dependencies, func_get_autoconf_early_snippet)
20289         (func_get_autoconf_snippet, func_get_automake_snippet)
20290         (func_get_include_directive, func_get_link_directive)
20291         (func_get_license, func_get_maintainer): If $do_cache is false,
20292         use old, non-caching extraction scripts.
20293         Suggestion by Bruno Haible.
20294
20295 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20296
20297         gnulib-tool: cache module metainformation.
20298         * gnulib-tool (sed_extract_prog): Match newline before each
20299         header, and rewrite header to a shell variable suffix.
20300         (func_cache_var, func_cache_lookup_module): New functions,
20301         to turn a module name into a cache variable prefix, and to
20302         look up and cache module metainformation.
20303         (func_get_description, func_get_status)
20304         (func_get_notice, func_get_applicability, func_get_filelist)
20305         (func_get_dependencies, func_get_autoconf_early_snippet)
20306         (func_get_autoconf_snippet, func_get_automake_snippet)
20307         (func_get_include_directive, func_get_link_directive)
20308         (func_get_license, func_get_maintainer): Use
20309         func_cache_lookup_module.
20310
20311 2010-02-07  Bruno Haible  <bruno@clisp.org>
20312
20313         fnctl: Fix missing dependency.
20314         * modules/fcntl (Depends-on): Add getdtablesize.
20315         Reported by John W. Eaton <jwe@gnu.org>.
20316
20317 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20318
20319         Argp: fix recognition of short alias options.
20320
20321         * lib/argp-parse.c (convert_options): Fix improper use of
20322         `|' between character values.
20323         * tests/test-argp.c (group1_option): New alias option
20324         --read (-r).
20325         (group1_parser): Special handling for 'r'.
20326         (test15): New test case.
20327         (test_fun): Add test15.
20328         * tests/test-argp-2.sh: Update expected --help and --usage
20329         outputs.
20330
20331 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20332
20333         * tests/test-argp.c: Fix indentation.
20334
20335 2010-02-04  Eric Blake  <ebb9@byu.net>
20336
20337         gettimeofday: expose type of second argument
20338         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20339         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20340         * tests/test-gettimeofday.c: Use it to silence warning.
20341         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20342         the issue.
20343
20344 2010-02-03  Jim Meyering  <meyering@redhat.com>
20345
20346         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20347         * lib/regcomp.c (TYPE_SIGNED): Define.
20348         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20349
20350         regcomp.c: avoid a new -Wshadow warning
20351         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20352
20353 2010-02-01  Jim Meyering  <meyering@redhat.com>
20354
20355         removing useless parentheses in cpp #define directives
20356         For motivation, see commit c0221df4, "define STREQ(a,b)
20357         consistently, removing useless parentheses"
20358         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20359         * lib/mountlist.c (MNT_IGNORE): Likewise.
20360         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20361
20362 2010-02-01  Eric Blake  <ebb9@byu.net>
20363
20364         sys_time: use link-warning
20365         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20366         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20367         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20368         * modules/sys_time (Depends-on): Add warn-on-use.
20369         (Makefile.am): Always build replacement.
20370         (configure.ac): Update substitutions.
20371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20372         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20373         bother with SYS_TIME_H.
20374         * modules/gettimeofday (configure.ac): Declare indicator.
20375         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20376         in use.
20377
20378         closein-tests: silence compiler warning
20379         * tests/test-closein.c (main): Ignore fread result.
20380         * modules/closein-tests (Depends-on): Add ignore-value.
20381
20382         tests: silence warning about system return
20383         * tests/test-areadlink-with-size.c (main): Ignore system result.
20384         * tests/test-areadlink.c (main): Likewise.
20385         * tests/test-areadlinkat-with-size.c (main): Likewise.
20386         * tests/test-areadlinkat.c (main): Likewise.
20387         * tests/test-canonicalize-lgpl.c (main): Likewise.
20388         * tests/test-canonicalize.c (main): Likewise.
20389         * tests/test-chown.c (main): Likewise.
20390         * tests/test-fchownat.c (main): Likewise.
20391         * tests/test-fdutimensat.c (main): Likewise.
20392         * tests/test-fstatat.c (main): Likewise.
20393         * tests/test-futimens.c (main): Likewise.
20394         * tests/test-lchown.c (main): Likewise.
20395         * tests/test-link.c (main): Likewise.
20396         * tests/test-linkat.c (main): Likewise.
20397         * tests/test-lstat.c (main): Likewise.
20398         * tests/test-mkdir.c (main): Likewise.
20399         * tests/test-mkdirat.c (main): Likewise.
20400         * tests/test-mkfifo.c (main): Likewise.
20401         * tests/test-mkfifoat.c (main): Likewise.
20402         * tests/test-mknod.c (main): Likewise.
20403         * tests/test-readlink.c (main): Likewise.
20404         * tests/test-remove.c (main): Likewise.
20405         * tests/test-rename.c (main): Likewise.
20406         * tests/test-renameat.c (main): Likewise.
20407         * tests/test-rmdir.c (main): Likewise.
20408         * tests/test-symlink.c (main): Likewise.
20409         * tests/test-symlinkat.c (main): Likewise.
20410         * tests/test-unlink.c (main): Likewise.
20411         * tests/test-unlinkat.c (main): Likewise.
20412         * tests/test-utimens.c (main): Likewise.
20413         * tests/test-utimensat.c (main): Likewise.
20414         * modules/areadlink-tests (Depends-on): Add ignore-value.
20415         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20416         * modules/areadlinkat-tests (Depends-on): Likewise.
20417         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20418         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20419         * modules/canonicalize-tests (Depends-on): Likewise.
20420         * modules/chown-tests (Depends-on): Likewise.
20421         * modules/fdutimensat-tests (Depends-on): Likewise.
20422         * modules/futimens-tests (Depends-on): Likewise.
20423         * modules/lchown-tests (Depends-on): Likewise.
20424         * modules/link-tests (Depends-on): Likewise.
20425         * modules/linkat-tests (Depends-on): Likewise.
20426         * modules/lstat-tests (Depends-on): Likewise.
20427         * modules/mkdir-tests (Depends-on): Likewise.
20428         * modules/mkfifo-tests (Depends-on): Likewise.
20429         * modules/mkfifoat-tests (Depends-on): Likewise.
20430         * modules/mknod-tests (Depends-on): Likewise.
20431         * modules/openat-tests (Depends-on): Likewise.
20432         * modules/readlink-tests (Depends-on): Likewise.
20433         * modules/remove-tests (Depends-on): Likewise.
20434         * modules/rename-tests (Depends-on): Likewise.
20435         * modules/renameat-tests (Depends-on): Likewise.
20436         * modules/rmdir-tests (Depends-on): Likewise.
20437         * modules/symlink-tests (Depends-on): Likewise.
20438         * modules/symlinkat-tests (Depends-on): Likewise.
20439         * modules/unlink-tests (Depends-on): Likewise.
20440         * modules/utimens-tests (Depends-on): Likewise.
20441         * modules/utimensat-tests (Depends-on): Likewise.
20442
20443 2010-01-31  Bruno Haible  <bruno@clisp.org>
20444
20445         Perform the same test for many <math.h> functions.
20446         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20447         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20448         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20449         of gl_MATHFUNC.
20450         * modules/acos (configure.ac): Likewise.
20451         * modules/asin (configure.ac): Likewise.
20452         * modules/atan (configure.ac): Likewise.
20453         * modules/atan2 (configure.ac): Likewise.
20454         * modules/cbrt (configure.ac): Likewise.
20455         * modules/copysign (configure.ac): Likewise.
20456         * modules/cos (configure.ac): Likewise.
20457         * modules/cosh (configure.ac): Likewise.
20458         * modules/erf (configure.ac): Likewise.
20459         * modules/erfc (configure.ac): Likewise.
20460         * modules/exp (configure.ac): Likewise.
20461         * modules/fmod (configure.ac): Likewise.
20462         * modules/hypot (configure.ac): Likewise.
20463         * modules/j0 (configure.ac): Likewise.
20464         * modules/j1 (configure.ac): Likewise.
20465         * modules/jn (configure.ac): Likewise.
20466         * modules/lgamma (configure.ac): Likewise.
20467         * modules/log (configure.ac): Likewise.
20468         * modules/log10 (configure.ac): Likewise.
20469         * modules/log1p (configure.ac): Likewise.
20470         * modules/pow (configure.ac): Likewise.
20471         * modules/remainder (configure.ac): Likewise.
20472         * modules/sin (configure.ac): Likewise.
20473         * modules/sinh (configure.ac): Likewise.
20474         * modules/tan (configure.ac): Likewise.
20475         * modules/tanh (configure.ac): Likewise.
20476         * modules/y0 (configure.ac): Likewise.
20477         * modules/y1 (configure.ac): Likewise.
20478         * modules/yn (configure.ac): Likewise.
20479         Suggested by Paolo Bonzini.
20480
20481 2010-01-31  Bruno Haible  <bruno@clisp.org>
20482
20483         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20484
20485 2010-01-31  Bruno Haible  <bruno@clisp.org>
20486
20487         Work around getdelim() bug on FreeBSD 8.0.
20488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20489         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20490         not work.
20491         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20492         is 1.
20493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20494         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20495         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20496         a non-zero size.
20497         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20498
20499 2010-01-31  Bruno Haible  <bruno@clisp.org>
20500
20501         Work around getline() bug on FreeBSD 8.0.
20502         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20503         and a non-zero size.
20504         * tests/test-getline.c (main): Likewise.
20505         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20506         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20507
20508 2010-01-28  Eric Blake  <ebb9@byu.net>
20509
20510         regex: fix build failure
20511         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20512         platforms.
20513
20514 2010-01-28  Jim Meyering  <meyering@redhat.com>
20515
20516         regex: do not ignore memory allocation failure
20517         * lib/regex_internal.c (create_cd_newstate): Detect
20518         re_node_set_init_copy failure.   Extracted from glibc commit
20519         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20520
20521         regex: sync more white-space changes from libc
20522         * lib/regex_internal.c: White-space only changes.
20523         * lib/regexec.c: Likewise.
20524
20525         regex: add many uses of __attribute_warn_unused_result__
20526         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20527         * lib/regexec.c: Likewise.
20528         Extracted from a messy glibc commit.
20529
20530         regcomp.c: spelling and merge-artifact from glibc
20531         * lib/regcomp.c: Merge remainder of glibc's
20532         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20533
20534         regcomp.c: sync white-space changes from glibc
20535         * lib/regcomp.c: Merge to accommodate white space
20536         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20537
20538         regcomp.c: do not ignore internal return values
20539         * lib/regcomp.c: Do not ignore internal return values.
20540         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20541         but without its white-space changes and spelling fixes.
20542
20543         regex_internal.h: define __attribute_warn_unused_result__
20544         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20545
20546         maint: add a syntax-check rule to check for vulnerable Makefile.in
20547         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20548
20549 2010-01-27  Jim Meyering  <meyering@redhat.com>
20550
20551         ncftpput-ftp: clean up spaces
20552         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20553         Remove trailing blanks.
20554
20555 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20556
20557         * build-aux/git-version-gen: Fix copyright statement.
20558         * build-aux/gnupload: Likewise.
20559         * tests/test-arcfour.c: Likewise.
20560         * tests/test-arctwo.c: Likewise.
20561         * tests/test-count-one-bits.c: Likewise.
20562         * tests/test-crc.c: Likewise.
20563         * tests/test-des.c: Likewise.
20564         * tests/test-gc-arcfour.c: Likewise.
20565         * tests/test-gc-arctwo.c: Likewise.
20566         * tests/test-gc-des.c: Likewise.
20567         * tests/test-gc-hmac-md5.c: Likewise.
20568         * tests/test-gc-hmac-sha1.c: Likewise.
20569         * tests/test-gc-md2.c: Likewise.
20570         * tests/test-gc-md4.c: Likewise.
20571         * tests/test-gc-md5.c: Likewise.
20572         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20573         * tests/test-gc-rijndael.c: Likewise.
20574         * tests/test-gc-sha1.c: Likewise.
20575         * tests/test-gc.c: Likewise.
20576         * tests/test-gethostname.c: Likewise.
20577         * tests/test-gettimeofday.c: Likewise.
20578         * tests/test-hash.c: Likewise.
20579         * tests/test-hmac-md5.c: Likewise.
20580         * tests/test-hmac-sha1.c: Likewise.
20581         * tests/test-md2.c: Likewise.
20582         * tests/test-md4.c: Likewise.
20583         * tests/test-md5.c: Likewise.
20584         * tests/test-memchr.c: Likewise.
20585         * tests/test-memchr2.c: Likewise.
20586         * tests/test-memcmp.c: Likewise.
20587         * tests/test-memmem.c: Likewise.
20588         * tests/test-memrchr.c: Likewise.
20589         * tests/test-rawmemchr.c: Likewise.
20590         * tests/test-read-file.c: Likewise.
20591         * tests/test-rijndael.c: Likewise.
20592         * tests/test-sockets.c: Likewise.
20593         * tests/test-strchrnul.c: Likewise.
20594         * tests/test-strstr.c: Likewise.
20595         * tests/test-strtod.c: Likewise.
20596         * build-aux/ncftpput-ftp: Likewise.
20597
20598 2010-01-26  Eric Blake  <ebb9@byu.net>
20599
20600         ignore-value: update recommended header name
20601         * modules/ignore-value (Include): Only use <> for headers that
20602         exist in glibc.
20603
20604 2010-01-26  Jim Meyering  <meyering@redhat.com>
20605
20606         test-userspec.c: avoid compiler warnings
20607         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20608         and "initialization discards qualifiers..." warnings.
20609         Put the first "uid" in its own scope, and make char* members "const".
20610
20611 2010-01-25  Bruno Haible  <bruno@clisp.org>
20612
20613         gnulib-tool: Make warning diagnostics consistent.
20614         * gnulib-tool (func_warning): New function.
20615         Use it everywhere where gnulib-tool produces output to stderr and it is
20616         not a fatal error.
20617
20618 2010-01-25  Bruno Haible  <bruno@clisp.org>
20619
20620         Fix test dependencies.
20621         * modules/xstrtol-tests (Depends-on): Add inttypes.
20622         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20623
20624 2010-01-25 Pádraig Brady <P@draigBrady.com>
20625
20626         syntax-check: detect incorrect boolean macro values in config.h
20627         * modules/maintainer-makefile (configure.ac): Parameterize the location
20628         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20629         The logic is from Eric Blake and the location indicated by Jim Meyering.
20630         Note the more natural CONFIG_HEADER name is prohibited by automake
20631         for backwards compatibility reasons.
20632         * top/maint.mk (sc_Wundef_boolean): New rule.
20633
20634 2010-01-25  Jim Meyering  <meyering@redhat.com>
20635
20636         bootstrap: detect MacOS 10.6's shasum, too
20637         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20638         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20639
20640 2010-01-23  Jim Meyering  <meyering@redhat.com>
20641
20642         xstrtoll: new module
20643         * modules/xstrtoll: New file.
20644         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20645         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20646         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20647         ./configure fails if you use this module and lack "long long".
20648         * modules/xstrtoll-tests: New module.
20649         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20650         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20651         new init.sh-based test framework.
20652
20653 2010-01-24  Bruno Haible  <bruno@clisp.org>
20654
20655         Tests for module 'yn'.
20656         * modules/yn-tests: New file.
20657         * tests/test-yn.c: New file.
20658
20659         Tests for module 'y1'.
20660         * modules/y1-tests: New file.
20661         * tests/test-y1.c: New file.
20662
20663         Tests for module 'y0'.
20664         * modules/y0-tests: New file.
20665         * tests/test-y0.c: New file.
20666
20667         Tests for module 'tanh'.
20668         * modules/tanh-tests: New file.
20669         * tests/test-tanh.c: New file.
20670
20671         Tests for module 'tan'.
20672         * modules/tan-tests: New file.
20673         * tests/test-tan.c: New file.
20674
20675         Tests for module 'sqrt'.
20676         * modules/sqrt-tests: New file.
20677         * tests/test-sqrt.c: New file.
20678
20679         Tests for module 'sinh'.
20680         * modules/sinh-tests: New file.
20681         * tests/test-sinh.c: New file.
20682
20683         Tests for module 'sin'.
20684         * modules/sin-tests: New file.
20685         * tests/test-sin.c: New file.
20686
20687         Tests for module 'rint'.
20688         * modules/rint-tests: New file.
20689         * tests/test-rint.c: New file.
20690
20691         Tests for module 'remainder'.
20692         * modules/remainder-tests: New file.
20693         * tests/test-remainder.c: New file.
20694
20695         Tests for module 'pow'.
20696         * modules/pow-tests: New file.
20697         * tests/test-pow.c: New file.
20698
20699         Tests for module 'nextafter'.
20700         * modules/nextafter-tests: New file.
20701         * tests/test-nextafter.c: New file.
20702
20703         Tests for module 'modf'.
20704         * modules/modf-tests: New file.
20705         * tests/test-modf.c: New file.
20706
20707         Tests for module 'logb'.
20708         * modules/logb-tests: New file.
20709         * tests/test-logb.c: New file.
20710
20711         Tests for module 'log1p'.
20712         * modules/log1p-tests: New file.
20713         * tests/test-log1p.c: New file.
20714
20715         Tests for module 'log10'.
20716         * modules/log10-tests: New file.
20717         * tests/test-log10.c: New file.
20718
20719         Tests for module 'log'.
20720         * modules/log-tests: New file.
20721         * tests/test-log.c: New file.
20722
20723         Tests for module 'lgamma'.
20724         * modules/lgamma-tests: New file.
20725         * tests/test-lgamma.c: New file.
20726
20727         Tests for module 'ldexp'.
20728         * modules/ldexp-tests: New file.
20729         * tests/test-ldexp.c: New file.
20730
20731         Tests for module 'jn'.
20732         * modules/jn-tests: New file.
20733         * tests/test-jn.c: New file.
20734
20735         Tests for module 'j1'.
20736         * modules/j1-tests: New file.
20737         * tests/test-j1.c: New file.
20738
20739         Tests for module 'j0'.
20740         * modules/j0-tests: New file.
20741         * tests/test-j0.c: New file.
20742
20743         Tests for module 'hypot'.
20744         * modules/hypot-tests: New file.
20745         * tests/test-hypot.c: New file.
20746
20747         Tests for module 'fmod'.
20748         * modules/fmod-tests: New file.
20749         * tests/test-fmod.c: New file.
20750
20751         Tests for module 'fabs'.
20752         * modules/fabs-tests: New file.
20753         * tests/test-fabs.c: New file.
20754
20755         Tests for module 'exp'.
20756         * modules/exp-tests: New file.
20757         * tests/test-exp.c: New file.
20758
20759         Tests for module 'erfc'.
20760         * modules/erfc-tests: New file.
20761         * tests/test-erfc.c: New file.
20762
20763         Tests for module 'erf'.
20764         * modules/erf-tests: New file.
20765         * tests/test-erf.c: New file.
20766
20767         Tests for module 'cosh'.
20768         * modules/cosh-tests: New file.
20769         * tests/test-cosh.c: New file.
20770
20771         Tests for module 'cos'.
20772         * modules/cos-tests: New file.
20773         * tests/test-cos.c: New file.
20774
20775         Tests for module 'copysign'.
20776         * modules/copysign-tests: New file.
20777         * tests/test-copysign.c: New file.
20778
20779         Tests for module 'cbrt'.
20780         * modules/cbrt-tests: New file.
20781         * tests/test-cbrt.c: New file.
20782
20783         Tests for module 'atan2'.
20784         * modules/atan2-tests: New file.
20785         * tests/test-atan2.c: New file.
20786
20787         Tests for module 'atan'.
20788         * modules/atan-tests: New file.
20789         * tests/test-atan.c: New file.
20790
20791         Tests for module 'asin'.
20792         * modules/asin-tests: New file.
20793         * tests/test-asin.c: New file.
20794
20795         Tests for module 'acos'.
20796         * modules/acos-tests: New file.
20797         * tests/test-acos.c: New file.
20798
20799 2010-01-24  Bruno Haible  <bruno@clisp.org>
20800
20801         Fix tests for common <math.h> functions.
20802         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20803         code snippet that references the function pointer, rather than merely
20804         calling the function. Substitute the FUNC_LIBM variable.
20805         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20806         * modules/acos (configure.ac): Likewise.
20807         * modules/asin (configure.ac): Likewise.
20808         * modules/atan (configure.ac): Likewise.
20809         * modules/atan2 (configure.ac): Likewise.
20810         * modules/cbrt (configure.ac): Likewise.
20811         * modules/copysign (configure.ac): Likewise.
20812         * modules/cos (configure.ac): Likewise.
20813         * modules/cosh (configure.ac): Likewise.
20814         * modules/erf (configure.ac): Likewise.
20815         * modules/erfc (configure.ac): Likewise.
20816         * modules/exp (configure.ac): Likewise.
20817         * modules/fabs (configure.ac): Likewise.
20818         * modules/fmod (configure.ac): Likewise.
20819         * modules/hypot (configure.ac): Likewise.
20820         * modules/j0 (configure.ac): Likewise.
20821         * modules/j1 (configure.ac): Likewise.
20822         * modules/jn (configure.ac): Likewise.
20823         * modules/ldexp (configure.ac): Likewise.
20824         * modules/lgamma (configure.ac): Likewise.
20825         * modules/log (configure.ac): Likewise.
20826         * modules/log10 (configure.ac): Likewise.
20827         * modules/log1p (configure.ac): Likewise.
20828         * modules/logb (configure.ac): Likewise.
20829         * modules/modf (configure.ac): Likewise.
20830         * modules/nextafter (configure.ac): Likewise.
20831         * modules/pow (configure.ac): Likewise.
20832         * modules/remainder (configure.ac): Likewise.
20833         * modules/rint (configure.ac): Likewise.
20834         * modules/sin (configure.ac): Likewise.
20835         * modules/sinh (configure.ac): Likewise.
20836         * modules/tan (configure.ac): Likewise.
20837         * modules/tanh (configure.ac): Likewise.
20838         * modules/y0 (configure.ac): Likewise.
20839         * modules/y1 (configure.ac): Likewise.
20840         * modules/yn (configure.ac): Likewise.
20841
20842 2010-01-24  Bruno Haible  <bruno@clisp.org>
20843
20844         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20845         * tests/test-acosl.c (x): New variable.
20846         (main): Store argument in x and fetch it from x.
20847         * tests/test-asinl.c (x): New variable.
20848         (main): Store argument in x and fetch it from x.
20849         * tests/test-atanl.c (x): New variable.
20850         (main): Store argument in x and fetch it from x.
20851         * tests/test-cosl.c (x): New variable.
20852         (main): Store argument in x and fetch it from x.
20853         * tests/test-expl.c (x): New variable.
20854         (main): Store argument in x and fetch it from x.
20855         * tests/test-logl.c (x): New variable.
20856         (main): Store argument in x and fetch it from x.
20857         * tests/test-sinl.c (x): New variable.
20858         (main): Store argument in x and fetch it from x.
20859         * tests/test-sqrtl.c (x): New variable.
20860         (main): Store argument in x and fetch it from x.
20861         * tests/test-tanl.c (x): New variable.
20862         (main): Store argument in x and fetch it from x.
20863
20864 2010-01-24  Bruno Haible  <bruno@clisp.org>
20865
20866         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20867         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20868         assignments to the initial TESTS_ENVIRONMENT.
20869         * doc/gnulib.texi (Unit test modules): Document it.
20870         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20871         TESTS_ENVIRONMENT.
20872         * modules/btowc-tests (Makefile.am): Likewise.
20873         * modules/c-stack-tests (Makefile.am): Likewise.
20874         * modules/c-strcase-tests (Makefile.am): Likewise.
20875         * modules/copy-file-tests (Makefile.am): Likewise.
20876         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20877         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20878         * modules/mbrtowc-tests (Makefile.am): Likewise.
20879         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20880         * modules/mbscasestr-tests (Makefile.am): Likewise.
20881         * modules/mbschr-tests (Makefile.am): Likewise.
20882         * modules/mbscspn-tests (Makefile.am): Likewise.
20883         * modules/mbsinit-tests (Makefile.am): Likewise.
20884         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20885         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20886         * modules/mbspbrk-tests (Makefile.am): Likewise.
20887         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20888         * modules/mbsrchr-tests (Makefile.am): Likewise.
20889         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20890         * modules/mbsspn-tests (Makefile.am): Likewise.
20891         * modules/mbsstr-tests (Makefile.am): Likewise.
20892         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20893         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20894         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20895         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20896         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20897         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20898         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20899         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20900         * modules/wcrtomb-tests (Makefile.am): Likewise.
20901         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20902         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20903         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20904         assignments from TESTS_ENVIRONMENT.
20905         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20906         augmentation.
20907         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20908         * modules/atexit-tests (Makefile.am): Likewise.
20909         * modules/binary-io-tests (Makefile.am): Likewise.
20910         * modules/closein-tests (Makefile.am): Likewise.
20911         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20912         * modules/exclude-tests (Makefile.am): Likewise.
20913         * modules/fflush-tests (Makefile.am): Likewise.
20914         * modules/fpending-tests (Makefile.am): Likewise.
20915         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20916         * modules/freadahead-tests (Makefile.am): Likewise.
20917         * modules/freadptr-tests (Makefile.am): Likewise.
20918         * modules/freadseek-tests (Makefile.am): Likewise.
20919         * modules/fseek-tests (Makefile.am): Likewise.
20920         * modules/fseeko-tests (Makefile.am): Likewise.
20921         * modules/ftell-tests (Makefile.am): Likewise.
20922         * modules/ftello-tests (Makefile.am): Likewise.
20923         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20924         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20925         * modules/lseek-tests (Makefile.am): Likewise.
20926         * modules/parse-duration-tests (Makefile.am): Likewise.
20927         * modules/perror-tests (Makefile.am): Likewise.
20928         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20929         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20930         * modules/pipe-tests (Makefile.am): Likewise.
20931         * modules/pread-tests (Makefile.am): Likewise.
20932         * modules/printf-posix-tests (Makefile.am): Likewise.
20933         * modules/select-tests (Makefile.am): Likewise.
20934         * modules/sigpipe-tests (Makefile.am): Likewise.
20935         * modules/tsearch-tests (Makefile.am): Likewise.
20936         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20937         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20938         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20939         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20940         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20941         * modules/version-etc-tests (Makefile.am): Likewise.
20942         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20943         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20944         * modules/xalloc-die-tests (Makefile.am): Likewise.
20945         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20946         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20947         * modules/xstrtol-tests (Makefile.am): Likewise.
20948         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20949         * modules/yesno-tests (Makefile.am): Likewise.
20950         Suggested by Jim Meyering.
20951
20952 2010-01-24  Bruno Haible  <bruno@clisp.org>
20953
20954         More documentation.
20955         * doc/gnulib.texi (Writing modules): New chapter.
20956         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20957         the new chapter.
20958
20959 2010-01-24  Jim Meyering  <meyering@redhat.com>
20960
20961         maint.mk: do not prepend "./" after filtering
20962         * top/maint.mk (_prepend_srcdir_prefix): New variable
20963         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20964         "./" when $(srcdir) is ".".
20965
20966         define STREQ(a,b) consistently, removing useless parentheses
20967         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20968         since the only risk is that "a" or "b" contains an unparenthesized
20969         comma, but if either did that, STREQ would have 3 or more arguments.
20970         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20971         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20972         * lib/hash-triple.c (STREQ): Likewise.
20973         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20974         * lib/getugroups.c (STREQ): Likewise.
20975
20976 2010-01-23  Jim Meyering  <meyering@redhat.com>
20977
20978         maint.mk: fix syntax-check in a non-srcdir build directory
20979         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20980         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20981
20982 2010-01-22  Jim Meyering  <meyering@redhat.com>
20983
20984         userspec: add unit tests
20985         * tests/test-userspec.c: New file.
20986         * modules/userspec-tests: Likewise.
20987
20988 2010-01-21  Jim Meyering  <meyering@redhat.com>
20989
20990         maint.mk: handle source file names containing "." robustly
20991         * top/maint.mk (_dot_escaped_srcdir): Define.
20992         (VC_LIST): Use it in LHS of sed substitution.
20993
20994 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20995
20996         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20997         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20998         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20999         from a non-srcdir build.
21000
21001 2010-01-20  Eric Blake  <ebb9@byu.net>
21002
21003         warn-on-use: use instead of link-warning
21004         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21005         * modules/unistd (Depends-on, Makefile.am): Likewise.
21006         * modules/arpa_inet (Depends-on): Replace link-warning with
21007         warn-on-use.
21008         (Makefile.am): Update rules accordingly.
21009         * modules/ctype (Depends-on, Makefile.am): Likewise.
21010         * modules/dirent (Depends-on, Makefile.am): Likewise.
21011         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21012         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21013         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21014         * modules/locale (Depends-on, Makefile.am): Likewise.
21015         * modules/math (Depends-on, Makefile.am): Likewise.
21016         * modules/search (Depends-on, Makefile.am): Likewise.
21017         * modules/signal (Depends-on, Makefile.am): Likewise.
21018         * modules/spawn (Depends-on, Makefile.am): Likewise.
21019         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21020         * modules/string (Depends-on, Makefile.am): Likewise.
21021         * modules/strings (Depends-on, Makefile.am): Likewise.
21022         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21023         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21024         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21025         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21026         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21027         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21028         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21029         * modules/wchar (Depends-on, Makefile.am): Likewise.
21030         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21031         should be poisoned.
21032         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21033         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21034         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21035         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21036         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21037         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21038         * m4/math_h.m4 (gl_MATH_H): Likewise.
21039         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21040         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21041         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21042         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21043         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21044         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21045         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21046         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21047         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21048         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21049         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21051         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21052         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21053         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21054         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21055         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21056         GL_LINK_WARNING.
21057         * lib/ctype.in.h: Likewise.
21058         * lib/dirent.in.h: Likewise.
21059         * lib/fcntl.in.h: Likewise.
21060         * lib/inttypes.in.h: Likewise.
21061         * lib/langinfo.in.h: Likewise.
21062         * lib/locale.in.h: Likewise.
21063         * lib/math.in.h: Likewise.
21064         * lib/search.in.h: Likewise.
21065         * lib/signal.in.h: Likewise.
21066         * lib/spawn.in.h: Likewise.
21067         * lib/stdio.in.h: Likewise.
21068         * lib/stdlib.in.h: Likewise.
21069         * lib/string.in.h: Likewise.
21070         * lib/strings.in.h: Likewise.
21071         * lib/sys_file.in.h: Likewise.
21072         * lib/sys_ioctl.in.h: Likewise.
21073         * lib/sys_select.in.h: Likewise.
21074         * lib/sys_socket.in.h: Likewise.
21075         * lib/sys_stat.in.h: Likewise.
21076         * lib/sys_times.in.h: Likewise.
21077         * lib/sys_utsname.in.h: Likewise.
21078         * lib/unistd.in.h: Likewise.
21079         * lib/wchar.in.h: Likewise.
21080
21081 2010-01-20  Bruno Haible  <bruno@clisp.org>
21082
21083         Avoid duplicate -lm.
21084         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21085         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21086         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21087         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21088         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21089         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21090         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21091         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21092         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21093         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21094         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21095         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21096         Reported by Paolo Bonzini.
21097
21098 2010-01-19  Bruno Haible  <bruno@clisp.org>
21099
21100         langinfo, nl_langinfo: Relicense under LGPLv2+.
21101         * modules/langinfo (License): Change to LGPLv2+.
21102         * modules/nl_langinfo (License): Likewise.
21103         Patch by David Lutterkort <lutter@redhat.com>.
21104
21105 2010-01-19  Bruno Haible  <bruno@clisp.org>
21106
21107         Avoid compilation error with cc on OSF/1 5.1.
21108         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21109         statement, not before.
21110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21111
21112 2010-01-18  Bruno Haible  <bruno@clisp.org>
21113
21114         Avoid a link error due to the __printf__ symbol.
21115         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21116         and 2.6.x.
21117         (__format__, __printf__): Remove definitions.
21118         * lib/argp-fmtstream.h: Likewise.
21119         * lib/argp.h: Likewise.
21120         * lib/error.h: Likewise.
21121         * lib/vasnprintf.h: Likewise.
21122         * lib/xprintf.h: Likewise.
21123         * lib/xvasprintf.h: Likewise.
21124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21125
21126 2010-01-18  Bruno Haible  <bruno@clisp.org>
21127
21128         Tests for module 'tanl'.
21129         * modules/tanl-tests: New file.
21130         * tests/test-tanl.c: New file.
21131
21132         Tests for module 'sqrtl'.
21133         * modules/sqrtl-tests: New file.
21134         * tests/test-sqrtl.c: New file.
21135
21136         Tests for module 'sinl'.
21137         * modules/sinl-tests: New file.
21138         * tests/test-sinl.c: New file.
21139
21140         Tests for module 'logl'.
21141         * modules/logl-tests: New file.
21142         * tests/test-logl.c: New file.
21143
21144         Tests for module 'expl'.
21145         * modules/expl-tests: New file.
21146         * tests/test-expl.c: New file.
21147
21148         Tests for module 'cosl'.
21149         * modules/cosl-tests: New file.
21150         * tests/test-cosl.c: New file.
21151
21152         Tests for module 'atanl'.
21153         * modules/atanl-tests: New file.
21154         * tests/test-atanl.c: New file.
21155
21156         Tests for module 'asinl'.
21157         * modules/asinl-tests: New file.
21158         * tests/test-asinl.c: New file.
21159
21160         Tests for module 'acosl'.
21161         * modules/acosl-tests: New file.
21162         * tests/test-acosl.c: New file.
21163
21164         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21165         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21166         tanl): Use the standard gnulib idiom.
21167         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21168         * lib/sinl.c: Likewise.
21169         * lib/tanl.c: Don't include trigl.c.
21170         (kernel_tanl): Make static.
21171         * lib/sincosl.c: Include trigl.h first.
21172         * lib/trigl.c: Likewise.
21173         * m4/acosl.m4: New file.
21174         * m4/asinl.m4: New file.
21175         * m4/atanl.m4: New file.
21176         * m4/cosl.m4: New file.
21177         * m4/expl.m4: New file.
21178         * m4/logl.m4: New file.
21179         * m4/sinl.m4: New file.
21180         * m4/sqrtl.m4: New file.
21181         * m4/tanl.m4: New file.
21182         * m4/mathl.m4: Remove file.
21183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21184         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21185         Don't initialize GNULIB_MATHL.
21186         * modules/acosl: New file.
21187         * modules/asinl: New file.
21188         * modules/atanl: New file.
21189         * modules/cosl: New file.
21190         * modules/expl: New file.
21191         * modules/logl: New file.
21192         * modules/sinl: New file.
21193         * modules/sqrtl: New file.
21194         * modules/tanl: New file.
21195         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21196         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21197         substitute GNULIB_MATHL.
21198         * modules/mathl: Rewritten.
21199         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21200         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21201         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21202         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21203         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21204         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21205         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21206         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21207         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21208
21209 2010-01-18  Bruno Haible  <bruno@clisp.org>
21210
21211         sqrt: Make gl_FUNC_SQRT requirable.
21212         * m4/sqrt.m4: New file.
21213         * modules/sqrt (Files): Add it.
21214         (configure.ac): Invoke gl_FUNC_SQRT.
21215
21216 2010-01-18  Bruno Haible  <bruno@clisp.org>
21217
21218         New modules for common <math.h> functions.
21219         * m4/mathfunc.m4: New file.
21220         * modules/acos: New file.
21221         * modules/asin: New file.
21222         * modules/atan: New file.
21223         * modules/atan2: New file.
21224         * modules/cbrt: New file.
21225         * modules/copysign: New file.
21226         * modules/cos: New file.
21227         * modules/cosh: New file.
21228         * modules/erf: New file.
21229         * modules/erfc: New file.
21230         * modules/exp: New file.
21231         * modules/fabs: New file.
21232         * modules/fmod: New file.
21233         * modules/hypot: New file.
21234         * modules/j0: New file.
21235         * modules/j1: New file.
21236         * modules/jn: New file.
21237         * modules/ldexp: New file.
21238         * modules/lgamma: New file.
21239         * modules/log: New file.
21240         * modules/log10: New file.
21241         * modules/log1p: New file.
21242         * modules/logb: New file.
21243         * modules/modf: New file.
21244         * modules/nextafter: New file.
21245         * modules/pow: New file.
21246         * modules/remainder: New file.
21247         * modules/rint: New file.
21248         * modules/sin: New file.
21249         * modules/sinh: New file.
21250         * modules/sqrt: New file.
21251         * modules/tan: New file.
21252         * modules/tanh: New file.
21253         * modules/y0: New file.
21254         * modules/y1: New file.
21255         * modules/yn: New file.
21256         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21257         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21258         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21259         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21260         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21261         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21262         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21263         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21264         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21265         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21266         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21267         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21268         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21269         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21270         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21271         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21272         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21273         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21274         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21275         * doc/posix-functions/log.texi: Mention the 'log' module.
21276         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21277         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21278         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21279         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21280         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21281         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21282         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21283         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21284         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21285         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21286         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21287         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21288         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21289         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21290         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21291         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21292
21293 2010-01-18  Jim Meyering  <meyering@redhat.com>
21294
21295         ignore-value: relax license to LGPLv2+
21296         * modules/ignore-value (License): Relax to LGPLv2+.
21297
21298         getdate: don't leak when TZ contains two or more '"'s
21299         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21300         double quote in TZ after the first one.
21301
21302         readtokens: do not leak internal token_lengths buffer
21303         * lib/readtokens.c (readtokens): Free the local, lengths,
21304         when the supplied "token_lengths" parameter is NULL.
21305
21306 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21307
21308         Fix a couple of missing LIBTHREAD link failures on AIX.
21309         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21310         $(LIBTHREAD).
21311         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21312
21313         Link test-poll against INET_PTON_LIB.
21314         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21315         for inet_pton on Solaris 10.
21316
21317 2010-01-17  Bruno Haible  <bruno@clisp.org>
21318
21319         unistdio/*-sprintf: Fix typo in module description.
21320         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21321         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21322         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21323         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21324         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21325         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21326         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21328
21329 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21330
21331         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21332         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21333         variables in shell case patterns, for AIX and HP-UX ksh.
21334
21335         Split large sed scripts, for HP-UX sed.
21336         * modules/stdio: Split sed scripts around 50 sed commands,
21337         to avoid HP-UX limit of 99 commands, in the near future.
21338         * modules/string: Likewise.
21339         * modules/unistd: Likewise.
21340
21341         gnulib-tool: avoid writing in the current directory.
21342         * gnulib-tool (func_emit_lib_Makefile_am)
21343         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21344         not in the current directory, so concurrent gnulib-tool
21345         instances do not interfere.
21346
21347 2010-01-16  Jim Meyering  <meyering@redhat.com>
21348
21349         doc: update users.txt
21350         * users.txt: Add grep.
21351         (diffutils, gzip): Update URLs.
21352
21353 2010-01-12  Bruno Haible  <bruno@clisp.org>
21354
21355         posix_spawn: Avoid test failure on Cygwin.
21356         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21357         characters.
21358         Reported by Simon Josefsson.
21359
21360 2010-01-12  Bruno Haible  <bruno@clisp.org>
21361
21362         * tests/test-cond.c (main): When skipping the test, show the reason.
21363
21364 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21365
21366         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21367
21368 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21369
21370         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21371         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21372
21373 2010-01-12  Eric Blake  <ebb9@byu.net>
21374
21375         build: guarantee AS_VAR_IF
21376         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21377         (gl_AS_VAR_IF): Move...
21378         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21379         Reported by Simon Josefsson.
21380
21381 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21382
21383         * lib/stdio.in.h: Fix typo.
21384
21385 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21386
21387         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21388         libgpg-error.
21389
21390 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21391
21392         * tests/test-xalloc-die.sh: Use $EXEEXT.
21393
21394 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21395             Bruno Haible  <bruno@clisp.org>
21396
21397         getlogin, getlogin_r: Avoid test failure.
21398         * tests/test-getlogin.c: Include <stdio.h>.
21399         (main): Skip the test when the function fails because stdin is not a
21400         tty.
21401         * tests/test-getlogin_r.c: Include <stdio.h>.
21402         (main): Skip the test when the function fails because stdin is not a
21403         tty.
21404
21405 2010-01-11  Eric Blake  <ebb9@byu.net>
21406
21407         tests: avoid more large file warnings
21408         * tests/test-fflush.c: Avoid warning about ftell use.
21409         * tests/test-fseek.c: Avoid warning about fseek use.
21410
21411 2010-01-10  Bruno Haible  <bruno@clisp.org>
21412
21413         nproc: Work better on Linux when /proc and /sys are not mounted.
21414         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21415         as lower bound when, on glibc/Linux systems,
21416         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21417         Suggested by Pádraig Brady <P@draigbrady.com>.
21418         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21419
21420         nproc: Refactor.
21421         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21422         extracted from num_processors.
21423         (num_processors): Call it.
21424
21425 2010-01-11  Jim Meyering  <meyering@redhat.com>
21426
21427         utimecmp: avoid new warning from upcoming gcc-4.5.0
21428         * lib/utimecmp.c (BILLION): Define using #define rather than an
21429         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21430
21431 2010-01-11  Eric Blake  <ebb9@byu.net>
21432
21433         math: add portability warnings for classification macros
21434         * modules/math (Depends-on): Add warn-on-use.
21435         (Makefile.am): Provide new substitutions.
21436         * m4/math_h.m4 (gl_MATH_H): Require inline.
21437         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21438         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21439         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21440         implement warnings.
21441
21442         unistd: warn on use of environ without module
21443         * modules/unistd (Depends-on): Add warn-on-use.
21444         (Makefile.am): Provide new substitutions.
21445         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21446         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21447
21448         stdio: warn on suspicious uses
21449         * modules/stdio (Depends-on): Add warn-on-use.
21450         (Makefile.am): Provide new substitutions.
21451         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21452         fseeko.
21453         * lib/stdio.in.h (gets): Always warn on use.
21454         (fseek, ftell): Adjust when warnings are issued, and honor
21455         _GL_NO_LARGE_FILES as a way to silence the warning.
21456         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21457         any warning about large file offsets.
21458         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21459         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21460         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21461         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21462         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21463         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21464         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21465         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21466
21467         warn-on-use: new module
21468         * modules/warn-on-use: New file.
21469         * build-aux/warn-on-use.h: Likewise.
21470         * m4/warn-on-use.m4: Likewise.
21471         * MODULES.html.sh (Support for building): Mention it.
21472
21473 2010-01-10  Bruno Haible  <bruno@clisp.org>
21474
21475         Tests for module 'unistr/u32-strdup'.
21476         * modules/unistr/u32-strdup-tests: New file.
21477         * tests/unistr/test-u32-strdup.c: New file.
21478
21479         Tests for module 'unistr/u16-strdup'.
21480         * modules/unistr/u16-strdup-tests: New file.
21481         * tests/unistr/test-u16-strdup.c: New file.
21482
21483         Tests for module 'unistr/u8-strdup'.
21484         * modules/unistr/u8-strdup-tests: New file.
21485         * tests/unistr/test-u8-strdup.c: New file.
21486         * tests/unistr/test-strdup.h: New file.
21487
21488         Tests for module 'unistr/u32-strncmp'.
21489         * modules/unistr/u32-strncmp-tests: New file.
21490         * tests/unistr/test-u32-strncmp.c: New file.
21491
21492         Tests for module 'unistr/u16-strncmp'.
21493         * modules/unistr/u16-strncmp-tests: New file.
21494         * tests/unistr/test-u16-strncmp.c: New file.
21495
21496         Tests for module 'unistr/u8-strncmp'.
21497         * modules/unistr/u8-strncmp-tests: New file.
21498         * tests/unistr/test-u8-strncmp.c: New file.
21499         * tests/unistr/test-strncmp.h: New file.
21500
21501         Tests for module 'unistr/u32-strcoll'.
21502         * modules/unistr/u32-strcoll-tests: New file.
21503         * tests/unistr/test-u32-strcoll.c: New file.
21504
21505         Tests for module 'unistr/u16-strcoll'.
21506         * modules/unistr/u16-strcoll-tests: New file.
21507         * tests/unistr/test-u16-strcoll.c: New file.
21508
21509         Tests for module 'unistr/u8-strcoll'.
21510         * modules/unistr/u8-strcoll-tests: New file.
21511         * tests/unistr/test-u8-strcoll.c: New file.
21512
21513         Tests for module 'unistr/u32-strcmp'.
21514         * modules/unistr/u32-strcmp-tests: New file.
21515         * tests/unistr/test-u32-strcmp.c: New file.
21516         * tests/unistr/test-u32-strcmp.h: New file.
21517
21518         Tests for module 'unistr/u16-strcmp'.
21519         * modules/unistr/u16-strcmp-tests: New file.
21520         * tests/unistr/test-u16-strcmp.c: New file.
21521         * tests/unistr/test-u16-strcmp.h: New file.
21522
21523         Tests for module 'unistr/u8-strcmp'.
21524         * modules/unistr/u8-strcmp-tests: New file.
21525         * tests/unistr/test-u8-strcmp.c: New file.
21526         * tests/unistr/test-u8-strcmp.h: New file.
21527         * tests/unistr/test-strcmp.h: New file.
21528
21529         Tests for module 'unistr/u32-strncat'.
21530         * modules/unistr/u32-strncat-tests: New file.
21531         * tests/unistr/test-u32-strncat.c: New file.
21532
21533         Tests for module 'unistr/u16-strncat'.
21534         * modules/unistr/u16-strncat-tests: New file.
21535         * tests/unistr/test-u16-strncat.c: New file.
21536
21537         Tests for module 'unistr/u8-strncat'.
21538         * modules/unistr/u8-strncat-tests: New file.
21539         * tests/unistr/test-u8-strncat.c: New file.
21540         * tests/unistr/test-strncat.h: New file.
21541
21542         Tests for module 'unistr/u32-strcat'.
21543         * modules/unistr/u32-strcat-tests: New file.
21544         * tests/unistr/test-u32-strcat.c: New file.
21545
21546         Tests for module 'unistr/u16-strcat'.
21547         * modules/unistr/u16-strcat-tests: New file.
21548         * tests/unistr/test-u16-strcat.c: New file.
21549
21550         Tests for module 'unistr/u8-strcat'.
21551         * modules/unistr/u8-strcat-tests: New file.
21552         * tests/unistr/test-u8-strcat.c: New file.
21553         * tests/unistr/test-strcat.h: New file.
21554
21555         Tests for module 'unistr/u32-stpncpy'.
21556         * modules/unistr/u32-stpncpy-tests: New file.
21557         * tests/unistr/test-u32-stpncpy.c: New file.
21558
21559         Tests for module 'unistr/u16-stpncpy'.
21560         * modules/unistr/u16-stpncpy-tests: New file.
21561         * tests/unistr/test-u16-stpncpy.c: New file.
21562
21563         Tests for module 'unistr/u8-stpncpy'.
21564         * modules/unistr/u8-stpncpy-tests: New file.
21565         * tests/unistr/test-u8-stpncpy.c: New file.
21566         * tests/unistr/test-stpncpy.h: New file.
21567
21568         Tests for module 'unistr/u32-strncpy'.
21569         * modules/unistr/u32-strncpy-tests: New file.
21570         * tests/unistr/test-u32-strncpy.c: New file.
21571
21572         Tests for module 'unistr/u16-strncpy'.
21573         * modules/unistr/u16-strncpy-tests: New file.
21574         * tests/unistr/test-u16-strncpy.c: New file.
21575
21576         Tests for module 'unistr/u8-strncpy'.
21577         * modules/unistr/u8-strncpy-tests: New file.
21578         * tests/unistr/test-u8-strncpy.c: New file.
21579         * tests/unistr/test-strncpy.h: New file.
21580
21581         Tests for module 'unistr/u32-stpcpy'.
21582         * modules/unistr/u32-stpcpy-tests: New file.
21583         * tests/unistr/test-u32-stpcpy.c: New file.
21584
21585         Tests for module 'unistr/u16-stpcpy'.
21586         * modules/unistr/u16-stpcpy-tests: New file.
21587         * tests/unistr/test-u16-stpcpy.c: New file.
21588
21589         Tests for module 'unistr/u8-stpcpy'.
21590         * modules/unistr/u8-stpcpy-tests: New file.
21591         * tests/unistr/test-u8-stpcpy.c: New file.
21592         * tests/unistr/test-stpcpy.h: New file.
21593
21594         Tests for module 'unistr/u32-strcpy'.
21595         * modules/unistr/u32-strcpy-tests: New file.
21596         * tests/unistr/test-u32-strcpy.c: New file.
21597
21598         Tests for module 'unistr/u16-strcpy'.
21599         * modules/unistr/u16-strcpy-tests: New file.
21600         * tests/unistr/test-u16-strcpy.c: New file.
21601
21602         Tests for module 'unistr/u8-strcpy'.
21603         * modules/unistr/u8-strcpy-tests: New file.
21604         * tests/unistr/test-u8-strcpy.c: New file.
21605         * tests/unistr/test-strcpy.h: New file.
21606
21607         Tests for module 'unistr/u32-strnlen'.
21608         * modules/unistr/u32-strnlen-tests: New file.
21609         * tests/unistr/test-u32-strnlen.c: New file.
21610
21611         Tests for module 'unistr/u16-strnlen'.
21612         * modules/unistr/u16-strnlen-tests: New file.
21613         * tests/unistr/test-u16-strnlen.c: New file.
21614
21615         Tests for module 'unistr/u8-strnlen'.
21616         * modules/unistr/u8-strnlen-tests: New file.
21617         * tests/unistr/test-u8-strnlen.c: New file.
21618         * tests/unistr/test-strnlen.h: New file.
21619
21620         Tests for module 'unistr/u32-strlen'.
21621         * modules/unistr/u32-strlen-tests: New file.
21622         * tests/unistr/test-u32-strlen.c: New file.
21623
21624         Tests for module 'unistr/u16-strlen'.
21625         * modules/unistr/u16-strlen-tests: New file.
21626         * tests/unistr/test-u16-strlen.c: New file.
21627
21628         Tests for module 'unistr/u8-strlen'.
21629         * modules/unistr/u8-strlen-tests: New file.
21630         * tests/unistr/test-u8-strlen.c: New file.
21631
21632         Tests for module 'unistr/u32-prev'.
21633         * modules/unistr/u32-prev-tests: New file.
21634         * tests/unistr/test-u32-prev.c: New file.
21635
21636         Tests for module 'unistr/u16-prev'.
21637         * modules/unistr/u16-prev-tests: New file.
21638         * tests/unistr/test-u16-prev.c: New file.
21639
21640         Tests for module 'unistr/u8-prev'.
21641         * modules/unistr/u8-prev-tests: New file.
21642         * tests/unistr/test-u8-prev.c: New file.
21643
21644         Tests for module 'unistr/u32-next'.
21645         * modules/unistr/u32-next-tests: New file.
21646         * tests/unistr/test-u32-next.c: New file.
21647
21648         Tests for module 'unistr/u16-next'.
21649         * modules/unistr/u16-next-tests: New file.
21650         * tests/unistr/test-u16-next.c: New file.
21651
21652         Tests for module 'unistr/u8-next'.
21653         * modules/unistr/u8-next-tests: New file.
21654         * tests/unistr/test-u8-next.c: New file.
21655
21656         Tests for module 'unistr/u32-strmbtouc'.
21657         * modules/unistr/u32-strmbtouc-tests: New file.
21658         * tests/unistr/test-u32-strmbtouc.c: New file.
21659
21660         Tests for module 'unistr/u16-strmbtouc'.
21661         * modules/unistr/u16-strmbtouc-tests: New file.
21662         * tests/unistr/test-u16-strmbtouc.c: New file.
21663
21664         Tests for module 'unistr/u8-strmbtouc'.
21665         * modules/unistr/u8-strmbtouc-tests: New file.
21666         * tests/unistr/test-u8-strmbtouc.c: New file.
21667
21668         Tests for module 'unistr/u32-strmblen'.
21669         * modules/unistr/u32-strmblen-tests: New file.
21670         * tests/unistr/test-u32-strmblen.c: New file.
21671
21672         Tests for module 'unistr/u16-strmblen'.
21673         * modules/unistr/u16-strmblen-tests: New file.
21674         * tests/unistr/test-u16-strmblen.c: New file.
21675
21676         Tests for module 'unistr/u8-strmblen'.
21677         * modules/unistr/u8-strmblen-tests: New file.
21678         * tests/unistr/test-u8-strmblen.c: New file.
21679
21680         Tests for module 'unistr/u32-cpy-alloc'.
21681         * modules/unistr/u32-cpy-alloc-tests: New file.
21682         * tests/unistr/test-u32-cpy-alloc.c: New file.
21683
21684         Tests for module 'unistr/u16-cpy-alloc'.
21685         * modules/unistr/u16-cpy-alloc-tests: New file.
21686         * tests/unistr/test-u16-cpy-alloc.c: New file.
21687
21688         Tests for module 'unistr/u8-cpy-alloc'.
21689         * modules/unistr/u8-cpy-alloc-tests: New file.
21690         * tests/unistr/test-u8-cpy-alloc.c: New file.
21691         * tests/unistr/test-cpy-alloc.h: New file.
21692
21693         Tests for module 'unistr/u32-mbsnlen'.
21694         * modules/unistr/u32-mbsnlen-tests: New file.
21695         * tests/unistr/test-u32-mbsnlen.c: New file.
21696
21697         Tests for module 'unistr/u16-mbsnlen'.
21698         * modules/unistr/u16-mbsnlen-tests: New file.
21699         * tests/unistr/test-u16-mbsnlen.c: New file.
21700
21701         Tests for module 'unistr/u8-mbsnlen'.
21702         * modules/unistr/u8-mbsnlen-tests: New file.
21703         * tests/unistr/test-u8-mbsnlen.c: New file.
21704
21705         Tests for module 'unistr/u32-chr'.
21706         * modules/unistr/u32-chr-tests: New file.
21707         * tests/unistr/test-u32-chr.c: New file.
21708
21709         Tests for module 'unistr/u16-chr'.
21710         * modules/unistr/u16-chr-tests: New file.
21711         * tests/unistr/test-u16-chr.c: New file.
21712
21713         Tests for module 'unistr/u8-chr'.
21714         * modules/unistr/u8-chr-tests: New file.
21715         * tests/unistr/test-u8-chr.c: New file.
21716         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21717
21718         Tests for module 'unistr/u32-cmp2'.
21719         * modules/unistr/u32-cmp2-tests: New file.
21720         * tests/unistr/test-u32-cmp2.c: New file.
21721
21722         Tests for module 'unistr/u16-cmp2'.
21723         * modules/unistr/u16-cmp2-tests: New file.
21724         * tests/unistr/test-u16-cmp2.c: New file.
21725
21726         Tests for module 'unistr/u8-cmp2'.
21727         * modules/unistr/u8-cmp2-tests: New file.
21728         * tests/unistr/test-u8-cmp2.c: New file.
21729         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21730
21731         Tests for module 'unistr/u32-cmp'.
21732         * modules/unistr/u32-cmp-tests: New file.
21733         * tests/unistr/test-u32-cmp.c: New file.
21734
21735         Tests for module 'unistr/u16-cmp'.
21736         * modules/unistr/u16-cmp-tests: New file.
21737         * tests/unistr/test-u16-cmp.c: New file.
21738
21739         Tests for module 'unistr/u8-cmp'.
21740         * modules/unistr/u8-cmp-tests: New file.
21741         * tests/unistr/test-u8-cmp.c: New file.
21742         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21743
21744         Tests for module 'unistr/u32-set'.
21745         * modules/unistr/u32-set-tests: New file.
21746         * tests/unistr/test-u32-set.c: New file.
21747
21748         Tests for module 'unistr/u16-set'.
21749         * modules/unistr/u16-set-tests: New file.
21750         * tests/unistr/test-u16-set.c: New file.
21751
21752         Tests for module 'unistr/u8-set'.
21753         * modules/unistr/u8-set-tests: New file.
21754         * tests/unistr/test-u8-set.c: New file.
21755         * tests/unistr/test-set.h: New file.
21756
21757         Tests for module 'unistr/u32-move'.
21758         * modules/unistr/u32-move-tests: New file.
21759         * tests/unistr/test-u32-move.c: New file.
21760
21761         Tests for module 'unistr/u16-move'.
21762         * modules/unistr/u16-move-tests: New file.
21763         * tests/unistr/test-u16-move.c: New file.
21764
21765         Tests for module 'unistr/u8-move'.
21766         * modules/unistr/u8-move-tests: New file.
21767         * tests/unistr/test-u8-move.c: New file.
21768         * tests/unistr/test-move.h: New file.
21769
21770         Tests for module 'unistr/u32-cpy'.
21771         * modules/unistr/u32-cpy-tests: New file.
21772         * tests/unistr/test-u32-cpy.c: New file.
21773
21774         Tests for module 'unistr/u16-cpy'.
21775         * modules/unistr/u16-cpy-tests: New file.
21776         * tests/unistr/test-u16-cpy.c: New file.
21777
21778         Tests for module 'unistr/u8-cpy'.
21779         * modules/unistr/u8-cpy-tests: New file.
21780         * tests/unistr/test-u8-cpy.c: New file.
21781         * tests/unistr/test-cpy.h: New file.
21782
21783 2010-01-09  Bruno Haible  <bruno@clisp.org>
21784
21785         Tests for module 'unistr/u32-uctomb'.
21786         * modules/unistr/u32-uctomb-tests: New file.
21787         * tests/unistr/test-u32-uctomb.c: New file.
21788
21789         Tests for module 'unistr/u16-uctomb'.
21790         * modules/unistr/u16-uctomb-tests: New file.
21791         * tests/unistr/test-u16-uctomb.c: New file.
21792
21793         Tests for module 'unistr/u8-uctomb'.
21794         * modules/unistr/u8-uctomb-tests: New file.
21795         * tests/unistr/test-u8-uctomb.c: New file.
21796
21797         Tests for module 'unistr/u32-mbtoucr'.
21798         * modules/unistr/u32-mbtoucr-tests: New file.
21799         * tests/unistr/test-u32-mbtoucr.c: New file.
21800
21801         Tests for module 'unistr/u16-mbtoucr'.
21802         * modules/unistr/u16-mbtoucr-tests: New file.
21803         * tests/unistr/test-u16-mbtoucr.c: New file.
21804
21805         Tests for module 'unistr/u8-mbtoucr'.
21806         * modules/unistr/u8-mbtoucr-tests: New file.
21807         * tests/unistr/test-u8-mbtoucr.c: New file.
21808
21809         Tests for module 'unistr/u32-mbtouc'.
21810         * modules/unistr/u32-mbtouc-tests: New file.
21811         * tests/unistr/test-u32-mbtouc.c: New file.
21812
21813         Tests for module 'unistr/u16-mbtouc'.
21814         * modules/unistr/u16-mbtouc-tests: New file.
21815         * tests/unistr/test-u16-mbtouc.c: New file.
21816
21817         Tests for module 'unistr/u8-mbtouc'.
21818         * modules/unistr/u8-mbtouc-tests: New file.
21819         * tests/unistr/test-u8-mbtouc.c: New file.
21820
21821         Tests for module 'unistr/u32-mbtouc-unsafe'.
21822         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21823         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21824         * tests/unistr/test-u32-mbtouc.h: New file.
21825
21826         Tests for module 'unistr/u16-mbtouc-unsafe'.
21827         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21828         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21829         * tests/unistr/test-u16-mbtouc.h: New file.
21830
21831         Tests for module 'unistr/u8-mbtouc-unsafe'.
21832         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21833         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21834         * tests/unistr/test-u8-mbtouc.h: New file.
21835
21836         Tests for module 'unistr/u32-mblen'.
21837         * modules/unistr/u32-mblen-tests: New file.
21838         * tests/unistr/test-u32-mblen.c: New file.
21839
21840         Tests for module 'unistr/u16-mblen'.
21841         * modules/unistr/u16-mblen-tests: New file.
21842         * tests/unistr/test-u16-mblen.c: New file.
21843
21844         Tests for module 'unistr/u8-mblen'.
21845         * modules/unistr/u8-mblen-tests: New file.
21846         * tests/unistr/test-u8-mblen.c: New file.
21847
21848         Tests for module 'unistr/u32-to-u16'.
21849         * modules/unistr/u32-to-u16-tests: New file.
21850         * tests/unistr/test-u32-to-u16.c: New file.
21851
21852         Tests for module 'unistr/u32-to-u8'.
21853         * modules/unistr/u32-to-u8-tests: New file.
21854         * tests/unistr/test-u32-to-u8.c: New file.
21855
21856         Tests for module 'unistr/u16-to-u32'.
21857         * modules/unistr/u16-to-u32-tests: New file.
21858         * tests/unistr/test-u16-to-u32.c: New file.
21859
21860         Tests for module 'unistr/u16-to-u8'.
21861         * modules/unistr/u16-to-u8-tests: New file.
21862         * tests/unistr/test-u16-to-u8.c: New file.
21863
21864         Tests for module 'unistr/u8-to-u32'.
21865         * modules/unistr/u8-to-u32-tests: New file.
21866         * tests/unistr/test-u8-to-u32.c: New file.
21867
21868         Tests for module 'unistr/u8-to-u16'.
21869         * modules/unistr/u8-to-u16-tests: New file.
21870         * tests/unistr/test-u8-to-u16.c: New file.
21871
21872         Tests for module 'unistr/u32-check'.
21873         * modules/unistr/u32-check-tests: New file.
21874         * tests/unistr/test-u32-check.c: New file.
21875
21876         Tests for module 'unistr/u16-check'.
21877         * modules/unistr/u16-check-tests: New file.
21878         * tests/unistr/test-u16-check.c: New file.
21879
21880         Tests for module 'unistr/u8-check'.
21881         * modules/unistr/u8-check-tests: New file.
21882         * tests/unistr/test-u8-check.c: New file.
21883
21884         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21885         (category_equals): New function.
21886         (main): Add more tests.
21887         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21888
21889         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21890
21891 2010-01-10  Bruno Haible  <bruno@clisp.org>
21892
21893         unistr/u*-strcoll: Try harder to distinguish different strings.
21894         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21895         compare s1 and s2 to see if they are different.
21896
21897 2010-01-10  Bruno Haible  <bruno@clisp.org>
21898
21899         unistr/u*-stpncpy: Fix the return value.
21900         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21901         description of the return value consistent with stpncpy in glibc.
21902         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21903         written non-NUL unit.
21904
21905 2010-01-10  Bruno Haible  <bruno@clisp.org>
21906
21907         unistr/u*-next: Add missing dependencies.
21908         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21909         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21910         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21911
21912 2010-01-10  Bruno Haible  <bruno@clisp.org>
21913
21914         unistr/u8-mbsnlen: Fix return value for incomplete character.
21915         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21916         u8_mblen.
21917         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21918         Remove unistr/u8-mblen.
21919         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21920         u16_mblen.
21921         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21922         Remove unistr/u16-mblen.
21923
21924 2010-01-10  Bruno Haible  <bruno@clisp.org>
21925
21926         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21927         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21928         Reported by Brian Gough <bjg@gnu.org> and
21929         Chris Clayton <chris2553@googlemail.com> via
21930         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21931
21932 2010-01-09  Bruno Haible  <bruno@clisp.org>
21933
21934         unistr/u16-to-u32: Reject invalid input.
21935         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21936         u16_mbtouc.
21937         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21938         Remove unistr/u16-mbtouc.
21939
21940         unistr/u16-to-u8: Reject invalid input.
21941         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21942         u16_mbtouc.
21943         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21944         Remove unistr/u16-mbtouc.
21945
21946         unistr/u8-to-u32: Reject invalid input.
21947         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21948         u8_mbtouc.
21949         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21950         Remove unistr/u8-mbtouc.
21951
21952         unistr/u8-to-u16: Reject invalid input.
21953         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21954         u8_mbtouc.
21955         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21956         Remove unistr/u8-mbtouc.
21957
21958 2010-01-09  Bruno Haible  <bruno@clisp.org>
21959
21960         Tests for module 'getlogin'.
21961         * modules/getlogin-tests: New file.
21962         * tests/test-getlogin.c: New file.
21963
21964         New module 'getlogin'.
21965         * lib/unistd.in.h (getlogin): New declaration.
21966         * lib/getlogin.c: New file.
21967         * m4/getlogin.m4: New file.
21968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21969         HAVE_GETLOGIN.
21970         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21971         HAVE_GETLOGIN.
21972         * modules/getlogin: New file.
21973         * doc/posix-functions/getlogin.texi: Mention the new module.
21974         Reported by John W. Eaton <jwe@gnu.org>.
21975
21976 2010-01-09  Bruno Haible  <bruno@clisp.org>
21977
21978         getlogin_r: Support for native Windows.
21979         * lib/getlogin_r.c: Include <windows.h>
21980         (getlogin_r): Implement for native Windows.
21981         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21982         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21983         via John W. Eaton <jwe@gnu.org>.
21984
21985 2010-01-09  Bruno Haible  <bruno@clisp.org>
21986
21987         getlogin_r: Small fixes.
21988         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21989         succeeds.
21990         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21991         before testing whether getlogin_r is declared. No need to set
21992         HAVE_DECL_GETLOGIN_R to 1.
21993         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21994
21995 2010-01-09  Bruno Haible  <bruno@clisp.org>
21996
21997         * lib/unistd.in.h (getlogin_r): Add comment.
21998
21999 2010-01-09  Bruno Haible  <bruno@clisp.org>
22000
22001         Tests for module 'getlogin_r'.
22002         * modules/getlogin_r-tests: New file.
22003         * tests/test-getlogin_r.c: New file.
22004
22005 2010-01-09  Jim Meyering  <meyering@redhat.com>
22006
22007         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22008         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22009         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22010
22011 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22012
22013         * lib/dup2.c (rpl_dup2): Improve comment.
22014
22015 2010-01-08  Eric Blake  <ebb9@byu.net>
22016
22017         maint.mk: allow packages to add makefile @@ exceptions
22018         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22019         (sc_makefile_check): Rename...
22020         (sc_makefile_at_at_check): ...to this, and use hook.
22021
22022         dup2: work around mingw bug
22023         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22024         Reported by Simon Josefsson.
22025
22026 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22027
22028         glob: Fix C++ compilation.
22029         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22030         C++.
22031
22032 2010-01-07  Bruno Haible  <bruno@clisp.org>
22033
22034         Fix indentation of wctype.in.h, broken since 2007-01-06.
22035         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22036
22037 2010-01-07  Bruno Haible  <bruno@clisp.org>
22038
22039         mbslen: Avoid collision with system function.
22040         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22041         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22042         * m4/mbslen.m4: New file.
22043         * modules/mbslen (Files): Add it.
22044         (configure.ac): Invoke gl_MBSLEN.
22045         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22046         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22047         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22048         via Ian Beckwith <ianb@erislabs.net>.
22049
22050 2010-01-07  Bruno Haible  <bruno@clisp.org>
22051
22052         dirent: Document the last fix.
22053         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22054
22055 2010-01-07  Bruno Haible  <bruno@clisp.org>
22056
22057         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22058         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22059         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22060         va_list are defined.
22061         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22062         Reported by Eric Blake.
22063
22064 2010-01-07  Bruno Haible  <bruno@clisp.org>
22065
22066         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22067         * modules/xlist (Depends-on): Add 'list',
22068         * modules/xoset (Depends-on): Add 'oset'.
22069         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22070
22071 2010-01-07  Bruno Haible  <bruno@clisp.org>
22072
22073         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22074         * doc/posix-functions/strncasecmp.texi: Likewise.
22075
22076 2010-01-07  Bruno Haible  <bruno@clisp.org>
22077
22078         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22079
22080 2010-01-07  John W. Eaton  <jwe@octave.org>
22081
22082         wctype: allow C++ use
22083         * lib/wctype.in.h: Add extern "C" block for C++.
22084
22085 2010-01-06  Eric Blake  <ebb9@byu.net>
22086
22087         maint.mk: detect incorrect GFDL usage
22088         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22089
22090 2010-01-06  Jim Meyering  <meyering@redhat.com>
22091         and Eric Blake  <ebb9@byu.net>
22092
22093         maint.mk: ignore multi-line copyright in NEWS
22094         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22095
22096 2010-01-06  Eric Blake  <ebb9@byu.net>
22097
22098         select: add missing dependency
22099         * modules/select-tests (Depends-on): Move sockets dependency...
22100         * modules/select (Depends-on): ...here.
22101         Reported by Ian Beckwith.
22102
22103         doc: regenerate INSTALL
22104         * doc/INSTALL: Reflect recent autoconf update.
22105         * doc/INSTALL.ISO: Likewise.
22106         * doc/INSTALL.UTF-8: Likewise.
22107
22108         pread: fix compilation on glibc
22109         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22110         Reported by Ralf Wildenhues.
22111
22112         dirent: fix test failure
22113         * lib/dirent.in.h (includes): Guarantee ino_t.
22114         Reported by Ralf Wildenhues.
22115
22116 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22117
22118         linkat, renameat: avoid bad free
22119         * lib/at-func2.c (at_func2): Fix typo.
22120         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22121
22122 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22123
22124         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22125         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22126         to avoid failure of symlink test later.
22127
22128 2010-01-06  Eric Blake  <ebb9@byu.net>
22129
22130         stdio, unistd: guarantee ssize_t
22131         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22132         2008 are exposed when needed.
22133         * lib/stdio.in.h (includes): Likewise.
22134         Reported by Ralf Wildenhues.
22135
22136 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22137
22138         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22139         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22140         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22141
22142 2010-01-06  Jim Meyering  <meyering@redhat.com>
22143
22144         readtokens: this module *does* require xalloc.h
22145         It uses only functions that were omitted by the old syntax-check rule.
22146         * lib/readtokens.c: Include "xalloc.h" once again.
22147         * modules/readtokens (Depends-on): Add xalloc.
22148         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22149
22150 2010-01-05  Eric Blake  <ebb9@byu.net>
22151
22152         maint: support 'make announcement' from a VPATH build
22153         * top/maint.mk (announcement): Look for correct NEWS file.
22154
22155 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22156
22157         utimens (fdutimens): ignore a negative FD, per contract
22158         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22159         when we have a valid file descriptor.  Otherwise, using a brand
22160         new glibc (with just-patched futimens that now fails with EBADF)
22161         would cause this function to fail with ENOSYS.
22162         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22163         See also http://bugzilla.redhat.com/552320.
22164
22165 2010-01-05  Eric Blake  <ebb9@byu.net>
22166
22167         strcase: document what it provides
22168         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22169         gnulib module.
22170         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22171         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22172
22173 2010-01-05  Jim Meyering  <meyering@redhat.com>
22174
22175         maint: remove useless inclusions of "xalloc.h"
22176         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22177         * lib/readtokens.c: Likewise.
22178         * lib/same.c: Likewise.
22179         * modules/getloadavg (Depends-on): Remove xalloc.
22180         * modules/readtokens: Likewise.
22181         * modules/same: Likewise.
22182
22183         maint.mk: include 4 more function names in alloca.h-checking regexp
22184         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22185         regexp.  Before, we would give a false-positive (saying alloca.h
22186         is included unnecessarily) when the only uses involved omitted symbols.
22187
22188         xalloc.h: use consistent formatting
22189         * lib/xalloc.h: Move declarations to start in the first column.
22190
22191 2010-01-05  Eric Blake  <ebb9@byu.net>
22192
22193         mkdir: avoid xalloc
22194         * lib/mkdir.c (includes): Drop unused header.
22195         Reported by John W. Eaton.
22196
22197 2010-01-04  Jim Meyering  <meyering@redhat.com>
22198
22199         nl_langinfo: avoid configure-time syntax error
22200         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22201         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22202         the empty string.  Don't let that provoke a shell syntax error.
22203
22204         regcomp, regexec, fnmatch: avoid array bounds read error
22205         * lib/regcomp.c (build_equiv_class): From glibc:
22206         Use only the low 24 bits of a findidx return value as an index
22207         into the weights array.  Patch by Ulrich Drepper:
22208         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22209         * lib/regexec.c (check_node_accept_bytes): Likewise.
22210         * lib/fnmatch_loop.c (FCT): Likewise.
22211
22212         regcomp: skip collseq lookup when there are no rules
22213         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22214         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22215
22216         regcomp: recognize ill-formed { } expressions
22217         * lib/regcomp.c (parse_dup_op): From glibc:
22218         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22219
22220         regcomp: fix typo in comment
22221         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22222         s/satisfy/satisfies/.
22223
22224         regcomp: sync from glibc: remove dead store
22225         * lib/regcomp.c (duplicate_node_closure): Remove useless
22226         search_duplicated_node call and dead store.
22227
22228         regcomp: sync from glibc; always use nl_langinfo
22229         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22230         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22231         * modules/regex (Depends-on): Add nl_langinfo.
22232
22233 2010-01-04  Eric Blake  <ebb9@byu.net>
22234
22235         fdopendir: fix configure test
22236         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22237
22238 2010-01-01  Bruno Haible  <bruno@clisp.org>
22239
22240         wchar: Remove unused configure check.
22241         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22242
22243 2010-01-01  Eric Blake  <ebb9@byu.net>
22244
22245         headers: make check of system header explicit
22246         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22247         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22248         ourselves.
22249         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22251         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22252         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22253         internals.
22254         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22255         missing.
22256         Suggested by Bruno Haible.
22257
22258 2010-01-01  Jim Meyering  <meyering@redhat.com>
22259
22260         ChangeLog: tweak to eliminate unnecessary copyright line
22261         * ChangeLog: Remove a copyright line that was mistakenly updated
22262         by today's update-copyright run.  Reported by Eric Blake.
22263
22264         test-update-copyright: don't let envvar setting cause test failure
22265         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22266
22267 2010-01-01  Bruno Haible  <bruno@clisp.org>
22268
22269         localename: Avoid gcc warning.
22270         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22271         function if it is not used.
22272
22273 2010-01-01  Jim Meyering  <meyering@redhat.com>
22274
22275         update nearly all FSF copyright year lists to include 2010
22276         Use the same procedure as for 2009, outlined in
22277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22278
22279         version-etc: set COPYRIGHT_YEAR to 2010
22280         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22281
22282 2009-12-31  Eric Blake  <ebb9@byu.net>
22283
22284         doc: correct availability of cygwin 1.5.x getopt
22285         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22286         variables.
22287         * doc/posix-functions/opterr.texi (opterr): Likewise.
22288         * doc/posix-functions/optind.texi (optind): Likewise.
22289         * doc/posix-functions/optopt.texi (optopt): Likewise.
22290         * doc/posix-functions/tzname.texi (tzname): Likewise.
22291
22292         openat: update maintainer
22293         * modules/openat (Maintainer): Add myself.
22294
22295         utimens: avoid shadowing warning
22296         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22297         buffers into one, to avoid shadowing, as well as avoiding a
22298         redundant stat.
22299         Reported by Jim Meyering.
22300
22301         test-dup2: avoid compiler warning
22302         * tests/test-dup2.c (is_inheritable): Only define if used.
22303
22304 2010-01-01  Bruno Haible  <bruno@clisp.org>
22305
22306         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22307         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22308         defined, use wctomb instead of wcrtomb.
22309
22310 2010-01-01  Bruno Haible  <bruno@clisp.org>
22311
22312         iconv: Reject native Solaris iconv.
22313         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22314         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22315
22316 2009-12-31  Bruno Haible  <bruno@clisp.org>
22317
22318         * tests/test-signal.c (main): Remove test of 'SIG'.
22319
22320 2009-12-31  Bruno Haible  <bruno@clisp.org>
22321
22322         spawn: Fix incomplete fix.
22323         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22324         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22325         warnings for GNULIB_POSIXCHECK again.
22326         Reported by Eric Blake.
22327
22328 2009-12-31  Bruno Haible  <bruno@clisp.org>
22329
22330         Avoid namespace pollution on glibc systems.
22331         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22332         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22333         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22334         glibc systems.
22335
22336 2009-12-31  Bruno Haible  <bruno@clisp.org>
22337
22338         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22339         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22340         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22341         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22342         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22343         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22344         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22345
22346 2009-12-31  Bruno Haible  <bruno@clisp.org>
22347
22348         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22349         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22350         afterwards.
22351
22352 2009-12-31  Bruno Haible  <bruno@clisp.org>
22353
22354         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22355         SYS_UTSNAME_H.
22356
22357 2009-12-31  Bruno Haible  <bruno@clisp.org>
22358
22359         spawn: Fix misapplied patch.
22360         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22361         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22362         warnings for GNULIB_POSIXCHECK.
22363
22364 2009-12-31  Bruno Haible  <bruno@clisp.org>
22365
22366         times: Update after sys_times changed.
22367         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22368         * modules/times (Files): Add it.
22369         (configure.ac): Invoke gl_FUNC_TIMES.
22370
22371 2009-12-31  Bruno Haible  <bruno@clisp.org>
22372
22373         Use AC_C_INLINE where necessary.
22374         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22377         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22378         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22379         * m4/mbiter.m4 (gl_MBITER): Likewise.
22380         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22381         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22382         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22383         * modules/u64 (configure.ac): Likewise.
22384
22385 2009-12-31  Bruno Haible  <bruno@clisp.org>
22386
22387         Use AC_C_INLINE instead of module 'inline' where possible.
22388         * modules/inline (Description): Clarify purpose.
22389         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22390         * modules/count-one-bits (Depends-on): Remove inline.
22391         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22392         * modules/openat (Depends-on): Remove inline.
22393         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22394         instead of depending on module 'inline'.
22395         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22396         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22397         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22398         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22399         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22400         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22401         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22402         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22403         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22404         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22405         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22406         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22407         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22408         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22409         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22410         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22411         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22412         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22413         Likewise.
22414         * modules/unictype/property-ascii-hex-digit (Depends-on,
22415         configure.ac): Likewise.
22416         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22417         configure.ac): Likewise.
22418         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22419         configure.ac): Likewise.
22420         * modules/unictype/property-bidi-block-separator (Depends-on,
22421         configure.ac): Likewise.
22422         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22423         configure.ac): Likewise.
22424         * modules/unictype/property-bidi-common-separator (Depends-on,
22425         configure.ac): Likewise.
22426         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22427         Likewise.
22428         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22429         configure.ac): Likewise.
22430         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22431         configure.ac): Likewise.
22432         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22433         configure.ac): Likewise.
22434         * modules/unictype/property-bidi-european-digit (Depends-on,
22435         configure.ac): Likewise.
22436         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22437         configure.ac): Likewise.
22438         * modules/unictype/property-bidi-left-to-right (Depends-on,
22439         configure.ac): Likewise.
22440         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22441         configure.ac): Likewise.
22442         * modules/unictype/property-bidi-other-neutral (Depends-on,
22443         configure.ac): Likewise.
22444         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22445         Likewise.
22446         * modules/unictype/property-bidi-segment-separator (Depends-on,
22447         configure.ac): Likewise.
22448         * modules/unictype/property-bidi-whitespace (Depends-on,
22449         configure.ac): Likewise.
22450         * modules/unictype/property-combining (Depends-on, configure.ac):
22451         Likewise.
22452         * modules/unictype/property-composite (Depends-on, configure.ac):
22453         Likewise.
22454         * modules/unictype/property-currency-symbol (Depends-on,
22455         configure.ac): Likewise.
22456         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22457         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22458         Likewise.
22459         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22460         configure.ac): Likewise.
22461         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22462         Likewise.
22463         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22464         Likewise.
22465         * modules/unictype/property-extender (Depends-on, configure.ac):
22466         Likewise.
22467         * modules/unictype/property-format-control (Depends-on, configure.ac):
22468         Likewise.
22469         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22470         Likewise.
22471         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22472         Likewise.
22473         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22474         Likewise.
22475         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22476         Likewise.
22477         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22478         Likewise.
22479         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22480         Likewise.
22481         * modules/unictype/property-id-start (Depends-on, configure.ac):
22482         Likewise.
22483         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22484         Likewise.
22485         * modules/unictype/property-ids-binary-operator (Depends-on,
22486         configure.ac): Likewise.
22487         * modules/unictype/property-ids-trinary-operator (Depends-on,
22488         configure.ac): Likewise.
22489         * modules/unictype/property-ignorable-control (Depends-on,
22490         configure.ac): Likewise.
22491         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22492         Likewise.
22493         * modules/unictype/property-join-control (Depends-on, configure.ac):
22494         Likewise.
22495         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22496         Likewise.
22497         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22498         Likewise.
22499         * modules/unictype/property-logical-order-exception (Depends-on,
22500         configure.ac): Likewise.
22501         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22502         Likewise.
22503         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22504         * modules/unictype/property-non-break (Depends-on, configure.ac):
22505         Likewise.
22506         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22507         Likewise.
22508         * modules/unictype/property-numeric (Depends-on, configure.ac):
22509         Likewise.
22510         * modules/unictype/property-other-alphabetic (Depends-on,
22511         configure.ac): Likewise.
22512         * modules/unictype/property-other-default-ignorable-code-point
22513         (Depends-on, configure.ac): Likewise.
22514         * modules/unictype/property-other-grapheme-extend (Depends-on,
22515         configure.ac): Likewise.
22516         * modules/unictype/property-other-id-continue (Depends-on,
22517         configure.ac): Likewise.
22518         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22519         Likewise.
22520         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22521         Likewise.
22522         * modules/unictype/property-other-math (Depends-on, configure.ac):
22523         Likewise.
22524         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22525         Likewise.
22526         * modules/unictype/property-paired-punctuation (Depends-on,
22527         configure.ac): Likewise.
22528         * modules/unictype/property-paragraph-separator (Depends-on,
22529         configure.ac): Likewise.
22530         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22531         Likewise.
22532         * modules/unictype/property-pattern-white-space (Depends-on,
22533         configure.ac): Likewise.
22534         * modules/unictype/property-private-use (Depends-on, configure.ac):
22535         Likewise.
22536         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22537         Likewise.
22538         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22539         Likewise.
22540         * modules/unictype/property-radical (Depends-on, configure.ac):
22541         Likewise.
22542         * modules/unictype/property-sentence-terminal (Depends-on,
22543         configure.ac): Likewise.
22544         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22545         Likewise.
22546         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22547         * modules/unictype/property-terminal-punctuation (Depends-on,
22548         configure.ac): Likewise.
22549         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22550         Likewise.
22551         * modules/unictype/property-unassigned-code-value (Depends-on,
22552         configure.ac): Likewise.
22553         * modules/unictype/property-unified-ideograph (Depends-on,
22554         configure.ac): Likewise.
22555         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22556         Likewise.
22557         * modules/unictype/property-variation-selector (Depends-on,
22558         configure.ac): Likewise.
22559         * modules/unictype/property-white-space (Depends-on, configure.ac):
22560         Likewise.
22561         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22562         Likewise.
22563         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22564         Likewise.
22565         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22566         Likewise.
22567         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22568         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22569         Likewise.
22570
22571 2009-12-31  Bruno Haible  <bruno@clisp.org>
22572
22573         Remove unnecessary AC_C_INLINE invocation.
22574         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22575         since 2009-08-21.
22576
22577 2009-12-31  Jim Meyering  <meyering@redhat.com>
22578
22579         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22580         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22581         With this change, we can all remove the gpg_key_ID = ... definition
22582         from our respective cfg.mk files.
22583
22584         maint.mk: create announcement template in ~/, not in /tmp
22585         * top/maint.mk (emit_upload_commands): Adjust.
22586         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22587         Remove temporary file, .ci-msg.
22588
22589 2009-12-31  Eric Blake  <ebb9@byu.net>
22590
22591         link-warning: always build headers with link warnings
22592         * modules/arpa_inet (Makefile.am): Always build replacement
22593         header.
22594         * modules/ctype (Makefile.am): Likewise.
22595         * modules/dirent (Makefile.am): Likewise.
22596         * modules/inttypes (Makefile.am): Likewise.
22597         * modules/langinfo (Makefile.am): Likewise.
22598         * modules/locale (Makefile.am): Likewise.
22599         * modules/spawn (Makefile.am): Likewise.
22600         * modules/sys_file (Makefile.am): Likewise.
22601         * modules/sys_ioctl (Makefile.am): Likewise.
22602         * modules/sys_select (Makefile.am): Likewise.
22603         * modules/sys_socket (Makefile.am): Likewise.
22604         * modules/sys_times (Makefile.am): Likewise.
22605         * modules/sys_utsname (Makefile.am): Likewise.
22606         * modules/sys_wait (Makefile.am): Likewise.
22607         * modules/wchar (Makefile.am): Likewise.
22608         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22609         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22610         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22611         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22612         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22613         Likewise.
22614         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22615         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22616         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22617         Likewise.
22618         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22619         Likewise.
22620         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22621         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22622         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22623         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22624         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22625         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22626         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22627         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22628         (gl_WCHAR_H_DEFAULTS): Likewise.
22629
22630 2009-12-31  Eric Blake  <ebb9@byu.net>
22631
22632         signal, spawn: use link warnings
22633         * lib/signal.in.h (sigset_t): Make unconditional.
22634         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22635         (sigpending, sigprocmask, sigaction): Add link warnings.
22636         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22637         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22638         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22639         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22640         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22641         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22642         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22643         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22644         (posix_spawn_file_actions_destroy)
22645         (posix_spawn_file_actions_addopen)
22646         (posix_spawn_file_actions_addclose)
22647         (posix_spawn_file_actions_adddup2): Likewise.
22648         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22649         * tests/test-signal.c (main): Enhance test.
22650
22651         spawn: improve wrapper support
22652         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22653         (gl_SPAWN_H_DEFAULTS): New defaults.
22654         * modules/spawn (Makefile.am): Substitute them.
22655         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22656         Only declare if missing or broken.
22657
22658         sys_times, sys_utsname: use include_next
22659         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22660         header.
22661         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22662         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22663         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22664         * modules/sys_times (Depends-on): Add include_next.
22665         (Makefile.am): Substitute additional values.
22666         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22667         * lib/sys_times.in.h (includes): Include native header, if
22668         available.
22669         * lib/sys_utsname.in.h (includes): Likewise.
22670         * tests/test-sys_times.c (main): Enhance test.
22671
22672         fdutimensat: revert prior patch
22673         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22674         utimens.h.
22675         Reported by Bruno Haible.
22676
22677 2009-12-30  Eric Blake  <ebb9@byu.net>
22678
22679         sys_wait: drop link-warning dependency
22680         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22681         link-warning efforts.
22682         * lib/sys_wait.in.h: Likewise.
22683
22684         fdutimensat: remove bogus dependency
22685         * modules/fdutimensat (Depends-on): Drop inline.
22686
22687         unistd: fix typo
22688         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22689
22690 2009-12-30  Bruno Haible  <bruno@clisp.org>
22691
22692         Fix compilation error with Solaris cc.
22693         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22694         * lib/unicase/u16-is-invariant.c: Likewise.
22695         * lib/unicase/u32-is-invariant.c: Likewise.
22696         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22697
22698 2009-12-30  Bruno Haible  <bruno@clisp.org>
22699
22700         Fix test crash.
22701         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22702         locales.
22703         Reported by Simon Josefsson <simon@josefsson.org>.
22704
22705 2009-12-30  Bruno Haible  <bruno@clisp.org>
22706
22707         Fix compilation error on most platforms.
22708         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22709         Reported by Simon Josefsson <simon@josefsson.org>
22710         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22711
22712 2009-12-30  Eric Blake  <ebb9@byu.net>
22713
22714         futimens, utimensat: work around ntfs-3g bug
22715         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22716         a ctime bug is present, and expand workaround to cover ntfs-3g.
22717         * lib/utimens.c (fdutimens, lutimens): Likewise.
22718         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22719         (validate_timespec): Adjust return value.
22720         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22721         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22722         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22723
22724 2009-12-29  Eric Blake  <ebb9@byu.net>
22725
22726         link-warning: make usage consistent
22727         * modules/ctype (Depends-on): Add link-warning.
22728         (Makefile.am): Update rules accordingly.
22729         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22730         * modules/locale (Depends-on, Makefile.am): Likewise.
22731         * modules/sys_file (Makefile.am): Likewise.
22732         * modules/getopt-posix (Makefile.am): Delete unused link warning
22733         efforts.
22734         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22735         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22736         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22737         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22738
22739         stdio: remove unused variables
22740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22742         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22743
22744         tests: test more substitute headers
22745         * modules/ctype-tests: New file.
22746         * modules/dirent-tests: Likewise.
22747         * modules/spawn-tests: Likewise.
22748         * modules/sys_file-tests: Likewise.
22749         * modules/sys_ioctl-tests: Likewise.
22750         * modules/sys_wait-tests: Likewise.
22751         * tests/test-ctype.c: Likewise.
22752         * tests/test-dirent.c: Likewise.
22753         * tests/test-spawn.c: Likewise.
22754         * tests/test-sys_file.c: Likewise.
22755         * tests/test-sys_ioctl.c: Likewise.
22756         * tests/test-sys_wait.c: Likewise.
22757         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22758         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22759         whether or not flock is in use.
22760
22761         tests: remove License section from module
22762         * modules/arpa_inet-tests: Remove unneeded section.
22763         * modules/byteswap-tests: Likewise.
22764         * modules/ceilf-tests: Likewise.
22765         * modules/ceill-tests: Likewise.
22766         * modules/crypto/des-tests: Likewise.
22767         * modules/crypto/gc-arcfour-tests: Likewise.
22768         * modules/crypto/gc-arctwo-tests: Likewise.
22769         * modules/crypto/gc-des-tests: Likewise.
22770         * modules/crypto/gc-hmac-md5-tests: Likewise.
22771         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22772         * modules/crypto/gc-md2-tests: Likewise.
22773         * modules/crypto/gc-md4-tests: Likewise.
22774         * modules/crypto/gc-md5-tests: Likewise.
22775         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22776         * modules/crypto/gc-rijndael-tests: Likewise.
22777         * modules/crypto/gc-sha1-tests: Likewise.
22778         * modules/crypto/gc-tests: Likewise.
22779         * modules/crypto/md2-tests: Likewise.
22780         * modules/crypto/md4-tests: Likewise.
22781         * modules/fcntl-h-tests: Likewise.
22782         * modules/floorf-tests: Likewise.
22783         * modules/floorl-tests: Likewise.
22784         * modules/frexp-nolibm-tests: Likewise.
22785         * modules/frexp-tests: Likewise.
22786         * modules/frexpl-nolibm-tests: Likewise.
22787         * modules/frexpl-tests: Likewise.
22788         * modules/getaddrinfo-tests: Likewise.
22789         * modules/inttypes-tests: Likewise.
22790         * modules/isfinite-tests: Likewise.
22791         * modules/isinf-tests: Likewise.
22792         * modules/ldexpl-tests: Likewise.
22793         * modules/locale-tests: Likewise.
22794         * modules/math-tests: Likewise.
22795         * modules/netdb-tests: Likewise.
22796         * modules/netinet_in-tests: Likewise.
22797         * modules/printf-frexp-tests: Likewise.
22798         * modules/printf-frexpl-tests: Likewise.
22799         * modules/priv-set-tests: Likewise.
22800         * modules/random_r-tests: Likewise.
22801         * modules/round-tests: Likewise.
22802         * modules/roundf-tests: Likewise.
22803         * modules/roundl-tests: Likewise.
22804         * modules/search-tests: Likewise.
22805         * modules/select-tests: Likewise.
22806         * modules/signal-tests: Likewise.
22807         * modules/stdbool-tests: Likewise.
22808         * modules/stddef-tests: Likewise.
22809         * modules/stdint-tests: Likewise.
22810         * modules/stdio-tests: Likewise.
22811         * modules/stdlib-tests: Likewise.
22812         * modules/string-tests: Likewise.
22813         * modules/strings-tests: Likewise.
22814         * modules/sys_select-tests: Likewise.
22815         * modules/sys_socket-tests: Likewise.
22816         * modules/sys_stat-tests: Likewise.
22817         * modules/sys_time-tests: Likewise.
22818         * modules/sys_utsname-tests: Likewise.
22819         * modules/sysexits-tests: Likewise.
22820         * modules/time-tests: Likewise.
22821         * modules/trunc-tests: Likewise.
22822         * modules/truncf-tests: Likewise.
22823         * modules/truncl-tests: Likewise.
22824         * modules/tsearch-tests: Likewise.
22825         * modules/unistd-tests: Likewise.
22826         * modules/wchar-tests: Likewise.
22827         * modules/wctype-tests: Likewise.
22828
22829         tests: fix license on several tests
22830         * tests/test-des.c: Update to GPLv3+.
22831         * tests/test-flock.c: Likewise.
22832         * tests/test-fsync.c: Likewise.
22833         * tests/test-futimens.h: Likewise.
22834         * tests/test-gc-arcfour.c: Likewise.
22835         * tests/test-gc-arctwo.c: Likewise.
22836         * tests/test-gc-des.c: Likewise.
22837         * tests/test-gc-hmac-md5.c: Likewise.
22838         * tests/test-gc-hmac-sha1.c: Likewise.
22839         * tests/test-gc-md2.c: Likewise.
22840         * tests/test-gc-md4.c: Likewise.
22841         * tests/test-gc-md5.c: Likewise.
22842         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22843         * tests/test-gc-rijndael.c: Likewise.
22844         * tests/test-gc-sha1.c: Likewise.
22845         * tests/test-gc.c: Likewise.
22846         * tests/test-getcwd.c: Likewise.
22847         * tests/test-link.c: Likewise.
22848         * tests/test-link.h: Likewise.
22849         * tests/test-lutimens.h: Likewise.
22850         * tests/test-md2.c: Likewise.
22851         * tests/test-md4.c: Likewise.
22852         * tests/test-mkdir.h: Likewise.
22853         * tests/test-rename.c: Likewise.
22854         * tests/test-rename.h: Likewise.
22855         * tests/test-safe-alloc.c: Likewise.
22856         * tests/test-utimens-common.h: Likewise.
22857         * tests/test-utimens.h: Likewise.
22858
22859         maint: sync license texts
22860         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22861         * doc/gpl-3.0.texi: Revert copyright year update.
22862         * doc/lgpl-3.0.texi: Likewise.
22863
22864 2009-12-29  Jim Meyering  <meyering@redhat.com>
22865
22866         update nearly all FSF copyright year lists to include 2009
22867         The files named by the following are exempted:
22868             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22869               test -f "$dst" && { echo "$dst"; continue; }
22870               test -d "$dst" || continue
22871               echo "$dst"/$(basename "$src")
22872             done > exempt
22873             git ls-files tests/unictype >> exempt
22874         In the remaining files, convert to all-interval notation if
22875         - there is already at least one year interval like 2000-2003
22876         - the file is maintained by me
22877         - the file is in lib/uni*/, where that style already prevails
22878         Otherwise, use update-copyright's default.
22879
22880 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22881         and Eric Blake  <ebb9@byu.net>
22882
22883         tests: don't require debug system() to pass
22884         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22885         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22886         * tests/test-unlink.h (test_unlink_func): Likewise.
22887         * tests/test-fstatat.c (main): ...into callers.
22888         * tests/test-lstat.c (main): Likewise.
22889         * tests/test-rmdir.c (main): Likewise.
22890         * tests/test-unlink.c (main): Likewise.
22891         * tests/test-unlinkat.c (main): Likewise.
22892         * tests/test-areadlink-with-size.c (main): Don't require a
22893         debug-only system call to pass, aiding cross-testing to mingw.
22894         * tests/test-areadlink.c (main): Likewise.
22895         * tests/test-areadlinkat-with-size.c (main): Likewise.
22896         * tests/test-areadlinkat.c (main): Likewise.
22897         * tests/test-canonicalize-lgpl.c (main): Likewise.
22898         * tests/test-canonicalize.c (main): Likewise.
22899         * tests/test-chown.c (main): Likewise.
22900         * tests/test-fchownat.c (main): Likewise.
22901         * tests/test-lchown.c (main): Likewise.
22902         * tests/test-fdutimensat.c (main): Likewise.
22903         * tests/test-futimens.c (main): Likewise.
22904         * tests/test-link.c (main): Likewise.
22905         * tests/test-linkat.c (main): Likewise.
22906         * tests/test-mkdir.c (main): Likewise.
22907         * tests/test-mkdirat.c (main): Likewise.
22908         * tests/test-mkfifo.c (main): Likewise.
22909         * tests/test-mkfifoat.c (main): Likewise.
22910         * tests/test-mknod.c (main): Likewise.
22911         * tests/test-readlink.c (main): Likewise.
22912         * tests/test-remove.c (main): Likewise.
22913         * tests/test-rename.c (main): Likewise.
22914         * tests/test-renameat.c (main): Likewise.
22915         * tests/test-symlink.c (main): Likewise.
22916         * tests/test-symlinkat.c (main): Likewise.
22917         * tests/test-utimens.c (main): Likewise.
22918         * tests/test-utimensat.c (main): Likewise.
22919
22920 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22921
22922         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22923         on $(UNUSED_PARAMETER_H) to avoid build failure.
22924
22925 2009-12-28  Jim Meyering  <meyering@redhat.com>
22926
22927         update-copyright: you may specify a max. line length other than 72
22928         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22929
22930         maint: use consistent FSF copyright line syntax
22931         * lib/posixtm.c: Add missing comma in FSF copyright line.
22932         * lib/posixtm.h: Likewise.
22933         * lib/getugroups.c: Add missing ", Inc.".
22934
22935         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22936         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22937         FSF copyright line.  Remove trailing blanks.
22938
22939 2009-12-28  Eric Blake  <ebb9@byu.net>
22940
22941         test-dup2: reduce dependencies
22942         * modules/cloexec (Configure.ac): Set witness.
22943         * modules/dup2-tests (Depends-on): Drop cloexec.
22944         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22945         not present.
22946         Suggested by Bruno Haible.
22947
22948 2009-12-26  Bruno Haible  <bruno@clisp.org>
22949
22950         Remove an unneeded dependency.
22951         * modules/fseterr (Depends-on): Remove dup2.
22952
22953 2009-12-26  Eric Blake  <ebb9@byu.net>
22954
22955         tests: use macros.h in more places
22956         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22957         (ASSERT_STREAM): Provide default of stderr.
22958         * tests/test-dirent-safer.c: Include macros.h, using alternate
22959         stream for assertions.
22960         * tests/test-dup-safer.c: Likewise.
22961         * tests/test-freopen-safer.c: Likewise.
22962         * tests/test-getopt.c: Likewise.
22963         * tests/test-openat-safer.c: Likewise.
22964         * tests/test-pipe.c: Likewise.
22965         * tests/test-popen-safer.c: Likewise.
22966         * modules/dirent-safer-tests (Files): Include macros.h.
22967         * modules/unistd-safer-tests (Files): Likewise.
22968         * modules/freopen-safer-tests (Files): Likewise.
22969         * modules/getopt-posix-tests (Files): Likewise.
22970         * modules/openat-safer-tests (Files): Likewise.
22971         * modules/pipe-tests (Files): Likewise.
22972
22973 2009-12-26  Bruno Haible  <bruno@clisp.org>
22974
22975         javacomp: Portability fix.
22976         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22977         that it also works on Solaris.
22978
22979 2009-12-26  Bruno Haible  <bruno@clisp.org>
22980
22981         localename: Fix storage allocation of gl_locale_name_thread's result.
22982         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22983         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22984         all platforms that have 'uselocale'.
22985         (gl_locale_name_thread_unsafe): New function, extracted from
22986         gl_locale_name_thread.
22987         (gl_locale_name_thread): Call struniq on all platforms that have
22988         'uselocale'.
22989         * tests/test-localename.c (test_locale_name_thread): Check that the
22990         resulting strings are permanently allocated.
22991         * modules/localename-tests (Depends-on): Add strdup.
22992
22993 2009-12-26  Bruno Haible  <bruno@clisp.org>
22994
22995         * tests/test-localename.c (categories): Fill in the strings.
22996
22997 2009-12-26  Jim Meyering  <meyering@redhat.com>
22998
22999         isdir: complete the removal of m4/isdir.m4
23000         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23001
23002         isdir: clean up, since at least grep still uses it
23003         * lib/isdir.c: Include "isdir.h".
23004         (S_ISDIR): Remove now-unneeded definition.
23005         * modules/isdir (Files): Add lib/isdir.h.
23006         * lib/isdir.h: New file, with declaration.
23007         * m4/isdir.m4: Remove file -- unneeded.
23008
23009 2009-12-25  Bruno Haible  <bruno@clisp.org>
23010
23011         selinux-h: Make generated .h files standalone.
23012         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23013         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23014         * lib/se-selinux.in.h: Likewise.
23015         * modules/selinux-h (Depends-on): Add unused-parameter.
23016         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23017         selinux/selinux.h and selinux/context.h.
23018         Suggested by Eric Blake.
23019
23020 2009-12-25  Bruno Haible  <bruno@clisp.org>
23021
23022         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23023         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23024         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23025         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23026         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23027
23028 2009-12-24  Bruno Haible  <bruno@clisp.org>
23029
23030         openat: Fix warning.
23031         * lib/openat-proc.c: Include <unistd.h>.
23032
23033 2009-12-24  Bruno Haible  <bruno@clisp.org>
23034
23035         New module 'unused-parameter'.
23036         * build-aux/unused-parameter.h: New file, extracted from earlier
23037         gnulib-common.m4.
23038         * modules/unused-parameter: New file.
23039         * lib/unistr.h: Include unused-parameter.h.
23040         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23041         _GL_UNUSED.
23042         * modules/unistr/base (Depends-on): Add unused-parameter.
23043
23044 2009-12-24  Bruno Haible  <bruno@clisp.org>
23045
23046         Add missing dependencies to 'extensions' module.
23047         * m4/extensions.m4: Add comment.
23048         * modules/accept4 (Depends-on): Add extensions.
23049         * modules/dup3 (Depends-on): Likewise.
23050         * modules/fcntl (Depends-on): Likewise.
23051         * modules/futimens (Depends-on): Likewise.
23052         * modules/mknod (Depends-on): Likewise.
23053         * modules/pipe2 (Depends-on): Likewise.
23054         * modules/stat-time (Depends-on): Likewise.
23055         * modules/strcasestr-simple (Depends-on): Likewise.
23056         * modules/strsignal (Depends-on): Likewise.
23057         * modules/utimensat (Depends-on): Likewise.
23058         * modules/localcharset (Depends-on): Likewise. Needed because of
23059         gl_FCNTL_O_FLAGS.
23060         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23061         AC_TYPE_MBSTATE_T.
23062         * modules/wcsnrtombs (Depends-on): Likewise.
23063         * modules/wcsrtombs (Depends-on): Likewise.
23064
23065 2009-12-24  Bruno Haible  <bruno@clisp.org>
23066
23067         binary-io: Avoid gcc warning due to SET_BINARY.
23068         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23069         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23070
23071 2009-12-24  Bruno Haible  <bruno@clisp.org>
23072
23073         Avoid future namespace pollution on glibc systems.
23074         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23075         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23076         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23077         glibc systems.
23078
23079 2009-12-24  Bruno Haible  <bruno@clisp.org>
23080
23081         Refactor common macros used in tests.
23082         * tests/macros.h: New file.
23083         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23084         and/or <stdlib.h>, if appropriate.
23085         (ASSERT, SIZEOF): Remove macros.
23086         * tests/test-areadlink-with-size.c: Likewise.
23087         * tests/test-areadlinkat.c: Likewise.
23088         * tests/test-areadlinkat-with-size.c: Likewise.
23089         * tests/test-argmatch.c: Likewise.
23090         * tests/test-argv-iter.c: Likewise.
23091         * tests/test-array-mergesort.c: Likewise.
23092         * tests/test-array_list.c: Likewise.
23093         * tests/test-array_oset.c: Likewise.
23094         * tests/test-avltree_list.c: Likewise.
23095         * tests/test-avltree_oset.c: Likewise.
23096         * tests/test-avltreehash_list.c: Likewise.
23097         * tests/test-base64.c: Likewise.
23098         * tests/test-binary-io.c: Likewise.
23099         * tests/test-bitrotate.c: Likewise.
23100         * tests/test-btowc.c: Likewise.
23101         * tests/test-byteswap.c: Likewise.
23102         * tests/test-c-ctype.c: Likewise.
23103         * tests/test-c-stack.c: Likewise.
23104         * tests/test-c-strcasecmp.c: Likewise.
23105         * tests/test-c-strcasestr.c: Likewise.
23106         * tests/test-c-strncasecmp.c: Likewise.
23107         * tests/test-c-strstr.c: Likewise.
23108         * tests/test-canonicalize-lgpl.c: Likewise.
23109         * tests/test-canonicalize.c: Likewise.
23110         * tests/test-carray_list.c: Likewise.
23111         * tests/test-ceilf1.c: Likewise.
23112         * tests/test-ceilf2.c: Likewise.
23113         * tests/test-ceill.c: Likewise.
23114         * tests/test-chown.c: Likewise.
23115         * tests/test-cloexec.c: Likewise.
23116         * tests/test-copy-acl.c: Likewise.
23117         * tests/test-copy-file.c: Likewise.
23118         * tests/test-count-one-bits.c: Likewise.
23119         * tests/test-dprintf-posix.c: Likewise.
23120         * tests/test-dup2.c: Likewise.
23121         * tests/test-dup3.c: Likewise.
23122         * tests/test-duplocale.c: Likewise.
23123         * tests/test-fbufmode.c: Likewise.
23124         * tests/test-fchdir.c: Likewise.
23125         * tests/test-fchownat.c: Likewise.
23126         * tests/test-fcntl-safer.c: Likewise.
23127         * tests/test-fcntl.c: Likewise.
23128         * tests/test-fdopendir.c: Likewise.
23129         * tests/test-fdutimensat.c: Likewise.
23130         * tests/test-fflush2.c: Likewise.
23131         * tests/test-file-has-acl.c: Likewise.
23132         * tests/test-filevercmp.c: Likewise.
23133         * tests/test-flock.c: Likewise.
23134         * tests/test-floorf1.c: Likewise.
23135         * tests/test-floorf2.c: Likewise.
23136         * tests/test-floorl.c: Likewise.
23137         * tests/test-fnmatch.c: Likewise.
23138         * tests/test-fopen.h: Likewise.
23139         * tests/test-fpending.c: Likewise.
23140         * tests/test-fprintf-posix.c: Likewise.
23141         * tests/test-fpurge.c: Likewise.
23142         * tests/test-freadable.c: Likewise.
23143         * tests/test-freadahead.c: Likewise.
23144         * tests/test-freading.c: Likewise.
23145         * tests/test-freadptr.c: Likewise.
23146         * tests/test-freadptr2.c: Likewise.
23147         * tests/test-freadseek.c: Likewise.
23148         * tests/test-freopen.c: Likewise.
23149         * tests/test-frexp.c: Likewise.
23150         * tests/test-frexpl.c: Likewise.
23151         * tests/test-fseek.c: Likewise.
23152         * tests/test-fseeko.c: Likewise.
23153         * tests/test-fstatat.c: Likewise.
23154         * tests/test-fstrcmp.c: Likewise.
23155         * tests/test-fsync.c: Likewise.
23156         * tests/test-ftell.c: Likewise.
23157         * tests/test-ftello.c: Likewise.
23158         * tests/test-func.c: Likewise.
23159         * tests/test-futimens.c: Likewise.
23160         * tests/test-fwritable.c: Likewise.
23161         * tests/test-fwriting.c: Likewise.
23162         * tests/test-getcwd.c: Likewise.
23163         * tests/test-getdate.c: Likewise.
23164         * tests/test-getdelim.c: Likewise.
23165         * tests/test-getdtablesize.c: Likewise.
23166         * tests/test-getgroups.c: Likewise.
23167         * tests/test-getline.c: Likewise.
23168         * tests/test-getndelim2.c: Likewise.
23169         * tests/test-glob.c: Likewise.
23170         * tests/test-hash.c: Likewise.
23171         * tests/test-i-ring.c: Likewise.
23172         * tests/test-iconv-utf.c: Likewise.
23173         * tests/test-iconv.c: Likewise.
23174         * tests/test-idpriv-drop.c: Likewise.
23175         * tests/test-idpriv-droptemp.c: Likewise.
23176         * tests/test-inet_ntop.c: Likewise.
23177         * tests/test-inet_pton.c: Likewise.
23178         * tests/test-isblank.c: Likewise.
23179         * tests/test-isfinite.c: Likewise.
23180         * tests/test-isinf.c: Likewise.
23181         * tests/test-isnan.c: Likewise.
23182         * tests/test-isnand.h: Likewise.
23183         * tests/test-isnanf.h: Likewise.
23184         * tests/test-isnanl.h: Likewise.
23185         * tests/test-lchown.c: Likewise.
23186         * tests/test-ldexpl.c: Likewise.
23187         * tests/test-link.c: Likewise.
23188         * tests/test-linkat.c: Likewise.
23189         * tests/test-linked_list.c: Likewise.
23190         * tests/test-linkedhash_list.c: Likewise.
23191         * tests/test-localename.c: Likewise.
23192         * tests/test-lseek.c: Likewise.
23193         * tests/test-lstat.c: Likewise.
23194         * tests/test-mbmemcasecmp.c: Likewise.
23195         * tests/test-mbmemcasecoll.c: Likewise.
23196         * tests/test-mbrtowc.c: Likewise.
23197         * tests/test-mbscasecmp.c: Likewise.
23198         * tests/test-mbscasestr1.c: Likewise.
23199         * tests/test-mbscasestr2.c: Likewise.
23200         * tests/test-mbscasestr3.c: Likewise.
23201         * tests/test-mbscasestr4.c: Likewise.
23202         * tests/test-mbschr.c: Likewise.
23203         * tests/test-mbscspn.c: Likewise.
23204         * tests/test-mbsinit.c: Likewise.
23205         * tests/test-mbsncasecmp.c: Likewise.
23206         * tests/test-mbsnrtowcs.c: Likewise.
23207         * tests/test-mbspbrk.c: Likewise.
23208         * tests/test-mbspcasecmp.c: Likewise.
23209         * tests/test-mbsrchr.c: Likewise.
23210         * tests/test-mbsrtowcs.c: Likewise.
23211         * tests/test-mbsspn.c: Likewise.
23212         * tests/test-mbsstr1.c: Likewise.
23213         * tests/test-mbsstr2.c: Likewise.
23214         * tests/test-mbsstr3.c: Likewise.
23215         * tests/test-memchr.c: Likewise.
23216         * tests/test-memchr2.c: Likewise.
23217         * tests/test-memcmp.c: Likewise.
23218         * tests/test-memmem.c: Likewise.
23219         * tests/test-memrchr.c: Likewise.
23220         * tests/test-mkdir.c: Likewise.
23221         * tests/test-mkdirat.c: Likewise.
23222         * tests/test-mkfifo.c: Likewise.
23223         * tests/test-mkfifoat.c: Likewise.
23224         * tests/test-mknod.c: Likewise.
23225         * tests/test-nanosleep.c: Likewise.
23226         * tests/test-nl_langinfo.c: Likewise.
23227         * tests/test-obstack-printf.c: Likewise.
23228         * tests/test-open.c: Likewise.
23229         * tests/test-openat.c: Likewise.
23230         * tests/test-pipe-filter-gi1.c: Likewise.
23231         * tests/test-pipe-filter-gi2-main.c: Likewise.
23232         * tests/test-pipe-filter-ii1.c: Likewise.
23233         * tests/test-pipe-filter-ii2-main.c: Likewise.
23234         * tests/test-pipe2.c: Likewise.
23235         * tests/test-popen.h: Likewise.
23236         * tests/test-posixtm.c: Likewise.
23237         * tests/test-pread.c: Likewise.
23238         * tests/test-printf-frexp.c: Likewise.
23239         * tests/test-printf-frexpl.c: Likewise.
23240         * tests/test-printf-posix.c: Likewise.
23241         * tests/test-priv-set.c: Likewise.
23242         * tests/test-quotearg.c: Likewise.
23243         * tests/test-random_r.c: Likewise.
23244         * tests/test-rawmemchr.c: Likewise.
23245         * tests/test-rbtree_list.c: Likewise.
23246         * tests/test-rbtree_oset.c: Likewise.
23247         * tests/test-rbtreehash_list.c: Likewise.
23248         * tests/test-readlink.c: Likewise.
23249         * tests/test-remove.c: Likewise.
23250         * tests/test-rename.c: Likewise.
23251         * tests/test-renameat.c: Likewise.
23252         * tests/test-rmdir.c: Likewise.
23253         * tests/test-round1.c: Likewise.
23254         * tests/test-roundf1.c: Likewise.
23255         * tests/test-roundl.c: Likewise.
23256         * tests/test-safe-alloc.c: Likewise.
23257         * tests/test-sameacls.c: Likewise.
23258         * tests/test-set-mode-acl.c: Likewise.
23259         * tests/test-setenv.c: Likewise.
23260         * tests/test-sigaction.c: Likewise.
23261         * tests/test-signbit.c: Likewise.
23262         * tests/test-sleep.c: Likewise.
23263         * tests/test-snprintf-posix.c: Likewise.
23264         * tests/test-snprintf.c: Likewise.
23265         * tests/test-sprintf-posix.c: Likewise.
23266         * tests/test-stat-time.c: Likewise.
23267         * tests/test-stat.c: Likewise.
23268         * tests/test-strcasestr.c: Likewise.
23269         * tests/test-strchrnul.c: Likewise.
23270         * tests/test-strerror.c: Likewise.
23271         * tests/test-striconv.c: Likewise.
23272         * tests/test-striconveh.c: Likewise.
23273         * tests/test-striconveha.c: Likewise.
23274         * tests/test-strsignal.c: Likewise.
23275         * tests/test-strstr.c: Likewise.
23276         * tests/test-strtod.c: Likewise.
23277         * tests/test-strverscmp.c: Likewise.
23278         * tests/test-symlink.c: Likewise.
23279         * tests/test-symlinkat.c: Likewise.
23280         * tests/test-trunc1.c: Likewise.
23281         * tests/test-trunc2.c: Likewise.
23282         * tests/test-truncf1.c: Likewise.
23283         * tests/test-truncf2.c: Likewise.
23284         * tests/test-truncl.c: Likewise.
23285         * tests/test-uname.c: Likewise.
23286         * tests/test-unlink.c: Likewise.
23287         * tests/test-unlinkat.c: Likewise.
23288         * tests/test-unsetenv.c: Likewise.
23289         * tests/test-usleep.c: Likewise.
23290         * tests/test-utimens.c: Likewise.
23291         * tests/test-utimensat.c: Likewise.
23292         * tests/test-vasnprintf-posix.c: Likewise.
23293         * tests/test-vasnprintf-posix2.c: Likewise.
23294         * tests/test-vasnprintf.c: Likewise.
23295         * tests/test-vasprintf-posix.c: Likewise.
23296         * tests/test-vasprintf.c: Likewise.
23297         * tests/test-vdprintf-posix.c: Likewise.
23298         * tests/test-vfprintf-posix.c: Likewise.
23299         * tests/test-vprintf-posix.c: Likewise.
23300         * tests/test-vsnprintf-posix.c: Likewise.
23301         * tests/test-vsnprintf.c: Likewise.
23302         * tests/test-vsprintf-posix.c: Likewise.
23303         * tests/test-wcrtomb.c: Likewise.
23304         * tests/test-wcsnrtombs.c: Likewise.
23305         * tests/test-wcsrtombs.c: Likewise.
23306         * tests/test-wctype.c: Likewise.
23307         * tests/test-wcwidth.c: Likewise.
23308         * tests/test-xfprintf-posix.c: Likewise.
23309         * tests/test-xmemdup0.c: Likewise.
23310         * tests/test-xprintf-posix.c: Likewise.
23311         * tests/test-xvasprintf.c: Likewise.
23312         * tests/unicase/test-locale-language.c: Likewise.
23313         * tests/unicase/test-mapping-part1.h: Likewise.
23314         * tests/unicase/test-predicate-part1.h: Likewise.
23315         * tests/unicase/test-u8-casecmp.c: Likewise.
23316         * tests/unicase/test-u8-casecoll.c: Likewise.
23317         * tests/unicase/test-u8-casefold.c: Likewise.
23318         * tests/unicase/test-u8-is-cased.c: Likewise.
23319         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23320         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23321         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23322         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23323         * tests/unicase/test-u8-tolower.c: Likewise.
23324         * tests/unicase/test-u8-totitle.c: Likewise.
23325         * tests/unicase/test-u8-toupper.c: Likewise.
23326         * tests/unicase/test-u16-casecmp.c: Likewise.
23327         * tests/unicase/test-u16-casecoll.c: Likewise.
23328         * tests/unicase/test-u16-casefold.c: Likewise.
23329         * tests/unicase/test-u16-is-cased.c: Likewise.
23330         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23331         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23332         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23333         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23334         * tests/unicase/test-u16-tolower.c: Likewise.
23335         * tests/unicase/test-u16-totitle.c: Likewise.
23336         * tests/unicase/test-u16-toupper.c: Likewise.
23337         * tests/unicase/test-u32-casecmp.c: Likewise.
23338         * tests/unicase/test-u32-casecoll.c: Likewise.
23339         * tests/unicase/test-u32-casefold.c: Likewise.
23340         * tests/unicase/test-u32-is-cased.c: Likewise.
23341         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23342         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23343         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23344         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23345         * tests/unicase/test-u32-tolower.c: Likewise.
23346         * tests/unicase/test-u32-totitle.c: Likewise.
23347         * tests/unicase/test-u32-toupper.c: Likewise.
23348         * tests/unicase/test-ulc-casecmp.c: Likewise.
23349         * tests/unicase/test-ulc-casecoll.c: Likewise.
23350         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23351         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23352         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23353         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23354         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23355         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23356         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23357         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23358         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23359         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23360         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23361         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23362         * tests/unictype/test-bidi_byname.c: Likewise.
23363         * tests/unictype/test-bidi_name.c: Likewise.
23364         * tests/unictype/test-bidi_of.c: Likewise.
23365         * tests/unictype/test-bidi_test.c: Likewise.
23366         * tests/unictype/test-block_list.c: Likewise.
23367         * tests/unictype/test-block_of.c: Likewise.
23368         * tests/unictype/test-block_test.c: Likewise.
23369         * tests/unictype/test-categ_and.c: Likewise.
23370         * tests/unictype/test-categ_and_not.c: Likewise.
23371         * tests/unictype/test-categ_byname.c: Likewise.
23372         * tests/unictype/test-categ_name.c: Likewise.
23373         * tests/unictype/test-categ_none.c: Likewise.
23374         * tests/unictype/test-categ_of.c: Likewise.
23375         * tests/unictype/test-categ_or.c: Likewise.
23376         * tests/unictype/test-categ_test_withtable.c: Likewise.
23377         * tests/unictype/test-combining.c: Likewise.
23378         * tests/unictype/test-decdigit.c: Likewise.
23379         * tests/unictype/test-digit.c: Likewise.
23380         * tests/unictype/test-mirror.c: Likewise.
23381         * tests/unictype/test-numeric.c: Likewise.
23382         * tests/unictype/test-pr_byname.c: Likewise.
23383         * tests/unictype/test-pr_test.c: Likewise.
23384         * tests/unictype/test-predicate-part1.h: Likewise.
23385         * tests/unictype/test-scripts.c: Likewise.
23386         * tests/unictype/test-sy_c_ident.c: Likewise.
23387         * tests/unictype/test-sy_java_ident.c: Likewise.
23388         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23389         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23390         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23391         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23392         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23393         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23394         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23395         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23396         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23397         * tests/uninorm/test-compat-decomposition.c: Likewise.
23398         * tests/uninorm/test-composition.c: Likewise.
23399         * tests/uninorm/test-decomposing-form.c: Likewise.
23400         * tests/uninorm/test-decomposition.c: Likewise.
23401         * tests/uninorm/test-u8-nfc.c: Likewise.
23402         * tests/uninorm/test-u8-nfd.c: Likewise.
23403         * tests/uninorm/test-u8-nfkc.c: Likewise.
23404         * tests/uninorm/test-u8-nfkd.c: Likewise.
23405         * tests/uninorm/test-u8-normcmp.c: Likewise.
23406         * tests/uninorm/test-u8-normcoll.c: Likewise.
23407         * tests/uninorm/test-u16-nfc.c: Likewise.
23408         * tests/uninorm/test-u16-nfd.c: Likewise.
23409         * tests/uninorm/test-u16-nfkc.c: Likewise.
23410         * tests/uninorm/test-u16-nfkd.c: Likewise.
23411         * tests/uninorm/test-u16-normcmp.c: Likewise.
23412         * tests/uninorm/test-u16-normcoll.c: Likewise.
23413         * tests/uninorm/test-u32-nfc.c: Likewise.
23414         * tests/uninorm/test-u32-nfd.c: Likewise.
23415         * tests/uninorm/test-u32-nfkc.c: Likewise.
23416         * tests/uninorm/test-u32-nfkd.c: Likewise.
23417         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23418         * tests/uninorm/test-u32-normcmp.c: Likewise.
23419         * tests/uninorm/test-u32-normcoll.c: Likewise.
23420         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23421         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23422         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23423         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23424         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23425         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23426         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23427         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23428         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23429         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23430         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23431         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23432         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23433         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23434         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23435         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23436         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23437         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23438         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23439         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23440         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23441         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23442         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23443         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23444         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23445         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23446         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23447         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23448         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23449         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23450         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23451         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23452         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23453         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23454         * tests/uniwidth/test-u8-width.c: Likewise.
23455         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23456         * tests/uniwidth/test-u16-width.c: Likewise.
23457         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23458         * tests/uniwidth/test-u32-width.c: Likewise.
23459         * tests/uniwidth/test-uc_width.c: Likewise.
23460         * tests/uniwidth/test-uc_width2.c: Likewise.
23461         * modules/acl-tests (Files): Add tests/macros.h.
23462         * modules/areadlink-tests (Files): Likewise.
23463         * modules/areadlink-with-size-tests (Files): Likewise.
23464         * modules/areadlinkat-tests (Files): Likewise.
23465         * modules/areadlinkat-with-size-tests (Files): Likewise.
23466         * modules/argmatch-tests (Files): Likewise.
23467         * modules/argv-iter-tests (Files): Likewise.
23468         * modules/array-list-tests (Files): Likewise.
23469         * modules/array-mergesort-tests (Files): Likewise.
23470         * modules/array-oset-tests (Files): Likewise.
23471         * modules/avltree-list-tests (Files): Likewise.
23472         * modules/avltree-oset-tests (Files): Likewise.
23473         * modules/avltreehash-list-tests (Files): Likewise.
23474         * modules/base64-tests (Files): Likewise.
23475         * modules/binary-io-tests (Files): Likewise.
23476         * modules/bitrotate-tests (Files): Likewise.
23477         * modules/btowc-tests (Files): Likewise.
23478         * modules/byteswap-tests (Files): Likewise.
23479         * modules/c-ctype-tests (Files): Likewise.
23480         * modules/c-stack-tests (Files): Likewise.
23481         * modules/c-strcase-tests (Files): Likewise.
23482         * modules/c-strcasestr-tests (Files): Likewise.
23483         * modules/c-strstr-tests (Files): Likewise.
23484         * modules/canonicalize-lgpl-tests (Files): Likewise.
23485         * modules/canonicalize-tests (Files): Likewise.
23486         * modules/carray-list-tests (Files): Likewise.
23487         * modules/ceilf-tests (Files): Likewise.
23488         * modules/ceill-tests (Files): Likewise.
23489         * modules/chown-tests (Files): Likewise.
23490         * modules/cloexec-tests (Files): Likewise.
23491         * modules/copy-file-tests (Files): Likewise.
23492         * modules/count-one-bits-tests (Files): Likewise.
23493         * modules/dprintf-posix-tests (Files): Likewise.
23494         * modules/dup2-tests (Files): Likewise.
23495         * modules/dup3-tests (Files): Likewise.
23496         * modules/duplocale-tests (Files): Likewise.
23497         * modules/fbufmode-tests (Files): Likewise.
23498         * modules/fchdir-tests (Files): Likewise.
23499         * modules/fcntl-safer-tests (Files): Likewise.
23500         * modules/fcntl-tests (Files): Likewise.
23501         * modules/fdopendir-tests (Files): Likewise.
23502         * modules/fdutimensat-tests (Files): Likewise.
23503         * modules/fflush-tests (Files): Likewise.
23504         * modules/filevercmp-tests (Files): Likewise.
23505         * modules/flock-tests (Files): Likewise.
23506         * modules/floorf-tests (Files): Likewise.
23507         * modules/floorl-tests (Files): Likewise.
23508         * modules/fnmatch-tests (Files): Likewise.
23509         * modules/fopen-safer-tests (Files): Likewise.
23510         * modules/fopen-tests (Files): Likewise.
23511         * modules/fpending-tests (Files): Likewise.
23512         * modules/fprintf-posix-tests (Files): Likewise.
23513         * modules/fpurge-tests (Files): Likewise.
23514         * modules/freadable-tests (Files): Likewise.
23515         * modules/freadahead-tests (Files): Likewise.
23516         * modules/freading-tests (Files): Likewise.
23517         * modules/freadptr-tests (Files): Likewise.
23518         * modules/freadseek-tests (Files): Likewise.
23519         * modules/freopen-tests (Files): Likewise.
23520         * modules/frexp-nolibm-tests (Files): Likewise.
23521         * modules/frexp-tests (Files): Likewise.
23522         * modules/frexpl-nolibm-tests (Files): Likewise.
23523         * modules/frexpl-tests (Files): Likewise.
23524         * modules/fseek-tests (Files): Likewise.
23525         * modules/fseeko-tests (Files): Likewise.
23526         * modules/fstrcmp-tests (Files): Likewise.
23527         * modules/fsync-tests (Files): Likewise.
23528         * modules/ftell-tests (Files): Likewise.
23529         * modules/ftello-tests (Files): Likewise.
23530         * modules/func-tests (Files): Likewise.
23531         * modules/futimens-tests (Files): Likewise.
23532         * modules/fwritable-tests (Files): Likewise.
23533         * modules/fwriting-tests (Files): Likewise.
23534         * modules/getcwd-tests (Files): Likewise.
23535         * modules/getdate-tests (Files): Likewise.
23536         * modules/getdelim-tests (Files): Likewise.
23537         * modules/getdtablesize-tests (Files): Likewise.
23538         * modules/getgroups-tests (Files): Likewise.
23539         * modules/getline-tests (Files): Likewise.
23540         * modules/getndelim2-tests (Files): Likewise.
23541         * modules/glob-tests (Files): Likewise.
23542         * modules/hash-tests (Files): Likewise.
23543         * modules/i-ring-tests (Files): Likewise.
23544         * modules/iconv-tests (Files): Likewise.
23545         * modules/iconv_open-utf-tests (Files): Likewise.
23546         * modules/idpriv-drop-tests (Files): Likewise.
23547         * modules/idpriv-droptemp-tests (Files): Likewise.
23548         * modules/inet_ntop-tests (Files): Likewise.
23549         * modules/inet_pton-tests (Files): Likewise.
23550         * modules/isblank-tests (Files): Likewise.
23551         * modules/isfinite-tests (Files): Likewise.
23552         * modules/isinf-tests (Files): Likewise.
23553         * modules/isnan-tests (Files): Likewise.
23554         * modules/isnand-nolibm-tests (Files): Likewise.
23555         * modules/isnand-tests (Files): Likewise.
23556         * modules/isnanf-nolibm-tests (Files): Likewise.
23557         * modules/isnanf-tests (Files): Likewise.
23558         * modules/isnanl-nolibm-tests (Files): Likewise.
23559         * modules/isnanl-tests (Files): Likewise.
23560         * modules/lchown-tests (Files): Likewise.
23561         * modules/ldexpl-tests (Files): Likewise.
23562         * modules/link-tests (Files): Likewise.
23563         * modules/linkat-tests (Files): Likewise.
23564         * modules/linked-list-tests (Files): Likewise.
23565         * modules/linkedhash-list-tests (Files): Likewise.
23566         * modules/localename-tests (Files): Likewise.
23567         * modules/lseek-tests (Files): Likewise.
23568         * modules/lstat-tests (Files): Likewise.
23569         * modules/mbmemcasecmp-tests (Files): Likewise.
23570         * modules/mbmemcasecoll-tests (Files): Likewise.
23571         * modules/mbrtowc-tests (Files): Likewise.
23572         * modules/mbscasecmp-tests (Files): Likewise.
23573         * modules/mbscasestr-tests (Files): Likewise.
23574         * modules/mbschr-tests (Files): Likewise.
23575         * modules/mbscspn-tests (Files): Likewise.
23576         * modules/mbsinit-tests (Files): Likewise.
23577         * modules/mbsncasecmp-tests (Files): Likewise.
23578         * modules/mbsnrtowcs-tests (Files): Likewise.
23579         * modules/mbspbrk-tests (Files): Likewise.
23580         * modules/mbspcasecmp-tests (Files): Likewise.
23581         * modules/mbsrchr-tests (Files): Likewise.
23582         * modules/mbsrtowcs-tests (Files): Likewise.
23583         * modules/mbsspn-tests (Files): Likewise.
23584         * modules/mbsstr-tests (Files): Likewise.
23585         * modules/memchr-tests (Files): Likewise.
23586         * modules/memchr2-tests (Files): Likewise.
23587         * modules/memcmp-tests (Files): Likewise.
23588         * modules/memmem-tests (Files): Likewise.
23589         * modules/memrchr-tests (Files): Likewise.
23590         * modules/mkdir-tests (Files): Likewise.
23591         * modules/mkfifo-tests (Files): Likewise.
23592         * modules/mkfifoat-tests (Files): Likewise.
23593         * modules/mknod-tests (Files): Likewise.
23594         * modules/nanosleep-tests (Files): Likewise.
23595         * modules/nl_langinfo-tests (Files): Likewise.
23596         * modules/obstack-printf-tests (Files): Likewise.
23597         * modules/open-tests (Files): Likewise.
23598         * modules/openat-tests (Files): Likewise.
23599         * modules/pipe-filter-gi-tests (Files): Likewise.
23600         * modules/pipe-filter-ii-tests (Files): Likewise.
23601         * modules/pipe2-tests (Files): Likewise.
23602         * modules/popen-safer-tests (Files): Likewise.
23603         * modules/popen-tests (Files): Likewise.
23604         * modules/posixtm-tests (Files): Likewise.
23605         * modules/pread-tests (Files): Likewise.
23606         * modules/printf-frexp-tests (Files): Likewise.
23607         * modules/printf-frexpl-tests (Files): Likewise.
23608         * modules/printf-posix-tests (Files): Likewise.
23609         * modules/priv-set-tests (Files): Likewise.
23610         * modules/quotearg-tests (Files): Likewise.
23611         * modules/random_r-tests (Files): Likewise.
23612         * modules/rawmemchr-tests (Files): Likewise.
23613         * modules/rbtree-list-tests (Files): Likewise.
23614         * modules/rbtree-oset-tests (Files): Likewise.
23615         * modules/rbtreehash-list-tests (Files): Likewise.
23616         * modules/readlink-tests (Files): Likewise.
23617         * modules/remove-tests (Files): Likewise.
23618         * modules/rename-tests (Files): Likewise.
23619         * modules/renameat-tests (Files): Likewise.
23620         * modules/rmdir-tests (Files): Likewise.
23621         * modules/round-tests (Files): Likewise.
23622         * modules/roundf-tests (Files): Likewise.
23623         * modules/roundl-tests (Files): Likewise.
23624         * modules/safe-alloc-tests (Files): Likewise.
23625         * modules/setenv-tests (Files): Likewise.
23626         * modules/sigaction-tests (Files): Likewise.
23627         * modules/signbit-tests (Files): Likewise.
23628         * modules/sleep-tests (Files): Likewise.
23629         * modules/snprintf-posix-tests (Files): Likewise.
23630         * modules/snprintf-tests (Files): Likewise.
23631         * modules/sprintf-posix-tests (Files): Likewise.
23632         * modules/stat-tests (Files): Likewise.
23633         * modules/stat-time-tests (Files): Likewise.
23634         * modules/strcasestr-tests (Files): Likewise.
23635         * modules/strchrnul-tests (Files): Likewise.
23636         * modules/strerror-tests (Files): Likewise.
23637         * modules/striconv-tests (Files): Likewise.
23638         * modules/striconveh-tests (Files): Likewise.
23639         * modules/striconveha-tests (Files): Likewise.
23640         * modules/strsignal-tests (Files): Likewise.
23641         * modules/strstr-tests (Files): Likewise.
23642         * modules/strtod-tests (Files): Likewise.
23643         * modules/strverscmp-tests (Files): Likewise.
23644         * modules/symlink-tests (Files): Likewise.
23645         * modules/symlinkat-tests (Files): Likewise.
23646         * modules/trunc-tests (Files): Likewise.
23647         * modules/truncf-tests (Files): Likewise.
23648         * modules/truncl-tests (Files): Likewise.
23649         * modules/uname-tests (Files): Likewise.
23650         * modules/unicase/cased-tests (Files): Likewise.
23651         * modules/unicase/ignorable-tests (Files): Likewise.
23652         * modules/unicase/locale-language-tests (Files): Likewise.
23653         * modules/unicase/tolower-tests (Files): Likewise.
23654         * modules/unicase/totitle-tests (Files): Likewise.
23655         * modules/unicase/toupper-tests (Files): Likewise.
23656         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23657         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23658         * modules/unicase/u8-casefold-tests (Files): Likewise.
23659         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23660         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23661         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23662         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23663         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23664         * modules/unicase/u8-tolower-tests (Files): Likewise.
23665         * modules/unicase/u8-totitle-tests (Files): Likewise.
23666         * modules/unicase/u8-toupper-tests (Files): Likewise.
23667         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23668         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23669         * modules/unicase/u16-casefold-tests (Files): Likewise.
23670         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23671         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23672         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23673         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23674         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23675         * modules/unicase/u16-tolower-tests (Files): Likewise.
23676         * modules/unicase/u16-totitle-tests (Files): Likewise.
23677         * modules/unicase/u16-toupper-tests (Files): Likewise.
23678         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23679         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23680         * modules/unicase/u32-casefold-tests (Files): Likewise.
23681         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23682         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23683         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23684         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23685         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23686         * modules/unicase/u32-tolower-tests (Files): Likewise.
23687         * modules/unicase/u32-totitle-tests (Files): Likewise.
23688         * modules/unicase/u32-toupper-tests (Files): Likewise.
23689         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23690         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23691         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23692         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23693         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23694         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23695         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23696         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23697         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23698         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23699         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23700         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23701         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23702         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23703         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23704         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23705         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23706         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23707         * modules/unictype/block-list-tests (Files): Likewise.
23708         * modules/unictype/block-of-tests (Files): Likewise.
23709         * modules/unictype/block-test-tests (Files): Likewise.
23710         * modules/unictype/category-C-tests (Files): Likewise.
23711         * modules/unictype/category-Cc-tests (Files): Likewise.
23712         * modules/unictype/category-Cf-tests (Files): Likewise.
23713         * modules/unictype/category-Cn-tests (Files): Likewise.
23714         * modules/unictype/category-Co-tests (Files): Likewise.
23715         * modules/unictype/category-Cs-tests (Files): Likewise.
23716         * modules/unictype/category-L-tests (Files): Likewise.
23717         * modules/unictype/category-Ll-tests (Files): Likewise.
23718         * modules/unictype/category-Lm-tests (Files): Likewise.
23719         * modules/unictype/category-Lo-tests (Files): Likewise.
23720         * modules/unictype/category-Lt-tests (Files): Likewise.
23721         * modules/unictype/category-Lu-tests (Files): Likewise.
23722         * modules/unictype/category-M-tests (Files): Likewise.
23723         * modules/unictype/category-Mc-tests (Files): Likewise.
23724         * modules/unictype/category-Me-tests (Files): Likewise.
23725         * modules/unictype/category-Mn-tests (Files): Likewise.
23726         * modules/unictype/category-N-tests (Files): Likewise.
23727         * modules/unictype/category-Nd-tests (Files): Likewise.
23728         * modules/unictype/category-Nl-tests (Files): Likewise.
23729         * modules/unictype/category-No-tests (Files): Likewise.
23730         * modules/unictype/category-P-tests (Files): Likewise.
23731         * modules/unictype/category-Pc-tests (Files): Likewise.
23732         * modules/unictype/category-Pd-tests (Files): Likewise.
23733         * modules/unictype/category-Pe-tests (Files): Likewise.
23734         * modules/unictype/category-Pf-tests (Files): Likewise.
23735         * modules/unictype/category-Pi-tests (Files): Likewise.
23736         * modules/unictype/category-Po-tests (Files): Likewise.
23737         * modules/unictype/category-Ps-tests (Files): Likewise.
23738         * modules/unictype/category-S-tests (Files): Likewise.
23739         * modules/unictype/category-Sc-tests (Files): Likewise.
23740         * modules/unictype/category-Sk-tests (Files): Likewise.
23741         * modules/unictype/category-Sm-tests (Files): Likewise.
23742         * modules/unictype/category-So-tests (Files): Likewise.
23743         * modules/unictype/category-Z-tests (Files): Likewise.
23744         * modules/unictype/category-Zl-tests (Files): Likewise.
23745         * modules/unictype/category-Zp-tests (Files): Likewise.
23746         * modules/unictype/category-Zs-tests (Files): Likewise.
23747         * modules/unictype/category-and-not-tests (Files): Likewise.
23748         * modules/unictype/category-and-tests (Files): Likewise.
23749         * modules/unictype/category-byname-tests (Files): Likewise.
23750         * modules/unictype/category-name-tests (Files): Likewise.
23751         * modules/unictype/category-none-tests (Files): Likewise.
23752         * modules/unictype/category-of-tests (Files): Likewise.
23753         * modules/unictype/category-or-tests (Files): Likewise.
23754         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23755         * modules/unictype/combining-class-tests (Files): Likewise.
23756         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23757         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23758         * modules/unictype/ctype-blank-tests (Files): Likewise.
23759         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23760         * modules/unictype/ctype-digit-tests (Files): Likewise.
23761         * modules/unictype/ctype-graph-tests (Files): Likewise.
23762         * modules/unictype/ctype-lower-tests (Files): Likewise.
23763         * modules/unictype/ctype-print-tests (Files): Likewise.
23764         * modules/unictype/ctype-punct-tests (Files): Likewise.
23765         * modules/unictype/ctype-space-tests (Files): Likewise.
23766         * modules/unictype/ctype-upper-tests (Files): Likewise.
23767         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23768         * modules/unictype/decimal-digit-tests (Files): Likewise.
23769         * modules/unictype/digit-tests (Files): Likewise.
23770         * modules/unictype/mirror-tests (Files): Likewise.
23771         * modules/unictype/numeric-tests (Files): Likewise.
23772         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23773         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23774         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23775         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23776         Likewise.
23777         * modules/unictype/property-bidi-block-separator-tests (Files):
23778         Likewise.
23779         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23780         Likewise.
23781         * modules/unictype/property-bidi-common-separator-tests (Files):
23782         Likewise.
23783         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23784         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23785         Likewise.
23786         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23787         Likewise.
23788         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23789         Likewise.
23790         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23791         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23792         Likewise.
23793         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23794         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23795         Likewise.
23796         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23797         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23798         * modules/unictype/property-bidi-segment-separator-tests (Files):
23799         Likewise.
23800         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23801         * modules/unictype/property-byname-tests (Files): Likewise.
23802         * modules/unictype/property-combining-tests (Files): Likewise.
23803         * modules/unictype/property-composite-tests (Files): Likewise.
23804         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23805         * modules/unictype/property-dash-tests (Files): Likewise.
23806         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23807         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23808         Likewise.
23809         * modules/unictype/property-deprecated-tests (Files): Likewise.
23810         * modules/unictype/property-diacritic-tests (Files): Likewise.
23811         * modules/unictype/property-extender-tests (Files): Likewise.
23812         * modules/unictype/property-format-control-tests (Files): Likewise.
23813         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23814         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23815         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23816         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23817         * modules/unictype/property-hyphen-tests (Files): Likewise.
23818         * modules/unictype/property-id-continue-tests (Files): Likewise.
23819         * modules/unictype/property-id-start-tests (Files): Likewise.
23820         * modules/unictype/property-ideographic-tests (Files): Likewise.
23821         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23822         * modules/unictype/property-ids-trinary-operator-tests (Files):
23823         Likewise.
23824         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23825         * modules/unictype/property-iso-control-tests (Files): Likewise.
23826         * modules/unictype/property-join-control-tests (Files): Likewise.
23827         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23828         * modules/unictype/property-line-separator-tests (Files): Likewise.
23829         * modules/unictype/property-logical-order-exception-tests (Files):
23830         Likewise.
23831         * modules/unictype/property-lowercase-tests (Files): Likewise.
23832         * modules/unictype/property-math-tests (Files): Likewise.
23833         * modules/unictype/property-non-break-tests (Files): Likewise.
23834         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23835         * modules/unictype/property-numeric-tests (Files): Likewise.
23836         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23837         * modules/unictype/property-other-default-ignorable-code-point-tests
23838         (Files): Likewise.
23839         * modules/unictype/property-other-grapheme-extend-tests (Files):
23840         Likewise.
23841         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23842         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23843         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23844         * modules/unictype/property-other-math-tests (Files): Likewise.
23845         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23846         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23847         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23848         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23849         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23850         * modules/unictype/property-private-use-tests (Files): Likewise.
23851         * modules/unictype/property-punctuation-tests (Files): Likewise.
23852         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23853         * modules/unictype/property-radical-tests (Files): Likewise.
23854         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23855         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23856         * modules/unictype/property-space-tests (Files): Likewise.
23857         * modules/unictype/property-terminal-punctuation-tests (Files):
23858         Likewise.
23859         * modules/unictype/property-test-tests (Files): Likewise.
23860         * modules/unictype/property-titlecase-tests (Files): Likewise.
23861         * modules/unictype/property-unassigned-code-value-tests (Files):
23862         Likewise.
23863         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23864         * modules/unictype/property-uppercase-tests (Files): Likewise.
23865         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23866         * modules/unictype/property-white-space-tests (Files): Likewise.
23867         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23868         * modules/unictype/property-xid-start-tests (Files): Likewise.
23869         * modules/unictype/property-zero-width-tests (Files): Likewise.
23870         * modules/unictype/scripts-tests (Files): Likewise.
23871         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23872         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23873         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23874         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23875         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23876         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23877         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23878         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23879         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23880         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23881         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23882         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23883         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23884         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23885         * modules/uninorm/composition-tests (Files): Likewise.
23886         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23887         * modules/uninorm/decomposition-tests (Files): Likewise.
23888         * modules/uninorm/filter-tests (Files): Likewise.
23889         * modules/uninorm/nfc-tests (Files): Likewise.
23890         * modules/uninorm/nfd-tests (Files): Likewise.
23891         * modules/uninorm/nfkc-tests (Files): Likewise.
23892         * modules/uninorm/nfkd-tests (Files): Likewise.
23893         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23894         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23895         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23896         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23897         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23898         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23899         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23900         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23901         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23902         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23903         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23904         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23905         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23906         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23907         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23908         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23909         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23910         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23911         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23912         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23913         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23914         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23915         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23916         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23917         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23918         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23919         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23920         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23921         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23922         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23923         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23924         * modules/uniwidth/u8-width-tests (Files): Likewise.
23925         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23926         * modules/uniwidth/u16-width-tests (Files): Likewise.
23927         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23928         * modules/uniwidth/u32-width-tests (Files): Likewise.
23929         * modules/uniwidth/width-tests (Files): Likewise.
23930         * modules/unlink-tests (Files): Likewise.
23931         * modules/unsetenv-tests (Files): Likewise.
23932         * modules/usleep-tests (Files): Likewise.
23933         * modules/utimens-tests (Files): Likewise.
23934         * modules/utimensat-tests (Files): Likewise.
23935         * modules/vasnprintf-posix-tests (Files): Likewise.
23936         * modules/vasnprintf-tests (Files): Likewise.
23937         * modules/vasprintf-posix-tests (Files): Likewise.
23938         * modules/vasprintf-tests (Files): Likewise.
23939         * modules/vdprintf-posix-tests (Files): Likewise.
23940         * modules/vfprintf-posix-tests (Files): Likewise.
23941         * modules/vprintf-posix-tests (Files): Likewise.
23942         * modules/vsnprintf-posix-tests (Files): Likewise.
23943         * modules/vsnprintf-tests (Files): Likewise.
23944         * modules/vsprintf-posix-tests (Files): Likewise.
23945         * modules/wcrtomb-tests (Files): Likewise.
23946         * modules/wcsnrtombs-tests (Files): Likewise.
23947         * modules/wcsrtombs-tests (Files): Likewise.
23948         * modules/wctype-tests (Files): Likewise.
23949         * modules/wcwidth-tests (Files): Likewise.
23950         * modules/xmemdup0-tests (Files): Likewise.
23951         * modules/xprintf-posix-tests (Files): Likewise.
23952         * modules/xvasprintf-tests (Files): Likewise.
23953
23954 2009-12-24  Eric Blake  <ebb9@byu.net>
23955
23956         test-nanosleep: fix typo
23957         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23958         patch.
23959         Reported by Bruno Haible.
23960
23961 2009-12-24  Bruno Haible  <bruno@clisp.org>
23962
23963         Reduce namespace pollution on glibc systems.
23964         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23965         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23966         systems.
23967         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23968         <getopt.h> on glibc systems.
23969         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23970         systems.
23971         * lib/fcntl.c: Include <unistd.h> here instead.
23972
23973 2009-12-24  Bruno Haible  <bruno@clisp.org>
23974
23975         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23976
23977 2009-12-24  Eric Blake  <ebb9@byu.net>
23978
23979         tests: add signature checks
23980         * tests/signature.h (SIGNATURE_CHECK): New file.
23981         * modules/atexit-tests (Files): Use it.
23982         * modules/btowc-tests (Files): Likewise.
23983         * modules/canonicalize-lgpl-tests (Files): Likewise.
23984         * modules/ceilf-tests (Files): Likewise.
23985         * modules/ceill-tests (Files): Likewise.
23986         * modules/chown-tests (Files): Likewise.
23987         * modules/dprintf-posix-tests (Files): Likewise.
23988         * modules/dup2-tests (Files): Likewise.
23989         * modules/dup3-tests (Files): Likewise.
23990         * modules/duplocale-tests (Files): Likewise.
23991         * modules/fchdir-tests (Files): Likewise.
23992         * modules/fcntl-tests (Files): Likewise.
23993         * modules/fdopendir-tests (Files): Likewise.
23994         * modules/fflush-tests (Files): Likewise.
23995         * modules/flock-tests (Files): Likewise.
23996         * modules/floorf-tests (Files): Likewise.
23997         * modules/floorl-tests (Files): Likewise.
23998         * modules/fnmatch-tests (Files): Likewise.
23999         * modules/fopen-tests (Files): Likewise.
24000         * modules/fprintf-posix-tests (Files): Likewise.
24001         * modules/freopen-tests (Files): Likewise.
24002         * modules/frexp-nolibm-tests (Files): Likewise.
24003         * modules/frexp-tests (Files): Likewise.
24004         * modules/frexpl-nolibm-tests (Files): Likewise.
24005         * modules/frexpl-tests (Files): Likewise.
24006         * modules/fseek-tests (Files): Likewise.
24007         * modules/fseeko-tests (Files): Likewise.
24008         * modules/fsync-tests (Files): Likewise.
24009         * modules/ftell-tests (Files): Likewise.
24010         * modules/ftello-tests (Files): Likewise.
24011         * modules/futimens-tests (Files): Likewise.
24012         * modules/getaddrinfo-tests (Files): Likewise.
24013         * modules/getcwd-tests (Files): Likewise.
24014         * modules/getdelim-tests (Files): Likewise.
24015         * modules/getdtablesize-tests (Files): Likewise.
24016         * modules/getgroups-tests (Files): Likewise.
24017         * modules/gethostname-tests (Files): Likewise.
24018         * modules/getline-tests (Files): Likewise.
24019         * modules/getopt-posix-tests (Files): Likewise.
24020         * modules/gettimeofday-tests (Files): Likewise.
24021         * modules/glob-tests (Files): Likewise.
24022         * modules/iconv-tests (Files): Likewise.
24023         * modules/inet_ntop-tests (Files): Likewise.
24024         * modules/inet_pton-tests (Files): Likewise.
24025         * modules/isblank-tests (Files): Likewise.
24026         * modules/lchown-tests (Files): Likewise.
24027         * modules/ldexpl-tests (Files): Likewise.
24028         * modules/link-tests (Files): Likewise.
24029         * modules/linkat-tests (Files): Likewise.
24030         * modules/lseek-tests (Files): Likewise.
24031         * modules/lstat-tests (Files): Likewise.
24032         * modules/mbrtowc-tests (Files): Likewise.
24033         * modules/mbsinit-tests (Files): Likewise.
24034         * modules/mbsnrtowcs-tests (Files): Likewise.
24035         * modules/mbsrtowcs-tests (Files): Likewise.
24036         * modules/memchr-tests (Files): Likewise.
24037         * modules/memcmp-tests (Files): Likewise.
24038         * modules/memmem-tests (Files): Likewise.
24039         * modules/memrchr-tests (Files): Likewise.
24040         * modules/mkdir-tests (Files): Likewise.
24041         * modules/mkfifo-tests (Files): Likewise.
24042         * modules/mkfifoat-tests (Files): Likewise.
24043         * modules/mknod-tests (Files): Likewise.
24044         * modules/nanosleep-tests (Files): Likewise.
24045         * modules/nl_langinfo-tests (Files): Likewise.
24046         * modules/obstack-printf-tests (Files): Likewise.
24047         * modules/open-tests (Files): Likewise.
24048         * modules/openat-tests (Files): Likewise.
24049         * modules/perror-tests (Files): Likewise.
24050         * modules/pipe2-tests (Files): Likewise.
24051         * modules/poll-tests (Files): Likewise.
24052         * modules/popen-tests (Files): Likewise.
24053         * modules/posix_spawn-tests (Files): Likewise.
24054         * modules/posix_spawnp-tests (Files): Likewise.
24055         * modules/pread-tests (Files): Likewise.
24056         * modules/printf-posix-tests (Files): Likewise.
24057         * modules/pty-tests (Files): Likewise.
24058         * modules/random_r-tests (Files): Likewise.
24059         * modules/rawmemchr-tests (Files): Likewise.
24060         * modules/readlink-tests (Files): Likewise.
24061         * modules/remove-tests (Files): Likewise.
24062         * modules/rename-tests (Files): Likewise.
24063         * modules/renameat-tests (Files): Likewise.
24064         * modules/rmdir-tests (Files): Likewise.
24065         * modules/round-tests (Files): Likewise.
24066         * modules/roundf-tests (Files): Likewise.
24067         * modules/roundl-tests (Files): Likewise.
24068         * modules/select-tests (Files): Likewise.
24069         * modules/setenv-tests (Files): Likewise.
24070         * modules/sigaction-tests (Files): Likewise.
24071         * modules/sleep-tests (Files): Likewise.
24072         * modules/snprintf-posix-tests (Files): Likewise.
24073         * modules/snprintf-tests (Files): Likewise.
24074         * modules/sprintf-posix-tests (Files): Likewise.
24075         * modules/stat-tests (Files): Likewise.
24076         * modules/strcasestr-tests (Files): Likewise.
24077         * modules/strchrnul-tests (Files): Likewise.
24078         * modules/strerror-tests (Files): Likewise.
24079         * modules/strsignal-tests (Files): Likewise.
24080         * modules/strstr-tests (Files): Likewise.
24081         * modules/strtod-tests (Files): Likewise.
24082         * modules/strverscmp-tests (Files): Likewise.
24083         * modules/symlink-tests (Files): Likewise.
24084         * modules/symlinkat-tests (Files): Likewise.
24085         * modules/times-tests (Files): Likewise.
24086         * modules/trunc-tests (Files): Likewise.
24087         * modules/truncf-tests (Files): Likewise.
24088         * modules/truncl-tests (Files): Likewise.
24089         * modules/tsearch-tests (Files): Likewise.
24090         * modules/uname-tests (Files): Likewise.
24091         * modules/unlink-tests (Files): Likewise.
24092         * modules/unsetenv-tests (Files): Likewise.
24093         * modules/usleep-tests (Files): Likewise.
24094         * modules/utimensat-tests (Files): Likewise.
24095         * modules/vasprintf-tests (Files): Likewise.
24096         * modules/vdprintf-posix-tests (Files): Likewise.
24097         * modules/vfprintf-posix-tests (Files): Likewise.
24098         * modules/vprintf-posix-tests (Files): Likewise.
24099         * modules/vsnprintf-posix-tests (Files): Likewise.
24100         * modules/vsnprintf-tests (Files): Likewise.
24101         * modules/vsprintf-posix-tests (Files): Likewise.
24102         * modules/wcrtomb-tests (Files): Likewise.
24103         * modules/wcsnrtombs-tests (Files): Likewise.
24104         * modules/wcsrtombs-tests (Files): Likewise.
24105         * modules/wcwidth-tests (Files): Likewise.
24106         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24107         * tests/test-isinf.c (isinf): Likewise.
24108         * tests/test-isnan.c (isnan): Likewise.
24109         * tests/test-signbit.c (signbit): Likewise.
24110         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24111         declaration, either as macro or with correct signature.
24112         (select): Ensure function under test is declared with correct
24113         signature in correct header.
24114         * tests/test-atexit.c (atexit): Likewise.
24115         * tests/test-btowc.c (btowc): Likewise.
24116         * tests/test-canonicalize-lgpl.c (realpath)
24117         (canonicalize_file_name): Likewise.
24118         * tests/test-ceilf1.c (ceilf): Likewise.
24119         * tests/test-ceill.c (ceill): Likewise.
24120         * tests/test-chown.c (chown): Likewise.
24121         * tests/test-dprintf-posix.c (dprintf): Likewise.
24122         * tests/test-dup2.c (dup2): Likewise.
24123         * tests/test-dup3.c (dup3): Likewise.
24124         * tests/test-duplocale.c (duplocale): Likewise.
24125         * tests/test-fchdir.c (fchdir): Likewise.
24126         * tests/test-fchownat.c (fchownat): Likewise.
24127         * tests/test-fcntl.c (fcntl): Likewise.
24128         * tests/test-fdopendir.c (fdopendir): Likewise.
24129         * tests/test-fflush.c (fflush): Likewise.
24130         * tests/test-flock.c (flock): Likewise.
24131         * tests/test-floorf1.c (floorf): Likewise.
24132         * tests/test-floorl.c (floorl): Likewise.
24133         * tests/test-fnmatch.c (fnmatch): Likewise.
24134         * tests/test-fopen.c (fopen): Likewise.
24135         * tests/test-fprintf-posix.c (fprintf): Likewise.
24136         * tests/test-freopen.c (freopen): Likewise.
24137         * tests/test-frexp.c (frexp): Likewise.
24138         * tests/test-frexpl.c (frexpl): Likewise.
24139         * tests/test-fseek.c (fseek): Likewise.
24140         * tests/test-fseeko.c (fseeko): Likewise.
24141         * tests/test-fstatat.c (fstatat): Likewise.
24142         * tests/test-fsync.c (fsync): Likewise.
24143         * tests/test-ftell.c (ftell): Likewise.
24144         * tests/test-ftello.c (ftello): Likewise.
24145         * tests/test-futimens.c (futimens): Likewise.
24146         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24147         (gai_strerror): Likewise.
24148         * tests/test-getcwd.c (getcwd): Likewise.
24149         * tests/test-getdelim.c (getdelim): Likewise.
24150         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24151         * tests/test-getgroups.c (getgroups): Likewise.
24152         * tests/test-gethostname.c (gethostname): Likewise.
24153         * tests/test-getline.c (getline): Likewise.
24154         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24155         Likewise.
24156         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24157         * tests/test-glob.c (glob, globfree): Likewise.
24158         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24159         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24160         * tests/test-inet_pton.c (inet_pton): Likewise.
24161         * tests/test-isblank.c (isblank): Likewise.
24162         * tests/test-lchown.c (lchown): Likewise.
24163         * tests/test-ldexpl.c (ldexpl): Likewise.
24164         * tests/test-link.c (link): Likewise.
24165         * tests/test-linkat.c (linkat): Likewise.
24166         * tests/test-lseek.c (lseek): Likewise.
24167         * tests/test-lstat.c (lstat): Likewise.
24168         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24169         * tests/test-mbsinit.c (mbsinit): Likewise.
24170         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24171         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24172         * tests/test-memchr.c (memchr): Likewise.
24173         * tests/test-memcmp.c (memcmp): Likewise.
24174         * tests/test-memmem.c (memmem): Likewise.
24175         * tests/test-memrchr.c (memrchr): Likewise.
24176         * tests/test-mkdir.c (mkdir): Likewise.
24177         * tests/test-mkdirat.c (mkdirat): Likewise.
24178         * tests/test-mkfifo.c (mkfifo): Likewise.
24179         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24180         * tests/test-mknod.c (mknod): Likewise.
24181         * tests/test-nanosleep.c (nanosleep): Likewise.
24182         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24183         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24184         Likewise.
24185         * tests/test-open.c (open): Likewise.
24186         * tests/test-openat.c (openat): Likewise.
24187         * tests/test-perror.c (perror): Likewise.
24188         * tests/test-pipe2.c (pipe2): Likewise.
24189         * tests/test-poll.c (poll): Likewise.
24190         * tests/test-popen.c (popen, pclose): Likewise.
24191         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24192         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24193         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24194         (posix_spawn_file_actions_destroy)
24195         (posix_spawn_file_actions_addclose)
24196         (posix_spawn_file_actions_addopen)
24197         (posix_spawn_file_actions_adddup2): Likewise.
24198         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24199         * tests/test-pread.c (pread): Likewise.
24200         * tests/test-printf-posix.c (printf): Likewise.
24201         * tests/test-pty.c (openpty, forkpty): Likewise.
24202         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24203         (random_r): Likewise.
24204         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24205         * tests/test-readlink.c (readlink): Likewise.
24206         * tests/test-remove.c (remove): Likewise.
24207         * tests/test-rename.c (rename): Likewise.
24208         * tests/test-renameat.c (renameat): Likewise.
24209         * tests/test-rmdir.c (rmdir): Likewise.
24210         * tests/test-round1.c (round): Likewise.
24211         * tests/test-roundf1.c (roundf): Likewise.
24212         * tests/test-roundl.c (roundl): Likewise.
24213         * tests/test-setenv.c (setenv): Likewise.
24214         * tests/test-sigaction.c (sigaction): Likewise.
24215         * tests/test-sleep.c (sleep): Likewise.
24216         * tests/test-snprintf.c (snprintf): Likewise.
24217         * tests/test-sprintf-posix.c (sprintf): Likewise.
24218         * tests/test-stat.c (stat): Likewise.
24219         * tests/test-stpncpy.c (stpncpy): Likewise.
24220         * tests/test-strcasestr.c (strcasestr): Likewise.
24221         * tests/test-strchrnul.c (strchrnul): Likewise.
24222         * tests/test-strerror.c (strerror): Likewise.
24223         * tests/test-strsignal.c (strsignal): Likewise.
24224         * tests/test-strstr.c (strstr): Likewise.
24225         * tests/test-strtod.c (strtod): Likewise.
24226         * tests/test-strverscmp.c (strverscmp): Likewise.
24227         * tests/test-symlink.c (symlink): Likewise.
24228         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24229         * tests/test-times.c (times): Likewise.
24230         * tests/test-trunc1.c (trunc): Likewise.
24231         * tests/test-truncf1.c (truncf): Likewise.
24232         * tests/test-truncl.c (truncl): Likewise.
24233         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24234         Likewise.
24235         * tests/test-uname.c (uname): Likewise.
24236         * tests/test-unlink.c (unlink): Likewise.
24237         * tests/test-unlinkat.c (unlinkat): Likewise.
24238         * tests/test-unsetenv.c (unsetenv): Likewise.
24239         * tests/test-usleep.c (usleep): Likewise.
24240         * tests/test-utimensat.c (utimensat): Likewise.
24241         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24242         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24243         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24244         * tests/test-vprintf-posix.c (vprintf): Likewise.
24245         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24246         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24247         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24248         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24249         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24250         * tests/test-wcwidth.c (wcwidth): Likewise.
24251
24252         build: pull in conditional headers during GNULIB_POSIXCHECK
24253         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24254         definitions from any conditionally-included headers.
24255         * lib/stdlib.in.h (includes): Likewise.
24256         * lib/unistd.in.h (includes): Likewise.
24257
24258 2009-12-24  Bruno Haible  <bruno@clisp.org>
24259
24260         * tests/test-argv-iter.c: Include header file being tested immediately
24261         after config.h.
24262         * tests/test-base64.c: Likewise.
24263         * tests/test-flock.c: Likewise.
24264         * tests/test-fsync.c: Likewise.
24265         * tests/test-getdate.c: Likewise.
24266         * tests/test-getndelim2.c: Likewise.
24267         * tests/test-isfinite.c: Likewise.
24268         * tests/test-isinf.c: Likewise.
24269         * tests/test-strerror.c: Likewise.
24270         * tests/test-strsignal.c: Likewise.
24271
24272 2009-12-23  Eric Blake  <ebb9@byu.net>
24273
24274         unistd: work around cygwin bug
24275         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24276         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24277         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24278
24279 2009-12-23  Bruno Haible  <bruno@clisp.org>
24280
24281         localename: More tests.
24282         * tests/test-localename.c (SIZEOF): New macro.
24283         (categories): New variable.
24284         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24285         test_locale_name_default): Add test w.r.t. thread locale.
24286         (test_locale_name_thread): New function.
24287         (main): Invoke it.
24288
24289         localename: Make aware of thread locale.
24290         * lib/localename.h (gl_locale_name_thread): New declaration.
24291         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24292         behaviour with respect to thread locale.
24293         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24294         <langinfo.h>, glthread/lock.h.
24295         (SIZE_BITS): New macro.
24296         (string_hash): New function.
24297         (struct hash_node): New type.
24298         (HASH_TABLE_SIZE): New macro.
24299         (struniq_hash_table, struniq_lock): New variables.
24300         (struniq): New function.
24301         (gl_locale_name_thread): New function.
24302         (gl_locale_name): Invoke it.
24303         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24304         * modules/localename (Depends-on): Add lock.
24305         Reported by Mike Gran <spk121@yahoo.com>.
24306
24307 2009-12-23  Eric Blake  <ebb9@byu.net>
24308
24309         va-args: new module
24310         * modules/va-args: New file.
24311         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24312         * MODULES.html.sh (Core language properties): Mention it.
24313
24314         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24315         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24316         named alias for __attribute__((__unused__)).
24317         * lib/chown.c: Update client.
24318         * lib/fchmodat.c: Likewise.
24319         * lib/fts.c: Likewise.
24320         * lib/getdate.y: Likewise.
24321         * lib/getgroups.c: Likewise.
24322         * lib/getopt.c: Likewise.
24323         * lib/getugroups.c: Likewise.
24324         * lib/mkdir.c: Likewise.
24325         * lib/mkfifo.c: Likewise.
24326         * lib/mkfifoat.c: Likewise.
24327         * lib/mknod.c: Likewise.
24328         * lib/mknodat.c: Likewise.
24329         * lib/readlink.c: Likewise.
24330         * lib/se-context.in.h: Likewise.
24331         * lib/se-selinux.in.h: Likewise.
24332         * lib/sockets.c: Likewise.
24333         * lib/symlink.c: Likewise.
24334         * lib/symlinkat.c: Likewise.
24335         * lib/unicodeio.c: Likewise.
24336         * lib/unistr.h: Likewise.
24337         * tests/test-areadlink.c: Likewise.
24338         * tests/test-areadlinkat.c: Likewise.
24339         * tests/test-filenamecat.c: Likewise.
24340         * tests/test-fseeko.c: Likewise.
24341         * tests/test-ftello.c: Likewise.
24342         * tests/test-getdate.c: Likewise.
24343         * tests/test-getgroups.c: Likewise.
24344         * tests/test-gethostname.c: Likewise.
24345         * tests/test-quotearg.c: Likewise.
24346         * tests/test-version-etc.c: Likewise.
24347         * tests/test-xalloc-die.c: Likewise.
24348         * tests/test-xfprintf-posix.c: Likewise.
24349         * tests/test-xprintf-posix.c: Likewise.
24350         * tests/test-xvasprintf.c: Likewise.
24351
24352         tests: avoid compiler warnings
24353         * tests/test-fcntl.c (main): Delete unused parameters.
24354         * tests/test-freopen-safer.c (main): Likewise.
24355         * tests/test-xalloc-die.c (main): Mark unused parameters.
24356         * tests/test-fseeko.c (main): Likewise.
24357         * tests/test-ftello.c (main): Likewise.
24358         * tests/test-nanosleep.c (main): Avoid declaration warning.
24359         * tests/test-sleep.c (main): Likewise.
24360         * tests/test-unsetenv.c (main): Silence warning about string
24361         literal.
24362         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24363
24364 2009-12-23  Bruno Haible  <bruno@clisp.org>
24365
24366         * tests/test-localename.c (test_locale_name): New function, extracted
24367         from main. Also test mixed situations.
24368         (test_locale_name_posix, test_locale_name_environ,
24369         test_locale_name_default): New functions.
24370         (main): Invoke them all.
24371         * modules/localename-tests (configure.ac): Test for newlocale.
24372
24373 2009-12-23  Bruno Haible  <bruno@clisp.org>
24374
24375         unistd: Ensure getcwd gets declared before being overridden.
24376         * lib/unistd.in.h: Conditionally include <io.h>.
24377
24378 2009-12-22  Bruno Haible  <bruno@clisp.org>
24379
24380         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24381         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24382         (gl_WCHAR_H): Invoke it.
24383         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24384         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24385         Reported by Karl Berry <karl@freefriends.org>.
24386
24387 2009-12-22  Eric Blake  <ebb9@byu.net>
24388
24389         math, unistd: avoid redundant includes
24390         * lib/math.in.h (isnan): No need to re-include <math.h>.
24391         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24392
24393         getsubopt: work around cygwin bug
24394         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24395         avoid conflicting with system getsubopt.
24396         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24397         bug.
24398
24399         getopt: synchronize from glibc
24400         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24401         parameter order.  Adjust all callers.
24402         (_getopt_internal_r, main): Adjust quoting in error messages.
24403         Drop considerations for outdated POSIX 1003.2 error message.
24404         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24405         callers.
24406         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24407
24408         test-getopt: test stderr behavior
24409         * modules/getopt-posix-tests (Depends-on): Add dup2.
24410         * tests/test-getopt.c (ASSERT): Avoid stderr.
24411         (main): Move stderr to a temporary file.
24412         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24413         Instead, add parameter to inform caller if output occurred.
24414         (test_getopt): Adjust all existing tests to expect silence, and
24415         add new tests of leading ":".
24416         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24417         glibc shortcomings with leading "-:" or "+:" in optstring.
24418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24419         Likewise.
24420         * doc/posix-functions/getopt.texi (getopt): Likewise.
24421
24422         test-getopt: enhance test
24423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24424         supports optind=0.
24425         * tests/test-getopt.c (OPTIND_MIN): Move...
24426         * tests/test-getopt.h (OPTIND_MIN): ...here.
24427         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24428         Require that optind=0 works, since modern BSD supports it in
24429         addition to optreset, and since coreutils expects it.
24430         (test_getopt_long_only): New test.
24431         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24432         glibc shortcomings with 'W;', and enforcement of optind=0.
24433         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24434         Likewise.
24435
24436 2009-12-21  Bruno Haible  <bruno@clisp.org>
24437
24438         localename: Improvements for MacOS X and Cygwin.
24439         * lib/localename.h (gl_locale_name_environ): New declaration.
24440         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24441         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24442         (gl_locale_name_posix): Invoke it.
24443         (gl_locale_name_default): Add comments. Use Windows native API also on
24444         Cygwin.
24445
24446 2009-12-21  Bruno Haible  <bruno@clisp.org>
24447
24448         Update list of Win32 locale ids.
24449         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24450         (LANG_SAMI): Renamed from LANG_SAAMI.
24451         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24452         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24453         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24454         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24455         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24456         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24457         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24458         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24459         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24460         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24461         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24462         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24463         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24464         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24465         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24466         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24467         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24468         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24469         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24470         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24471         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24472         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24473         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24474         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24475         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24476         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24477         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24478         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24479         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24480         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24481         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24482         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24483         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24484         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24485         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24486         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24487         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24488         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24489         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24490         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24491         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24492         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24493         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24494         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24495         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24496         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24497         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24498         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24499         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24500         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24501         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24502         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24503         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24504         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24505         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24506         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24507         Add more languages and countries for Sami, Sorbian. Add more countries
24508         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24509         for Pashto. Change country for Syriac, Tswana.
24510
24511 2009-12-21  Eric Blake  <ebb9@byu.net>
24512
24513         test-utimens: avoid spurious failure
24514         * tests/test-chown.h (nap): Factor...
24515         * tests/nap.h: ...into new file.
24516         * tests/test-lchown.h (nap): Avoid duplication.
24517         * tests/test-utimens-common.h (nap): Use shared implementation,
24518         necessary on file systems with 1-second resolution.
24519         * modules/chown-tests (Files): Include new file.
24520         * modules/fdutimensat-tests (Files): Likewise.
24521         * modules/futimens-tests (Files): Likewise.
24522         * modules/lchown-tests (Files): Likewise.
24523         * modules/openat-tests (Files): Likewise.
24524         * modules/utimens-tests (Files): Likewise.
24525         * modules/utimensat-tests (Files): Likewise.
24526
24527 2009-12-19  Eric Blake  <ebb9@byu.net>
24528
24529         futimens, utimensat: work around Linux bug
24530         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24531         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24532         * lib/utimensat.c (rpl_utimensat): Work around it.
24533         * lib/futimens.c (rpl_futimens): Adjust comment.
24534
24535         utimens: work around Linux ctime bug
24536         * lib/utimens.c (detect_ctime_bug): New helper function.
24537         (update_timespec): Differentiate between workaround needed for
24538         this bug vs. what is needed for systems that lack utimensat.
24539         (fdutimens, lutimens): Work around bug.
24540
24541         utimens: check for ctime update
24542         * tests/test-utimens-common.h (check_ctime): Define.
24543         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24544         * tests/test-futimens.h (test_futimens): Likewise.
24545         * tests/test-lutimens.h (test_lutimens): Likewise.
24546         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24547         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24548
24549 2009-12-19  Bruno Haible  <bruno@clisp.org>
24550
24551         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24552         * tests/test-dprintf-posix2.sh: New file.
24553         * tests/test-dprintf-posix2.c: New file.
24554         * modules/dprintf-posix-tests (Files): Add them.
24555         (configure.ac): Check for getrlimit and setrlimit.
24556         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24557
24558 2009-12-19  Bruno Haible  <bruno@clisp.org>
24559
24560         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24561         * tests/test-fprintf-posix3.sh: New file.
24562         * tests/test-fprintf-posix3.c: New file.
24563         * modules/fprintf-posix-tests (Files): Add them.
24564         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24565
24566 2009-12-19  Eric Blake  <ebb9@byu.net>
24567
24568         dirfd: fix prototype
24569         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24570         * lib/dirfd.c (dirfd): Likewise.
24571
24572         canonicalize: reduce memory usage
24573         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24574         allocation to size.
24575         Reported by Solar Designer <solar@openwall.com>.
24576
24577 2009-12-19  Bruno Haible  <bruno@clisp.org>
24578
24579         New module attribute 'Applicability'.
24580         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24581         * gnulib-tool: New option --extract-applicability.
24582         (func_usage): Document it.
24583         (sed_extract_prog): Recognize it.
24584         (func_get_applicability): New function.
24585         (func_import): Generalize handling of 'link-warning' module.
24586         * modules/link-warning (Applicability): New section.
24587         * modules/arg-nonnull (Applicability): New section.
24588         Repoted by Simon Josefsson <simon@josefsson.org>.
24589
24590 2009-12-19  Bruno Haible  <bruno@clisp.org>
24591
24592         fflush: tweak
24593         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24594         * lib/fseeko.c (rpl_fseeko): Likewise.
24595
24596 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24597
24598         * lib/gl_list.h: Fix typo in comment.
24599
24600 2009-12-16  Eric Blake  <ebb9@byu.net>
24601
24602         fcntl: use to simplify other modules
24603         * modules/cloexec (Depends-on): Add fcntl.
24604         * modules/fchdir (Depends-on): Likewise.
24605         * modules/fd-safer-flag (Depends-on): Likewise.
24606         * modules/unistd-safer (Depends-on): Likewise.
24607         * modules/dup3 (configure.ac): Set module indicator.
24608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24609         missing.
24610         * lib/fchdir.c (_gl_register_dup): Fix comment.
24611         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24612         * lib/dup-safer.c (dup_safer): Likewise.
24613         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24614         * lib/dup3.c (dup3): Likewise.
24615         * tests/test-fchdir.c (main): Enhance test.
24616         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24617
24618         fcntl: port portions of fcntl to mingw
24619         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24620         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24621         replacement for mingw.
24622         * modules/fcntl (Description): Update.
24623         (Depends-on): Add dup2.
24624         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24625         * modules/fcntl-h (Makefile.am): Substitute it.
24626         * lib/fcntl.in.h (fcntl): Update declaration.
24627         (F_DUPFD, F_GETFD): New macros, when needed.
24628         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24629         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24630         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24631         we now guarantee.
24632
24633         fcntl: work around cygwin bug in F_DUPFD
24634         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24635         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24636         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24637         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24638         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24639
24640         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24641         * modules/fcntl (Files): List new files.
24642         (configure.ac): Run a test.
24643         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24644         * lib/fcntl.c (rpl_fcntl): Likewise.
24645         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24646         (gl_FCNTL_H): Always replace fcntl.h.
24647         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24648         * lib/fcntl.in.h (fcntl): Declare replacement.
24649         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24650         needed, plus a witness.
24651         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24652         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24653         * tests/test-fcntl.c: New file.
24654         * modules/fcntl-tests: Likewise.
24655
24656         binary-io: avoid potential compilation warning
24657         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24658         directives.
24659
24660         fflush: avoid compilation error on NetBSD
24661         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24662         between off_t and fpos_t, since the latter is sometimes a struct.
24663         * lib/fseeko.c (rpl_fseeko): Likewise.
24664         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24665
24666 2009-12-15  Eric Blake  <ebb9@byu.net>
24667
24668         fcntl-h, stdio, sys_ioctl: fix declarations
24669         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24670         function must not take arguments.
24671         * lib/sys_ioctl.in.h (ioctl): Likewise.
24672         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24673         (open): Add a link warning.
24674
24675 2009-12-15  Jim Meyering  <meyering@redhat.com>
24676
24677         areadlink, areadlink-with-size: relax license to LGPLv2+
24678         * modules/areadlink (License): Relax to LGPLv2+.
24679         * modules/areadlink-with-size (License): Likewise.
24680
24681 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24682             Bruno Haible  <bruno@clisp.org>
24683
24684         *printf: Fix memory leak.
24685         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24686         * lib/vfprintf.c (vfprintf): Likewise.
24687         * lib/dprintf.c (dprintf): Likewise.
24688         * lib/vdprintf.c (vdprintf): Likewise.
24689
24690 2009-12-14  Eric Blake  <ebb9@byu.net>
24691
24692         accept4: adjust module dependencies
24693         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24694
24695         utimens: one more try at avoiding compiler warning
24696         * lib/utimens.c (lutimens): Lower scope of result.
24697
24698 2009-12-13  Bruno Haible  <bruno@clisp.org>
24699
24700         Move the malloc checking from module 'list' to new module 'xlist'.
24701         * modules/xlist: New file.
24702         * lib/gl_xlist.h: New file.
24703         * lib/gl_xlist.c: New file.
24704         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24705         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24706         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24707         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24708         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24709         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24710         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24711         gl_sortedlist_nx_add): New declarations.
24712         (struct gl_list_implementation): Rename and change methods accordingly.
24713         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24714         (gl_list_nx_create): Renamed from gl_list_create.
24715         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24716         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24717         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24718         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24719         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24720         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24721         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24722         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24723         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24724         gl_list_create_empty.
24725         (gl_list_nx_create): Renamed from gl_list_create.
24726         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24727         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24728         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24729         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24730         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24731         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24732         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24733         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24734         * lib/gl_array_list.c: Don't include xalloc.h.
24735         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24736         NULL upon out-of-memory.
24737         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24738         out-of-memory.
24739         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24740         Change return type to 'int'.
24741         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24742         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24743         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24744         upon out-of-memory.
24745         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24746         upon out-of-memory.
24747         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24748         upon out-of-memory.
24749         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24750         upon out-of-memory.
24751         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24752         out-of-memory.
24753         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24754         Update.
24755         (gl_array_list_implementation): Update.
24756         * lib/gl_carray_list.c: Don't include xalloc.h.
24757         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24758         Return NULL upon out-of-memory.
24759         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24760         out-of-memory.
24761         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24762         Change return type to 'int'.
24763         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24764         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24765         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24766         upon out-of-memory.
24767         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24768         upon out-of-memory.
24769         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24770         out-of-memory.
24771         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24772         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24773         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24774         Update.
24775         (gl_carray_list_implementation): Update.
24776         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24777         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24778         gl_linked_create_empty. Return NULL upon out-of-memory.
24779         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24780         out-of-memory.
24781         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24782         Change return type to 'int'. Return -1 upon out-of-memory.
24783         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24784         out-of-memory.
24785         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24786         upon out-of-memory.
24787         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24788         upon out-of-memory.
24789         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24790         NULL upon out-of-memory.
24791         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24792         upon out-of-memory.
24793         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24794         out-of-memory.
24795         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24796         Update.
24797         * lib/gl_linked_list.c: Don't include xalloc.h.
24798         (gl_linked_list_implementation): Update.
24799         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24800         (add_to_bucket): Change return type to 'int'.
24801         (gl_linkedhash_list_implementation): Update.
24802         * lib/gl_anytree_list1.h (free_subtree): New function.
24803         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24804         gl_tree_create_empty. Return NULL upon out-of-memory.
24805         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24806         Change return type to 'int'. Return -1 upon out-of-memory.
24807         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24808         out-of-memory.
24809         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24810         (gl_tree_remove_node): New function, moved here from
24811         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24812         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24813         Update.
24814         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24815         malloc, not xmalloc. Return NULL upon out-of-memory.
24816         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24817         out-of-memory.
24818         (gl_tree_remove_node_from_tree): New function, extracted from
24819         gl_tree_remove_node.
24820         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24821         upon out-of-memory.
24822         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24823         out-of-memory.
24824         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24825         upon out-of-memory.
24826         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24827         upon out-of-memory.
24828         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24829         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24830         not xmalloc. Return NULL upon out-of-memory.
24831         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24832         out-of-memory.
24833         (gl_tree_remove_node_from_tree): New function, extracted from
24834         gl_tree_remove_node.
24835         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24836         upon out-of-memory.
24837         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24838         out-of-memory.
24839         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24840         upon out-of-memory.
24841         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24842         upon out-of-memory.
24843         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24844         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24845         gl_anytree_list1.h before gl_anyavltree_list2.h.
24846         (gl_avltree_list_implementation): Update.
24847         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24848         gl_anytree_list1.h before gl_anyavltree_list2.h.
24849         (gl_rbtree_list_implementation): Update.
24850         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24851         Change return type to 'int'. Return -1 upon out-of-memory. Use
24852         __builtin_expect.
24853         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24854         (gl_avltreehash_list_implementation): Update.
24855         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24856         (gl_rbtreehash_list_implementation): Update.
24857         * modules/array-list (Depends-on): Remove xalloc.
24858         * modules/carray-list (Depends-on): Likewise.
24859         * modules/linked-list (Depends-on): Likewise.
24860         * modules/linkedhash-list (Depends-on): Likewise.
24861         * modules/avltree-list (Depends-on): Likewise.
24862         * modules/rbtree-list (Depends-on): Likewise.
24863         * modules/avltreehash-list (Depends-on): Likewise.
24864         * modules/rbtreehash-list (Depends-on): Likewise.
24865
24866         * modules/xsublist: New file.
24867         * lib/gl_xsublist.h: New file.
24868         * lib/gl_xsublist.c: New file.
24869         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24870         (gl_sublist_nx_create): New declaration.
24871         * lib/gl_sublist.c: Don't include xalloc.h.
24872         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24873         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24874         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24875         Change return type to 'int'. Return -1 upon out-of-memory.
24876         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24877         upon out-of-memory.
24878         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24879         NULL upon out-of-memory.
24880         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24881         upon out-of-memory.
24882         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24883         NULL upon out-of-memory.
24884         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24885         NULL upon out-of-memory.
24886         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24887         upon out-of-memory.
24888         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24889         (gl_sublist_list_implementation): Update.
24890         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24891         upon out-of-memory.
24892         * modules/sublist (Depends-on): Remove xalloc.
24893
24894         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24895         * tests/test-carray_list.c: Likewise.
24896         * tests/test-linked_list.c: Likewise.
24897         * tests/test-linkedhash_list.c: Likewise.
24898         * tests/test-avltree_list.c: Likewise.
24899         * tests/test-rbtree_list.c: Likewise.
24900         * tests/test-avltreehash_list.c: Likewise.
24901         * tests/test-rbtreehash_list.c: Likewise.
24902         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24903         * modules/carray-list-tests (Makefile.am): Likewise.
24904         * modules/linked-list-tests (Makefile.am): Likewise.
24905         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24906         * modules/avltree-list-tests (Makefile.am): Likewise.
24907         * modules/rbtree-list-tests (Makefile.am): Likewise.
24908         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24909         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24910
24911         * NEWS: Mention the changes.
24912
24913         * lib/clean-temp.c: Include gl_xlist.h.
24914         * modules/clean-temp (Depends-on): Add xlist.
24915
24916         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24917         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24918
24919         * tests/test-array_oset.c: Include gl_xlist.h.
24920         * modules/array-oset-tests (Depends-on): Add xlist.
24921
24922         Reported by José E. Marchesi <jemarch@gnu.org>.
24923
24924 2009-12-13  Bruno Haible  <bruno@clisp.org>
24925
24926         Move the malloc checking from module 'oset' to new module 'xoset'.
24927         * modules/xoset: New file.
24928         * lib/gl_xoset.h: New file.
24929         * lib/gl_xoset.c: New file.
24930         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24931         declarations.
24932         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24933         (struct gl_oset_implementation): Rename and change methods accordingly.
24934         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24935         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24936         'int'. Mark as __warn_unused_result__.
24937         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24938         gl_oset_create_empty.
24939         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24940         'int'.
24941         * lib/gl_array_oset.c: Don't include xalloc.h.
24942         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24943         malloc, not xmalloc.
24944         (grow): Change return type to 'int'. Don't call xalloc_die.
24945         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24946         to 'int'.
24947         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24948         'int'.
24949         (gl_array_oset_implementation): Update.
24950         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24951         gl_tree_create_empty.
24952         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24953         'int'.
24954         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24955         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24956         xmalloc.
24957         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24958         not xmalloc.
24959         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24960         xmalloc.
24961         (gl_avltree_oset_implementation): Update.
24962         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24963         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24964         xmalloc.
24965         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24966         not xmalloc.
24967         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24968         xmalloc.
24969         (gl_rbtree_oset_implementation): Update.
24970         * modules/array-oset (Depends-on): Remove xalloc.
24971         * modules/avltree-oset (Depends-on): Likewise.
24972         * modules/rbtree-oset (Depends-on): Likewise.
24973         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24974         * tests/test-avltree_oset.c: Likewise.
24975         * tests/test-rbtree_oset.c: Likewise.
24976         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24977         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24978         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24979         * NEWS: Mention the change.
24980
24981 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24982
24983         maint.mk: allow a project to override release-prep commands
24984         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24985         commands into a new rule.
24986         (release-prep): New rule.
24987         (release-prep-hook): New overridable variable.
24988
24989 2009-12-13  Bruno Haible  <bruno@clisp.org>
24990
24991         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24992
24993 2009-12-13  Jim Meyering  <meyering@redhat.com>
24994
24995         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24996         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24997
24998 2009-12-12  Bruno Haible  <bruno@clisp.org>
24999
25000         duplocale: Tweak.
25001         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25002
25003 2009-12-12  Karl Berry  <karl@gnu.org>
25004
25005         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25006
25007 2009-12-12  Bruno Haible  <bruno@clisp.org>
25008
25009         * m4/po.m4: Undo incorrect untabification.
25010
25011 2009-12-12  Bruno Haible  <bruno@clisp.org>
25012
25013         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25014         * modules/c-strtod (Depends-on): Add locale.
25015         * modules/c-strtold (Depends-on): Likewise.
25016
25017 2009-12-12  Bruno Haible  <bruno@clisp.org>
25018
25019         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25020
25021 2009-12-11  Eric Blake  <ebb9@byu.net>
25022
25023         setenv: relax requirement in light of POSIX ruling
25024         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25025         not NULL.
25026         * tests/test-setenv.c (main): Relax test.
25027         * tests/test-unsetenv.c (main): Likewise.
25028         * doc/posix-functions/setenv.texi (setenv): Document this.
25029         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25030
25031 2009-12-11  Bruno Haible  <bruno@clisp.org>
25032
25033         New module 'fd-safer-flag'.
25034         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25035         * lib/dup-safer.c (dup_safer_flag): Remove function.
25036         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25037         * lib/fd-safer.c (fd_safer_flag): Remove function.
25038         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25039         * modules/cloexec (configure.ac): Drop indicator macro.
25040         * modules/fd-safer-flag: New file.
25041         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25042         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25043         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25044
25045 2009-12-11  Bruno Haible  <bruno@clisp.org>
25046
25047         Tests for module 'nl_langinfo'.
25048         * modules/nl_langinfo-tests: New file.
25049         * tests/test-nl_langinfo.sh: New file.
25050         * tests/test-nl_langinfo.c: New file.
25051
25052         New module 'nl_langinfo'.
25053         * lib/nl_langinfo.c: New file.
25054         * m4/nl_langinfo.m4: New file.
25055         * modules/nl_langinfo: New file.
25056         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25057
25058 2009-12-11  Bruno Haible  <bruno@clisp.org>
25059
25060         Tests for module 'langinfo'.
25061         * modules/langinfo-tests: New file.
25062         * tests/test-langinfo.c: New file.
25063
25064         New module 'langinfo'.
25065         * lib/langinfo.in.h: New file.
25066         * m4/langinfo_h.m4: New file.
25067         * modules/langinfo: New file.
25068         * doc/posix-headers/langinfo.texi: Mention the new module.
25069
25070 2009-12-11  Bruno Haible  <bruno@clisp.org>
25071
25072         * lib/config.charset: Untabify.
25073
25074 2009-12-11  Bruno Haible  <bruno@clisp.org>
25075
25076         * modules/unistd-safer (configure.ac): Drop indicator macro.
25077
25078 2009-12-11  Bruno Haible  <bruno@clisp.org>
25079
25080         Move pipe2-safer code to its own file.
25081         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25082         * lib/pipe-safer.c (pipe2_safer): Remove function.
25083         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25084         (Makefile.am): Add it to lib_SOURCES.
25085
25086 2009-12-10  Bruno Haible  <bruno@clisp.org>
25087
25088         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25089
25090 2009-12-10  Bruno Haible  <bruno@clisp.org>
25091
25092         Declare which arguments expect non-NULL values, for GCC and clang.
25093         * build-aux/arg-nonnull.h: New file.
25094         * modules/arg-nonnull: New file.
25095         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25096         (inet_ntop, inet_pton): Use it.
25097         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25098         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25099         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25100         (open, openat): Use it.
25101         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25102         (fnmatch): Use it.
25103         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25104         (getopt, getopt_long, getopt_long_only): Use it.
25105         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25106         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25107         Use it.
25108         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25109         (iconv_open): Use it.
25110         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25111         (strtoimax, strtoumax): Use it.
25112         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25113         (duplocale): Use it.
25114         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25115         (frexp, frexpl): Use it.
25116         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25117         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25118         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25119         (tsearch, tfind, tdelete, twalk): Use it.
25120         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25121         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25122         sigpending): Use it.
25123         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25124         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25125         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25126         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25127         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25128         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25129         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25130         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25131         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25132         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25133         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25134         Use it.
25135         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25136         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25137         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25138         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25139         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25140         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25141         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25142         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25143         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25144         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25145         strtoull, unsetenv): Use it.
25146         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25147         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25148         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25149         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25150         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25151         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25152         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25153         (strcasecmp, strncasecmp): Use it.
25154         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25155         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25156         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25157         rpl_setsockopt): Use it.
25158         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25159         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25160         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25161         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25162         (gettimeofday): Use it.
25163         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25164         (times): Use it.
25165         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25166         (uname): Use it.
25167         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25168         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25169         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25170         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25171         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25172         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25173         unlinkat, write): Use it.
25174         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25175         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25176         * lib/argv-iter.h: Include arg-nonnull.h.
25177         (_ATTRIBUTE_NONNULL_): Remove macro.
25178         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25179         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25180         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25181         optimization.
25182         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25183         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25184         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25185         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25186         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25187         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25188         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25189         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25190         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25191         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25192         * modules/dirent (Depends-on): Add arg-nonnull.
25193         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25194         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25195         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25196         * modules/fnmatch (Depends-on): Add arg-nonnull.
25197         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25198         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25199         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25200         * modules/glob (Depends-on): Add arg-nonnull.
25201         (Makefile.am): Insert arg-nonnull.h into glob.h.
25202         * modules/iconv_open (Depends-on): Add arg-nonnull.
25203         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25204         * modules/inttypes (Depends-on): Add arg-nonnull.
25205         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25206         * modules/locale (Depends-on): Add arg-nonnull.
25207         (Makefile.am): Insert arg-nonnull.h into locale.h.
25208         * modules/math (Depends-on): Add arg-nonnull.
25209         (Makefile.am): Insert arg-nonnull.h into math.h.
25210         * modules/netdb (Depends-on): Add arg-nonnull.
25211         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25212         * modules/search (Depends-on): Add arg-nonnull.
25213         (Makefile.am): Insert arg-nonnull.h into search.h.
25214         * modules/signal (Depends-on): Add arg-nonnull.
25215         (Makefile.am): Insert arg-nonnull.h into signal.h.
25216         * modules/spawn (Depends-on): Add arg-nonnull.
25217         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25218         * modules/stdio (Depends-on): Add arg-nonnull.
25219         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25220         * modules/stdlib (Depends-on): Add arg-nonnull.
25221         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25222         * modules/string (Depends-on): Add arg-nonnull.
25223         (Makefile.am): Insert arg-nonnull.h into string.h.
25224         * modules/strings (Depends-on): Add arg-nonnull.
25225         (Makefile.am): Insert arg-nonnull.h into strings.h.
25226         * modules/sys_socket (Depends-on): Add arg-nonnull.
25227         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25228         * modules/sys_stat (Depends-on): Add arg-nonnull.
25229         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25230         * modules/sys_time (Depends-on): Add arg-nonnull.
25231         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25232         * modules/sys_times (Depends-on): Add arg-nonnull.
25233         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25234         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25235         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25236         * modules/time (Depends-on): Add arg-nonnull.
25237         (Makefile.am): Insert arg-nonnull.h into time.h.
25238         * modules/unistd (Depends-on): Add arg-nonnull.
25239         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25240         * modules/wchar (Depends-on): Add arg-nonnull.
25241         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25242         * modules/argv-iter (Depends-on): Add arg-nonnull.
25243         * tests/test-canonicalize.c (null_ptr): New function.
25244         (main): Use it.
25245         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25246         (main): Use it.
25247         * tests/test-memmem.c (null_ptr): New function.
25248         (main): Use it.
25249         Reported by Jim Meyering.
25250
25251 2009-12-10  Bruno Haible  <bruno@clisp.org>
25252
25253         Use spaces for indentation, not tabs.
25254         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25255         * m4/*.m4: Untabify.
25256         * build-aux/*.h: Untabify.
25257         * tests/**/*.[hc]: Untabify.
25258         * README: New section "Indent with spaces, not TABs", based on
25259         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25260         * NEWS: Mention the change.
25261
25262 2009-12-10  Bruno Haible  <bruno@clisp.org>
25263
25264         pty test: Fix link error.
25265         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25266         test_pty_LDADD.
25267
25268 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25269
25270         * modules/pty: New file.
25271         * modules/pty-tests: New file.
25272         * m4/pty.m4: New file.
25273         * tests/test-pty.c: New file.
25274         * doc/glibc-headers/pty.texi: Modified.
25275         * doc/glibc-functions/forkpty.texi: Modified.
25276         * doc/glibc-functions/openpty.texi: Modified.
25277
25278 2009-12-10  Bruno Haible  <bruno@clisp.org>
25279
25280         Avoid syntax error in C++ mode.
25281         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25282
25283 2009-12-10  Bruno Haible  <bruno@clisp.org>
25284
25285         Use sed with option -e.
25286         * gnulib-tool (func_version, func_emit_copyright_notice,
25287         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25288         option -e to sed.
25289         * modules/link-warning (Makefile.am): Likewise.
25290
25291 2009-12-10  Jim Meyering  <meyering@redhat.com>
25292
25293         mgetgroups: do not write bytes beyond end of malloc'd buffer
25294         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25295         username, we call getgroups with a one-element-shorter buffer,
25296         but still told it the length was original, max_n_groups.
25297
25298 2009-12-09  Eric Blake  <ebb9@byu.net>
25299
25300         cloexec: relax license
25301         * modules/cloexec (Maintainer): Add myself.
25302         (License): Use LGPL, not GPL.
25303
25304         link-warning: optimize generation
25305         * modules/link-warning (Makefile.am): Reduce process usage.
25306
25307 2009-12-09  Bruno Haible  <bruno@clisp.org>
25308
25309         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25310         workaround was added on 2009-11-17.
25311
25312 2009-12-09  Jim Meyering  <meyering@redhat.com>
25313             Bruno Haible  <bruno@clisp.org>
25314
25315         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25316         * modules/link-warning (Makefile.am): Make the comment-removing sed
25317         command more robust in the face of bootstrap-prepended comment lines.
25318
25319 2009-12-09  Bruno Haible  <bruno@clisp.org>
25320
25321         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25322         most one group.
25323
25324 2009-12-09  Simon Josefsson <simon@josefsson.org>
25325             Bruno Haible  <bruno@clisp.org>
25326
25327         * build-aux/link-warning.h: Add copyright notice.
25328         * modules/link-warning (Makefile.am): Generate link-warning.h from
25329         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25330         * NEWS: Mention change in link-warning module.
25331         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25332         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25333         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25334         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25335         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25336         * modules/math (Makefile.am): Add dependency to math.h.
25337         * modules/search (Makefile.am): Add dependency to search.h.
25338         * modules/signal (Makefile.am): Add dependency to signal.h.
25339         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25340         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25341         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25342         * modules/string (Makefile.am): Add dependency to string.h.
25343         * modules/strings (Makefile.am): Add dependency to strings.h.
25344         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25345         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25346         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25347         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25348         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25349         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25350         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25351         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25352         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25353
25354 2009-12-09  Bruno Haible  <bruno@clisp.org>
25355
25356         fchdir: Optimize away rpl_fstat when possible.
25357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25358         REPLACE_OPEN_DIRECTORY.
25359         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25360
25361 2009-12-09  Bruno Haible  <bruno@clisp.org>
25362
25363         * lib/fchdir.c: Update comment.
25364
25365 2009-12-09  Bruno Haible  <bruno@clisp.org>
25366
25367         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25368
25369 2009-12-08  Eric Blake  <ebb9@byu.net>
25370
25371         fchdir: avoid memory leak on re-registration.
25372         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25373
25374 2009-12-08  Jim Meyering  <meyering@redhat.com>
25375
25376         init.sh: avoid Solaris 10 /bin/sh portability problem
25377         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25378         sourced script:
25379           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25380           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25381           bar
25382         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25383         and two tests used that idiom.
25384         * tests/init.sh: Update suggested usage comments.
25385         (path_prepend_): New function, to be used in place
25386         of the --src-path=DIR option.
25387         (setup_): Move PATH-prepending code into path_prepend_.
25388         * tests/test-pread.sh: Adapt to new usage.
25389         * tests/test-xalloc-die.sh: Likewise.
25390
25391 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25392
25393         * doc/gnulib.texi (Glibc pty.h): Add.
25394         * doc/glibc-functions/forkpty.texi: Add.
25395         * doc/glibc-functions/openpty.texi: Add.
25396         Suggested by Bruno Haible.
25397
25398 2009-12-08  Eric Blake  <ebb9@byu.net>
25399
25400         fchdir: fix logic bugs
25401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25402         * tests/test-fchdir.c (main): Enhance test.
25403         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25404         is in use.
25405
25406         dup2: fix logic bugs
25407         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25408         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25409         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25410         exists.
25411         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25412
25413 2009-12-07  Eric Blake  <ebb9@byu.net>
25414
25415         unlink: fix m4 detection
25416         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25417
25418         unistd-safer: add unit test
25419         * modules/unistd-safer-tests: New file.
25420         * tests/test-dup-safer.c: Likewise.
25421         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25422         * tests/test-dup2.c (setmode): Likewise.
25423         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25424
25425         cloexec: preserve text vs. binary across dup_cloexec
25426         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25427         mode.
25428         * modules/dup2-tests (Depends-on): Add binary-io.
25429         * modules/cloexec-tests (Depends-on): Likewise.
25430         * tests/test-dup2.c (setmode, is_mode): New helpers.
25431         (main): Add tests that translation mode is preserved.
25432         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25433         Reported by Bruno Haible.
25434
25435         mgetgroups: reduce duplicate listings
25436         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25437         resulting array.
25438         * tests/test-chown.h (test_chown): Simplify client.
25439         * tests/test-lchown.h (test_lchown): Likewise.
25440
25441 2009-12-06  Bruno Haible  <bruno@clisp.org>
25442
25443         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25444         value.
25445
25446 2009-12-06  Bruno Haible  <bruno@clisp.org>
25447
25448         * lib/progname.c: Include stdio.h, stdlib.h.
25449         (set_program_name): Reject a NULL argument.
25450
25451 2009-12-05  Eric Blake  <ebb9@byu.net>
25452
25453         pipe2-safer: new module
25454         * modules/pipe2-safer: New file.
25455         * lib/unistd-safer.h (pipe2_safer): New prototype.
25456         * lib/unistd--.h (pipe2): New wrapper.
25457         * lib/pipe-safer.c (pipe2_safer): New function.
25458         * modules/pipe (Depends-on): Add pipe2-safer.
25459         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25460
25461         stdlib-safer: preserve cloexec flag for mkostemp[s]
25462         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25463         fd_safer_flag.
25464
25465         unistd-safer: allow preservation of cloexec status via flag
25466         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25467         prototypes.
25468         * lib/dup-safer.c (dup_safer_flag): New function.
25469         * lib/fd-safer.c (fd_safer_flag): Likewise.
25470         * modules/cloexec (configure.ac): Set witness.
25471
25472         test-dup2: enhance test
25473         * modules/dup2-tests (Depends-on): Add cloexec.
25474         * tests/test-dup2.c (main): Enhance test.
25475
25476         cloexec: add dup_cloexec
25477         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25478         header and comments.
25479         * lib/cloexec.c (set_cloexec_flag): Add comments.
25480         (dup_cloexec): New function, with mingw implementation borrowed
25481         from...
25482         * lib/w32spawn.h (dup_noinherit): ...here.
25483         * modules/execute (Depends-on): Add cloexec.
25484         * modules/pipe (Depends-on): Likewise.
25485         * modules/cloexec (Depends-on): Add dup2.
25486         * modules/cloexec-tests (Files): New file.
25487         * tests/test-cloexec.c: Likewise.
25488
25489         test-xalloc-die: fix test for mingw
25490         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25491         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25492         directory and .exe suffix off argv[0] output.
25493
25494         test-fseeko: fix test for mingw
25495         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25496         than undefining fseek, so test will pass on mingw.
25497
25498 2009-12-05  Bruno Haible  <bruno@clisp.org>
25499
25500         * lib/progname.h (set_program_name): Clarify specification.
25501         * lib/progname.c (set_program_name): Likewise.
25502         Reported by Jim Meyering.
25503
25504 2009-12-05  Jim Meyering  <meyering@redhat.com>
25505
25506         maint.mk: backslash-escape parens in default regexp
25507         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25508         backslash-escape the literal parentheses.
25509
25510         maint.mk: news-date-check: use grep -E
25511         * top/maint.mk (today): Define a Make variable, not a...
25512         (news-date-check): ...shell variable.
25513         (news-date-regexp): Use the Make variable.
25514         Use grep's -E option.  Change the failing diagnostic to mention
25515         the variable, $(news-date-regexp).
25516
25517 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25518
25519         maintainer-makefile: allow customization of NEWS entry format
25520         * top/maint.mk (news-date-regexp): New overridable variable.
25521         (news-date-check): Use it.
25522
25523 2009-12-04  Eric Blake  <ebb9@byu.net>
25524
25525         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25526         * lib/mgetgroups.h (xgetgroups): New prototype.
25527         * lib/mgetgroups.c (xgetgroups): New wrapper.
25528         (mgetgroups): Handle ENOSYS.
25529         * modules/mgetgroups (Depends-on): Add realloc.
25530         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25531
25532         mgetgroups: avoid argument promotion issues with -1
25533         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25534         for invalid gid_t.
25535         * tests/test-chown.h (getegid, test_chown): Likewise.
25536         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25537
25538 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25539
25540         exclude: Fix header file problems.
25541         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25542
25543 2009-12-01  Jim Meyering  <meyering@redhat.com>
25544
25545         fts: fts_open: do not let an empty string cause immediate failure
25546         This is required in support of GNU rm, for which the command
25547         "rm A '' B" must process and remove both A and B, in spite of
25548         the empty string argument.
25549         * lib/fts.c (fts_open): Do not let the presence of an empty string
25550         cause fts_open to fail immediately.  Most fts-using tools must be
25551         able to process all arguments, in order, and can be expected to
25552         diagnose such arguments themselves.
25553
25554 2009-11-30  Eric Blake  <ebb9@byu.net>
25555
25556         utimens: fix compilation error
25557         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25558         Declare variable at right scope.
25559
25560 2009-11-29  Jim Meyering  <meyering@redhat.com>
25561
25562         bootstrap: handle perl-5.11's changed --version output
25563         * build-aux/bootstrap (get_version): Handle perl separately,
25564         since perl-5.11's --version output is different.
25565
25566 2009-11-28  Jim Meyering  <meyering@redhat.com>
25567
25568         userspec: depend on the inttostr module, too
25569         * modules/userspec (Depends-on): Add inttostr.
25570
25571         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25572         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25573         number of MAXUID when it evaluates to (uid_t) -1.
25574         Likewise for group ID.  Reported by Matt McCutchen in
25575         <http://savannah.gnu.org/bugs/?28113>
25576
25577         userspec: reformat to use spaces, not TABs
25578         * lib/userspec.c: Expand TABs to spaces.
25579         Add Emacs' "indent-tabs-mode: nil" hint.
25580
25581 2009-11-27  Eric Blake  <ebb9@byu.net>
25582
25583         getopt-gnu: flush out another BSD bug
25584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25585         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25586         flush out BSD bug.
25587         * tests/test-getopt.h (test_getopt): End lists with NULL.
25588         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25589         (test_getopt_long_posix): Enhance test.
25590         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25591         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25592         getopt-gnu.
25593         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25594         Likewise.
25595
25596 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25597
25598         * modules/idpriv-droptemp-tests (Notice): Fix text.
25599
25600 2009-11-27  Jim Meyering  <meyering@redhat.com>
25601
25602         test-xalloc-die: avoid spurious failure due to libtool argv difference
25603         In a libtool-enabled project, this test would fail due to a difference
25604         in the emitted program name, e.g.,
25605         -test-xalloc-die: memory exhausted
25606         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25607         Use program to avoid that.
25608         * modules/xalloc-die-tests (Depends-on): Add progname.
25609         * tests/test-xalloc-die.c: Include progname.h".
25610         (program_name): Remove decl.
25611         (main): Call set_program_name.
25612         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25613
25614 2009-11-26  Richard Jones  <rjones@redhat.com>
25615
25616         w32sock: leave win32 error in place.
25617         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25618
25619 2009-11-26  Eric Blake  <ebb9@byu.net>
25620
25621         init.sh: suggest to use skip_ and fail_ functions in comments
25622         * tests/init.sh: Add a sentence.
25623
25624 2009-11-25  Bruno Haible  <bruno@clisp.org>
25625
25626         init.sh: add documentation in comments
25627         * tests/init.sh: Add some developer and user documentation.
25628
25629 2009-11-26  Jim Meyering  <meyering@redhat.com>
25630
25631         init.sh: accommodate even those who specify bogus srcdir manually
25632         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25633         configure-time tests to be sanitized, so that there is no need to
25634         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25635         (with no double quotes) suffices.  However, since tests may be
25636         invoked manually, and since you may explicitly set srcdir to the
25637         name of a directory containing spaces, do quote its uses here.
25638         * tests/test-pread.sh: Likewise.
25639         Suggested by Bruno Haible.
25640
25641         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25642         * tests/test-pread.sh: Write no data into the pipe, because
25643         test-pread actually reads none.  This avoids a diagnostic,
25644         "bash: echo: write error: Broken pipe", that arises in the unusual
25645         event something is ignoring SIGPIPE, and might be interpreted
25646         as some sort of failure.  Reported by Bruno Haible.
25647
25648 2009-11-25  Jim Meyering  <meyering@redhat.com>
25649
25650         test-pread: cover failure with ESPIPE and EINVAL
25651         * tests/test-pread.c (main): Test for failure, too.
25652         * tests/test-pread.sh: Invoke with stdin on a pipe.
25653         Suggested by Eric Blake.
25654
25655         pread: improvement and fix
25656         * modules/pread (Depends-on): Depend on lseek, for portability to
25657         e.g., mingw.  Suggested by Eric Blake.
25658         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25659
25660         unistd.in.h: correct declaration of pread
25661         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25662         Reported by Richard W.M. Jones.
25663
25664         test-pread.sh: distribute the test script
25665         * modules/pread-tests (Files): Include test-pread.sh.
25666
25667         test-pread.sh: clean up
25668         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25669         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25670         That is unnecessary, since it's always ".".
25671         Suggestion from Eric Blake.
25672
25673         test-pread.sh: make executable
25674         * tests/test-pread.sh: Set executable bit.
25675         Reported by Eric Blake.
25676
25677         correct typo in test-pread.sh
25678         * tests/test-pread.sh: Add #! line.
25679
25680         test pread
25681         * tests/test-pread.c: New file.
25682         * tests/test-pread.sh: Likewise.
25683         * modules/pread-tests: Likewise.
25684
25685         pread: new module
25686         * modules/pread: New file.
25687         * lib/unistd.in.h (pread): Define/declare.
25688         * lib/pread.c (pread): New file.
25689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25690         * modules/unistd (Makefile.am): Substitute witnesses.
25691         * doc/posix-functions/pread.texi (pread): Update.
25692         * MODULES.html.sh: Add pread.
25693
25694 2009-11-25  Jim Meyering  <meyering@redhat.com>
25695
25696         tests/init.sh: new file to be used via most *.sh tests
25697         * tests/init.sh: New file.
25698
25699 2009-11-25  Eric Blake  <ebb9@byu.net>
25700
25701         utimens: work around older Linux failure with symlinks
25702         * lib/utimens.c (lutimensat_works_really): New variable.
25703         (fdutimens, lutimens): Use it to manage kernels that support
25704         nanosecond times on files, but not on symlinks.
25705         Reported by OndÅ™ej Vašík.
25706
25707         utimes: fix configure grammar
25708         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25709
25710 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25711
25712         regex: Fix fastmap for multibyte character ranges.
25713         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25714         characters when a multibyte character range is included.
25715
25716 2009-11-22  Andy Wingo  <wingo@pobox.com>
25717
25718         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25719         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25720
25721 2009-11-24  Bruno Haible  <bruno@clisp.org>
25722
25723         doc: Most *_l functions exist in MacOS X 10.5.
25724         * doc/posix-functions/duplocale.texi: Update platforms list.
25725         * doc/posix-functions/freelocale.texi: Likewise.
25726         * doc/posix-functions/newlocale.texi: Likewise.
25727         * doc/posix-functions/uselocale.texi: Likewise.
25728         * doc/posix-functions/isalnum_l.texi: Likewise.
25729         * doc/posix-functions/isalpha_l.texi: Likewise.
25730         * doc/posix-functions/isblank_l.texi: Likewise.
25731         * doc/posix-functions/iscntrl_l.texi: Likewise.
25732         * doc/posix-functions/isdigit_l.texi: Likewise.
25733         * doc/posix-functions/isgraph_l.texi: Likewise.
25734         * doc/posix-functions/islower_l.texi: Likewise.
25735         * doc/posix-functions/isprint_l.texi: Likewise.
25736         * doc/posix-functions/ispunct_l.texi: Likewise.
25737         * doc/posix-functions/isspace_l.texi: Likewise.
25738         * doc/posix-functions/isupper_l.texi: Likewise.
25739         * doc/posix-functions/iswalnum_l.texi: Likewise.
25740         * doc/posix-functions/iswalpha_l.texi: Likewise.
25741         * doc/posix-functions/iswblank_l.texi: Likewise.
25742         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25743         * doc/posix-functions/iswctype_l.texi: Likewise.
25744         * doc/posix-functions/iswdigit_l.texi: Likewise.
25745         * doc/posix-functions/iswgraph_l.texi: Likewise.
25746         * doc/posix-functions/iswlower_l.texi: Likewise.
25747         * doc/posix-functions/iswprint_l.texi: Likewise.
25748         * doc/posix-functions/iswpunct_l.texi: Likewise.
25749         * doc/posix-functions/iswspace_l.texi: Likewise.
25750         * doc/posix-functions/iswupper_l.texi: Likewise.
25751         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25752         * doc/posix-functions/isxdigit_l.texi: Likewise.
25753         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25754         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25755         * doc/posix-functions/strcoll_l.texi: Likewise.
25756         * doc/posix-functions/strfmon_l.texi: Likewise.
25757         * doc/posix-functions/strftime_l.texi: Likewise.
25758         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25759         * doc/posix-functions/strxfrm_l.texi: Likewise.
25760         * doc/posix-functions/tolower_l.texi: Likewise.
25761         * doc/posix-functions/toupper_l.texi: Likewise.
25762         * doc/posix-functions/towctrans_l.texi: Likewise.
25763         * doc/posix-functions/towlower_l.texi: Likewise.
25764         * doc/posix-functions/towupper_l.texi: Likewise.
25765         * doc/posix-functions/wcscoll_l.texi: Likewise.
25766         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25767         * doc/posix-functions/wctrans_l.texi: Likewise.
25768         * doc/posix-functions/wctype_l.texi: Likewise.
25769         * doc/glibc-functions/strptime_l.texi: Likewise.
25770         * doc/glibc-functions/strtod_l.texi: Likewise.
25771         * doc/glibc-functions/strtof_l.texi: Likewise.
25772         * doc/glibc-functions/strtol_l.texi: Likewise.
25773         * doc/glibc-functions/strtold_l.texi: Likewise.
25774         * doc/glibc-functions/strtoll_l.texi: Likewise.
25775         * doc/glibc-functions/strtoul_l.texi: Likewise.
25776         * doc/glibc-functions/strtoull_l.texi: Likewise.
25777         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25778         * doc/glibc-functions/wcstod_l.texi: Likewise.
25779         * doc/glibc-functions/wcstof_l.texi: Likewise.
25780         * doc/glibc-functions/wcstol_l.texi: Likewise.
25781         * doc/glibc-functions/wcstold_l.texi: Likewise.
25782         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25783         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25784         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25785
25786 2009-11-24  Bruno Haible  <bruno@clisp.org>
25787
25788         duplocale: Fix logic bug.
25789         * lib/duplocale.c: Don't include <langinfo.h>.
25790         (_NL_LOCALE_NAME): Remove macro.
25791         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25792         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25793
25794 2009-11-23  Jim Meyering  <meyering@redhat.com>
25795
25796         test-update-copyright: don't hard-code /usr/bin/perl
25797         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25798         perl to print the current year.  Gilles Espinasse reported that
25799         the replaced use of perl was hard-coded as /usr/bin/perl.
25800
25801 2009-11-23  Bruno Haible  <bruno@clisp.org>
25802
25803         duplocale: Add support for glibc 2.3.x.
25804         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25805
25806 2009-11-22  Bruno Haible  <bruno@clisp.org>
25807
25808         vasnprintf: Tiny optimization.
25809         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25810         MacOS X.
25811
25812 2009-11-22  Bruno Haible  <bruno@clisp.org>
25813
25814         Tests for module 'duplocale'.
25815         * modules/duplocale-tests: New file.
25816         * tests/test-duplocale.c: New file.
25817
25818         New module 'duplocale'.
25819         * m4/duplocale.m4: New file.
25820         * lib/locale.in.h (duplocale): New declaration.
25821         * lib/duplocale.c: New file.
25822         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25823         gl_LOCALE_H_DEFAULTS): New macros.
25824         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25825         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25826         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25827         REPLACE_DUPLOCALE.
25828         * modules/duplocale: New file.
25829         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25830
25831 2009-11-22  Bruno Haible  <bruno@clisp.org>
25832
25833         * modules/locale-tests (configure.ac): Test for newlocale function.
25834         * tests/test-locale.c: When the system has extended locale functions,
25835         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25836
25837         locale: Make locale_t available when possible.
25838         * lib/locale.in.h: Include <xlocale.h> when it exists.
25839         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25840         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25841         * modules/locale (Depends-on): Add extensions.
25842         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25843         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25844
25845 2009-11-22  Bruno Haible  <bruno@clisp.org>
25846
25847         Add comments.
25848         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25849         invocation.
25850         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25851         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25852         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25853
25854 2009-11-22  Bruno Haible  <bruno@clisp.org>
25855
25856         error: account for the possibility of freopen (stdout).
25857         * lib/error.c: Include <unistd.h>.
25858         (flush_stdout): New function, extracted from error and error_at_line.
25859         Determine stdout's fd dynamically.
25860         (error, error_at_line): Invoke flush_stdout.
25861         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25862         * modules/error (Depends-on): Add unistd.
25863
25864 2009-11-22  Bruno Haible  <bruno@clisp.org>
25865
25866         diffseq: Add comment.
25867         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25868
25869 2009-11-22  Jim Meyering  <meyering@redhat.com>
25870
25871         c-stack: avoid defining an unused static function
25872         * lib/c-stack.c (find_stack_direction): Do not define this function
25873         when it will not be used.
25874
25875         diffseq: avoid spurious gcc warnings
25876         * lib/diffseq.h (IF_LINT2): Define.
25877         (compareseq): Use it to initialize two members of "part".
25878         This avoids two used-uninitialized warnings.
25879
25880 2009-11-21  Jim Meyering  <meyering@redhat.com>
25881
25882         c-stack: avoid "ignoring return value of `write'" warning
25883         * lib/c-stack.c: Include "ignore-value.h".
25884         (die): Explicitly ignore each write return value.
25885         * modules/c-stack (Depends-on): Add ignore-value.
25886
25887 2009-11-21  Bruno Haible  <bruno@clisp.org>
25888
25889         diffseq: reduce scope of variable 'best'.
25890         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25891         variable, earlier used for two different purposes.
25892
25893 2009-11-21  Jim Meyering  <meyering@redhat.com>
25894
25895         diffseq: remove useless assignment to "best"
25896         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25897         assignment.  At that point "best" is already guaranteed to be zero.
25898
25899 2009-11-20  Eric Blake  <ebb9@byu.net>
25900
25901         build: mention ftp redirector in release announcements
25902         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25903         values that used to come from cfg.mk; mention FTP redirect URL.
25904         * build-aux/announce-gen: Mention the mirror list.
25905         Suggested by Karl Berry.
25906
25907         nanosleep: improve port to mingw
25908         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25910         LIB_NANOSLEEP, but only when needed.
25911         * modules/select (Link): Document LIBSOCKET.
25912         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25913         enough.
25914
25915         nanosleep: work around cygwin bug
25916         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25917         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25918         bug.
25919         (getnow): Delete, not needed.
25920         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25921         LIB_CLOCK_GETTIME.
25922         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25923         clock-time, gettime.
25924         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25925         bug.
25926         * modules/nanosleep-tests: New test.
25927         * tests/test-nanosleep.c: New file.
25928
25929         sleep: work around cygwin bug
25930         * lib/sleep.c (rpl_sleep): Work around the bug.
25931         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25932         (gl_PREREQ_SLEEP): Delete unused macro.
25933         * modules/sleep (Depends-on): Add verify.
25934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25935         * modules/unistd (Makefile.am): Substitute witness.
25936         * lib/unistd.in.h (sleep): Update prototype.
25937         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25938         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25939         * modules/sleep-tests (Depends-on): Check for alarm.
25940
25941 2009-11-20  Jim Meyering  <meyering@redhat.com>
25942
25943         maint.mk: improve sc_prohibit_magic_number_exit
25944         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25945         so it does not match uses like System.exit(1).
25946         Add comments showing how to correct all offenders.
25947
25948 2009-11-19  Eric Blake  <ebb9@byu.net>
25949
25950         xalloc-die-tests: add missing library
25951         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25952
25953         test-xvasprintf: silence compiler warnings
25954         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25955         empty string from gcc.
25956
25957 2009-11-19  Jim Meyering  <meyering@redhat.com>
25958
25959         xfreopen: new module, from coreutils
25960         * modules/xfreopen: New module.
25961         * lib/xfreopen.c: New file.
25962         * lib/xfreopen.h: New file.
25963         * MODULES.html.sh (File stream based Input/Output"): Add it.
25964
25965 2009-11-19  Eric Blake  <ebb9@byu.net>
25966
25967         manywarnings: depend on warnings
25968         * modules/manywarnings (Depends-on): Add warnings.
25969
25970         build: avoid compiler warnings
25971         * lib/select.c (rpl_select): Delete unused variable.
25972         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25973
25974 2009-11-18  Eric Blake  <ebb9@byu.net>
25975
25976         tests: avoid false negative with --with-packager
25977         * tests/test-version-etc.sh: Discard packager information.
25978         * tests/test-argp-version-etc-1.sh: Likewise.
25979         Reported by Mike Frysinger.
25980
25981         utimens: fix regression on Solaris
25982         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25983         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25984         can only change fd timestamps via futimesat.  Instead, use an
25985         additional witness macro to avoid BSD bug.
25986         Reported by Jim Meyering.
25987
25988 2009-11-17  Eric Blake  <ebb9@byu.net>
25989
25990         usleep: use it to simplify tests
25991         * modules/stat-time-tests (Depends-on): Add usleep.
25992         (configure.ac): Drop usleep check.
25993         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25994         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25995         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25996         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25997         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25998         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25999         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26000         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26001         Likewise.
26002         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26003         * tests/test-lchown.h (nap): Likewise.
26004         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26005         * tests/test-stat-time.c (nap): Likewise.
26006         * tests/test-utimens-common.h (nap): Update comments.
26007
26008         usleep: new module
26009         * modules/usleep: New file.
26010         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26011         * lib/usleep.c (usleep): Likewise.
26012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26013         * modules/unistd (Makefile.am): Substitute witnesses.
26014         * lib/unistd.in.h (usleep): Add declaration.
26015         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26016         * MODULES.html.sh (Date and time): Likewise.
26017         * modules/usleep-tests (Depends-on): New test.
26018         * tests/test-usleep.c: New file.
26019
26020         chown: work around OpenBSD bug
26021         * lib/chown.c (rpl_chown): Work around the bug.
26022         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26023         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26025         * modules/chown (Depends-on): Add stdbool.
26026         * modules/lchown (Depends-on): Likewise.
26027         * doc/posix-functions/chown.texi (chown): Document the bug.
26028         * doc/posix-functions/lchown.texi (lchown): Likewise.
26029         * tests/test-lchown.h (test_chown): Relax test.
26030
26031         mkstemp: avoid conflict with C++ keyword template
26032         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26033         * lib/mkostemp.c (mkostemp): Likewise.
26034         * lib/mkostemps.c (mkostemps): Likewise.
26035         * lib/mkstemp.c (mkstemp): Likewise.
26036         * lib/mkstemps.c (mkstemps): Likewise.
26037
26038         xalloc-die-tests: optimize
26039         * tests/test-xalloc-die.sh: Reduce number of processes.
26040
26041 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26042
26043         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26044         patch from ludo@gnu.org (Ludovic Courtès).
26045
26046 2009-11-17  Jim Meyering  <meyering@redhat.com>
26047
26048         version-etc: use proper license string
26049         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26050         * modules/version-etc-fsf: Likewise.
26051
26052 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26053
26054         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26055         printed to stdout.  Deal with EOL differences.
26056
26057 2009-11-17  Eric Blake  <ebb9@byu.net>
26058
26059         unsetenv: work around Solaris bug
26060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26061         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26062         Reported by Jim Meyering.
26063
26064         vasnprintf: avoid compiler warnings
26065         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26066         variables.
26067         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26068
26069 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26070
26071         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26072         settings since xalloc-die is no longer the self test,
26073         xalloc-die.sh is.
26074
26075 2009-11-17  Jim Meyering  <meyering@redhat.com>
26076
26077         test-xalloc-die.sh: make the code agree with the commit log
26078         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26079         at the end, just in case you happen to have a test-xalloc-die
26080         program in some other PATH directory.
26081
26082         test-xalloc-die.sh: fix a portability bug
26083         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26084         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26085         Otherwise, argv[0] (as often seen in diagnostics) would be too
26086         system-dependent, sometimes with, and sometimes without the leading "./".
26087
26088         version-etc-fsf: relax license to LGPLv3+
26089         * modules/version-etc-fsf (License): Relax license.
26090
26091 2009-11-16  Eric Blake  <ebb9@byu.net>
26092
26093         xalloc-die-tests: avoid printing null pointer
26094         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26095         shell script.
26096         * tests/test-xalloc-die.c (program_name): Declare.
26097         * tests/test-xalloc-die.sh (tmpfiles): New file.
26098
26099         setenv, unsetenv: work around various bugs
26100         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26101         (setenv) [HAVE_SETENV]: Work around bugs.
26102         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26104         for bugs.
26105         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26106         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26108         * modules/stdlib (Makefile.am): Update substitutions.
26109         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26110         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26111         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26112         * modules/setenv-tests: New test.
26113         * modules/unsetenv-tests: Likewise.
26114         * tests/test-setenv.c: New file.
26115         * tests/test-unsetenv.c: Likewise.
26116
26117 2009-11-16  Jim Meyering  <meyering@redhat.com>
26118
26119         version-etc: relax license to LGPLv3+
26120         * modules/version-etc (License): Relax license.
26121
26122         better AC_REQUIRE expanded-before-required-warning avoidance
26123         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26124         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26125         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26126         which is no longer needed.
26127
26128 2009-11-16  Eric Blake  <ebb9@byu.net>
26129
26130         test-freading: clean up temporary file
26131         * tests/test-freading.c (main): Remove file on success, and use
26132         ASSERT more liberally.
26133         Reported by Jim Meyering.
26134
26135 2009-11-16  Jim Meyering  <meyering@redhat.com>
26136
26137         avoid new AC_REQUIRE expanded-before-required warnings
26138         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26139         merely using it.
26140         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26141         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26142
26143 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26144
26145         * tests/test-xalloc-die.c: New file.
26146         * modules/xalloc-die-tests: New file.
26147         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26148         XFAIL_TESTS so it can be appended by modules.
26149
26150 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26151
26152         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26153         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26154
26155 2009-11-14  Eric Blake  <ebb9@byu.net>
26156
26157         fnmatch: avoid compiler warning
26158         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26159         to silence compiler warning about mismatch signedness in ?:.
26160         Reported by Robert Millan.
26161
26162         intprops: add double-inclusion guard
26163         * lib/intprops.h: Allow idempotent includes.
26164         Suggested by Bruce Korb.
26165
26166         openat: detect Solaris fchownat bug
26167         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26168         penalizing glibc chownat when only lchownat is broken.
26169         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26170         trailing slash bugs.
26171         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26172         * modules/openat-tests (Files): Include more files.
26173         (Depends-on): Add mgetgroups, sleep, stat-time.
26174         (configure.ac): Add additional checks.
26175         (Makefile.am): Build new test.
26176         * tests/test-fchownat.c: New file.
26177
26178         lchown: detect Solaris and FreeBSD bug
26179         * lib/lchown.c (rpl_lchown): Work around bug.
26180         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26182         * modules/unistd (Makefile.am): Populate it.
26183         * lib/unistd.in.h (lchown): Update declaration.
26184         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26185         * modules/lchown-tests: New file.
26186         * tests/test-lchown.h (test_lchown): Likewise.
26187         * tests/test-lchown.c (main): Likewise.
26188
26189         chown: detect Solaris and FreeBSD bug
26190         * lib/chown.c (rpl_chown): Work around bug.
26191         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26192         (gl_PREREQ_CHOWN): Delete.
26193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26194         * modules/unistd (Makefile.am): Populate it.
26195         * lib/unistd.in.h (chown): Update declaration.
26196         * lib/lchown.c (chown): Update client.
26197         * modules/lchown (Depends-on): Add lstat.
26198         * doc/posix-functions/chown.texi (chown): Document the bug.
26199         * doc/posix-functions/getgroups.texi (getgroups): Document
26200         getgroups pitfall.
26201         * modules/chown-tests: New file.
26202         * tests/test-chown.h (test_chown): Likewise.
26203         * tests/test-chown.c (main): Likewise.
26204
26205 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26206
26207         gnulib-tool: correctly detect absence of m4 directories
26208         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26209
26210 2009-11-14  Jim Meyering  <meyering@redhat.com>
26211
26212         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26213         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26214
26215 2009-11-14  John W. Eaton  <jwe@gnu.org>
26216
26217         strftime.h: wrap funtion declaration in extern "C" block
26218         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26219
26220 2009-11-13  Eric Blake  <ebb9@byu.net>
26221
26222         getgroups: avoid compiler warning
26223         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26224
26225         getgroups: work around FreeBSD bug
26226         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26227         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26228         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26229         * tests/test-getgroups.c (main): Fix buffer overrun.
26230
26231         getgroups: avoid compilation failure
26232         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26233         * modules/getgroups (Depends-on): Add stdint.
26234
26235 2009-11-13  Jim Meyering  <meyering@redhat.com>
26236
26237         test-getgroups: avoid compilation failure
26238         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26239
26240 2009-11-13  Eric Blake  <ebb9@byu.net>
26241
26242         mgetgroups: new module, taken from coreutils
26243         * modules/mgetgroups: New file.
26244         * lib/mgetgroups.h: Likewise.
26245         * lib/mgetgroups.c (mgetgroups): Likewise.
26246         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26247         * MODULES.html.sh (Users and groups): Mention it.
26248
26249         getgroups: don't expose GETGROUPS_T to user
26250         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26251         an element at a time if GETGROUPS_T is wrong size.
26252         * lib/getugroups.h (getugroups): Change signature.
26253         * lib/unistd.in.h (getgroups): Likewise.
26254         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26255         signature needs fixing.
26256         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26257         AC_TYPE_GETGROUPS.
26258         * modules/group-member (Depends-on): Add getgroups.
26259         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26260         (group_member): Rely on getgroups replacement.
26261         * lib/getugroups.c (getugroups): Use gid_t.
26262         * tests/test-getgroups.c (main): Likewise.
26263         * NEWS: Mention the signature change.
26264         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26265         problem with signature.
26266         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26267         GETGROUPS_T is still useful for setgroups.
26268
26269         getgroups, getugroups: provide stubs for mingw
26270         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26271         * lib/getugroups.c (getugroups): Likewise.
26272         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26273         function.  Modernize replacement scheme.
26274         (gl_PREREQ_GETGROUPS): Delete.
26275         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26276         * modules/getgroups (configure.ac): Declare witness.
26277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26278         * modules/unistd (Depends-on): Substitute witness.
26279         * lib/unistd.in.h (getgroups): Declare replacement.
26280
26281         getgroups: avoid calling exit
26282         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26283         drop xalloc.
26284         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26285         dependencies.
26286         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26287         exiting, in the rare case of malloc failure.
26288
26289         getgroups: fix logic error
26290         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26291         has more than 20 groups.
26292         * modules/getgroups-tests: New test.
26293         * tests/test-getgroups.c: New file.
26294
26295 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26296
26297         * tests/test-base64.c: Improve.
26298
26299 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26300
26301         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26302         Blake <ebb9@byu.net>.
26303
26304 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26305
26306         * tests/test-xvasprintf.c: Add %s%s related checks.
26307
26308 2009-11-12  Eric Blake  <ebb9@byu.net>
26309
26310         version-etc: match standards.texi style
26311         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26312         and use <> only for URLs.
26313
26314 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26315
26316         fts: do not fail on a submount during traversal
26317         * lib/fts.c (fts_build): Read the stat info again after opening
26318         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26319         Original report at http://bugzilla.redhat.com/501848.
26320
26321 2009-11-12  Jim Meyering  <meyering@redhat.com>
26322
26323         bootstrap: sync from coreutils
26324         * build-aux/bootstrap (bootstrap_epilogue): New function.
26325         Use git_modules_config in one more place.  This make bootstrap's
26326         --gnulib-srcdir option more useful for testing.
26327
26328         bootstrap: generalize autoheader check
26329         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26330         AC_CONFIG_HEADERS.
26331
26332 2009-11-11  Eric Blake  <ebb9@byu.net>
26333
26334         mkfifoat: use new modules for Solaris and BSD bugs
26335         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26336         * lib/mkfifoat.c (mknodat): Split...
26337         * lib/mknodat.c (mknodat): ...into new file.
26338         * modules/mkfifoat (Files): Ship new file.
26339         (Depends-on): Add mkfifo, mknod.
26340         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26341         (Depends-on): Add symlink.
26342         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26343         redundant with test_mkfifo.h.
26344         (do_mkfifoat, do_mknodat): New helpers.
26345
26346         mknod: new module
26347         * modules/mknod: New file.
26348         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26349         * lib/mknod.c (mknod): Likewise.
26350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26351         defaults.
26352         * modules/sys_stat (Makefile.am): Substitute them.
26353         * lib/sys_stat.in.h (mknod): Declare replacement.
26354         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26355         Document it.
26356         * doc/posix-functions/mknod.texi (mknod): Likewise.
26357         * modules/mknod-tests: New test.
26358         * tests/test-mknod.c: Likewise.
26359
26360         mkfifo: new module
26361         * modules/mkfifo: New file.
26362         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26363         * lib/mkfifo.c (mkfifo): Likewise.
26364         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26365         defaults.
26366         * modules/sys_stat (Makefile.am): Substitute them.
26367         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26368         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26369         Document it.
26370         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26371         * modules/mkfifo-tests: New test.
26372         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26373         from test-mkfifoat.c.
26374         * tests/test-mkfifo.c: New file.
26375
26376         readlink: detect FreeBSD bug
26377         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26378         slash on symlink.
26379         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26380         * tests/test-readlink.h (test_readlink): Enhance test.
26381
26382         symlink: detect FreeBSD bug
26383         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26384         slash on symlink.
26385         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26386         * tests/test-symlink.h (test_symlink): Enhance test.
26387
26388 2009-11-10  Eric Blake  <ebb9@byu.net>
26389
26390         link: detect FreeBSD bug
26391         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26392         symlink.
26393         * doc/posix-functions/link.texi (link): Document the bug.
26394         * tests/test-link.h (test_link): Enhance test.
26395         * tests/test-linkat.c (main): Update caller.
26396
26397         unlink, remove: detect FreeBSD bug
26398         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26399         slash on symlink.
26400         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26401         * doc/posix-functions/remove.texi (remove): Likewise.
26402         * tests/test-unlink.h (test_unlink): Enhance test.
26403         * tests/test-remove.c (main): Likewise.
26404
26405 2009-11-09  Eric Blake  <ebb9@byu.net>
26406
26407         rename: detect FreeBSD bug
26408         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26409         slash on symlink.
26410         * modules/renameat-tests (Depends-on): Add filenamecat.
26411         * tests/test-rename.h (test_rename): Allow one more errno.
26412         * tests/test-renameat.c (main): Likewise.
26413         * doc/posix-functions/rename.texi (rename): Document the bug.
26414
26415         open: detect FreeBSD bug
26416         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26417         symlink.
26418         * doc/posix-functions/open.texi (open): Document the bug.
26419         * doc/posix-functions/utimes.texi (utimes): Likewise.
26420         * tests/test-open.h (test_open): Add parameters, and test symlink
26421         handling.
26422         * tests/test-open.c (main): Adjust caller.
26423         * tests/test-fcntl-safer.c (main): Likewise.
26424         * modules/open-tests (Depends-on): Add stdbool, symlink.
26425         * modules/fcntl-safer-tests (Depends-on): Likewise.
26426         * tests/test-openat.c (main): Add test-open tests.
26427
26428         stat: detect FreeBSD bug
26429         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26430         symlink.
26431         * doc/posix-functions/stat.texi (stat): Document the bug.
26432         * tests/test-stat.h (test_stat_func): Add argument.
26433         * tests/test-stat.c (main): Adjust caller.
26434         * tests/test-fstatat.c (main): Likewise.
26435         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26436         Reported by Jim Meyering.
26437
26438 2009-11-09  James Youngman  <jay@gnu.org>
26439
26440         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26441         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26442
26443 2009-11-08  Jim Meyering  <meyering@redhat.com>
26444
26445         utimens: remove invalid futimesat call
26446         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26447         It used the file descriptor of the target file as the DIR_FD
26448         parameter and NULL as the file name.  That caused failure with
26449         errno == EFAULT on FreeBSD-8.0-rc2
26450
26451 2009-11-07  Eric Blake  <ebb9@byu.net>
26452
26453         fflush, freadseek: use fseeko, not fseek
26454         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26455         (clear_ungetc_buffer): Avoid potential problems on large files.
26456         * lib/freadseek.c (freadseek): Likewise.
26457         * modules/freadseek (Depends-on): Add fseeko.
26458         * modules/fseek (configure.ac): Set a witness.
26459         * tests/test-fflush.c (main): Use fseeko.
26460         * tests/test-fpurge.c (fseek): Disable link warning.
26461         * tests/test-freadable.c (fseek): Likewise.
26462         * tests/test-freading.c (fseek): Likewise.
26463         * tests/test-fseeko.c (fseek): Likewise.
26464         * tests/test-ftell.c (fseek): Likewise.
26465         * tests/test-ftello.c (fseek): Likewise.
26466         * tests/test-fwritable.c (fseek): Likewise.
26467         * tests/test-fwriting.c (fseek): Likewise.
26468
26469 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26470
26471         * modules/memchr (Depends-on): Drop getpagesize dependency.
26472
26473 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26474
26475         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26476         Reported by Ludovic Courtès.
26477         * build-aux/pmccabe2html: Improve example usage.
26478         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26479
26480 2009-11-06  Jim Meyering  <meyering@redhat.com>
26481
26482         do-release-commit-and-tag: New module.
26483         Automate the release-commit and tag process.
26484         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26485         * modules/do-release-commit-and-tag: New file.
26486         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26487
26488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26489
26490         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26491         because test-select.c uses inet_pton.
26492
26493 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26494
26495         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26496         GETADDRINFO_LIB.  Bump serial number.
26497         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26498         Suggested by Eric Blake <ebb9@byu.net>.
26499
26500 2009-11-05  Eric Blake  <ebb9@byu.net>
26501
26502         strtod: detect darwin bug
26503         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26504         Reported by Leo Davis.
26505
26506         freopen-safer: new module
26507         * modules/freopen-safer: New module.
26508         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26509         * lib/freopen-safer.c (freopen_safer): New file.
26510         * lib/stdio-safer.h (freopen_safer): New declaration.
26511         * lib/stdio--.h (freopen): New override.
26512         * MODULES.html.sh (File stream based Input/Output): Mention it.
26513         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26514         freopen-safer module.
26515         * doc/posix-functions/stderr.texi (stderr): Likewise.
26516         * doc/posix-functions/stdin.texi (stdin): Likewise.
26517         * doc/posix-functions/stdout.texi (stdout): Likewise.
26518         * modules/freopen-safer-tests: New test.
26519         * tests/test-reopen-safer.c: New file.
26520
26521 2009-11-05  Jim Meyering  <meyering@redhat.com>
26522
26523         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26524         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26525
26526 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26527
26528         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26529
26530 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26531
26532         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26533
26534 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26535
26536         Fix link error.
26537         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26538         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26539
26540 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26541
26542         * tests/test-func.c: Also test value of __func__.
26543
26544 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26545
26546         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26547         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26548
26549 2009-11-05  Bruno Haible  <bruno@clisp.org>
26550
26551         Fix link error.
26552         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26553         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26554         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26555
26556 2009-11-05  Bruno Haible  <bruno@clisp.org>
26557
26558         Tests for module 'inet_pton'.
26559         * modules/inet_pton-tests: New file.
26560         * tests/test-inet_pton.c: New file.
26561
26562 2009-11-05  Bruno Haible  <bruno@clisp.org>
26563
26564         Tests for module 'inet_ntop'.
26565         * modules/inet_ntop-tests: New file.
26566         * tests/test-inet_ntop.c: New file.
26567
26568 2009-11-04  Eric Blake  <ebb9@byu.net>
26569
26570         stdlib-safer: wrap all mkstemp variants
26571         * modules/mkostemp (configure.ac): Set witness.
26572         * modules/mkostemps (configure.ac): Likewise.
26573         * modules/mkstemps (configure.ac): Likewise.
26574         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26575         (mkstemps_safer): Wrap more functions.
26576         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26577         wrapping.
26578         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26579         (mkstemps_safer): Implement the wrappers.
26580
26581         mkstemps, mkostemps: new modules
26582         * modules/mkostemps: New module.
26583         * modules/mkstemps: Likewise.
26584         * lib/mkostemps.c (mkostemps): New file.
26585         * lib/mkstemps.c (mkstemps): Likewise.
26586         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26587         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26589         * modules/stdlib (Makefile.am): Substitute them.
26590         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26591         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26592         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26593         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26594         * MODULES.html.sh (File system functions): Mention them.
26595
26596         tempname: resync from glibc
26597         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26598         same values for __GT_FILE as glibc.  Abort even when assertions
26599         are disabled.
26600         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26601         match its value otherwise.  Allow idempotent inclusion.
26602         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26603         * lib/mkostemp.c (mkostemp): Likewise.
26604         * lib/mkstemp.c (mkstemp): Likewise.
26605         * lib/tmpfile.c (tmpfile): Likewise.
26606         * NEWS: Document this.
26607
26608         utimens: fix use of futimens on older Linux
26609         * lib/utimens.c (fdutimens): Use updated, rather than original,
26610         timespec to avoid bug in older Linux kernel.
26611         Reported by Simon Josefsson.
26612
26613 2009-11-04  Bruno Haible  <bruno@clisp.org>
26614
26615         Make num_processors more flexible and consistent.
26616         * lib/nproc.h (enum nproc_query): New type.
26617         (num_processors): Add a 'query' argument.
26618         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26619         (num_processors): Add a 'query' argument. Test the value of the
26620         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26621         mingw, count the number of CPUs available for the current process.
26622         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26623         Check for sched_getaffinity and sched_getaffinity_np.
26624         * modules/nproc (Depends-on): Add c-ctype, extensions.
26625         * NEWS: Mention the change.
26626
26627 2009-11-03  Bruno Haible  <bruno@clisp.org>
26628
26629         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26630
26631 2009-11-03  Jim Meyering  <meyering@redhat.com>
26632
26633         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26634         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26635         if it is defined.
26636
26637 2009-11-02  Eric Blake  <ebb9@byu.net>
26638
26639         mktime, timegm: share common declaration
26640         * lib/mktime-internal.h: New file.
26641         * lib/mktime.c: Use it rather than open-coding a declaration.
26642         * lib/timegm.c: Likewise.
26643         * modules/mktime (Files): Ship it.
26644         * modules/timegm (Files): Likewise.
26645         Suggested by Bruno Haible.
26646
26647         test-update-copyright: update test to match script changes
26648         * tests/test-update-copyright.sh: Avoid hard-coding perl
26649         location.  Don't update *.bak created by earlier runs.
26650
26651 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26652             Simon Josefsson  <simon@josefsson.org>
26653             Bruno Haible  <bruno@clisp.org>
26654
26655         Fix link error on Solaris 8.
26656         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26657         also in libnsl. Define also INET_PTON_LIB.
26658         * modules/inet_pton (Link): New section.
26659
26660 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26661             Bruno Haible  <bruno@clisp.org>
26662
26663         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26664         * modules/inet_ntop (Link): New section.
26665         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26666
26667 2009-11-02  Eric Blake  <ebb9@byu.net>
26668
26669         maint: avoid compiler warnings in m4 macros
26670         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26672
26673 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26674
26675         * m4/pmccabe2html.m4: Remove file.
26676         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26677         function.  Change maintainer.
26678         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26679         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26680         Courtès).
26681
26682 2009-10-31  Eric Blake  <ebb9@byu.net>
26683
26684         fseeko: fix m4 regression
26685         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26686         regression from 2009-10-27.
26687         Reported by Ralf Wildenhues.
26688
26689 2009-10-31  Jim Meyering  <meyering@redhat.com>
26690
26691         inttostr: aesthetics and improved (compile-time) safety
26692         Define inttype_is_signed rather than inttype_is_unsigned,
26693         since the sole use is via "#if inttype_is_signed".
26694         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26695         inttype_is_unsigned.
26696         * lib/offtostr.c (inttype_is_signed): Likewise.
26697         * lib/uinttostr.c (inttype_is_signed): Likewise.
26698         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26699         * lib/inttostr.c (inttostr): Use verify to cross-check the
26700         inttype_is_signed value and the signedness of the actual type.
26701         * modules/inttostr (Depends-on): Add verify.
26702
26703 2009-10-30  Eric Blake  <ebb9@byu.net>
26704
26705         build: avoid compiler warnings
26706         * lib/fchmodat.c (lchmod): Mark unused variables.
26707         * lib/getopt.c (_getopt_initialize): Likewise.
26708         * lib/mktime.c (__mktime_internal): Provide prototype.
26709         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26710         older gcc that do not understand #pragma GCC diagnostic.
26711         * lib/uinttostr.c (inttype_is_unsigned): Define.
26712         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26713
26714 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26715
26716         stat: fix compilation on AIX
26717         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26718         only see struct stat64.
26719
26720 2009-10-30  Eric Blake  <ebb9@byu.net>
26721
26722         exclude: make more robust
26723         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26724         rather than masking a coding bug.
26725         Suggested by Bruno Haible.
26726
26727 2009-10-30  Jim Meyering  <meyering@redhat.com>
26728
26729         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26730         Rather than putting #!/usr/bin/perl on the first line,
26731         start with a variant of what's recommended by "man perlrun" that
26732         invokes the first "perl" program from your shell's search path.
26733         * build-aux/gitlog-to-changelog: Replace #!... as above.
26734         Add a "Local Variables" perl mode setting.
26735         Prompted by a patch from Ludovic Courtès.
26736         Improved by Eric Blake.
26737         * build-aux/useless-if-before-free: Likewise.
26738         * build-aux/announce-gen: Likewise.
26739         * build-aux/update-copyright: Likewise.
26740
26741 2009-10-29  Eric Blake  <ebb9@byu.net>
26742
26743         filenamecat-lgpl: adjust clients
26744         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26745         filenamecat.
26746         * modules/renameat (Depends-on): Likewise.
26747
26748         filenamecat: split into filenamecat-lgpl
26749         * modules/filenamecat-lgpl: New module.
26750         * modules/filenamecat (Files): Move library-safe files into
26751         filenamecat-lgpl.
26752         (Depends-on): Add filenamecat-lgpl.
26753         (configure.ac): Declare witness.
26754         * lib/filenamecat.h (file_name_concat): Only declare when using
26755         GPL module.
26756         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26757         Move...
26758         * lib/filenamecat-lgpl.c: ...into new file.
26759         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26760         (gl_FILE_NAME_CONCAT): Use it.
26761         * MODULES.html.sh (File system functions): Mention new module.
26762
26763         argp: avoid memory leak
26764         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26765         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26766         base_name, since the latter malloc()s and can call exit().
26767         Leak introduced 2006-07-03.
26768
26769         dirname-lgpl: adjust clients that don't need full dirname
26770         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26771         * modules/filenamecat (Depends-on): Likewise.
26772         * modules/linkat (Depends-on): Likewise.
26773         * modules/mkancesdirs (Depends-on): Likewise.
26774         * modules/mkdir (Depends-on): Likewise.
26775         * modules/openat (Depends-on): Likewise.
26776         * modules/savewd (Depends-on): Likewise.
26777         * modules/rename (Depends-on): Likewise.
26778         (License): Relax license.
26779         * modules/mkdir-tests (Depends-on): Drop progname.
26780         (Makefile.am): Delete unneeded LDADD.
26781         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26782
26783         dirname: split into dirname-lgpl
26784         * modules/dirname-lgpl: New module.
26785         * modules/dirname (Files): Move library-safe files into
26786         dirname-lgpl.
26787         (Depends-on): Add dirname-lgpl.
26788         (configure.ac): Declare witness.
26789         * modules/double-slash-root (License): Relax license.
26790         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26791         module.
26792         * lib/dirname.c (dir_len, mdir_name): Move...
26793         * lib/dirname-lgpl.c: ...into new file.
26794         * lib/basename.c (last_component, base_len): Move...
26795         * lib/basename-lgpl.c: ...into new file.
26796         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26797         (gl_DIRNAME): Use it.
26798         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26799         Mention new module.
26800         * modules/dirname-tests (Depends-on): Add progname.
26801         * tests/test-dirname.c (program_name): Delete.
26802
26803         mkdir: make safe for libraries
26804         * modules/mkdir (Depends-on): Drop xalloc.
26805         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26806         exit.
26807
26808         tests: avoid some compiler warnings
26809         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26810         literals.
26811         * tests/test-memchr.c (main): Avoid type mismatch.
26812         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26813         * tests/test-base64.c (main): Likewise.
26814         * tests/test-getdelim.c (main): Likewise.
26815         * tests/test-gethostname.c (main): Likewise.
26816         * tests/test-getline.c (main): Likewise.
26817         * tests/test-netinet_in.c (main): Likewise.
26818         * tests/test-select.c (open_server_socket, main): Likewise.
26819         * tests/test-select-stdin.c (main): Likewise.
26820         * tests/test-sockets.c (main): Likewise.
26821         * tests/test-strsignal.c (main): Likewise.
26822         * tests/test-sys_select.c (main): Likewise.
26823         * tests/test-sys_socket.c (main): Likewise.
26824         * tests/test-u64.c (main): Likewise.
26825         * tests/test-xfprintf-posix.c (main): Likewise.
26826         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26827
26828         sockets: avoid compiler warning
26829         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26830
26831         maint: detect usage(1) and other suspicious exits
26832         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26833
26834 2009-10-29  Jim Meyering  <meyering@redhat.com>
26835
26836         timespec: long-to-int truncation could make timespec_cmp malfunction
26837         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26838         a multiple of 2^32 nanoseconds as no difference.
26839
26840 2009-10-28  Jim Meyering  <meyering@redhat.com>
26841
26842         fprintftime: wrap macro code argument in "do {...} while(0)"
26843         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26844         cpy macro must be a statement that can be followed by a semicolon.
26845         Now that the else clause contains a comment and is hence longer
26846         than one line, I require curly braces.  That in turn requires
26847         that we wrap this code block in the standard do...while(0).
26848
26849         fprintftime: remove stray semicolon from previous change
26850         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26851
26852         fprintftime: avoid a warning about ignored fwrite return value
26853         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26854         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26855         that is unsafe.
26856         * modules/fprintftime (Depends-on): Add ignore-value.
26857
26858         exclude: avoid an unwarranted warning
26859         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26860
26861 2009-10-27  Eric Blake  <ebb9@byu.net>
26862
26863         fseek: avoid compilation failure when fflush is replaced
26864         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26865         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26866         module is in use.
26867         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26868         module is not in use; since REPLACE_FSEEK worked otherwise.
26869         (GNULIB_FTELLO): Likewise for ftell.
26870         Reported by Ian Beckwith and others.
26871
26872 2009-10-27  Bruno Haible  <bruno@clisp.org>
26873
26874         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26875         Reported by Jim Meyering.
26876
26877 2009-10-27  Jim Meyering  <jim@meyering.net>
26878             Bruno Haible  <bruno@clisp.org>
26879
26880         Avoid warning despite dropping the return value of fwrite.
26881         * lib/unicodeio.c: Include ignore-value.h.
26882         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26883         * modules/unicodeio (Depends-on): Add ignore-value.
26884
26885 2009-10-26  Eric Blake  <ebb9@byu.net>
26886
26887         areadlinkat: fix fallback path
26888         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26889         pointer and zero.
26890
26891 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26892
26893         Use a better IO block size for modern systems
26894         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26895         * lib/md2.c: Likewise.
26896         * lib/md4.c: Likewise.
26897         * lib/md5.c: Likewise.
26898         * lib/sha1.c: Likewise.
26899         * lib/sha256.c: Likewise.
26900         * lib/sha512.c: Likewise.
26901
26902 2009-10-22  Eric Blake  <ebb9@byu.net>
26903
26904         tests: avoid several compiler warnings
26905         * tests/test-getcwd.c (main): Avoid buffer underflow.
26906         * tests/test-getdate.c (main): String literals are not safe with
26907         putenv, so use setenv.  Declare unused argument.
26908         * modules/getdate-tests (Depends-on): Add setenv.
26909         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26910         problems with string literals in char *.
26911         * tests/test-hash.c (main): Avoid shadowing declaration.
26912         (insert_new): Treat string literals as char const *.
26913         * tests/test-getopt.h (test_getopt): Likewise.
26914         (getopt_loop): Alter types to minimize casting elsewhere.
26915         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26916         (test_getopt_long_posix): Likewise.
26917         (do_getopt_long): Add wrapper to minimize casting.
26918         * tests/test-atexit.c (clear_temp_file): Use void.
26919         * tests/test-areadlink-with-size.c (main): Declare unused
26920         arguments.
26921         * tests/test-areadlink.c (main): Likewise.
26922         * tests/test-areadlinkat-with-size.c (main): Likewise.
26923         * tests/test-areadlinkat.c (main): Likewise.
26924         * tests/test-canonicalize-lgpl.c (main): Likewise.
26925         * tests/test-canonicalize.c (main): Likewise.
26926         * tests/test-dirent-safer.c (main): Likewise.
26927         * tests/test-dirname.c (main): Likewise.
26928         * tests/test-dup2.c (main): Likewise.
26929         * tests/test-fchdir.c (main): Likewise.
26930         * tests/test-fcntl-h.c (main): Likewise.
26931         * tests/test-fcntl-safer.c (main): Likewise.
26932         * tests/test-fdopendir.c (main): Likewise.
26933         * tests/test-fdutimensat.c (main): Likewise.
26934         * tests/test-fflush.c (main): Likewise.
26935         * tests/test-filenamecat.c (main): Likewise.
26936         * tests/test-filevercmp.c (main): Likewise.
26937         * tests/test-fopen-safer.c (main): Likewise.
26938         * tests/test-fopen.c (main): Likewise.
26939         * tests/test-fpending.c (main): Likewise.
26940         * tests/test-fpurge.c (main): Likewise.
26941         * tests/test-freading.c (main): Likewise.
26942         * tests/test-fstatat.c (main): Likewise.
26943         * tests/test-fsync.c (main): Likewise.
26944         * tests/test-futimens.c (main): Likewise.
26945         * tests/test-getndelim2.c (main): Likewise.
26946         * tests/test-gettimeofday.c (main): Likewise.
26947         * tests/test-getopt.c (main): Likewise.
26948         * tests/test-i-ring.c (main): Likewise.
26949         * tests/test-inttypes.c (main): Likewise.
26950         * tests/test-link.c (main): Likewise.
26951         * tests/test-lstat.c (main): Likewise.
26952         * tests/test-math.c (main): Likewise.
26953         * tests/test-md5.c (main): Likewise.
26954         * tests/test-memchr2.c (main): Likewise.
26955         * tests/test-memrchr.c (main): Likewise.
26956         * tests/test-mkdir.c (main): Likewise.
26957         * tests/test-mkdirat.c (main): Likewise.
26958         * tests/test-mkfifoat.c (main): Likewise.
26959         * tests/test-open.c (main): Likewise.
26960         * tests/test-openat-safer.c (main): Likewise.
26961         * tests/test-openat.c (main): Likewise.
26962         * tests/test-quotearg.c (main): Likewise.
26963         * tests/test-rawmemchr.c (main): Likewise.
26964         * tests/test-readlink.c (main): Likewise.
26965         * tests/test-remove.c (main): Likewise.
26966         * tests/test-rename.c (main): Likewise.
26967         * tests/test-renameat.c (main): Likewise.
26968         * tests/test-rmdir.c (main): Likewise.
26969         * tests/test-sha1.c (main): Likewise.
26970         * tests/test-signal.c (main): Likewise.
26971         * tests/test-sigaction.c (main): Likewise.
26972         * tests/test-stat.c (main): Likewise.
26973         * tests/test-stat-time.c (main): Likewise.
26974         * tests/test-stddef.c (main): Likewise.
26975         * tests/test-stdint.c (main): Likewise.
26976         * tests/test-stdio.c (main): Likewise.
26977         * tests/test-stdlib.c (main): Likewise.
26978         * tests/test-strchrnul.c (main): Likewise.
26979         * tests/test-strerror.c (main): Likewise.
26980         * tests/test-string.c (main): Likewise.
26981         * tests/test-strtod.c (main): Likewise.
26982         * tests/test-strverscmp.c (main): Likewise.
26983         * tests/test-symlink.c (main): Likewise.
26984         * tests/test-symlinkat.c (main): Likewise.
26985         * tests/test-sys_stat.c (main): Likewise.
26986         * tests/test-sys_time.c (main): Likewise.
26987         * tests/test-time.c (main): Likewise.
26988         * tests/test-unistd.c (main): Likewise.
26989         * tests/test-unlink.c (main): Likewise.
26990         * tests/test-unlinkat.c (main): Likewise.
26991         * tests/test-utimens.c (main): Likewise.
26992         * tests/test-utimensat.c (main): Likewise.
26993         * tests/test-version-etc.c (main): Likewise.
26994         * tests/test-wchar.c (main): Likewise.
26995         * tests/test-wctype.c (main): Likewise.
26996         * tests/test-xprintf-posix.c (main): Likewise.
26997         * tests/test-posixtm.c (main): Likewise.
26998         (STREQ): Delete unused macro.
26999         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27000         shadowed variables.
27001         * tests/test-memchr.c (main): Likewise.
27002
27003 2009-10-21  Eric Blake  <ebb9@byu.net>
27004
27005         areadlinkat: avoid failure on older glibc
27006         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27007         rather than mis-comparing 0 against FUNC_RESULT of char*.
27008
27009 2009-10-21  Bruno Haible  <bruno@clisp.org>
27010
27011         * modules/stpncpy (License): Relicense under LGPLv2+.
27012         Reported by David Lutterkort <lutter@redhat.com>.
27013
27014 2009-10-20  Eric Blake  <ebb9@byu.net>
27015
27016         utimensat: work around Solaris 9 bug
27017         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27018         has trailing slash bugs.
27019         * tests/test-lutimens.h (test_lutimens): Enhance test.
27020         * tests/test-utimens.h (test_utimens): Likewise.
27021         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27022         * doc/posix-functions/utimes.texi (utimes): Likewise.
27023         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27024         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27025         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27026         * doc/posix-functions/futimens.texi (futimens): Likewise.
27027
27028         fdutimensat: new module
27029         * modules/fdutimensat: New file.
27030         * lib/fdutimensat.c (fdutimensat): Likewise.
27031         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27032         * MODULES.html.sh (File system functions): Mention module.
27033         * modules/fdutimensat-tests: New test.
27034         * tests/test-fdutimensat.c: Likewise.
27035
27036         doc: regenerate INSTALL
27037         * doc/INSTALL: Reflect recent autoconf update.
27038         * doc/INSTALL.ISO: Likewise.
27039         * doc/INSTALL.UTF-8: Likewise.
27040
27041 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27042
27043         acl: warn if ACL support is not detected
27044         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27045
27046 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27047
27048         * lib/nproc.h: Add extern "C" block for C++.
27049
27050 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27051             Bruno Haible  <bruno@clisp.org>
27052
27053         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27054         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27055         * doc/posix-functions/isalpha.texi: Likewise.
27056         * doc/posix-functions/isblank.texi: Likewise.
27057         * doc/posix-functions/iscntrl.texi: Likewise.
27058         * doc/posix-functions/isdigit.texi: Likewise.
27059         * doc/posix-functions/isgraph.texi: Likewise.
27060         * doc/posix-functions/islower.texi: Likewise.
27061         * doc/posix-functions/isprint.texi: Likewise.
27062         * doc/posix-functions/ispunct.texi: Likewise.
27063         * doc/posix-functions/isspace.texi: Likewise.
27064         * doc/posix-functions/isupper.texi: Likewise.
27065         * doc/posix-functions/isxdigit.texi: Likewise.
27066
27067 2009-10-18  Bruno Haible  <bruno@clisp.org>
27068
27069         Tests for module 'isblank'.
27070         * modules/isblank-tests: New file.
27071         * tests/test-isblank.c: New file.
27072
27073         New module 'isblank'.
27074         * lib/isblank.c: New file.
27075         * m4/isblank.m4: New file.
27076         * modules/isblank: New file.
27077         * doc/posix-functions/isblank.texi: Mention the new module.
27078
27079 2009-10-18  Bruno Haible  <bruno@clisp.org>
27080
27081         New module 'ctype'.
27082         * lib/ctype.in.h: New file.
27083         * m4/ctype.m4: New file.
27084         * modules/ctype: New file.
27085         * doc/posix-headers/ctype.texi: Mention the new module.
27086
27087 2009-10-18  Jim Meyering  <meyering@redhat.com>
27088
27089         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27090         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27091         right after its initialization, rather than farther down.
27092         Keeping these in close proximity makes it easier to ensure
27093         that each such variable is initialized.  E.g.,
27094
27095             LIB_CLOCK_GETTIME=
27096             AC_SUBST([LIB_CLOCK_GETTIME])
27097
27098         This change also increments these serial numbers.
27099         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27100         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27102
27103 2009-10-18  Bruno Haible  <bruno@clisp.org>
27104
27105         Don't let environment variables perturb build.
27106         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27107         (gl_PREREQ_GETHRXTIME): ... not here.
27108
27109 2009-10-18  Bruno Haible  <bruno@clisp.org>
27110
27111         Avoid symlink attack in localcharset module.
27112         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27113         (O_NOFOLLOW): Define fallback.
27114         (get_charset_aliases): Don't open the file if it is a symbolic link.
27115         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27116         gl_FCNTL_H.
27117         (gl_FCNTL_H): Require it.
27118         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27119         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27120         Reported by Fergal Glynn <fglynn@veracode.com>.
27121
27122 2009-10-18  Bruno Haible  <bruno@clisp.org>
27123
27124         Implement nproc for mingw.
27125         * lib/nproc.c: Include <windows.h>
27126         (num_processors): On native Windows platforms, try GetSystemInfo.
27127
27128 2009-10-18  Bruno Haible  <bruno@clisp.org>
27129
27130         Implement nproc for IRIX.
27131         * lib/nproc.c: Include <sys/sysmp.h>.
27132         (num_processors): On IRIX systems, try sysmp.
27133         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27134
27135 2009-10-18  Bruno Haible  <bruno@clisp.org>
27136
27137         Implement nproc for HP-UX.
27138         * lib/nproc.c: Include <sys/pstat.h>
27139         (num_processors): On HP-UX systems, try pstat_getdynamic.
27140         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27141         pstat_getdynamic.
27142
27143 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27144             Bruno Haible  <bruno@clisp.org>
27145
27146         Implement nproc for NetBSD, OpenBSD.
27147         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27148         (ARRAY_SIZE): New macro.
27149         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27150         * m4/nproc.m4: New file.
27151         * modules/nproc (Files): Add m4/nproc.m4.
27152         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27153         (Makefile.am): Instead, augment lib_SOURCES.
27154
27155 2009-10-18  Bruno Haible  <bruno@clisp.org>
27156
27157         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27158         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27159         sys/param.h.
27160
27161 2009-10-16  Eric Blake  <ebb9@byu.net>
27162
27163         utimensat: new module
27164         * modules/utimensat: New file.
27165         * lib/utimensat.c (utimensat): Likewise.
27166         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27167         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27168         so we can work around Linux bugs.
27169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27170         * modules/sys_stat (Makefile.am): Substitute them.
27171         * lib/sys_stat.in.h (utimensat): Declare it.
27172         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27173         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27174         * modules/utimensat-tests: New test.
27175         * tests/test-utimensat.c: Likewise.
27176
27177         utimens: let lutimens work on non-symlinks
27178         * lib/utimens.c (lutimens): Fall back to utimens rather than
27179         failing with ENOSYS, when file is not a symlink.
27180         (utimens): Reduce redirection.
27181         * tests/test-lutimens.h (test_lutimens): Update test to cover
27182         non-symlinks.
27183         * tests/test-utimens.h (test_utimens): Update test to cover
27184         symlinks.
27185         * tests/test-utimens.c (main): Update caller.
27186
27187         utimens: cache whether utimensat syscall works
27188         * lib/utimens.c (utimensat_works_really): New cache variable.
27189         (fdutimens, lutimens): Use it to avoid failing syscall.
27190
27191         test-stat-time, test-utimens: improve portability
27192         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27193         ext4 on alpha, and for cygwin.
27194         * tests/test-utimens-common.h: New file.
27195         (nap): Factor delays into single function.
27196         * tests/test-lutimens.h (test_lutimens): Use new header.
27197         * tests/test-futimens.h (test_futimens): Likewise.
27198         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27199         timestamps to occur from same machine, as was done previously for
27200         test_utimens.
27201         * modules/utimens-tests (Files): Ship new file.
27202         * modules/futimens-tests (Files): Likewise.
27203         Reported in part by Jim Meyering.
27204
27205         sys_stat: sort replacement declarations
27206         * lib/sys_stat.in.h: Sort declarations.
27207         * lib/futimens.c (futimens): Fix typo.
27208
27209 2009-10-15  Jim Meyering  <meyering@redhat.com>
27210
27211         don't let environment settings perturb build
27212         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27213         could cause a configure-time and/or build-time malfunction.
27214         Typically, a configure-time function-in-library test is performed
27215         via code like this:
27216
27217           LIB_VAR=
27218           AC_SUBST([LIB_VAR])
27219           prefix_saved_LIBS=$LIBS
27220             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27221                        [test "$ac_cv_search_FUNC" = "none required" ||
27222                         LIB_VAR=$ac_cv_search_FUNC])
27223           LIBS=$prefix_saved_LIBS
27224
27225         However, in each of the files affected by this change, the LIB_VAR=
27226         initialization was omitted.  Thus, when set in the environment, its
27227         value would propagate into generated Makefiles when FUNC is not found
27228         in LIB_NAME.
27229         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27230         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27232
27233 2009-10-14  Eric Blake  <ebb9@byu.net>
27234
27235         fchdir: avoid infinite recursion in mingw
27236         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27237         recursing.
27238
27239         test-stat-time: port to mingw
27240         * tests/test-stat-time.c (force_unlink): Return a value.
27241         (test_ctime) [W32]: Fix compilation error.
27242         (nap): Don't call usleep with too large an argument.  Use
27243         force_unlink.
27244         * doc/pastposix-functions/usleep.texi (usleep): Document the
27245         portability issue.
27246
27247 2009-10-13  Jim Meyering  <meyering@redhat.com>
27248
27249         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27250         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27251         * modules/pipe-filter-ii: Likewise.
27252         * modules/sys_socket-tests: Likewise.
27253         * modules/tsearch-tests: Likewise.
27254         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27255         (check): Depend on it.
27256
27257 2009-10-12  Eric Blake  <ebb9@byu.net>
27258
27259         utimens-tests: port to NFS file systems
27260         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27261         comparisons to avoid spurious failures from timestamp drift
27262         between NFS machines.
27263
27264 2009-10-12  Eric Blake  <ebb9@byu.net>
27265
27266         stat-time-tests: minor cleanups
27267         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27268         * tests/test-stat-time.c (nap): Separate assignment from call.
27269         Suggested by Paolo Bonzini and Bruno Haible.
27270
27271         sys_stat: guarantee struct timespec
27272         * lib/sys_stat.in.h (includes): Always include <time.h>
27273         * modules/sys_stat (Depends-on): Add time.
27274         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27275         mode_t permission values.
27276         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27277         get at subsecond timestamps.
27278
27279 2009-10-10  Eric Blake  <ebb9@byu.net>
27280
27281         futimens: new module
27282         * modules/futimens: New file.
27283         * lib/futimens.c (futimens): Likewise.
27284         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27285         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27286         we can work around Linux bugs.
27287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27288         * modules/sys_stat (Makefile.am): Substitute them.
27289         * lib/sys_stat.in.h (futimens): Declare it.
27290         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27291         * doc/posix-functions/futimens.texi (futimens): Likewise.
27292         * modules/futimens-tests: New test.
27293         * tests/test-futimens.c: Likewise.
27294
27295         utimens: introduce fdutimens
27296         * lib/utimens.h (fdutimens): New prototype.
27297         * lib/utimens.c (gl_futimens): Move guts...
27298         (fdutimens): ...to new interface.
27299         * tests/test-utimens.c (do_fdutimens): Use it.
27300
27301         utimens: add UTIME_NOW and UTIME_OMIT support
27302         * lib/utimens.c (validate_timespec, update_timespec): New helper
27303         functions.
27304         (gl_futimens, lutimens): Use them.
27305         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27306         stdbool, sys_stat.
27307         (Link): Mention resulting library dependency.
27308         * modules/utimecmp (Link): Likewise.
27309         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27310         (Makefile.am): Pick up library dependency.
27311         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27312         definition.
27313         * tests/test-sys_stat.c: Test the definitions.
27314         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27315         * NEWS: Document library dependency.
27316
27317         utimecmp: support symlink timestamps
27318         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27319         hashing when possible.  Use pathconf when available.
27320         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27321         * modules/utimecmp (Depends-on): Add lstat.
27322
27323         utimens: add lutimens interface
27324         * lib/utimens.c (lutimens): New function.
27325         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27326         * lib/utimens.h (lutimens): Declare new interface.
27327         * tests/test-utimens.c (main): Enhance test.
27328         * tests/test-lutimens.h (test_lutimens): New file.
27329         * modules/utimens-tests (Files): Distribute it.
27330         (Depends-on): Add symlink.
27331         (configure.ac): Check for usleep.
27332
27333         utimens: validate futimens usage
27334         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27335         fewer syscalls on failure later on.  Avoid compiler warning on
27336         mingw.
27337         * modules/utimens (Depends-on): Add dup2.
27338
27339         utimens: add test
27340         * modules/utimens-tests: New test.
27341         * tests/test-utimens.h: New file.
27342         * tests/test-futimens.h: Likewise.
27343         * tests/test-utimens.c: Likewise.
27344
27345         doc: mention timestamp portability issues
27346         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27347         instead.
27348         * doc/posix-functions/utime.texi (utime): Likewise.
27349         * doc/posix-functions/utimes.texi (utimes): Likewise.
27350         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27351         instead.
27352         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27353         module.
27354         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27355         Mention weakness with symlink timestamps.
27356         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27357         to utimensat/futimens instead.
27358         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27359
27360         test-dup2: enhance test
27361         * tests/test-dup2.c (main): Also check AT_FDCWD.
27362
27363         test-stat-time: avoid more spurious failures
27364         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27365         xfs; and avoid race if the two timestamps cross quantization edge.
27366
27367         relocatable: prefer 'file system' over 'filesystem'
27368         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27369         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27370         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27371         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27372         * lib/relocatable.c (compute_curr_prefix): Likewise.
27373
27374 2009-10-10  Jim Meyering  <meyering@redhat.com>
27375
27376         stat-time-tests: check for the usleep function
27377         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27378
27379 2009-10-10  Bruno Haible  <bruno@clisp.org>
27380
27381         * modules/xnanosleep: Put the Link section after the Include section.
27382
27383 2009-10-09  Eric Blake  <ebb9@byu.net>
27384
27385         dup2: work around FreeBSD 6.1 bug
27386         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27387         * doc/posix-functions/dup2.texi (dup2): Document it.
27388         Reported by Nelson H. F. Beebe and Jim Meyering.
27389
27390         test-stat-time: port to buggy NFS clients
27391         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27392         (test_ctime): Also skip test if mtime and ctime are skewed.
27393
27394         maint: prefer 'file system' over 'filesystem'
27395         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27396         * doc/posix-functions/lstat.texi (lstat): Likewise.
27397         * lib/file-has-acl.c (file_has_acl): Likewise.
27398         * lib/fwriteerror.c [TEST]: Likewise.
27399         * tests/test-areadlink.h (test_areadlink): Likewise.
27400         * tests/test-areadlinkat-with-size.c (main): Likewise.
27401         * tests/test-areadlinkat.c (main): Likewise.
27402         * tests/test-canonicalize-lgpl.c (main): Likewise.
27403         * tests/test-canonicalize.c (main): Likewise.
27404         * tests/test-fstatat.c (main): Likewise.
27405         * tests/test-linkat.c (main): Likewise.
27406         * tests/test-lstat.h (test_lstat_func): Likewise.
27407         * tests/test-mkdir.h (test_mkdir): Likewise.
27408         * tests/test-readlink.h (test_readlink): Likewise.
27409         * tests/test-remove.c (main): Likewise.
27410         * tests/test-rename.h (test_rename): Likewise.
27411         * tests/test-renameat.c (main): Likewise.
27412         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27413         * tests/test-symlink.h (test_symlink): Likewise.
27414         * tests/test-symlinkat.c (main): Likewise.
27415         * tests/test-unlink.h (test_unlink_func): Likewise.
27416         * tests/test-unlinkat.c (main): Likewise.
27417
27418         maint: make realtime library usage explicit
27419         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27420         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27421         * modules/settime (Link): Likewise.
27422         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27423
27424         test-stat-time: speed up execution
27425         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27426         warning on mingw.
27427         (nap): New helper function.
27428         (prepare_test): Use it to reduce sleep time.
27429         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27430         execution.
27431         * modules/stat-time-tests (configure.ac): Check for usleep.
27432
27433 2009-10-09  Jim Meyering  <meyering@redhat.com>
27434
27435         selinux-h: always use getfilecon wrappers
27436         * lib/getfilecon.c: New file.
27437         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27438         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27439         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27440         (fgetfilecon): Provide a stub.
27441         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27442         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27443         file unconditionally.
27444         When <selinux/selinux.h> is found, arrange to use wrappers.
27445         * modules/selinux-h (Files): Add getfilecon.c.
27446         (Makefile.am): Substitute include-next-related bits
27447         into the now-always-generated selinux/selinux.h file.
27448         * doc/glibc-functions/lgetfilecon.texi: New file.
27449         * doc/glibc-functions/fgetfilecon.texi: New file.
27450         * doc/glibc-functions/getfilecon.texi: New file.
27451         * doc/glibc-functions/getfilecon-desc.texi: New file.
27452         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27453         which to pull in the new files.
27454         * MODULES.html.sh (Misc): Add selinux-h.
27455
27456 2009-10-08  Jim Meyering  <meyering@redhat.com>
27457
27458         unistd: fix comment typo
27459         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27460
27461 2009-10-08  Eric Blake  <ebb9@byu.net>
27462
27463         areadlink: use SIZE_MAX consistently
27464         * modules/areadlink (Depends-on): Add stdint.
27465         * modules/areadlink-with-size (Depends-on): Likewise.
27466         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27467         gives NULL; drop sys/types, since unistd gives size_t; and add
27468         stdint for SIZE_MAX.
27469         (SIZE_MAX): Rely on headers.
27470         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27471         and add stdint.
27472         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27473         (SIZE_MAX): Likewise.
27474         (INITIAL_BUF_SIZE): Turn into enum.
27475         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27476
27477 2009-10-08  Jim Meyering  <meyering@redhat.com>
27478
27479         areadlinkat: avoid compilation failure
27480         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27481         Fix typo in comment.
27482
27483 2009-10-07  Eric Blake  <ebb9@byu.net>
27484
27485         areadlinkat-with-size: new module
27486         * modules/areadlinkat-with-size: New module.
27487         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27488         * lib/areadlink.h (areadlinkat): Declare it.
27489         * MODULES.html.sh (File system functions): Mention it.
27490         * modules/areadlinkat-with-size-tests: New test.
27491         * tests/test-areadlinkat-with-size.c: New file.
27492
27493         xreadlinkat: new module
27494         * modules/xreadlinkat: New module.
27495         * lib/xreadlinkat.c (xreadlinkat): New file.
27496         * lib/xreadlink.h (xreadlinkat): Declare it.
27497         * MODULES.html.sh (File system functions): Mention it.
27498
27499         areadlinkat: new module
27500         * lib/at-func.c (FUNC_FAIL): New define.
27501         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27502         * modules/areadlinkat: New module.
27503         * lib/linkat.c (areadlinkat): Move...
27504         * lib/areadlinkat.c (areadlinkat): ...to new file.
27505         * lib/areadlink.h (areadlinkat): Declare it.
27506         * modules/linkat (Depends-on): Add areadlinkat.
27507         * MODULES.html.sh (File system functions): Mention it.
27508         * modules/areadlinkat-tests: New test.
27509         * tests/test-areadlinkat.c: New file.
27510
27511         areadlink, areadlink-with-size: add tests
27512         * modules/areadlink-tests: New test.
27513         * modules/areadlink-with-size-tests: Likewise.
27514         * tests/test-areadlink.h: New file.
27515         * tests/test-areadlink.c: Likewise.
27516         * tests/test-areadlink-with-size.c: Likewise.
27517
27518         maint: minor cleanups
27519         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27520         _UNUSED_PARAMETER_ instead.
27521         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27522         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27523         * modules/linkat-tests (Files): Distribute test-link.h.
27524
27525         openat, utimens: whitespace cleanup
27526         * lib/openat.c: Prefer space throughout, rather than mix of 8
27527         spaces vs. tabs.
27528         * lib/at-func.c: Likewise.
27529         * lib/utimens.c: Likewise.
27530
27531         openat: avoid using wrong fd
27532         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27533         working directory chooses same fd.
27534         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27535
27536         mkdir, mkdirat: fix cygwin 1.5.x bug
27537         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27538         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27539         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27540         bug.
27541         (gl_PREREQ_MKDIR): Delete unused macro.
27542         * modules/mkdir (Files): Track file rename.
27543         (configure.ac): Update macro name.
27544         * modules/openat (Depends-on): Add mkdir.
27545         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27546
27547         mkdir, mkdirat: add tests
27548         * modules/mkdir-tests: New test.
27549         * tests/test-mkdir.h: New file.
27550         * tests/test-mkdir.c: Likewise.
27551         * tests/test-mkdirat.c: Likewise.
27552         * modules/openat-tests (Files): Add new files.
27553         (Makefile.am): Run new test.
27554
27555 2009-10-06  Eric Blake  <ebb9@byu.net>
27556
27557         doc: tweak *at function documentation
27558         * doc/posix-functions/faccessat.texi (faccessat): Mention
27559         known issue with replacement.
27560         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27561         * doc/posix-functions/linkat.texi (linkat): Likewise.
27562         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27563         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27564         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27565         * doc/posix-functions/renameat.texi (renameat): Likewise.
27566         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27567
27568         openat: fix GNU/Hurd bug in unlinkat
27569         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27570         broken.
27571         * doc/posix-functions/unlink.texi (unlink): Document this.
27572         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27573
27574         fdopendir: fix GNU/Hurd bug
27575         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27576         allowing non-directory fds.
27577         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27578         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27579         * modules/dirent (Makefile.am): Substitute it.
27580         * lib/dirent.in.h (fdopendir): Declare replacement.
27581         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27582         * tests/test-fdopendir.c (main): Test something other than
27583         /dev/null, since on Hurd that behaves like a directory.
27584
27585         test-symlink: port to GNU/Hurd
27586         * tests/test-symlink.h (test_symlink): Relax expected errno.
27587
27588         doc: tweak more cygwin information
27589         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27590         now compatible with glibc.
27591         * doc/posix-functions/getopt.texi (getopt): Likewise.
27592
27593         getopt-gnu: add another test
27594         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27595         guarantee behavior relied on by m4.
27596         * tests/test-getopt.c (main): Use it.
27597         * modules/getopt-posix-tests (Depends-on): Add setenv.
27598         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27599
27600         getopt: fix compilation on darwin
27601         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27602         include.
27603         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27604         Reported by Ludovic Courtès.
27605
27606 2009-10-06  Bruno Haible  <bruno@clisp.org>
27607
27608         * modules/size_max (Description): Discourage its use.
27609         Reported by Simon Josefsson.
27610
27611 2009-10-06  Jim Meyering  <meyering@redhat.com>
27612
27613         linkat: avoid compilation failure
27614         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27615
27616 2009-10-05  Eric Blake  <ebb9@byu.net>
27617
27618         linkat: support Linux 2.6.17
27619         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27620         linkat on Linux, but allow cache variable override.
27621         * lib/linkat.c (rpl_linkat): Define override.
27622         * modules/linkat (Depends-on): Add symlinkat.
27623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27624         * modules/unistd (Makefile.am): Substitute it.
27625         * lib/unistd.in.h (linkat): Declare replacement.
27626         Reported by Pádraig Brady.
27627
27628         quotearg: port test to systems with C.UTF-8 locale
27629         * tests/test-quotearg.c (struct result_strings): Add another
27630         member, differentiating between C.ASCII and C.UTF-8 handling.
27631         (compare_strings): Add parameter.
27632         (main): Adjust all callers.
27633
27634         getopt: avoid clash with FreeBSD _getopt_internal
27635         * lib/getopt.in.h (_getopt_internal): Override the name.
27636         * lib/getopt_int.h (includes): Pick up any overrides.
27637         Reported by Reuben Thomas.
27638
27639         hash: allow C89 compilation
27640         * lib/hash.c (check_tuning): Move declaration before statement.
27641         Reported by Reuben Thomas.
27642
27643 2009-10-05  Karl Berry  <karl@gnu.org>
27644
27645         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27646
27647 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27648             Bruno Haible  <bruno@clisp.org>
27649
27650         * lib/uname.c (uname): Use a table-driven algorithm to compute
27651         Windows NT versions.
27652
27653 2009-10-04  Bruno Haible  <bruno@clisp.org>
27654
27655         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27656         program_invocation_short_name.
27657         * modules/progname (configure.ac): Test for presence of
27658         program_invocation_short_name.
27659         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27660
27661 2009-10-04  Bruno Haible  <bruno@clisp.org>
27662
27663         * lib/progname.c (set_program_name): Fix comment.
27664         Reported by Jim Meyering.
27665
27666 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27667             Bruno Haible  <bruno@clisp.org>
27668
27669         * lib/uname.c: Include <string.h>.
27670         (uname): Do only one call to GetVersionEx in the common case.
27671
27672 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27673             Bruno Haible  <bruno@clisp.org>
27674
27675         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27676         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27677         (uname): Add support for Windows CE and various non-x86 CPU types.
27678
27679 2009-10-03  Bruno Haible  <bruno@clisp.org>
27680
27681         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27682         invocation to tests/configure.ac.
27683         Reported by Ian Beckwith <ianb@erislabs.net>.
27684
27685 2009-10-02  Eric Blake  <ebb9@byu.net>
27686
27687         fchdir: avoid compiler warning
27688         * lib/fchdir.c (canonicalize_file_name)
27689         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27690
27691         test-open: support mingw errno values
27692         * tests/test-open.h (test_open): Relax test.
27693         * tests/test-fopen.h (test_fopen): Likewise.
27694         * tests/test-openat-safer.c (main): Likewise.
27695
27696         open: fix opening directory on mingw
27697         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27698
27699         test-open: on GNU/Hurd, /dev/null is a directory
27700         * tests/test-fopen.h (main): Rename...
27701         (test_fopen): ...to this.  Use a guaranteed non-directory when
27702         confirming open behavior on trailing slash.
27703         * tests/test-openat-safer.c (main): Likewise.
27704         * tests/test-open.h (main): Likewise....
27705         (test_open): ...to this.
27706         * tests/test-fopen.c (main): Adjust caller.
27707         * tests/test-fopen-safer.c (main): Likewise.
27708         * tests/test-open.c (main): Likewise.
27709         * tests/test-fcntl-safer.c (main): Likewise.
27710         Reported by Samuel Thibault.
27711
27712         rename, fchdir: don't ignore chdir failure
27713         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27714         * lib/rename.c (rpl_rename) [W32]: Likewise.
27715         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27716         an empty destination directory if source cannot be renamed,
27717         although there is still possibility for failure.
27718         * doc/posix-functions/rename.texi (rename): Document the race.
27719         Reported by Jim Meyering.
27720
27721         maint: cleanup whitespace in recent commits
27722         * lib/rename.c (rpl_rename): Remove tabs.
27723         * tests/test-link.h (test_link): Likewise.
27724         * lib/fchdir.c (get_name): Likewise.
27725         Reported by Jim Meyering.
27726
27727 2009-10-02  Ben Pfaff  <blp@gnu.org>
27728
27729         relocatable-prog-wrapper: Add missing dependency on
27730         double-slash-root.
27731         * modules/relocatable-prog-wrapper: Add dependency.
27732         Reported by Ian Beckwith <ianb@erislabs.net>.
27733
27734 2009-10-02  Eric Blake  <ebb9@byu.net>
27735
27736         renameat: fix Solaris bugs
27737         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27738         needed fixing.
27739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27740         * modules/stdio (Makefile.am): Substitute it.
27741         * lib/stdio.in.h (renameat): Declare replacement.
27742         * lib/renameat.c (rpl_renameat): Implement fix.
27743
27744         renameat: new module
27745         * modules/renameat: New file.
27746         * lib/renameat.c (renameat): Likewise.
27747         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27749         * modules/stdio (Makefile.am): Substitute them.
27750         * lib/stdio.in.h (renameat): Declare it.
27751         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27752         * doc/posix-functions/renameat.texi (renameat): Likewise.
27753         * modules/renameat-tests: New test.
27754         * tests/test-renameat.c: Likewise.
27755
27756         rename: fix mingw bugs
27757         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27758         directory overwrite bugs.
27759
27760         rename: fix another cygwin 1.5 bug
27761         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27762         checks.
27763         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27764         unnecessary cygwin workarounds.  Also work around bug with moving
27765         full directory onto an empty one.
27766         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27767
27768         rename-dest-slash: merge into rename module
27769         * modules/rename-dest-slash (Status): Mark obsolete.
27770         (Depends-on): Add rename.
27771         (Files): Let rename do it all.
27772         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27773         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27774         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27775         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27776         * lib/rename.c (rpl_rename): Update comments.
27777
27778         rename: fix cygwin 1.5.x bugs
27779         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27780         * lib/rename.c (rpl_rename): Work around them.
27781         * modules/rename (Depends-on): Add same-inode.
27782
27783         rename: fix Solaris 10 bug
27784         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27785         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27786         was the only bug.
27787
27788         rename: fix Solaris 9 bug
27789         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27790         on non-directory.  Avoid calling exit.
27791         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27792         strdup.
27793         * modules/rename-tests (Depends-on): Drop lstat.
27794         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27795         (gl_PREREQ_RENAME): Delete unused macro.
27796
27797         rename-dest-slash: fix NetBSD bug
27798         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27799         links.
27800         * modules/rename-dest-slash (Depends-on): Add same-inode.
27801
27802         rename-tests: new test, exposes several platform bugs
27803         * modules/rename-tests: New file.
27804         * tests/test-rename.h: Likewise.
27805         * tests/test-rename.c: Likewise.
27806         * doc/posix-functions/rename.texi (rename): Improve documentation,
27807         including bugs that will eventually be fixed in gnulib.
27808
27809 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27810
27811         * lib/uname.c: Include <stdlib.h>
27812         (uname): Assume version info is available.
27813
27814 2009-10-02  Jim Meyering  <meyering@redhat.com>
27815
27816         gnu-web-doc-update: correct --help output
27817         * build-aux/gnu-web-doc-update: Make --help output relevant.
27818
27819         gnu-web-doc-update: add standard options
27820         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27821
27822         gnu-web-doc-update: New module.
27823         Use this script to automatically update the on-line web documentation
27824         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27825         * modules/gnu-web-doc-update: New file, from coreutils.
27826         * build-aux/gnu-web-doc-update: New script.
27827
27828 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27829
27830         link: LoadLibrary is not needed.
27831         * lib/link.c: Use GetModuleHandle.
27832
27833 2009-10-01  Eric Blake  <ebb9@byu.net>
27834
27835         getopt: bump serial number
27836         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27837         change.
27838
27839         tests: tighten link, rmdir, and remove tests
27840         * tests/test-link.h (includes): No need to use <config.h> here.
27841         Clean up if directory hard link was created, otherwise test for
27842         trailing '.'.
27843         * tests/test-linkat.c (main): Simplify.
27844         * tests/test-remove.c (main): Enhance test for trailing '.'.
27845         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27846
27847 2009-10-01  Jim Meyering  <meyering@redhat.com>
27848
27849         maint.mk: requiring "make major" was annoying, for a "minor" release.
27850         What is intended is "stable", to contrast with alpha and beta,
27851         so require "make stable", not "make major".
27852         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27853         (get_tool_versions): Likewise.
27854         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27855
27856 2009-09-30  Ben Pfaff  <blp@gnu.org>
27857
27858         Fix broken build of replacement for Windows tmpfile().
27859         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27860         flags argument added along with the 'mkostemp' module.
27861
27862 2009-09-28  Bruno Haible  <bruno@clisp.org>
27863
27864         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27865         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27866         to 'remove_elt'.
27867         (gl_list_remove): Update.
27868         * lib/gl_list.c (gl_list_remove): Update.
27869         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27870         to 'remove_elt'.
27871         (gl_oset_remove): Update.
27872         * lib/gl_list.c (gl_oset_remove): Update.
27873         Reported by Eric Blake.
27874
27875 2009-09-28  Eric Blake  <ebb9@byu.net>
27876
27877         doc: mention yet more cygwin 1.7 status
27878         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27879         cygwin.
27880         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27881         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27882
27883         argp: fix test failure
27884         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27885         that are not upper-case.  Pass correct range to tolower.
27886
27887 2009-09-27  Jim Meyering  <meyering@redhat.com>
27888
27889         test-yesno: work around sparc-dash here-document infelicity
27890         Without this change, the literal \177 byte in a here document
27891         would make dash 0.5.5.1-3 access uninitialized memory.
27892         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27893         Instead, use a marker, "@", and filter through tr to create the desired
27894         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27895
27896 2009-09-27  Bruno Haible  <bruno@clisp.org>
27897
27898         Disable untested support for new flavours of ACLs on AIX.
27899         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27900         progress.
27901         * lib/set-mode-acl.c (qset_acl): Likewise.
27902
27903 2008-12-07  Bruno Haible  <bruno@clisp.org>
27904
27905         Add support for new flavours of ACLs on AIX. (Untested.)
27906         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27907         (file_has_acl): Add support for newer AIX.
27908         * lib/set-mode-acl.c (qset_acl): Likewise.
27909         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27910         Rainer Tammer <tammer@tammer.net>.
27911
27912 2009-09-26  Eric Blake  <ebb9@byu.net>
27913
27914         argp: fix compilation of getopt
27915         * lib/getopt.in.h (includes): Use different guard than glibc.
27916         Reported by Sergey Poznyakoff.
27917
27918         doc: mention more cygwin 1.7 status
27919         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27920         bug.
27921         * doc/posix-functions/execl.texi (execl): Likewise.
27922         * doc/posix-functions/execle.texi (execle): Likewise.
27923         * doc/posix-functions/execlp.texi (execlp): Likewise.
27924         * doc/posix-functions/execv.texi (execv): Likewise.
27925         * doc/posix-functions/execve.texi (execve): Likewise.
27926         * doc/posix-functions/execvp.texi (execvp): Likewise.
27927         * doc/glibc-functions/canonicalize_file_name.texi
27928         (canonicalize_file_name): Cygwin 1.7 now provides this.
27929         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27930         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27931         on AT_SYMLINK_NOFOLLOW.
27932
27933 2009-09-24  Eric Blake  <ebb9@byu.net>
27934
27935         test-linkat: make test more robust
27936         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27937
27938         getopt: fix inclusion guards for cygwin
27939         * modules/getopt-posix (Depends-on): Add include-next.
27940         (Makefile.am): Substitute more items in replacement header.
27941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27942         <getopt.h>.
27943         * lib/getopt.in.h (includes): Use split inclusion guard, and
27944         prefer <getopt.h> over include <unistd.h> when one is present.
27945         (option): Also override name of 'struct option'.
27946
27947         same-inode: revert prior change; it is not yet ready
27948         * NEWS: Undo mention of this change.
27949         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27950         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27951         * lib/cycle-check.c (cycle_check): Likewise.
27952         * lib/same.c (same_name): Likewise.
27953         * lib/at-func2.c (at_func2): Likewise.
27954
27955 2009-09-23  Eric Blake  <ebb9@byu.net>
27956
27957         linkat: new module
27958         * modules/linkat: New file.
27959         * lib/at-func2.c (at_func2): Likewise.
27960         * lib/linkat.c (linkat): Likewise.
27961         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27962         * lib/openat-priv.h (at_func2): Add declaration.
27963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27964         * modules/unistd (Makefile.am): Substitute them.
27965         * lib/unistd.in.h (linkat): Declare it.
27966         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27967         * doc/posix-functions/linkat.texi (linkat): Likewise.
27968         * doc/posix-functions/link.texi (link): Tweak wording.
27969         * tests/test-link.c (main): Move guts...
27970         * tests/test-link.h (test_link): ...into new file.
27971         * modules/linkat-tests: New test.
27972         * tests/test-linkat.c: Likewise.
27973         * modules/link-tests (Files): Ship new file.
27974         (Depends-on): Add stdbool.
27975
27976         dirname: add library-safe mdir_name
27977         * lib/dirname.h (mdir_name): New prototype.
27978         * lib/dirname.c (dir_name): Move guts...
27979         (mdir_name): ...to new function that avoids xalloc_die.
27980
27981         fchdir: another mingw fix
27982         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27983         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27984         on mingw (where it has not yet been ported), and make it optional
27985         elsewhere.
27986         (_gl_register_fd): Use it.
27987
27988         same-inode: make SAME_INODE tri-state, to port to mingw
27989         * NEWS: Mention this change.
27990         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27991         st_ino always being 0.
27992         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27993         * lib/cycle-check.c (cycle_check): Likewise.
27994         * lib/same.c (same_name): Likewise.
27995
27996         lstat: avoid mingw compilation error
27997         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27998         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27999         lstat ourselves.
28000         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28001         was adequate.
28002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28003         the checks for lstat.
28004         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28005
28006         link: fix test failure on Solaris 9
28007         * lib/link.c (rpl_link): Don't assume link will catch bogus
28008         trailing slash on source.
28009
28010         test-symlinkat: enhance test
28011         * tests/test-readlink.c (main): Move guts...
28012         * tests/test-readlink.h (test_readlink): ...into new file.
28013         * tests/test-symlink.c (main): Move guts...
28014         * tests/test-symlink.h (test_symlink): ...into new file.
28015         * tests/test-symlinkat.c (main): Use new files for further
28016         coverage.
28017         (do_symlink, do_readlink): New helper functions.
28018         * modules/symlink-tests (Files): Ship new file.
28019         (Depends-on): Add stdbool.
28020         * modules/readlink-tests (Files): Ship new file.
28021         (Depends-on): Add stdbool.
28022         * modules/symlinkat-tests (Files): Use new files.
28023
28024 2009-09-23  Eric Blake  <ebb9@byu.net>
28025
28026         readlink: document portability issue with symlink length
28027         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28028         systems have bogus st_size on symlinks, and mention the
28029         areadlink-with-size module.
28030         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28031         * doc/posix-functions/readlink.texi (readlink): Mention the
28032         areadlink module, and ERANGE failure.
28033         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28034         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28035
28036         readlink: fix Solaris 9 bug with trailing slash
28037         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28038         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28039         * doc/posix-functions/readlink.texi (readlink): Document this.
28040         * modules/readlink-tests: New test.
28041         * tests/test-readlink.c: Likewise.
28042
28043         readlink: fix cygwin 1.5.x bug with return type
28044         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28045         * lib/unistd.in.h (readlink): Use ssize_t.
28046         * lib/readlink.c (readlink): Likewise.
28047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28048         * modules/unistd (Makefile.am): Substitute it.
28049         * lib/unistd.in.h (readlink): Declare replacement.
28050         * doc/posix-functions/readlink.texi (readlink): Document this.
28051
28052         symlink: use throughout gnulib
28053         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28054         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28055         symlink is not used.
28056         * modules/symlinkat (Depends-on): Add symlink.
28057         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28058         * modules/canonicalize-tests (Depends-on): Likewise.
28059         * modules/lstat-tests (Depends-on): Likewise.
28060         * modules/openat-tests (Depends-on): Likewise.
28061         * modules/remove-tests (Depends-on): Likewise.
28062         * modules/rmdir-tests (Depends-on): Likewise.
28063         * modules/unlink-tests (Depends-on): Likewise.
28064         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28065         * tests/test-canonicalize.c (symlink): Likewise.
28066         * tests/test-fstatat.c (symlink): Likewise.
28067         * tests/test-lstat.c (symlink): Likewise.
28068         * tests/test-remove.c (symlink): Likewise.
28069         * tests/test-rmdir.c (symlink): Likewise.
28070         * tests/test-unlink.c (symlink): Likewise.
28071         * tests/test-unlinkat.c (symlink): Likewise.
28072
28073         symlink: new module, for Solaris 9 bug
28074         * modules/symlink: New file.
28075         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28076         * lib/symlink.c: Likewise.
28077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28078         * modules/unistd (Makefile.am): Substitute them.
28079         * lib/unistd.in.h (symlink): Declare replacement.
28080         * MODULES.html.sh (File system functions): Mention it.
28081         * doc/posix-functions/symlink.texi (symlink): Likewise.
28082         * modules/symlink-tests: New test.
28083         * tests/test-symlink.c: Likewise.
28084
28085 2009-09-23  Bruno Haible  <bruno@clisp.org>
28086
28087         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28088         when needed.
28089         Test case: gnulib-tool --import --with-tests atexit inttypes.
28090         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28091
28092 2009-09-23  Bruno Haible  <bruno@clisp.org>
28093
28094         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28095         subcommand, not in a subshell.
28096
28097 2009-09-22  Eric Blake  <ebb9@byu.net>
28098
28099         unistd: sort replacement declarations
28100         * lib/unistd.in.h: Sort declarations.
28101
28102         open, openat: minor optimization
28103         * lib/open.c (open): If open succeeded, len is non-zero.
28104         * lib/openat.c (rpl_openat): Likewise.
28105
28106         link-follow: ensure correct result
28107         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28108         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28109         distinguish between possible failures.
28110
28111 2009-09-21  Eric Blake  <ebb9@byu.net>
28112
28113         fts: avoid compiler warning
28114         * lib/fts.c (dirent_inode_sort_may_be_useful)
28115         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28116
28117 2009-09-19  Bruno Haible  <bruno@clisp.org>
28118
28119         * lib/progreloc.c (canonicalize_file_name): New declaration.
28120
28121 2009-09-19  Eric Blake  <ebb9@byu.net>
28122
28123         link: fix quoting
28124         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28125
28126         openat: fix openat bugs on Solaris 9
28127         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28128         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28129         * modules/openat (Depends-on): Add open.
28130         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28131         * modules/fcntl-h (Makefile.am): Substitute it.
28132         * lib/fcntl.in.h (openat): Declare replacement.
28133         * doc/posix-functions/openat.texi (openat): Document this.
28134
28135         openat: move fstatat and unlinkat into correct files
28136         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28137         compiled.
28138         * lib/openat.c (fstatat, unlinkat): Move...
28139         * lib/fstatat.c (fstatat): ...into correct files.
28140         * lib/unlinkat.c (unlinkat): Likewise.
28141
28142         openat: fix unlinkat bugs on Solaris 9
28143         * lib/unlinkat.c (unlinkat): New file.
28144         * modules/openat (Depends-on): Add unlink.
28145         (Files): Distribute it.
28146         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28147         trailing slash behavior is broken.
28148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28149         * modules/unistd (Makefile.am): Substitute it.
28150         * lib/unistd.in.h (unlinkat): Declare replacement.
28151         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28152
28153         openat: fix fstatat bugs on Solaris 9
28154         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28155         stat.
28156         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28157
28158         test-unlinkat: enhance test, to expose Solaris 9 bug
28159         * tests/test-unlink.c (main): Factor guts...
28160         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28161         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28162         * tests/test-rmdir.c (main): Adjust caller.
28163         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28164         (unlinker): New helper function.
28165         (rmdirat): Enhance check.
28166         * modules/rmdir-tests (Depends-on): Add stdbool.
28167         * modules/unlink-tests (Depends-on): Likewise.
28168         (Files): Add test-unlink.h.
28169         * modules/openat-tests (Files): Likewise.
28170         (Depends-on): Add unlinkdir.
28171
28172         test-fstatat: new test, to expose Solaris 9 bugs
28173         * tests/test-stat.c (main): Factor guts...
28174         * tests/test-stat.h (test_stat_func): ...into new file.
28175         * tests/test-lstat.c (main): Factor guts...
28176         * tests/test-lstat.h (test_lstat_func): ...into new file.
28177         * tests/test-fstatat.c: New file.
28178         * modules/stat-tests (Files): Add test-stat.h.
28179         * modules/lstat-tests (Files): Add test-lstat.h.
28180         (Depends-on): Add stdbool.
28181         * modules/openat-tests (Depends-on): Add pathmax.
28182         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28183         (Makefile.am): Run new test.
28184
28185         remove: new module, for mingw and Solaris 9 bugs
28186         * modules/remove: New file.
28187         * lib/remove.c: Likewise.
28188         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28190         * modules/stdio (Makefile.am): Use them.
28191         * lib/stdio.in.h (remove): Declare replacement.
28192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28193         * doc/posix-functions/remove.texi (remove): Likewise.
28194         * modules/remove-tests: New test.
28195         * tests/test-remove.c: Likewise.
28196
28197         unlink: new module, for Solaris 9 bug
28198         * modules/unlink: New file.
28199         * lib/unlink.c: Likewise.
28200         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28202         * modules/unistd (Makefile.am): Use them.
28203         * lib/unistd.in.h (stat): Declare replacement.
28204         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28205         * doc/posix-functions/unlink.texi (unlink): Likewise.
28206         * modules/unlink-tests: New test.
28207         * tests/test-unlink.c: Likewise.
28208
28209         lstat: fix Solaris 9 bug
28210         * lib/lstat.c (lstat): Also check for trailing slash on
28211         non-symlink, non-directories.  Use stat module to simplify logic.
28212         * doc/posix-functions/lstat.texi (lstat): Document it.
28213         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28214         (configure.ac): Check for symlink.
28215         * tests/test-lstat.c (main): Add more tests.
28216
28217         stat: add as dependency to other modules
28218         * modules/chown (Depends-on): Add stat.
28219         * modules/euidaccess (Depends-on): Likewise.
28220         * modules/fchdir (Depends-on): Likewise.
28221         * modules/isdir (Depends-on): Likewise.
28222         * modules/link (Depends-on): Likewise.
28223         * modules/lstat (Depends-on): Likewise.
28224         * modules/mkdir-p (Depends-on): Likewise.
28225         * modules/modechange (Depends-on): Likewise.
28226         * modules/open (Depends-on): Likewise.
28227         * modules/readlink (Depends-on): Likewise.
28228         * modules/same (Depends-on): Likewise.
28229
28230         stat: fix Solaris 9 bug
28231         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28232         slash.
28233         * lib/stat.c (rpl_stat): Work around it.
28234         * doc/posix-functions/stat.texi (stat): Update documentation.
28235
28236         stat: new module, for mingw bug
28237         * modules/stat: New file.
28238         * lib/stat.c: Likewise.
28239         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28240         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28241         * modules/sys_stat (Makefile.am): Use them.
28242         * lib/sys_stat.in.h (stat): Declare replacement.
28243         * lib/openat.c (fstatat): Deal with lstat and stat being function
28244         macros.
28245         * modules/openat (Depends-on): Add inline.
28246         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28247         * doc/posix-functions/stat.texi (stat): Likewise.
28248         * modules/stat-tests: New test.
28249         * tests/test-stat.c: Likewise.
28250
28251 2009-09-19  Jim Meyering  <meyering@redhat.com>
28252
28253         syntax-check: detect unnecessary inclusion of canonicalize.h
28254         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28255
28256 2009-09-19  Eric Blake  <ebb9@byu.net>
28257
28258         canonicalize-lgpl: adjust clients to use correct header
28259         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28260         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28261         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28262         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28263         * lib/progreloc.c (includes): Likewise.
28264
28265 2009-09-19  Jim Meyering  <meyering@redhat.com>
28266
28267         test-posixtm.c: correct a comment
28268         * tests/test-posixtm.c: Correct first-line comment.
28269         Spotted by Eric Blake.
28270
28271 2009-09-16  Jim Meyering  <meyering@redhat.com>
28272
28273         posixtm-tests: make T const-correct; add a test case
28274         * tests/test-posixtm.c (T): Declare const.
28275         Add a test for -(2^31+1).
28276         Remove useless can-succeed-only-in-2002 test.
28277
28278         posixtm-tests: adjust the sole failing test
28279         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28280         expected output matches what mktime now produces.  Cross-checked via
28281         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28282
28283         posixtm: move #ifdef'd tests into a new module
28284         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28285         * tests/test-posixtm.c: ... this new file.
28286         * modules/posixtm-tests: New module.
28287
28288 2009-09-19  Eric Blake  <ebb9@byu.net>
28289
28290         openat: simplify use of at-func.c
28291         * lib/at-func.c (includes): Include prerequisites here, to
28292         simplify requirements on client files.
28293         * lib/openat-priv.h: Add double-inclusion guard.
28294         * lib/faccessat.c (includes): Simplify.
28295         * lib/fchmodat.c (includes): Likewise.
28296         * lib/fchownat.c (includes): Likewise.
28297         * lib/mkdirat.c (includes): Likewise.
28298         * lib/mkfifoat.c (includes): Likewise.
28299         * lib/symlinkat.c (includes): Likewise.
28300
28301         openat: allow return of fd 0
28302         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28303         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28304         unistd-safer.
28305         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28306         <fcntl.h>; this module does not leak fds.
28307         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28308         must be allowed to return 0, leaving openat_safer to add the
28309         safety.
28310         (openat_permissive): Avoid writing to just-opened fd 2 if
28311         restoring the current directory fails.
28312         * lib/openat-die.c (openat_restore_fail): Add comment.
28313         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28314         (save_cwd): Guarantee safe fd, but without use of open_safer.
28315         * tests/test-openat.c: New test.
28316         * modules/openat-tests (Files, Makefile.am): Distribute and build
28317         new file.
28318
28319         relocatable-prog-wrapper: fix build
28320         * modules/relocatable-prog-wrapper (Files): Update name of
28321         canonicalize m4 file, broken on 2009-09-17.
28322         Reported by emad hajjar <aleppos@hotmail.com>.
28323
28324 2009-09-19  Bruno Haible  <bruno@clisp.org>
28325
28326         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28327         * lib/safe-alloc.c: Likewise.
28328         Reported by Ian Beckwith <ianb@erislabs.net>.
28329
28330 2009-09-18  Bruno Haible  <bruno@clisp.org>
28331
28332         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28333         Reported by <erobles@sensacd.com.mx>.
28334
28335 2009-09-17  Eric Blake  <ebb9@byu.net>
28336
28337         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28338         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28339         slashes when checking if last component is missing.
28340         * tests/test-canonicalize.c (main): Test this.
28341
28342         canonicalize, canonicalize-lgpl: honor // if distinct from /
28343         * modules/canonicalize (Files): Add double-slash-root.m4.
28344         * modules/canonicalize-lgpl (Files): Likewise.
28345         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28346         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28347         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28348         fallback definition.
28349         (canonicalize_filename_mode): Use it to protect //.
28350         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28351         (__realpath): Likewise.
28352         * tests/test-canonicalize.c (main): Test this.
28353         * tests/test-canonicalize-lgpl.c (main): Likewise.
28354         * modules/canonicalize-tests (Depends-on): Add same-inode.
28355         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28356
28357         canonicalize-lgpl: fix glibc bug with trailing slash
28358         * m4/canonicalize-lgpl.m4: Move contents...
28359         * m4/canonicalize.m4: ...here.
28360         (gl_CANONICALIZE_LGPL): Factor realpath check...
28361         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28362         glibc 2.3.5 bug, fixed 2005-04-27.
28363         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28364         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28365         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28366         * modules/canonicalize-lgpl (Files): Manage file rename.
28367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28368         * modules/stdlib (Makefile.am): Substitute witness.
28369         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28370         is needed.
28371         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28372         replacement is required.
28373         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28374         * doc/glibc-functions/canonicalize_file_name.texi
28375         (canonicalize_file_name): Document this.
28376         * doc/posix-functions/realpath.texi (realpath): Likewise.
28377
28378         canonicalize-lgpl: reject non-directory with trailing slash
28379         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28380         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28381         catches failures in glibc 2.3.5.
28382         * tests/test-canonicalize.c (main): Likewise.
28383
28384         canonicalize-lgpl: use native realpath if it works
28385         * lib/canonicalize-lgpl.c (realpath): Guard with
28386         FUNC_REALPATH_WORKS.
28387         * lib/stdlib.in.h (realpath): Make declaration optional based on
28388         HAVE_REALPATH.
28389         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28390         native realpath works.
28391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28392         * modules/stdlib (Makefile.am): Substitute witness.
28393
28394         canonicalize, canonicalize-lgpl: use <stdlib.h>
28395         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28396         (Include): Mention <stdlib.h>.
28397         (configure.ac): Mention functions we provide.
28398         * modules/canonicalize (configure.ac): Likewise.
28399         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28400         realpath if canonicalize_file_name is missing.
28401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28402         * modules/stdlib (Makefile.am): Substitute witnesses.
28403         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28404         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28405         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28406         * NEWS: Document this.
28407         * doc/glibc-functions/canonicalize_file_name.texi
28408         (canonicalize_file_name): Likewise.
28409         * doc/posix-functions/realpath.texi (realpath): Likewise.
28410         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28411
28412         test-canonicalize: consolidate into single C program
28413         * tests/test-canonicalize.sh: Delete; move setup into...
28414         * tests/test-canonicalize.c (main): ...the program, making it
28415         easier to run in debugger.  Add some tests.
28416         * modules/canonicalize-tests (Files): Remove unused file.
28417         (Depends-on): Add progname.
28418         (configure.ac, Makefile.am): Simplify.
28419
28420         test-canonicalize-lgpl: consolidate into single C program
28421         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28422         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28423         easier to run in debugger.  Add some tests.
28424         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28425         (configure.ac, Makefile.am): Simplify.
28426
28427         canonicalize: avoid resolvepath
28428         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28429         unnecessary checks.
28430         * lib/canonicalize.c (includes): Simplify.
28431         (canonicalize_file_name): Drop resolvepath implementation.
28432         * modules/canonicalize (Depends-on): Drop filenamecat.
28433
28434         canonicalize: don't lose errno
28435         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28436         over calls to free.
28437
28438         canonicalize: simplify errno handling
28439         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28440         assignment.
28441
28442         canonicalize, canonicalize-lgpl: update module dependencies
28443         * modules/canonicalize (Depends-on): Add extensions, lstat,
28444         pathmax, stdlib.
28445         (Files): Drop pathmax.h.
28446         (configure.ac): Adjust macro name.
28447         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28448         lstat, stdlib, sys_stat.
28449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28450         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28451         extensions.
28452         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28453         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28454         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28455         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28456         declaration, if available.
28457         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28458         we can rely on the readlink module.
28459         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28460         (includes): Use <unistd.h> unconditionally.
28461
28462 2009-09-17  Eric Blake  <ebb9@byu.net>
28463
28464         maint: make Include sections of modules consistent
28465         * modules/alloca: Use only header name; no need to list #include.
28466         * modules/alloca-opt: Likewise.
28467         * modules/arpa_inet: Likewise.
28468         * modules/canon-host: Likewise.
28469         * modules/configmake: Likewise.
28470         * modules/dirent: Likewise.
28471         * modules/eealloc: Likewise.
28472         * modules/environ: Likewise.
28473         * modules/fchdir: Likewise.
28474         * modules/fcntl: Likewise.
28475         * modules/fcntl-h: Likewise.
28476         * modules/gethrxtime: Likewise.
28477         * modules/gettime: Likewise.
28478         * modules/ignore-value: Likewise.
28479         * modules/inet_ntop: Likewise.
28480         * modules/inet_pton: Likewise.
28481         * modules/inttypes: Likewise.
28482         * modules/isnand-nolibm: Likewise.
28483         * modules/isnanf-nolibm: Likewise.
28484         * modules/mbchar: Likewise.
28485         * modules/mbfile: Likewise.
28486         * modules/mbiter: Likewise.
28487         * modules/mbuiter: Likewise.
28488         * modules/netdb: Likewise.
28489         * modules/netinet_in: Likewise.
28490         * modules/nproc: Likewise.
28491         * modules/pagealign_alloc: Likewise.
28492         * modules/poll: Likewise.
28493         * modules/printf-frexp: Likewise.
28494         * modules/pthread: Likewise.
28495         * modules/putenv: Likewise.
28496         * modules/random_r: Likewise.
28497         * modules/relocatable-prog: Likewise.
28498         * modules/search: Likewise.
28499         * modules/select: Likewise.
28500         * modules/selinux-h: Likewise.
28501         * modules/settime: Likewise.
28502         * modules/signal: Likewise.
28503         * modules/size_max: Likewise.
28504         * modules/socklen: Likewise.
28505         * modules/ssize_t: Likewise.
28506         * modules/stdarg: Likewise.
28507         * modules/stdbool: Likewise.
28508         * modules/stddef: Likewise.
28509         * modules/stdint: Likewise.
28510         * modules/stdio: Likewise.
28511         * modules/stdlib: Likewise.
28512         * modules/string: Likewise.
28513         * modules/strings: Likewise.
28514         * modules/sys_file: Likewise.
28515         * modules/sys_ioctl: Likewise.
28516         * modules/sys_select: Likewise.
28517         * modules/sys_socket: Likewise.
28518         * modules/sys_stat: Likewise.
28519         * modules/sys_time: Likewise.
28520         * modules/sys_times: Likewise.
28521         * modules/sys_utsname: Likewise.
28522         * modules/sys_wait: Likewise.
28523         * modules/sysexits: Likewise.
28524         * modules/time: Likewise.
28525         * modules/times: Likewise.
28526         * modules/tmpfile: Likewise.
28527         * modules/trim: Likewise.
28528         * modules/unistd: Likewise.
28529         * modules/wchar: Likewise.
28530         * modules/wctype: Likewise.
28531
28532 2009-09-17  Bruno Haible  <bruno@clisp.org>
28533
28534         Make getdate.y compile on QNX and NetBSD 5 / i386.
28535         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28536         TIME_T_FITS_IN_LONG_INT.
28537         * lib/getdate.y (long_time_t): New type.
28538         (relative_time): Change type of 'seconds' field to long_time_t.
28539         (get_date): Update types of local variables. Check against overflow
28540         during conversion from long_time_t to time_t.
28541         Reported by Matt Kraai <kraai@ftbfs.org>
28542         and Hasso Tepper <hasso@netbsd.org>.
28543
28544 2009-09-17  Bruno Haible  <bruno@clisp.org>
28545
28546         * modules/COPYING: Update copyright years.
28547         * modules/README: Likeiwse.
28548         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28549         Reported by Ian Beckwith <ianb@erislabs.net>.
28550
28551 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28552
28553         * users.txt: Update references for gnuit package.
28554
28555 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28556
28557         * m4/getdelim.m4: Fix typo in copyright line.
28558
28559 2009-09-17  Bruno Haible  <bruno@clisp.org>
28560
28561         * lib/atoll.c: Use the standard header with GPL copyright.
28562         * lib/argz.in.h: Likewise.
28563         * lib/glob.c: Likewise.
28564         * lib/glob-libc.h: Likewise.
28565         * lib/random_r.c: Likewise.
28566         * lib/siglist.h: Likewise.
28567         * lib/strsignal.c: Likewise.
28568         Reported by Ian Beckwith <ianb@erislabs.net>.
28569
28570 2009-09-17  Eric Blake  <ebb9@byu.net>
28571
28572         rmdir: ensure correct dependency order
28573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28574
28575 2009-09-17  Bruno Haible  <bruno@clisp.org>
28576
28577         Disable assertion that fails on NetBSD 5 / i386.
28578         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28579         Reported by Sam Steingold <sds@gnu.org>
28580         and Hasso Tepper <hasso@netbsd.org>.
28581
28582 2009-09-16  Eric Blake  <ebb9@byu.net>
28583
28584         unlinkdir: port to mingw
28585         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28586         on which no one can unlink a directory.
28587
28588         stdlib: sort witness names
28589         * modules/stdlib (Makefile.am): Sort replacements.
28590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28591         * lib/stdlib.in.h: Likewise.
28592
28593         parse-duration-tests: avoid link failure
28594         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28595         LIBINTL.
28596         Reported by Tom G. Christensen.
28597
28598         openat-tests: ensure unlinkat behaves like rmdir
28599         * tests/test-rmdir.c (main): Factor guts...
28600         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28601         * modules/rmdir-tests (Files): Ship new file.
28602         * modules/openat-tests: New test.
28603         * tests/test-unlinkat.c: Likewise.
28604
28605         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28606         * modules/rmdir-errno (Status, Notice): Now obsolete.
28607
28608         rmdir: work around cygwin 1.5.x and mingw bugs
28609         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28610         * lib/rmdir.c (rmdir): Work around it.
28611         * modules/rmdir (Status, Notice): No longer obsolete.
28612         (Files): Add dos.m4.
28613         (Depends-on): Add unistd.
28614         (configure.ac): Set witnesses.
28615         (License): Relax to LGPLv2+.
28616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28617         * modules/unistd (Makefile.am): Substitute witnesses.
28618         * lib/unistd.in.h (rmdir): Declare replacement.
28619         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28620         * modules/rmdir-tests: New tests.
28621         * tests/test-rmdir.c: Likewise.
28622
28623 2009-09-15  Eric Blake  <ebb9@byu.net>
28624
28625         fchdir: improve use of replacement functions
28626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28628         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28629         REPLACE_CLOSEDIR.
28630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28631         * modules/sys_stat (Makefile.am): Substitute correct witness.
28632         * modules/dirent (Makefile.am): Likewise.
28633         * modules/unistd (Makefile.am): Likewise.
28634         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28635         * lib/unistd.in.h (dup): Likewise.
28636         * lib/sys_stat.in.h (fstat): Likewise.
28637
28638         maint: ignore gnulib-tool temp files
28639         * .gitignore: Ignore files created during gnulib-tool --test.
28640
28641 2009-09-13  Jim Meyering  <meyering@redhat.com>
28642
28643         posixtm: don't reject a time that specify "60" as the number of seconds
28644         * lib/posixtm.c (posixtime): The code to reject invalid dates
28645         would also reject a time specified with the .60 suffix.
28646         But POSIX allows that, in order to accommodate leap seconds.
28647         So don't reject it.
28648         (main): Adjust tests accordingly.
28649         * modules/posixtm (Depends-on): Add stpcpy.
28650
28651 2009-09-11  Jim Meyering  <meyering@redhat.com>
28652
28653         announce-gen: include [$release_type] in emitted Subject:
28654         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28655         e.g., [stable] in the emitted Subject: line.
28656
28657 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28658
28659         Remove obsolete macros from several modules.
28660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28661         obsolete Autoconf macros with their modern counterparts.
28662         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28663         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28665         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28666         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28669         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28670         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28671         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28672         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28674         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28675         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28676         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28677         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28678         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28679         * m4/time_r.m4 (gl_TIME_R): Likewise.
28680         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28681         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28682         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28683
28684         Fix copyright header in build-aux scripts.
28685         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28686         recommendation.
28687         * build-aux/ncftpput-ftp: Likewise.
28688         * build-aux/update-copyright: Likewise.
28689
28690 2009-09-09  Eric Blake  <ebb9@byu.net>
28691
28692         test-link: allow Linux choice of errno
28693         * tests/test-link.c (main): Relax test for alternate error.
28694
28695         strndup: fix improper m4 caching
28696         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28697         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28698         (gl_PREREQ_STRNDUP): Delete.
28699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28700         * modules/string (Makefile.am): Substitute it.
28701         * lib/string.in.h (strndup): Modernize prototype.
28702
28703         getcwd: port to mingw
28704         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28705         different from the POSIX assumptions made throughout the getcwd
28706         module; fortunately, the mingw getcwd does not need replacement.
28707         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28708         * modules/getcwd-tests: New test.
28709         * tests/test-getcwd.c: Likewise.
28710
28711         link: fix platform bugs
28712         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28713         * lib/link.c (link): Work around them.  Fix related mingw bug.
28714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28715         * modules/unistd (Makefile.am): Substitute it.
28716         * lib/unistd.in.h (link): Declare replacement.
28717         * doc/posix-functions/link.texi (link): Document this.
28718         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28719
28720         test-link: consolidate into single C program, test more cases
28721         * tests/test-link.sh: Delete.
28722         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28723         at least Cygwin and Solaris.
28724         * modules/link-tests (Files): Remove unused file.
28725         (Depends-on): Add errno, sys_stat.
28726         (Makefile.am): Simplify.
28727
28728 2009-09-08  Bruno Haible  <bruno@clisp.org>
28729
28730         Work around towlower, towupper bug on mingw.
28731         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28732         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28733         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28734         * doc/posix-functions/towupper.texi: Likewise.
28735         Reported by Eric Blake.
28736
28737 2009-09-08  Jim Meyering  <meyering@redhat.com>
28738
28739         build: don't try to run autoheader if we don't use it
28740         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28741         is not used in configure.ac.
28742
28743 2009-09-08  Eric Blake  <ebb9@byu.net>
28744
28745         euidaccess: fix compilation error
28746         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28747
28748         rawmemchr: relax license
28749         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28750         okay.
28751         Reported by Jim Meyering.
28752
28753         mkfifoat: new module
28754         * modules/mkfifoat: New file.
28755         * lib/mkfifoat.c: Likewise.
28756         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28758         * modules/sys_stat (Makefile.am): Use them.
28759         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28760         * MODULES.html.sh (File system functions): Mention module.
28761         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28762         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28763         * modules/mkfifoat-tests: New test.
28764         * tests/test-mkfifoat.c: Likewise.
28765
28766         strchrnul: relax license
28767         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28768         okay.
28769         Reported by Jim Meyering.
28770
28771 2009-09-08  Eric Blake  <ebb9@byu.net>
28772
28773         fstatat: fix compilation on Solaris
28774         * lib/fstatat.c (includes): Add fcntl.h.
28775         Reported by Pádraig Brady.
28776
28777 2009-09-07  Eric Blake  <ebb9@byu.net>
28778
28779         rename: modernize replacement
28780         * modules/rename (Depends-on): Add stdio.
28781         (configure.ac): Declare witness.
28782         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28783         stdio take care of replacement.
28784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28785         * modules/stdio (Makefile.am): Substitute them.
28786         * lib/stdio.in.h (rename): Declare replacement.
28787         * lib/rename.c (includes): Allow cross-compilation to non-windows
28788         machines.
28789         * doc/posix-functions/rename.texi (rename): Improve
28790         documentation.
28791
28792         stdio: sort witness names
28793         * modules/stdio (Makefile.am): Sort replacements.
28794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28795         * lib/stdio.in.h: Likewise.
28796
28797         getcwd: minor cleanups
28798         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28799         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28800
28801         openat: provide more convenience names
28802         * modules/faccessat (configure.ac): Add C witness.
28803         * lib/unistd.in.h (readlinkat): Fix typo.
28804         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28805         convenience wrappers.
28806         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28807         wrappers in syntax checks.
28808
28809 2009-09-06  Eric Blake  <ebb9@byu.net>
28810
28811         doc: fix comments in recent patches
28812         * lib/faccessat.c: Mention correct function.
28813         * lib/fchmodat.c: Likewise.
28814         * lib/fchownat.c: Likewise.
28815         * lib/symlinkat.c: Likewise.
28816         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28817         constants.
28818
28819         faccessat, symlinkat: continue cleanup of previous patch
28820         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28821         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28822         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28824         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28825         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28826         set.
28827
28828 2009-09-06  Bruno Haible  <bruno@clisp.org>
28829
28830         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28831         (fstatat): Declare if GNULIB_FSTATAT is set.
28832         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28833         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28834         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28835         * modules/fcntl-h (Files): Remove m4/openat.m4.
28836         * modules/sys_stat (Files): Remove m4/openat.m4.
28837         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28838         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28839         * modules/unistd (Files): Remove m4/openat.m4.
28840         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28841         GNULIB_OPENAT.
28842         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28843         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28844         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28845         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28846         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28847         gl_OPENAT_DEFAULTS.
28848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28849         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28850         Don't require gl_OPENAT_DEFAULTS.
28851         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28852         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28853         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28854         (gl_OPENAT_DEFAULTS): Remove macro.
28855
28856 2009-09-06  Bruno Haible  <bruno@clisp.org>
28857
28858         * modules/openat (configure.ac): Remove unneeded witness.
28859
28860 2009-09-06  Bruno Haible  <bruno@clisp.org>
28861
28862         Set errno to ENOSYS when a function is entirely unsupported.
28863         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28864         EOPNOTSUPP.
28865         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28866         * modules/chown (Depends-on): Remove errno.
28867
28868 2009-09-06  Bruno Haible  <bruno@clisp.org>
28869
28870         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28871
28872 2009-09-06  Bruno Haible  <bruno@clisp.org>
28873
28874         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28875
28876 2009-09-06  Ben Pfaff  <blp@gnu.org>
28877             Bruno Haible  <bruno@clisp.org>
28878
28879         Work around a glibc bug in strtok_r.
28880         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28881         Undefine if UNDEFINE_STRTOK_R is set.
28882         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28884         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28885         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28886         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28887         UNDEFINE_STRTOK_R.
28888         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28889
28890 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28891
28892         exclude: minor fix
28893         * lib/exclude.c: Include wctype.h
28894
28895 2009-09-06  Akim Demaille  <demaille@gostai.com>
28896
28897         bootstrap: improve error message
28898         * build-aux/bootstrap (find_tool): Upon failure, report the list
28899         of candidates.
28900         Honor the initial value of the envvar.
28901
28902 2009-09-05  Eric Blake  <ebb9@byu.net>
28903
28904         symlinkat: new module
28905         * modules/symlinkat: New file.
28906         * lib/symlinkat.c: Likewise.
28907         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28909         * modules/unistd (Makefile.am): Use them.
28910         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28911         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28912         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28913         * MODULES.html.sh (File system functions): Mention module.
28914         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28915         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28916         * modules/symlinkat-tests: New test.
28917         * tests/test-symlinkat.c: Likewise.
28918
28919         test-openat-safer: add more checks
28920         * tests/test-openat-safer.c (main): Check more code paths.
28921
28922 2009-09-05  Jim Meyering  <meyering@redhat.com>
28923
28924         syntax-check: detect unnecessary inclusion of openat.h
28925         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28926
28927 2009-09-05  Bruno Haible  <bruno@clisp.org>
28928
28929         Support towlower, towupper.
28930         * doc/posix-functions/towlower.texi: Mention module wctype.
28931         * doc/posix-functions/towupper.texi: Likewise.
28932         * lib/wctype.in.h (towlower, towupper): New functions.
28933         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28934         (ASSERT): New macro.
28935         (e): New variable.
28936         (main): Test also towlower, towupper. Test WEOF argument.
28937         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28938
28939 2009-09-05  Bruno Haible  <bruno@clisp.org>
28940
28941         Fix conversion behaviour when the input is invalid.
28942         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28943         mark occurring in first pass of indirect conversion.
28944         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28945         input.
28946         Found by clang's static analyzer.
28947
28948 2009-09-05  Bruno Haible  <bruno@clisp.org>
28949
28950         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28951         where direct conversion is possible.
28952
28953 2009-09-04  Eric Blake  <ebb9@byu.net>
28954
28955         openat: fail with ENOENT on empty name
28956         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28957         buffer.
28958
28959         link-follow: fix logic bug in prior patch
28960         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28961         reversed sense of yes and no in prior patch.  Avoid confusing
28962         compilation failure with desired semantics.
28963
28964         link-follow: accomodate mingw and cross-compilation
28965         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28966         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28967         cross-compilation results to -1, to make linkat easier to
28968         implement when cross-compiling.  Trivially support mingw.
28969         * modules/link-follow (configure.ac): Call new name.
28970         * NEWS: Mention this.
28971
28972 2009-09-03  Eric Blake  <ebb9@byu.net>
28973
28974         faccessat: compile replacement
28975         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28976         needed.
28977
28978         fts: fix compilation error
28979         * lib/fts.c (includes): Re-add "openat.h", for
28980         openat_needs_fchdir.
28981
28982         faccessat: new module
28983         * modules/faccessat: New file.
28984         * lib/faccessat.c: Likewise.
28985         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28987         * modules/unistd (Makefile.am): Use it.
28988         * lib/unistd.in.h (faccessat): Declare it.
28989         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28990         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28991         * MODULES.html.sh (File system functions): Mention it.
28992         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28993         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28994
28995         euidaccess: prefer POSIX over non-standard implementation
28996         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28997         * lib/euidaccess.c (euidaccess): Use it if available.
28998
28999         openat: make template easier to use
29000         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29001         AT_FUNC_F2 to be undefined.
29002         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29003         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29004         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29005         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29006         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29007         Likewise.
29008         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29009         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29010         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29011         Likewise.
29012
29013         openat: declare in POSIX headers
29014         * NEWS: Mention this.
29015         * modules/openat (configure.ac): Declare witnesses.
29016         (Depends-on): Add fcntl-h, sys_stat, unistd.
29017         (Include): Mention correct headers.
29018         * modules/fcntl-h (Depends-on): Add link-warning.
29019         (Files): Add openat.m4.
29020         (Makefile.am): Substitute witnesses.
29021         * modules/sys_stat (Files, Makefile.am): Likewise.
29022         * modules/unistd (Files, Makefile.am): Likewise.
29023         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29024         (gl_OPENAT_DEFAULTS): New macro.
29025         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29028         (SYS_STAT_H): Remove unused variable.
29029         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29030         * lib/fcntl--.h (includes): Remove unneeded header.
29031         * lib/openat-safer.c (includes): Likewise.
29032         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29033         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29034         appropriate headers.
29035         (__OPENAT_PREFIX): Delete.
29036         * lib/fcntl.in.h (openat): Provide declaration.
29037         (AT_FDCWD): Fix Solaris bug.
29038         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29039         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29040         * lib/fchmodat.c (includes):  Adjust to find declaration.
29041         * lib/fchownat.c (includes): Likewise.
29042         * lib/mkdirat.c (includes): Likewise.
29043         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29044         still visible.
29045
29046 2009-09-02  Eric Blake  <ebb9@byu.net>
29047
29048         errno: use consistently
29049         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29050         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29051         * lib/canonicalize.c (ELOOP): Likewise.
29052         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29053         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29054         * lib/lchown.c (EOPNOTSUPP): Likewise.
29055         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29056         * lib/savewd.c (ESTALE): Likewise.
29057         * lib/settime.c (ENOSYS): Likewise.
29058         * lib/utimens.c (ENOSYS): Likewise.
29059         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29060         * lib/chdir-safer.c (ELOOP): Likewise.
29061         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29062         * modules/c-stack (Depends-on): Add errno.
29063         * modules/canonicalize (Depends-on): Likewise.
29064         * modules/chdir-safer (Depends-on): Likewise.
29065         * modules/fdopendir (Depends-on): Likewise.
29066         * modules/inet_ntop (Depends-on): Likewise.
29067         * modules/inet_pton (Depends-on): Likewise.
29068         * modules/lchown (Depends-on): Likewise.
29069         * modules/openat (Depends-on): Likewise.
29070         * modules/savewd (Depends-on): Likewise.
29071         * modules/settime (Depends-on): Likewise.
29072         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29073
29074         fts: avoid leaking fds
29075         * modules/fts (Depends-on): Add cloexec.
29076         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29077         flag.
29078
29079         fts: make directory fds more robust
29080         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29081         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29082
29083         backupfile, chdir-long, fts, savedir: make safer
29084         * lib/backupfile.c (includes): Use "dirent--.h", since
29085         numbered_backup can write to stderr during readdir.
29086         * lib/savedir.c (includes): Likewise.
29087         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29088         emulation can write to stderr on failure.
29089         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29090         * lib/getcwd.c: Document why opendir_safer is unused.
29091         * lib/glob.c: Likewise.
29092         * lib/scandir.c: Likewise.
29093         * lib/openat-proc.c: Likewise, for open_safer.
29094         * modules/backupfile (Depends-on): Add dirent-safer.
29095         * modules/savedir (Depends-on): Likewise.
29096         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29097         * modules/chdir-long (Depends-on): Add openat-safer.
29098
29099         openat-safer: new module
29100         * modules/openat-safer: New file.
29101         * lib/openat-safer.c: Likewise.
29102         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29103         * lib/fcntl-safer.h (openat_safer): Declare.
29104         * lib/fcntl--.h (openat): Override.
29105         * MODULES.html.sh (File descriptor based I/O): Mention it.
29106         * lib/openat.h: Add double-inclusion guards.
29107         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29108         "fcntl--.h", so we can implement openat.
29109         * modules/openat-safer-tests: New test.
29110         * tests/test-openat-safer.c: New file.
29111
29112         dirent-safer: new module
29113         * modules/dirent-safer: New file.
29114         * lib/dirent--.h: Likewise.
29115         * lib/dirent-safer.h: Likewise.
29116         * lib/opendir-safer.c: Likewise.
29117         * m4/dirent-safer.m4: Likewise.
29118         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29119         * modules/dirent-safer-tests: New test.
29120         * tests/test-dirent-safer.c: New file.
29121         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29122
29123         fdopendir: optimize on mingw
29124         * lib/unistd.in.h (_gl_directory_name): New prototype.
29125         * lib/fchdir.c (_gl_directory_name): Implement it.
29126         (fchdir): Use it to simplify implementation.
29127         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29128         fchdir, when available, to avoid calling [f]chdir().
29129
29130         fdopendir: split into its own module
29131         * lib/openat.c (fdopendir): Move...
29132         * lib/fdopendir.c: ...into new file.
29133         * modules/fdopendir: New module.
29134         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29135         * modules/openat (Depends-on): Add fdopendir.
29136         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29137         fdopendir here.
29138         * modules/savedir (Depends-on): Only need fdopendir, not full
29139         openat.
29140         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29141         * lib/openat.h (fdopendir): Drop prototype.
29142         * lib/dirent.in.h (fdopendir): Provide prototype.
29143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29144         * modules/dirent (Makefile.am): Substitute them.
29145         * MODULES.html.sh (File system functions): Mention it.
29146         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29147         * modules/fdopendir-tests: New file.
29148         * tests/test-fdopendir.c: Likewise.
29149
29150         fchdir: use more consistent macro convention
29151         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29152         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29153         REPLACE_FCHDIR, rather than relying on config.h macros.
29154         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29155         inside a single make-time REPLACE_FCHDIR block, rather than using
29156         the config.h FCHDIR_REPLACEMENT.
29157         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29158         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29159         Manage fstat replacement.
29160         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29161         REPLACE_FCHDIR.
29162         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29163         (Makefile.am): Substitute REPLACE_FCHDIR.
29164         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29165         FCHDIR_REPLACEMENT.
29166         * lib/dup-safer.c (dup_safer): Likewise.
29167         * lib/dup2.c (rpl_dup2): Likewise.
29168         * lib/dup3.c (rpl_dup3): Likewise.
29169         * lib/open.c (rpl_open): Likewise.
29170
29171         fchdir: simplify error handling, and support dup3
29172         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29173         stdbool, malloc-posix, realloc-posix.
29174         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29175         (ensure_dirs_slot): Return false on allocation failure.
29176         (rpl_dup2): Delete.
29177         (_gl_register_dup): New function.
29178         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29179         (_gl_register_fd): Close fd on allocation failure.
29180         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29181         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29182         prototype.
29183         (rpl_dup2_fchdir): Delete prototype.
29184         * lib/open.c (open): Update caller.
29185         * lib/dup2.c (dup2): Track fchdir metadata.
29186         * lib/dup3.c (dup3): Likewise.
29187         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29189
29190 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29191
29192         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29193         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29194         don't pass arguments to AC_OUTPUT.
29195
29196 2009-09-02  Bruno Haible  <bruno@clisp.org>
29197
29198         * modules/mkdtemp (License): Relicense under LGPLv2+.
29199         Reported by Paolo Bonzini.
29200
29201 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29202
29203         Replace uses of obsolete autoconf macros in Jim's modules.
29204         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29205         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29206         can evoke a warning from autoconf when run with -Wobsolete
29207         enabled.  They were declared obsolete for good reasons (see
29208         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29209         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29210         should not continue using the deprecated macros.
29211         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29212         obsolete Autoconf macros with modern counterparts.
29213         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29214         * m4/dos.m4 (gl_AC_DOS): Likewise.
29215         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29216         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29217         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29218         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29219         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29220         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29221         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29222         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29223         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29224         Likewise.
29225         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29226         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29227         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29228         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29229         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29230         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29231
29232 2009-09-01  Eric Blake  <ebb9@byu.net>
29233
29234         fchdir: fix off-by-one bug in previous patch
29235         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29236         (_gl_unregister_fd): Delete useless if.
29237
29238 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29239
29240         maint.mk: sort the list of syntax-check rules
29241         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29242         easier to get a sense of progress when the rules are run sequentially
29243         and take a long time.
29244
29245 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29246
29247         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29248         * modules/netinet_in: Likewise.
29249         * modules/sys_file: Likewise.
29250         * modules/sys_ioctl: Likewise.
29251         * modules/sys_select: Likewise.
29252         * modules/sys_socket: Likewise.
29253         * modules/sys_stat: Likewise.
29254         * modules/sys_time: Likewise.
29255         * modules/sys_times: Likewise.
29256         * modules/sys_utsname: Likewise.
29257         * modules/sys_wait: Likewise.
29258
29259 2009-09-01  Jim Meyering  <meyering@redhat.com>
29260
29261         fts: help ensure that return values are not ignored
29262         * lib/fts_.h (__GNUC_PREREQ): Define.
29263         (__attribute_warn_unused_result__): Define.
29264         (fts_children, fts_close, fts_open, fts_read): Declare with
29265         __attribute_warn_unused_result__.
29266
29267         fts: fts_close now fails also when closing a dir file descriptor fails
29268         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29269         and propagate to caller, along with errno.
29270
29271         announce-gen: correct formatting in --help output
29272         * build-aux/announce-gen (usage): Move the one-line description in
29273         --help output "up", to where it belongs, just after Usage:.
29274
29275 2009-08-31  Eric Blake  <ebb9@byu.net>
29276
29277         fchdir: port to mingw
29278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29279         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29280         opened, then use a substitute.
29281         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29282         replacement.
29283         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29284         (_gl_register_fd): No need to check stat if open already filters
29285         all directories.
29286         (fchdir): Fix error condition to match POSIX.
29287         * modules/fchdir (Depends-on): Add sys_stat.
29288         * doc/posix-functions/open.texi (open): Document the limitation.
29289         * modules/fchdir-tests: New file.
29290         * tests/test-fchdir.c: Likewise.
29291
29292         canonicalize: allow cross-testing from cygwin to mingw
29293         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29294         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29295         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29296         Likewise.
29297         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29298         target does not support symlinks.
29299         * tests/test-canonicalize-lgpl.sh: Likewise.
29300
29301         chown: avoid compilation warning on mingw
29302         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29303         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29304         mingw.
29305         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29306         * modules/chown (Depends-on): Add errno.
29307
29308 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29309
29310         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29311         command.
29312
29313 2009-08-31  Jim Meyering  <meyering@redhat.com>
29314
29315         canonicalize: remove useless initialization
29316         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29317         initialization of local, "end".
29318
29319 2009-08-30  Bruno Haible  <bruno@clisp.org>
29320
29321         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29322         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29323         ENOSYS.
29324
29325 2009-08-30  Bruno Haible  <bruno@clisp.org>
29326
29327         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29328         /usr/xpg4/bin/tr when it exists.
29329         * tests/test-pipe-filter-gi1.sh: Likewise.
29330
29331 2009-08-30  Bruno Haible  <bruno@clisp.org>
29332
29333         Work around deficient /usr/bin/id program on Solaris.
29334         * tests/test-file-has-acl.sh (ID): New variable.
29335         * tests/test-set-mode-acl.sh (ID): Likewise.
29336         * tests/test-copy-acl.sh (ID): Likewise.
29337         * tests/test-copy-file.sh (ID): Likewise.
29338
29339 2009-08-30  Bruno Haible  <bruno@clisp.org>
29340
29341         New module 'xstriconveh'.
29342         * lib/xstriconveh.h: New file.
29343         * lib/xstriconveh.c: New file.
29344         * modules/xstriconveh: New file.
29345
29346 2009-08-30  Bruno Haible  <bruno@clisp.org>
29347
29348         Make it easier to use mem_cd_iconveh.
29349         * lib/striconveh.h (iconveh_t): New type.
29350         (iconveh_open, iconveh_close): New declarations.
29351         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29352         with a single 'const iconveh_t *' argument.
29353         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29354         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29355         with a single 'const iconveh_t *' argument.
29356         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29357         * tests/test-striconveh.c (main): Update.
29358         * NEWS: Mention the change.
29359
29360 2009-08-30  Bruno Haible  <bruno@clisp.org>
29361
29362         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29363         problem.
29364
29365 2009-08-30  Bruno Haible  <bruno@clisp.org>
29366
29367         Work around iconv_open problem on Solaris.
29368         * lib/iconv_open-solaris.gperf: New file.
29369         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29370         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29371         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29372         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29373         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29374         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29375
29376 2009-08-29  Jim Meyering  <meyering@redhat.com>
29377
29378         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29379         * top/maint.mk (cvs-check): Remove target; it was just an alias
29380         to the better-named vc-diff-check.
29381         (maintainer-distcheck): Remove rule.  It was used only from
29382         the (alpha/beta/major) target, and all of its commands but one
29383         were coreutils-specific.
29384         (vc-dist): Remove rule.
29385         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29386         Run vc-diff-check, not vc-dist.
29387         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29388
29389 2009-08-27  Bruno Haible  <bruno@clisp.org>
29390
29391         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29392         of 0.
29393
29394 2009-08-27  Bruno Haible  <bruno@clisp.org>
29395
29396         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29397         compilers.
29398         * doc/func.texi: Document the SunPRO C bug.
29399
29400 2009-08-27  Bruno Haible  <bruno@clisp.org>
29401
29402         Fix link error on Solaris.
29403         * tests/test-parse-duration.c (xstrdup): Remove function.
29404
29405 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29406
29407         ignore-value: handle pointer types, too
29408         * lib/ignore-value.h (__attribute__): Remove definition.
29409         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29410         of a more concise and more-often effective "(void) i" statement.
29411         (ignore_ptr): New function to suppress warnings from functions that
29412         return pointers, and to make it explicit that one function doesn't
29413         handle all cases.
29414
29415 2009-08-25  Bruno Haible  <bruno@clisp.org>
29416
29417         dup2: work around a Linux bug.
29418         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29419         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29420         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29421         Reported by Simon Josefsson.
29422
29423 2009-08-25  Jim Meyering  <meyering@redhat.com>
29424
29425         libguestfs uses gnulib
29426         * users.txt: Add libguestfs.
29427
29428 2009-08-24  Eric Blake  <ebb9@byu.net>
29429
29430         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29431         * lib/pipe2.c (includes): Add binary-io.h.
29432         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29433
29434 2009-08-24  Bruno Haible  <bruno@clisp.org>
29435
29436         Tolerate declared but missing accept4 syscall.
29437         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29438         available.
29439         * lib/sys_socket.in.h (accept4): If the function is already present,
29440         override it.
29441         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29442         * modules/accept4 (Makefile.am): Compile accept4.c always.
29443         Reported by Paolo Bonzini and Eric Blake.
29444
29445 2009-08-23  Bruno Haible  <bruno@clisp.org>
29446
29447         New module 'accept4'.
29448         * lib/sys_socket.in.h (accept4): New declaration.
29449         * lib/accept4.c: New file.
29450         * m4/accept4.m4: New file.
29451         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29452         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29453         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29454         HAVE_ACCEPT4.
29455         * modules/accept4: New file.
29456         * doc/glibc-functions/accept4.texi: Mention the new module.
29457
29458 2009-08-24  Jim Meyering  <meyering@redhat.com>
29459
29460         progname: also set global program_invocation_name, when possible
29461         Before this change, a libtool-enabled program that calls glibc's
29462         error function would report the program name as
29463         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29464         * modules/progname (configure.ac): Check for a declaration of
29465         program_invocation_name.
29466         * lib/progname.c:  Include <errno.h>.
29467         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29468         Set program_invocation_name.
29469
29470 2009-08-23  Bruno Haible  <bruno@clisp.org>
29471
29472         * lib/dup3.c: Include <string.h>.
29473
29474 2009-08-23  Bruno Haible  <bruno@clisp.org>
29475
29476         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29477         * lib/pipe2.c (pipe2): Likewise.
29478         Suggested by Eric Blake.
29479
29480 2009-08-23  Bruno Haible  <bruno@clisp.org>
29481
29482         Tolerate declared but missing dup3 syscall.
29483         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29484         * lib/unistd.in.h (dup3): If the function is already present,
29485         override it.
29486         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29487         * modules/dup3 (Makefile.am): Compile dup3.c always.
29488         Reported by Paolo Bonzini.
29489
29490 2009-08-23  Bruno Haible  <bruno@clisp.org>
29491
29492         Tolerate declared but missing pipe2 syscall.
29493         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29494         available.
29495         * lib/unistd.in.h (pipe2): If the function is already present,
29496         override it.
29497         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29498         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29499         Reported by Paolo Bonzini.
29500
29501 2009-08-23  Bruno Haible  <bruno@clisp.org>
29502
29503         * lib/pipe2.c (pipe2): Move #ifs inside function.
29504
29505 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29506
29507         quotearg: document limitations of quote_these_too
29508         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29509         those limitations are created.
29510         * lib/quotearg.h (set_char_quoting): Document that digits and
29511         letters that are special after backslash are not permitted.
29512         (quotearg_char): Cross-reference set_char_quoting documentation.
29513
29514 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29515
29516         quotearg: implement custom_quoting_style
29517         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29518         right_quote fields.
29519         (set_custom_quoting): New public function.
29520         (quotearg_buffer_restyled): Add left_quote and right_quote
29521         arguments, handle them very much like locale quoting, and update
29522         all uses.
29523         (quotearg_n_custom): New public function.
29524         (quotearg_n_custom_mem): New public function.
29525         (quotearg_custom): New public function.
29526         (quotearg_custom_mem): New public function.
29527         * lib/quotearg.h: Prototype and document new public functions.
29528         (enum quoting_style): For escape_quoting_style and
29529         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29530         ignored even though they're otherwise like c_quoting_style.
29531         Add custom_quoting_style member and document with comparison to
29532         clocale_quoting_style.
29533         * tests/test-quotearg.c (custom_quotes): New array.
29534         (custom_results): New array.
29535         (main): Extend to test custom quoting.
29536
29537 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29538
29539         quotearg: fix right quote escaping when it's in quote_these_too
29540         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29541         quote, be sure to prepend only one backslash.
29542         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29543         (main): Test it.
29544
29545 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29546
29547         quotearg-tests: test escaping of embedded locale quotes
29548         * tests/test-quotearg.c (struct result_strings): Add member for
29549         new input.
29550         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29551         (inputs): Add new input.
29552         (results_g): Add expected results.
29553         (flag_results): Likewise.
29554         (locale_results): Likewise.
29555         (compare_strings): Check those.
29556
29557 2009-08-23  Bruno Haible  <bruno@clisp.org>
29558
29559         Tests for module 'dup3'.
29560         * modules/dup3-tests: New file.
29561         * tests/test-dup3.c: New file.
29562
29563         New module 'dup3'.
29564         * lib/unistd.in.h (dup3): New declaration.
29565         * lib/dup3.c: New file.
29566         * m4/dup3.m4: New file.
29567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29568         HAVE_DUP3.
29569         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29570         * modules/dup3: New file.
29571         * doc/glibc-functions/dup3.texi: Mention the new module.
29572
29573 2009-08-23  Bruno Haible  <bruno@clisp.org>
29574
29575         Tweak the dup2 test.
29576         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29577         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29578         the test file is still empty. Fix argument order of lseek.
29579
29580 2009-08-23  Bruno Haible  <bruno@clisp.org>
29581
29582         Avoid test link errors when the modules getopt-gnu, gettext are used.
29583         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29585
29586 2009-08-23  Bruno Haible  <bruno@clisp.org>
29587
29588         Fix getdtablesize() on mingw.
29589         * lib/getdtablesize.c (getdtablesize): Implement differently.
29590         * lib/unistd.in.h (getdtablesize): Improve comment.
29591
29592 2009-08-23  Bruno Haible  <bruno@clisp.org>
29593
29594         New module 'mkostemp'.
29595         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29596         * lib/stdlib.in.h (mksotemp): New declaration.
29597         * lib/mkostemp.c: New file, from glibc with modifications.
29598         * lib/tempname.h (GT_FILE): Remove outdated comment.
29599         (gen_tempname): Add flags argument.
29600         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29601         (__GT_FILE): Map to 1.
29602         (small_open, large_open): Remove macros.
29603         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29604         * lib/mkstemp.c (mkstemp): Update.
29605         * lib/mkdtemp.c (mkdtemp): Likewise.
29606         * m4/mkostemp.m4: New file.
29607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29608         HAVE_MKOSTEMP.
29609         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29610         HAVE_MKOSTEMP.
29611         * modules/mkostemp: New file, based on modules/mkstemp.
29612         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29613         * NEWS: Mention the change.
29614
29615 2009-08-23  Bruno Haible  <bruno@clisp.org>
29616
29617         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29618         Reported by Eric Blake.
29619
29620 2009-08-23  Bruno Haible  <bruno@clisp.org>
29621
29622         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29623         Reported by Eric Blake.
29624
29625 2009-08-23  Bruno Haible  <bruno@clisp.org>
29626
29627         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29628         * modules/pipe2 (Depends-on): Likewise.
29629
29630 2009-08-23  Eric Blake  <ebb9@byu.net>
29631
29632         fcntl-h: add O_TTY_INIT support
29633         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29634         * tests/test-fcntl-h.c (o): Test it.
29635         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29636
29637         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29638         * modules/fcntl: Move <fcntl.h> header replacement...
29639         * modules/fcntl-h: ...to new name, so as not to collide with
29640         like-named function.
29641         * tests/test-fcntl.c: Rename...
29642         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29643         * modules/fcntl-tests: Rename...
29644         * modules/fcntl-h-tests: ...to this.  Update test file name.
29645         * modules/chdir-long (Depends-on): Update clients.
29646         * modules/chdir-safer (Depends-on): Likewise.
29647         * modules/fcntl-safer (Depends-on): Likewise.
29648         * modules/fts (Depends-on): Likewise.
29649         * modules/mkancesdirs (Depends-on): Likewise.
29650         * modules/mkdir-p (Depends-on): Likewise.
29651         * modules/open (Depends-on): Likewise.
29652         * modules/savewd (Depends-on): Likewise.
29653         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29654         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29655
29656 2009-08-22  Bruno Haible  <bruno@clisp.org>
29657
29658         * modules/binary-io (License): Relicense under LGPL.
29659         * modules/pipe2 (License): Likewise.
29660
29661 2009-08-22  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29664         return value.
29665         * lib/pipe-filter-gi.c (filter_init): Likewise.
29666         Reported by Eric Blake.
29667
29668 2009-08-22  Bruno Haible  <bruno@clisp.org>
29669
29670         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29671         * modules/pipe (Depends-on): Add pipe2.
29672
29673 2009-08-22  Bruno Haible  <bruno@clisp.org>
29674
29675         Tests for module 'pipe2'.
29676         * modules/pipe2-tests: New file.
29677         * tests/test-pipe2.c: New file.
29678
29679         New module 'pipe2'.
29680         * lib/unistd.in.h (pipe2): New declaration.
29681         * lib/pipe2.c: New file.
29682         * m4/pipe2.m4: New file.
29683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29684         HAVE_PIPE2.
29685         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29686         * modules/pipe2: New file.
29687         * doc/glibc-functions/pipe2.texi: Mention the new module.
29688
29689 2009-08-22  Bruno Haible  <bruno@clisp.org>
29690
29691         Reference some new glibc functions.
29692         * doc/glibc-functions/accept4.texi: New file.
29693         * doc/glibc-functions/dup3.texi: New file.
29694         * doc/glibc-functions/mkostemp.texi: New file.
29695         * doc/glibc-functions/pipe2.texi: New file.
29696         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29697         (Glibc sys/socket.h): Refer to accept4.
29698         (Glibc unistd.h): Refer to dup3, pipe2.
29699         Reported by Eric Blake.
29700
29701 2009-08-22  Jim Meyering  <meyering@redhat.com>
29702             Bruno Haible  <bruno@clisp.org>
29703
29704         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29705         This makes it so packages using automake-1.11's silent-rules option
29706         can print e.g., a single "GEN    configmake.h" line, rather than
29707         the 30+ statements that perform the job.  If you want to see the
29708         actual commands, you can still run "make V=1".
29709         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29710         so that make output is abbreviated when those variables are defined
29711         appropriately.
29712         * modules/argz: Likewise.
29713         * modules/arpa_inet: Likewise.
29714         * modules/byteswap: Likewise.
29715         * modules/configmake: Likewise.
29716         * modules/dirent: Likewise.
29717         * modules/errno: Likewise.
29718         * modules/fcntl: Likewise.
29719         * modules/float: Likewise.
29720         * modules/fnmatch: Likewise.
29721         * modules/getopt-posix: Likewise.
29722         * modules/glob: Likewise.
29723         * modules/iconv_open: Likewise.
29724         * modules/inttypes: Likewise.
29725         * modules/localcharset: Likewise.
29726         * modules/locale: Likewise.
29727         * modules/math: Likewise.
29728         * modules/netdb: Likewise.
29729         * modules/netinet_in: Likewise.
29730         * modules/poll: Likewise.
29731         * modules/posix_spawnp-tests: Likewise.
29732         * modules/sched: Likewise.
29733         * modules/search: Likewise.
29734         * modules/selinux-h: Likewise.
29735         * modules/signal: Likewise.
29736         * modules/spawn: Likewise.
29737         * modules/stdarg: Likewise.
29738         * modules/stdbool: Likewise.
29739         * modules/stddef: Likewise.
29740         * modules/stdint: Likewise.
29741         * modules/stdio: Likewise.
29742         * modules/stdlib: Likewise.
29743         * modules/string: Likewise.
29744         * modules/strings: Likewise.
29745         * modules/sys_file: Likewise.
29746         * modules/sys_ioctl: Likewise.
29747         * modules/sys_select: Likewise.
29748         * modules/sys_socket: Likewise.
29749         * modules/sys_stat: Likewise.
29750         * modules/sys_time: Likewise.
29751         * modules/sys_times: Likewise.
29752         * modules/sys_utsname: Likewise.
29753         * modules/sys_wait: Likewise.
29754         * modules/sysexits: Likewise.
29755         * modules/time: Likewise.
29756         * modules/unistd: Likewise.
29757         * modules/wchar: Likewise.
29758         * modules/wctype: Likewise.
29759
29760 2009-08-22  Jim Meyering  <meyering@redhat.com>
29761
29762         announce-gen: detect write failure
29763         * build-aux/announce-gen: Add Coda at end.
29764         Remove equivalent-but-more-verbose block at top.
29765
29766 2009-08-19  Akim Demaille  <demaille@gostai.com>
29767
29768         bootstrap: --help to stdout.
29769         * bootstrap (usage): Don't send --help to stderr.
29770         Use a here doc instead of a long string.
29771
29772 2009-08-21  Eric Blake  <ebb9@byu.net>
29773
29774         test-popen-safer: split from test-popen
29775         * tests/test-popen.c (main): Move...
29776         * tests/test-popen.h: ...into new file.
29777         * tests/test-popen-safer2.c: New file.
29778         * modules/popen-tests (Files): Add test-popen.h.
29779         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29780         Suggested by Bruno Haible.
29781
29782         test-fcntl-safer: split from test-open
29783         * tests/test-open.c (main): Move...
29784         * tests/test-open.h: ...into new file.
29785         * tests/test-fcntl-safer.c: New file.
29786         * modules/open-tests (Files): Add test-open.h.
29787         * modules/fcntl-safer-tests: New file.
29788         Suggested by Bruno Haible.
29789
29790         test-fopen-safer: split from test-fopen
29791         * tests/test-fopen.c (main): Move...
29792         * tests/test-fopen.h: ...into new file.
29793         * tests/test-fopen-safer.c: New file.
29794         * modules/fopen-tests (Files): Add test-fopen.h.
29795         * modules/fopen-safer-tests: New file.
29796         Suggested by Bruno Haible.
29797
29798 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29799
29800         popen-safer: test O_CLOEXEC at run-time.
29801         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29802
29803 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29804
29805         fcntl: move more flags to the header
29806         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29807         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29808         * lib/fcntl.in.h: Do both things here.
29809
29810 2009-08-21  Jim Meyering  <meyering@redhat.com>
29811
29812         consistently remove $@-t before redirecting to it
29813         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29814         * modules/alloca-opt: Likewise.
29815         * modules/byteswap: Likewise.
29816         * modules/fnmatch: Likewise.
29817         * modules/getopt-posix: Likewise.
29818         * modules/glob: Likewise.
29819         * modules/poll: Likewise.
29820         * modules/posix_spawnp-tests: Likewise.
29821         * modules/sys_socket: Likewise.
29822         * modules/sysexits: Likewise.
29823
29824 2009-08-21  Eric Blake  <ebb9@byu.net>
29825
29826         popen: simplify access to original popen
29827         * lib/popen.c (rpl_popen): No need to worry about popen being a
29828         macro.
29829         Reported by Bruno Haible.
29830
29831 2009-08-20  Eric Blake  <ebb9@byu.net>
29832
29833         build: avoid some compiler warnings
29834         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29835         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29836         type.
29837         (new_exclude_segment, excluded_file_pattern_p)
29838         (excluded_file_name_p): Reduce scope.
29839         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29840         old-style declaration.
29841
29842 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29843
29844         * tests/test-exclude1.sh: Handle Windows EOL.
29845         * tests/test-exclude2.sh: Likewise.
29846         * tests/test-exclude3.sh: Likewise.
29847         * tests/test-exclude4.sh: Likewise.
29848         * tests/test-exclude5.sh: Likewise.
29849         * tests/test-exclude6.sh: Likewise.
29850         * tests/test-exclude7.sh: Likewise.
29851
29852 2009-08-19  Akim Demaille  <demaille@gostai.com>
29853
29854         bootstrap: find sha1sum when named gsha1sum.
29855         * bootstrap (find_tool): New.
29856         ($SHA1SUM): New.
29857         Use it.
29858
29859 2009-08-20  Jim Meyering  <meyering@redhat.com>
29860
29861         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29862         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29863         expression that converts "." in a file name to "\." in the resulting
29864         regexp.  Start with a dummy statement, so that prior shell variable
29865         definitions are expanded portably.  Reported by Simon Josefsson.
29866
29867 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29868
29869         Fix polling for writeability of a screen buffer.
29870         * lib/poll.c: Distinguish input and screen buffers for the
29871         Win32 implementation.
29872         * lib/select.c: Likewise.
29873
29874 2009-08-19  Eric Blake  <ebb9@byu.net>
29875
29876         popen-safer: prevent popen from clobbering std descriptors
29877         * modules/popen-safer: New file.
29878         * lib/popen-safer.c: Likewise.
29879         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29880         * lib/stdio--.h (popen): Provide override.
29881         * lib/stdio-safer.h (popen_safer): Provide declaration.
29882         * tests/test-popen.c (includes): Partially test this.
29883         * modules/popen-safer-tests: New file, for more tests.
29884         * tests/test-popen-safer.c: Likewise.
29885         * MODULES.html.sh (file stream based Input/Output): Mention it.
29886
29887         tests: test some of the *-safer modules
29888         * modules/fopen-safer (Depends-on): Add fopen.
29889         * modules/fcntl-safer (Depends-on): Add fcntl.
29890         * modules/stdlib-safer (Depends-on): Add stdlib.
29891         (configure.ac): Set indicator.
29892         * modules/unistd-safer (configure.ac): Likewise.
29893         * modules/tmpfile-safer (configure.ac): Likewise.
29894         (Depends-on): Add tmpfile.
29895         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29896         active.
29897         * tests/test-fopen.c (includes): Test safer versions when they are
29898         in use.
29899         * tests/test-open.c (includes): Likewise.
29900
29901         popen: fix cygwin 1.5 bug when stdin closed
29902         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29903         * modules/popen: New file.
29904         * modules/popen-tests: Likewise.
29905         * tests/test-popen.c: Likewise.
29906         * m4/popen.m4: Likewise.
29907         * lib/popen.c: Likewise.
29908         * lib/stdio.in.h (popen): New declaration.
29909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29910         * modules/stdio (Makefile.am): Likewise.
29911         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29912
29913 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29914
29915         maint.mk: give full control over update-copyright exclusions
29916         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29917         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29918         (update-copyright): Don't force inclusion of top-level
29919         ChangeLog.  Don't force exclusion of all COPYING files, but make
29920         them the default exclusion instead.
29921
29922 2009-08-16  Bruno Haible  <bruno@clisp.org>
29923
29924         Fix test failures on Solaris 10.
29925         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29926         tests when Solaris iconv() is used.
29927         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29928         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29929         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29930         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29931         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29932
29933 2009-08-16  Bruno Haible  <bruno@clisp.org>
29934
29935         Fix test failures on Solaris 10.
29936         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29937         'tr' program and pass it as first argument.
29938         * tests/test-pipe-filter-gi1.sh: Likewise.
29939         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29940         program as first argument.
29941         * tests/test-pipe-filter-gi1.c (main): Likewise.
29942
29943 2009-08-16  Eric Blake  <ebb9@byu.net>
29944
29945         fpurge: fix previous commits
29946         * modules/fpurge (Makefile.am): Make replacement conditional,
29947         partially reverting 2007-04-29 change; missed in previous
29948         attempt.
29949         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29950         is missing.
29951
29952 2009-08-16  Bruno Haible  <bruno@clisp.org>
29953
29954         Clarify fpurge's effect on the file position.
29955         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29956         * tests/test-fpurge.c (main): Make a second pass for checking the file
29957         position.
29958
29959 2009-08-16  Bruno Haible  <bruno@clisp.org>
29960
29961         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29962         declaration of fpurge is missing.
29963         * tests/test-fpurge.c (main): Check that the file has not more contents
29964         than expected. Close the file before removing it.
29965
29966 2009-08-15  Eric Blake  <ebb9@byu.net>
29967
29968         fpurge: don't wrap working cygwin implementation
29969         * lib/fpurge.c (fpurge): Fix comment typo.
29970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29971         1.7 to avoid replacement.
29972         * tests/test-fpurge.c (main): Enhance test.
29973
29974 2009-08-15  Eric Blake  <ebb9@byu.net>
29975         and Jim Meyering  <meyering@redhat.com>
29976
29977         test-update-copyright: skip if perl is insufficient
29978         * tests/test-update-copyright.sh: Failure to run maintainer tool
29979         should not cause testsuite failure on cygwin 1.5.
29980
29981 2009-08-14  Eric Blake  <ebb9@byu.net>
29982
29983         doc: mention more functions added in cygwin 1.7.0
29984         * doc/posix-headers/limits.texi (limits.h): Update for recent
29985         cygwin additions.
29986         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29987         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29988         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29989         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29990         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29991
29992 2009-08-14  Eric Blake  <ebb9@byu.net>
29993
29994         maint.mk: simplify update-copyright rule
29995         * top/maint.mk (update-copyright-local): Delete, and document how
29996         to do it in cfg.mk instead.
29997         (update-copyright-exclude-regexp): Delete, and document how to do
29998         it in .x-update-copyright instead.
29999         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30000         exclude ChangeLog.
30001
30002 2009-08-14  Bruno Haible  <bruno@clisp.org>
30003
30004         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30005
30006 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30007
30008         maint.mk: support update-copyright-env
30009         * top/maint.mk (update-copyright-env): Define place-holder.
30010         (update-copyright): Expand $(update-copyright-env) before
30011         invoking update-copyright.
30012
30013 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30014
30015         update-copyright: implement forced reformatting
30016         * build-aux/update-copyright: Implement and document
30017         UPDATE_COPYRIGHT_FORCE.
30018         * tests/test-update-copyright.sh: Test it.
30019
30020 2009-08-14  Eric Blake  <ebb9@byu.net>
30021         and Bruno Haible  <bruno@clisp.org>
30022
30023         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30024         * tests/test-locale.c: Revert previous patch related to NULL.
30025         * tests/test-stdio.c: Likewise.
30026         * tests/test-stdlib.c: Likewise.
30027         * tests/test-string.c: Likewise.
30028         * tests/test-unistd.c: Likewise.
30029         * modules/time-tests (Depends-on): Add verify.
30030         * modules/wchar-tests (Depends-on): Likewise.
30031         * tests/test-time.c: Test for NULL compliance.
30032         * tests/test-wchar.c: Likewise.
30033         * modules/locale (Depends-on): Add stddef.
30034         * modules/stdio (Depends-on): Likewise.
30035         * modules/stdlib (Depends-on): Likewise.
30036         * modules/string (Depends-on): Likewise.
30037         * modules/time (Depends-on): Likewise.
30038         * modules/unistd (Depends-on): Likewise.
30039         * modules/wchar (Depends-on): Likewise.
30040         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30041         * lib/stdlib.in.h (includes): Likewise.
30042         * lib/string.in.h (includes): Likewise.
30043         * lib/time.in.h (includes): Likewise.
30044         * lib/unistd.in.h (includes): Likewise.
30045         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30046         replaced.
30047         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30048         * m4/stddef_h.m4: New file.
30049         * modules/stddef: Likewise.
30050         * lib/stddef.in.h: Likewise.
30051         * modules/stddef-tests: Likewise.
30052         * tests/test-stddef.c: Likewise.
30053         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30054         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30055         * doc/posix-headers/locale.texi (locale.h): Likewise.
30056         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30057         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30058         * doc/posix-headers/string.texi (string.h): Likewise.
30059         * doc/posix-headers/time.texi (time.h): Likewise.
30060         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30061         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30062
30063 2009-08-14  Eric Blake  <ebb9@byu.net>
30064
30065         doc: improve git diff of texinfo files
30066         * .gitattributes: Add rule for *.texi files, with hint on how to
30067         use it.
30068         Copied from m4, and based on a report by Bruno Haible.
30069
30070 2009-08-14  Bruno Haible  <bruno@clisp.org>
30071
30072         Disable multithread support by default on Cygwin 1.5.x for real.
30073         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30074
30075 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30076
30077         update-copyright: much ado about intervals
30078         * build-aux/update-copyright: Implement and document
30079         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30080         of copyright year intervals.
30081         Also, document UPDATE_COPYRIGHT_YEAR.
30082         * tests/test-update-copyright.sh: Test it.
30083
30084         update-copyright: convert 2-digit to 4-digit years
30085         * build-aux/update-copyright: Implement and document.
30086         * tests/test-update-copyright.sh: Update.
30087
30088 2009-08-14  Jim Meyering  <meyering@redhat.com>
30089
30090         test-exclude: avoid coreutils "make check" failure
30091         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30092         just as in test-argmatch.c.
30093
30094 2009-08-13  Eric Blake  <ebb9@byu.net>
30095
30096         test-dup2: fix bad assumption
30097         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30098         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30099
30100         test-version-etc: fix CRLF portability issue
30101         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30102         recognize \r.
30103         * tests/test-argp-version-etc-1.sh: Likewise.
30104
30105         getopt: update client modules
30106         * modules/argp (Depends-on): Use getopt-gnu.
30107         * modules/git-merge-changelog (Depends-on): Likewise.
30108         * modules/long-options (Depends-on): Likewise.
30109         * modules/xstrtol (Depends-on): Likewise.
30110
30111 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30112
30113         * tests/test-version-etc.sh: Don't fail on different
30114         project/version.  Don't fail on CRLF differences.  Rewrite to use
30115         multiple -e instead of multiple sed forks, suggested by Eric Blake
30116         <ebb9@byu.net>.
30117         * tests/test-argp-version-etc-1.sh: Likewise.
30118
30119 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30120
30121         * tests/test-version-etc.sh: Don't fail on different
30122         project/version.
30123
30124 2009-08-12  Bruno Haible  <bruno@clisp.org>
30125
30126         Tests for modules 'getopt-posix', 'getopt-gnu'.
30127         * modules/getopt-posix-tests: New file.
30128         * tests/test-getopt.c: New file.
30129         * tests/test-getopt.h: New file.
30130         * tests/test-getopt_long.h: New file.
30131
30132         New modules 'getopt-posix', 'getopt-gnu'.
30133         * modules/getopt-gnu: New file, renamed from modules/getopt.
30134         * modules/getopt-posix: New file.
30135         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30136         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30137         (gl_GETOPT): Remove macro.
30138         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30139         Disable the test against BSD systems that declare optreset. Test
30140         against mingw bug. Test against lack of support of optional arguments
30141         on many platforms.
30142         * doc/glibc-headers/getopt.texi: Update module name and list of
30143         relevant platforms.
30144         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30145         'getopt-gnu' and more portability problems.
30146         * NEWS: Mention the changes.
30147
30148 2009-08-12  Bruno Haible  <bruno@clisp.org>
30149
30150         Ensure that optarg etc. get declared by <unistd.h>.
30151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30152         AC_USE_SYSTEM_EXTENSIONS.
30153         * modules/getopt (Depends-on): Add 'extensions'.
30154
30155 2009-08-12  Bruno Haible  <bruno@clisp.org>
30156
30157         Avoid test link errors.
30158         * modules/pipe-filter-ii-tests (Makefile.am): Define
30159         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30160         * modules/pipe-filter-gi-tests (Makefile.am): Define
30161         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30163
30164 2009-08-12  Bruno Haible  <bruno@clisp.org>
30165
30166         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30167         gl_GETOPT_SUBSTITUTE before.
30168         (gl_GETOPT): Use it.
30169         * m4/argp.m4 (gl_ARGP): Update.
30170         Reported by Sergey Poznyakoff.
30171
30172         * m4/getopt.m4: Reorder macros.
30173         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30174         (gl_GETOPT_SUBSTITUTE): Remove macro.
30175
30176 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30177
30178         Minor improvement in gitlog-to-changelog
30179
30180         * build-aux/gitlog-to-changelog: New option `--format' makes
30181         output format string configurable.
30182
30183 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30184
30185         Optimize exclude: use hash tables for non-wildcard patterns.
30186
30187         * lib/exclude.c: Include hash.h and mbuiter.h
30188         (struct exclude_pattern, exclude_segment): New data types.
30189         (struct exclude): Rewrite.
30190         (fnmatch_pattern_has_wildcards): New function.
30191         (new_exclude_segment, free_exclude_segment): New functions.
30192         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30193         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30194         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30195         * modules/exclude: Depend on hash and mbuiter.
30196
30197         * modules/exclude-tests: New file.
30198         * tests/test-exclude.c: New file.
30199         * tests/test-exclude1.sh: New file.
30200         * tests/test-exclude2.sh: New file.
30201         * tests/test-exclude3.sh: New file.
30202         * tests/test-exclude4.sh: New file.
30203         * tests/test-exclude5.sh: New file.
30204         * tests/test-exclude6.sh: New file.
30205         * tests/test-exclude7.sh: New file.
30206
30207 2009-08-12  Bruno Haible  <bruno@clisp.org>
30208
30209         Ensure that getopt() gets declared by <unistd.h>.
30210         * lib/unistd.in.h: Conditionally include getopt.h.
30211         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30212         Set GNULIB_UNISTD_H_GETOPT.
30213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30214         GNULIB_UNISTD_H_GETOPT.
30215         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30216
30217 2009-08-12  Bruno Haible  <bruno@clisp.org>
30218
30219         Clarify logic.
30220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30221         gl_replace_getopt instead of GETOPT_H.
30222
30223 2009-08-12  Bruno Haible  <bruno@clisp.org>
30224
30225         * m4/getopt.m4: Add comments.
30226
30227 2009-08-12  Bruno Haible  <bruno@clisp.org>
30228
30229         Disable multithread support by default on Cygwin 1.5.x.
30230         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30231         set gl_use_threads=no if not specified otherwise.
30232
30233 2009-08-11  Bruno Haible  <bruno@clisp.org>
30234
30235         Avoid compilation error on NetBSD 5.0.
30236         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30237         * tests/test-stdio.c: Likewise.
30238         * tests/test-stdlib.c: Likewise.
30239         * tests/test-string.c: Likewise.
30240         * tests/test-unistd.c: Likewise.
30241         Reported by Greg Troxel <gdt@ir.bbn.com>
30242         at <https://savannah.gnu.org/support/?106973>.
30243
30244 2009-08-11  Bruno Haible  <bruno@clisp.org>
30245
30246         * modules/dup2-tests (Depends-on): Remove close.
30247
30248         Undo 2009-07-19 commit.
30249         * modules/acl-tests (Depends-on): Remove close.
30250         * modules/binary-io-tests (Depends-on): Likewise.
30251         * modules/closein-tests (Depends-on): Likewise.
30252         * modules/flock-tests (Depends-on): Likewise.
30253         * modules/fsync-tests (Depends-on): Likewise.
30254         * modules/lseek-tests (Depends-on): Likewise.
30255         * modules/pipe-tests (Depends-on): Likewise.
30256         * modules/posix_spawn-tests (Depends-on): Likewise.
30257         * modules/posix_spawnp-tests (Depends-on): Likewise.
30258         * modules/stat-time-tests (Depends-on): Likewise.
30259         * modules/yesno-tests (Depends-on): Likewise.
30260
30261 2009-08-10  Bruno Haible  <bruno@clisp.org>
30262
30263         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30264
30265 2009-08-10  Bruno Haible  <bruno@clisp.org>
30266
30267         Fix a gcc warning.
30268         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30269
30270 2009-08-10  Bruno Haible  <bruno@clisp.org>
30271
30272         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30273         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30274         not only the first time.
30275         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30276         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30277         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30278         is 1, not only the the first time.
30279
30280 2009-08-10  Bruno Haible  <bruno@clisp.org>
30281
30282         Make it possible to use module 'gethostname' without module 'close'.
30283         * lib/unistd.in.h (close): Evoke a link error only if
30284         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30286         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30287         * modules/unistd (Makefile.am): Substitute
30288         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30289         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30292         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30293         * modules/sys_ioctl (Makefile.am): Substitute
30294         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30295         * modules/socket (configure.ac): On native Windows, set
30296         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30297         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30298         Reported by Sam Steingold <sds@gnu.org>.
30299
30300 2009-08-10  Bruno Haible  <bruno@clisp.org>
30301
30302         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30303         * modules/ioctl (configure.ac): Likewise.
30304
30305 2009-08-10  Bruno Haible  <bruno@clisp.org>
30306
30307         Avoid collision between gnulib wrapper and libintl wrapper.
30308         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30309         already defined in intl/printf.c.
30310         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30311         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30312
30313 2009-08-09  Bruno Haible  <bruno@clisp.org>
30314
30315         Make <sys/select.h> really self-contained, also on Solaris 10.
30316         * lib/sys_select.in.h: Include <string.h>.
30317         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30318         Solaris 10 problem.
30319         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30320         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30321         Reported by Jim Meyering.
30322
30323 2009-08-09  Bruno Haible  <bruno@clisp.org>
30324
30325         Avoid warnings from 'aclocal' that are due to a use of macro name
30326         AM_XGETTEXT_OPTION that is not defined in automake.
30327         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30328         automake.
30329         * modules/error (configure.ac): Likewise.
30330         * modules/propername (configure.ac): Likewise.
30331         * modules/vasprintf (configure.ac): Likewise.
30332         * modules/verror (configure.ac): Likewise.
30333         * modules/xprintf (configure.ac): Likewise.
30334         * modules/xvasprintf (configure.ac): Likewise.
30335
30336 2009-08-08  Bruno Haible  <bruno@clisp.org>
30337
30338         Avoid compilation error in C++ mode.
30339         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30340         Reported by Sam Steingold <sds@gnu.org>.
30341
30342 2009-08-08  Bruno Haible  <bruno@clisp.org>
30343
30344         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30345         for the various Unix platforms.
30346         * doc/posix-headers/limits.texi: Update platforms list regarding
30347         HOST_NAME_MAX.
30348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30349
30350 2009-08-07  Jim Meyering  <meyering@redhat.com>
30351
30352         selinux-at: fix typo in a comment
30353         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30354         Spotted by Paolo Bonzini.
30355
30356         selinux-at: remove redundant m4 code, add documentation
30357         * modules/selinux-at (configure.ac): Remove redundant code.
30358         LIB_SELINUX is already set via the dependent module, selinux-h.
30359         (Include): Add quotes around selinux-at.h.
30360         * lib/selinux-at.h: Add documentation.
30361         Reported by Bruno Haible in
30362         http://marc.info/?l=gnulib-bug&m=124958988300749
30363
30364 2009-08-07  Bruno Haible  <bruno@clisp.org>
30365
30366         Avoid link error on MacOS X 10.3 and 10.4.
30367         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30368         on non-ELF systems.
30369         * lib/argp-pv.c (argp_program_version): Likewise.
30370         Reported by Simon Josefsson.
30371
30372 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30373
30374         * tests/test-version-etc.sh: Use $EXEEXT.
30375
30376 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30377
30378         update-copyright: update documentation to point to maint.mk
30379         * build-aux/update-copyright: Here.
30380
30381 2009-08-06  Jim Meyering  <meyering@redhat.com>
30382
30383         maint.mk: support update-copyright-local
30384         * top/maint.mk (update-copyright-local): Define place-holder.
30385         (update-copyright): Depend on $(update-copyright-local).
30386
30387 2009-08-06  Jim Meyering  <meyering@redhat.com>
30388
30389         selinux-at: new module
30390         Initially written for coreutils, this module will soon be
30391         used by findutils, too.
30392         * MODULES.html.sh [Misc]: Add selinux-at.
30393         * lib/selinux-at.h: New file, from coreutils.
30394         * lib/selinux-at.c: Likewise.
30395         * modules/selinux-at: Likewise.
30396         (License): Change from LGPL to GPL, since it depends
30397         on the GPL'd openat module.
30398
30399         doc: update README
30400         * README: Remove references to cogito.
30401         Remove cvs-repo-updating instructions from 2007.
30402         Don't imply that CVS is better if you have limited disk space.
30403
30404 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30405
30406         update-copyright: support C-style comments
30407         * build-aux/update-copyright: Implement and document.
30408         * tests/test-update-copyright.sh: Test.
30409
30410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30411
30412         update-copyright: support omitted "(C)"
30413         * build-aux/update-copyright: Implement and document.  Also,
30414         allow variable whitespace before "(C)".
30415         * tests/test-update-copyright.sh: Test.
30416
30417 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30418
30419         update-copyright: don't trip on non-FSF copyright statements
30420         * build-aux/update-copyright: Fix so that the first correctly
30421         formatted FSF copyright statement is recognized no matter what
30422         appears before it.  Update documentation.
30423         * tests/test-update-copyright.sh: Test that.
30424
30425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30426
30427         update-copyright: clean up code a little
30428         * build-aux/update-copyright: Append "_re" to the name of any
30429         variable holding a regular expression.
30430         Replace "old" and "new" with "stmt" in variable names.
30431         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30432         handled correctly.
30433         Format code more consistently.
30434
30435 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30436
30437         update-copyright-tests: improve portability
30438         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30439         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30440
30441 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30442
30443         update-copyright: support @copyright{} and &copy;
30444         * build-aux/update-copyright: Implement and document.
30445         * tests/test-update-copyright.sh: Test.
30446
30447 2009-08-04  Jim Meyering  <meyering@redhat.com>
30448
30449         update-copyright-tests: correctly test EOL=\r\n handling
30450         * tests/test-update-copyright.sh: Put \r at the end of some lines
30451         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30452
30453         maint.mk: make update-copyright exclusion list more configurable
30454         * top/maint.mk (update-copyright): Default to excluding COPYING,
30455         but allow an override, in case someone does want to update that file.
30456
30457         maint.mk: don't update copyright date in COPYING
30458         * top/maint.mk (update-copyright): Exclude COPYING.
30459
30460         maint.mk: add a copyright-updating rule
30461         * top/maint.mk (update-copyright): New rule.
30462         Derived from coreutils/Makefile.am.
30463
30464         update-copyright: rename some variables
30465         * build-aux/update-copyright: Rename a few variables for clarity.
30466         Tweak syntax.  List Joel E. Denny as coauthor.
30467
30468 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30469
30470         update-copyright: fix bug for 2-digit last year and add tests
30471         * build-aux/update-copyright: Fix bug.
30472         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30473         specified.
30474         * modules/update-copyright-tests: New
30475         * tests/test-update-copyright.sh: New.
30476
30477 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30478
30479         update-copyright: handle leading tabs in line prefix
30480         * build-aux/update-copyright: Count leading tabs as 8 spaces
30481         when computing margin.  This helps with the formatting of
30482         ChangeLogs, for example.
30483         Fix documentation a little.
30484
30485 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30486
30487         update-copyright: support EOL=\r\n
30488         * build-aux/update-copyright: Implement that.
30489
30490 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30491
30492         update-copyright: automatically format copyright statements
30493         * build-aux/update-copyright: Implement that.
30494         Also, be a little more predictable and safer by always failing
30495         when the full copyright format is not perfectly recognized as an
30496         unbroken whole.  Discussed at
30497         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30498         Rewrite documentation.
30499
30500 2009-08-03  Bruno Haible  <bruno@clisp.org>
30501
30502         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30503
30504 2009-08-02  Bruno Haible  <bruno@clisp.org>
30505
30506         Tests for module 'uname'.
30507         * modules/uname-tests: New file.
30508         * tests/test-uname.c: New file.
30509
30510         New module 'uname'.
30511         * lib/uname.c: New file.
30512         * m4/uname.m4: New file.
30513         * modules/uname: New file.
30514         * doc/posix-functions/uname.texi: Mention the new module.
30515
30516 2009-08-02  Bruno Haible  <bruno@clisp.org>
30517
30518         Tests for module 'sys_utsname'.
30519         * modules/sys_utsname-tests: New file.
30520         * tests/test-sys_utsname.c: New file.
30521
30522         New module 'sys_utsname'.
30523         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30524         * m4/sys_utsname_h.m4: New file.
30525         * modules/sys_utsname: New file.
30526         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30527
30528 2009-08-02  Bruno Haible  <bruno@clisp.org>
30529
30530         Implicitly initialize the sockets library.
30531         * lib/gethostname.c: Include sockets.h.
30532         (rpl_gethostname): Invoke gl_sockets_startup.
30533         * lib/socket.c: Include sockets.h.
30534         (rpl_socket): Invoke gl_sockets_startup.
30535         * modules/gethostname (Depends-on): Add sockets.
30536         * modules/socket (Depends-on): Likewise.
30537         * tests/test-poll.c: Don't include sockets.h.
30538         (main): Don't invoke gl_sockets_startup.
30539         * tests/test-select.c: Don't include sockets.h.
30540         (main): Don't invoke gl_sockets_startup.
30541
30542 2009-08-02  Bruno Haible  <bruno@clisp.org>
30543
30544         Allow multiple calls to gl_sockets_startup.
30545         * lib/sockets.c (initialized_sockets_version): New variable.
30546         (gl_sockets_startup): Do nothing if already called for this or a higher
30547         version.
30548         (gl_sockets_cleanup): Reset initialized_sockets_version.
30549
30550 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30551
30552         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30553         different project/version.
30554
30555 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30556             Bruno Haible  <bruno@clisp.org>
30557
30558         Tests for module 'pipe-filter-gi'.
30559         * modules/pipe-filter-gi-tests: New file.
30560         * tests/test-pipe-filter-gi1.sh: New file.
30561         * tests/test-pipe-filter-gi1.c: New file.
30562         * tests/test-pipe-filter-gi2.sh: New file.
30563         * tests/test-pipe-filter-gi2-main.c: New file.
30564         * tests/test-pipe-filter-gi2-child.c: New file.
30565
30566         New module 'pipe-filter-gi'.
30567         * lib/pipe-filter-gi.c: New file.
30568         * modules/pipe-filter-gi: New file.
30569
30570 2009-08-02  Bruno Haible  <bruno@clisp.org>
30571             Paolo Bonzini  <bonzini@gnu.org>
30572
30573         Tests for module 'pipe-filter-ii'.
30574         * modules/pipe-filter-ii-tests: New file.
30575         * tests/test-pipe-filter-ii1.sh: New file.
30576         * tests/test-pipe-filter-ii1.c: New file.
30577         * tests/test-pipe-filter-ii2.sh: New file.
30578         * tests/test-pipe-filter-ii2-main.c: New file.
30579         * tests/test-pipe-filter-ii2-child.c: New file.
30580
30581         New module 'pipe-filter-ii'.
30582         * lib/pipe-filter.h: New file.
30583         * lib/pipe-filter-ii.c: New file.
30584         * lib/pipe-filter-aux.h: New file.
30585         * modules/pipe-filter-ii: New file.
30586
30587 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30588
30589         * lib/gc-libgcrypt.c: Change copyright to FSF.
30590         * lib/gc-gnulib.c: Likewise.
30591
30592 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30593
30594         * lib/gethostname.c: Include limits.h.
30595
30596 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30597             Bruno Haible  <bruno@clisp.org>
30598
30599         Ensure HOST_NAME_MAX as part of the gethostname module.
30600         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30601         define also HOST_NAME_MAX.
30602         * tests/test-gethostname.c: Include <limits.h>.
30603         (main): Check also HOST_NAME_MAX.
30604         * doc/posix-headers/limits.texi: Document the mingw problem.
30605
30606 2009-08-02  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30609         Add comments.
30610
30611 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30612
30613         * lib/gethostname.c: Add Windows wrapper.
30614         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30615         * modules/gethostname: Depend on sys_socket & errno, for also
30616         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30617         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30618
30619 2009-07-31  Jim Meyering  <meyering@redhat.com>
30620
30621         getloadavg: fix symbol name in comment
30622         * lib/getloadavg.c: Correct a typo I introduced when adding
30623         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30624         Matt Kraai spotted the problem.
30625
30626 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30627
30628         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30629         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30630         code also if ! defined N_NAME_POINTER.
30631         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30632         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30633         but the n_name member is a 12-byte array.
30634
30635 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30636
30637         update-copyright: generalize comment handling
30638         * build-aux/update-copyright: Handle copyright statements
30639         within more comment styles.
30640         Document usage.
30641         Report any file with an external copyright holder or parse failure.
30642
30643 2009-07-29  Jim Meyering  <meyering@redhat.com>
30644
30645         mktime: correct setting of REPLACE_MKTIME
30646         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30647
30648         update-copyright: new module
30649         * modules/update-copyright: New file.
30650         * build-aux/update-copyright: New file.
30651         * MODULES.html.sh (maint+release support): Add update-copyright.
30652
30653 2009-07-27  Bruno Haible  <bruno@clisp.org>
30654
30655         Fix compilation error when <ctime> is used and mktime is replaced.
30656         * lib/time.in.h (mktime): New declaration.
30657         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30658         REPLACE_MKTIME instead of defining mktime in config.h.
30659         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30660         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30661         Reported by Ross McFarland <rwmcfa1@neces.com>.
30662
30663 2009-07-27  Bruno Haible  <bruno@clisp.org>
30664
30665         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30666         Reported by Matt Kraai <mkraai@beckman.com>.
30667
30668 2009-07-25  Jim Meyering  <meyering@redhat.com>
30669
30670         maint.mk: avoid warnings about missing files
30671         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30672         diagnostic when .prev-version does not exist.
30673         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30674         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30675         nonexistent cfg.mk.
30676         Suggestions from Simon Josefsson.
30677
30678 2009-07-25  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30681         defined as macros. Needed on QNX 6.4.1.
30682         Reported by Matt Kraai <mkraai@beckman.com>.
30683
30684 2009-07-23  Jim Meyering  <meyering@redhat.com>
30685
30686         maint.mk: invoke "make dist" with a working value of XZ_OPT
30687         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30688
30689 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30690
30691         Make fseeko.c compile on QNX.
30692         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30693
30694 2009-07-22  Peter Simons  <simons@cryp.to>
30695
30696         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30697         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30698         * lib/md4.h: Likewise.
30699         * lib/md5.h: Likewise.
30700         * lib/sha1.h: Likewise.
30701         * lib/sha256.h: Likewise.
30702         * lib/sha512.h: Likewise.
30703
30704         tests-sha1: don't assign literal string to 'char *' variable
30705         * tests/test-sha1.c (main): Declare locals with "const" to match
30706         attributes of the right hand side.
30707
30708 2009-07-21  Eric Blake  <ebb9@byu.net>
30709
30710         dup2: fix more mingw problems
30711         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30712         fd to itself.
30713         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30714         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30715         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30716         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30717         care of mingw bugs.
30718
30719 2009-07-21  Jim Meyering  <meyering@redhat.com>
30720
30721         vc-list-files: avoid failure when /bin/sh is dash
30722         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30723         On some Debian based systems, /bin/sh is a symlink to dash, and running
30724         this command would omit the "/" following each 'tests' prefix:
30725           dash -x build-aux/vc-list-files -C . tests
30726         That is because bash and dash work differently:
30727           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30728           bash ok
30729           dash odd
30730
30731 2009-07-21  Eric Blake  <ebb9@byu.net>
30732
30733         dup2-tests: test previous patch
30734         * modules/dup2-tests: New file.
30735         * tests/test-dup2.c: Likewise.
30736         * tests/test-open.c (main): Avoid unspecified behavior.
30737         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30738         test.
30739
30740         dup2: work around mingw and cygwin 1.5 bug
30741         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30743         * modules/unistd (Makefile.am): Substitute it.
30744         * lib/unistd.in.h (dup2): Declare the replacement.
30745         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30746         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30747         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30748         * modules/execute (Depends-on): Add dup2.
30749         * modules/fseterr (Depends-on): Likewise.
30750         * modules/pipe (Depends-on): Likewise.
30751         * modules/posix_spawn-internal (Depends-on): Likewise.
30752
30753 2009-07-21  Bruno Haible  <bruno@clisp.org>
30754
30755         * modules/.gitattributes: New file.
30756
30757 2009-07-20  Bruno Haible  <bruno@clisp.org>
30758
30759         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30760         (main): Use it.
30761
30762 2009-07-20  Eric Blake  <ebb9@byu.net>
30763
30764         test-pipe: make a bit more robust.
30765         * tests/test-pipe.c (myerr): Allow error messages regardless of
30766         what we do to stderr.
30767         (test_pipe): Rearrange to avoid deadlock.
30768         (child_main): Try a larger read, to ensure we avoided deadlock.
30769         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30770         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30771         if misused.
30772
30773 2009-07-19  Jim Meyering  <meyering@redhat.com>
30774
30775         fts: avoid false-positive cycle-detection
30776         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30777         for each new command line argument.
30778
30779 2009-07-19  Bruno Haible  <bruno@clisp.org>
30780
30781         Fix build error on mingw with the modules sys_select and unistd.
30782         * modules/acl-tests (Depends-on): Add close.
30783         * modules/binary-io-tests (Depends-on): Likewise.
30784         * modules/closein-tests (Depends-on): Likewise.
30785         * modules/flock-tests (Depends-on): Likewise.
30786         * modules/fsync-tests (Depends-on): Likewise.
30787         * modules/lseek-tests (Depends-on): Likewise.
30788         * modules/pipe-tests (Depends-on): Likewise.
30789         * modules/posix_spawn-tests (Depends-on): Likewise.
30790         * modules/posix_spawnp-tests (Depends-on): Likewise.
30791         * modules/stat-time-tests (Depends-on): Likewise.
30792         * modules/yesno-tests (Depends-on): Likewise.
30793
30794 2009-07-19  Bruno Haible  <bruno@clisp.org>
30795
30796         Unify conditionals.
30797         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30798         macros, not at the compiler macros.
30799         * lib/pipe.c: Likewise.
30800         * lib/execute.c: Likewise.
30801         * lib/spawni.c: Likewise.
30802
30803 2009-07-19  Bruno Haible  <bruno@clisp.org>
30804
30805         Fix handling of closed stdin/stdout/stderr on mingw.
30806         * lib/w32spawn.h: Include unistd.h.
30807         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30808         file descriptor with O_NOINHERIT flag.
30809         (fd_safer_noinherit): New function, based on fd-safer.c.
30810         (dup_safer_noinherit): New function, based on dup-safer.c.
30811         (undup_safer_noinherit): New function.
30812         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30813         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30814         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30815         instead of fd_safer.
30816         * tests/test-pipe.c: Include <windows.h>.
30817         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30818         result.
30819
30820         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30821         from main.
30822         (test_pipe): Pass an extra argument for disambiguation.
30823         (main): Invoke parent_main or child_main.
30824
30825         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30826         consistently.
30827
30828 2009-07-18  Eric Blake  <ebb9@byu.net>
30829
30830         test-pipe: fix mingw build
30831         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30832
30833 2009-07-18  Bruno Haible  <bruno@clisp.org>
30834
30835         * modules/pipe-tests (Makefile.am): Fix typo.
30836
30837 2009-07-18  Eric Blake  <ebb9@byu.net>
30838
30839         error: fix mingw build
30840         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30841         Reported by Bruno Haible.
30842
30843         error: avoid undefined use of stdout
30844         * lib/error.c (error, error_at_line): Check that fd 1 is open
30845         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30846         is handling faults and the close_stdout module wants to report the
30847         detection of closed stdout as an error.
30848
30849 2009-07-17  Eric Blake  <ebb9@byu.net>
30850
30851         pipe: be robust in face of closed fds
30852         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30853         should cause child to misbehave.
30854         * modules/pipe-tests: New module.
30855         * tests/test-pipe.c: New file.
30856         * tests/test-pipe.sh: New file.
30857         Reported by Akim Demaille.
30858
30859 2009-07-14  Bruno Haible  <bruno@clisp.org>
30860
30861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30862         Reported by anonymous kc.
30863
30864 2009-07-07  Jim Meyering  <meyering@redhat.com>
30865
30866         maint.mk: don't look for translatable strings in *.m4 or *.mk
30867         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30868         when searching for translatable strings.
30869
30870 2009-07-05  Jim Meyering  <meyering@redhat.com>
30871
30872         remove superfluous parentheses in STREQ definition
30873         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30874         * lib/getugroups.c (STREQ): Likewise.
30875         * lib/fnmatch.c (STREQ): Likewise.
30876         Spotted by Bruno Haible.
30877
30878 2009-07-04  Jim Meyering  <meyering@redhat.com>
30879
30880         argv-iter: new module
30881         * MODULES.html.sh: Add argv-iter.
30882         * lib/argv-iter.c, lib/argv-iter.h: New files.
30883         * modules/argv-iter: New file.
30884         * modules/argv-iter-tests: New file.
30885         * tests/test-argv-iter.c: Test it.
30886
30887 2009-07-04  Bruno Haible  <bruno@clisp.org>
30888
30889         Fix assertion.
30890         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30891         contains more exact copies of a given entry than file2, leave the extra
30892         copies unpaired rather than aborting.
30893         Reported by Eric Blake.
30894
30895 2009-07-02  Bruno Haible  <bruno@clisp.org>
30896
30897         Speedup git-merge-changelog for git cherry-pick.
30898         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30899         (entries_mapping_get): New function, extracted from compute_mapping.
30900         (entries_mapping_reverse_get): New function.
30901         (compute_mapping): Add a 'full' argument. Return the result in a
30902         'struct entries_mapping'.
30903         (main): Update. Access the mappings through entries_mapping_get.
30904         Reported by Eric Blake.
30905
30906 2009-07-02  Bruno Haible  <bruno@clisp.org>
30907
30908         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30909         best_i.
30910
30911 2009-07-02  Bruno Haible  <bruno@clisp.org>
30912
30913         Speed up approximate search for matching ChangeLog entries.
30914         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30915         argument. Call fstrcmp_bounded instead of fstrcmp.
30916         (compute_mapping, try_split_merged_entry, main): Update callers.
30917
30918 2009-07-02  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30921
30922 2009-06-30  Bruno Haible  <bruno@clisp.org>
30923
30924         Reduce the number of uc_is_cased calls.
30925         * lib/unicase.h (casing_suffix_context_t): Add
30926         'first_char_except_ignorable' field.
30927         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30928         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30929         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30930         Update initializer.
30931         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30932         case-ignorable characters.
30933         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30934         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30935         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30936         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30937         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30938
30939 2009-06-30  Bruno Haible  <bruno@clisp.org>
30940
30941         Tests for module 'unicase/ignorable'.
30942         * modules/unicase/ignorable-tests: New file.
30943         * tests/unicase/test-ignorable.c: New file, generated by
30944         gen-uni-tables.
30945
30946         Tests for module 'unicase/cased'.
30947         * modules/unicase/cased-tests: New file.
30948         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30949         * tests/unicase/test-predicate-part1.h: New file, derived from
30950         tests/unictype/test-predicate-part1.h.
30951         * tests/unicase/test-predicate-part2.h: New file, same as
30952         tests/unictype/test-predicate-part2.h.
30953
30954         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30955         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30956         (output_casing_properties): New function.
30957         (main): Call it.
30958         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30959         * lib/unicase/cased.c: Include unictype/bitmap.h.
30960         (uc_is_cased): Define through a bitmap lookup.
30961         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30962         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30963         (uc_is_case_ignorable): Define through a bitmap lookup.
30964         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30965         lib/unictype/bitmap.h.
30966         (Depends-on): Add inline. Clean up.
30967         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30968         lib/unictype/bitmap.h.
30969         (Depends-on): Add inline. Clean up.
30970         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30971         recognition.
30972         * tests/unicase/test-u16-tolower.c (main): Likewise.
30973         * tests/unicase/test-u32-tolower.c (main): Likewise.
30974
30975 2009-06-30  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30978         * lib/unicase/u16-casemap.c: Likewise.
30979         * lib/unicase/u32-casemap.c: Likewise.
30980
30981 2009-06-29  Bruno Haible  <bruno@clisp.org>
30982
30983         Define u32_casefold as a wrapper around u32_ct_casefold.
30984         * lib/unicase/u32-casefold.c: Update.
30985         * modules/unicase/u32-casefold (Depends-on): Add
30986         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30987         unicase/empty-suffix-context. Clean up.
30988
30989         Define u16_casefold as a wrapper around u16_ct_casefold.
30990         * lib/unicase/u16-casefold.c: Update.
30991         * modules/unicase/u16-casefold (Depends-on): Add
30992         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30993         unicase/empty-suffix-context. Clean up.
30994
30995         Define u8_casefold as a wrapper around u8_ct_casefold.
30996         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30997         * lib/unicase/u8-casefold.c: Update.
30998         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30999         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31000
31001         Define u32_totitle as a wrapper around u32_ct_totitle.
31002         * lib/unicase/u32-totitle.c: Update.
31003         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31004         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31005
31006         Define u16_totitle as a wrapper around u16_ct_totitle.
31007         * lib/unicase/u16-totitle.c: Update.
31008         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31009         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31010
31011         Define u8_totitle as a wrapper around u8_ct_totitle.
31012         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31013         functions.
31014         (FUNC): Delegate to U_CT_TOTITLE.
31015         * lib/unicase/u8-totitle.c: Update.
31016         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31017         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31018
31019         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31020         invocation.
31021         * modules/unicase/u32-tolower (Depends-on): Add
31022         unicase/empty-prefix-context, unicase/empty-suffix-context.
31023
31024         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31025         invocation.
31026         * modules/unicase/u16-tolower (Depends-on): Add
31027         unicase/empty-prefix-context, unicase/empty-suffix-context.
31028
31029         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31030         * modules/unicase/u8-tolower (Depends-on): Add
31031         unicase/empty-prefix-context, unicase/empty-suffix-context.
31032
31033         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31034         invocation.
31035         * modules/unicase/u32-toupper (Depends-on): Add
31036         unicase/empty-prefix-context, unicase/empty-suffix-context.
31037
31038         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31039         invocation.
31040         * modules/unicase/u16-toupper (Depends-on): Add
31041         unicase/empty-prefix-context, unicase/empty-suffix-context.
31042
31043         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31044         * modules/unicase/u8-toupper (Depends-on): Add
31045         unicase/empty-prefix-context, unicase/empty-suffix-context.
31046
31047         New module 'unicase/u32-ct-casefold'.
31048         * lib/unicase/u32-ct-casefold.c: New file.
31049         * modules/unicase/u32-ct-casefold: New file.
31050
31051         New module 'unicase/u16-ct-casefold'.
31052         * lib/unicase/u16-ct-casefold.c: New file.
31053         * modules/unicase/u16-ct-casefold: New file.
31054
31055         New module 'unicase/u8-ct-casefold'.
31056         * lib/unicase/u8-ct-casefold.c: New file.
31057         * lib/unicase/u-ct-casefold.h: New file, derived from
31058         lib/unicase/u-casefold.h.
31059         * modules/unicase/u8-ct-casefold: New file.
31060
31061         New module 'unicase/u32-ct-totitle'.
31062         * lib/unicase/u32-ct-totitle.c: New file.
31063         * modules/unicase/u32-ct-totitle: New file.
31064
31065         New module 'unicase/u16-ct-totitle'.
31066         * lib/unicase/u16-ct-totitle.c: New file.
31067         * modules/unicase/u16-ct-totitle: New file.
31068
31069         New module 'unicase/u8-ct-totitle'.
31070         * lib/unicase/u8-ct-totitle.c: New file.
31071         * lib/unicase/u-ct-totitle.h: New file, derived from
31072         lib/unicase/u-totitle.h.
31073         * modules/unicase/u8-ct-totitle: New file.
31074
31075         New module 'unicase/u32-ct-tolower'.
31076         * lib/unicase/u32-ct-tolower.c: New file.
31077         * modules/unicase/u32-ct-tolower: New file.
31078
31079         New module 'unicase/u16-ct-tolower'.
31080         * lib/unicase/u16-ct-tolower.c: New file.
31081         * modules/unicase/u16-ct-tolower: New file.
31082
31083         New module 'unicase/u8-ct-tolower'.
31084         * lib/unicase/u8-ct-tolower.c: New file.
31085         * modules/unicase/u8-ct-tolower: New file.
31086
31087         New module 'unicase/u32-ct-toupper'.
31088         * lib/unicase/u32-ct-toupper.c: New file.
31089         * modules/unicase/u32-ct-toupper: New file.
31090
31091         New module 'unicase/u16-ct-toupper'.
31092         * lib/unicase/u16-ct-toupper.c: New file.
31093         * modules/unicase/u16-ct-toupper: New file.
31094
31095         New module 'unicase/u8-ct-toupper'.
31096         * lib/unicase/u8-ct-toupper.c: New file.
31097         * modules/unicase/u8-ct-toupper: New file.
31098
31099         Add context arguments to u*_casemap functions.
31100         * lib/unicase/unicasemap.h: Include unicase.h.
31101         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31102         suffix_context arguments.
31103         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31104         functions.
31105         (FUNC): Add prefix_context and suffix_context arguments. Use
31106         uc_is_cased and uc_is_case_ignorable.
31107         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31108         * lib/unicase/u16-casemap.c: Likewise.
31109         * lib/unicase/u32-casemap.c: Likewise.
31110         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31111         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31112         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31113         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31114         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31115         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31116
31117         New module 'unicase/u32-suffix-context'.
31118         * lib/unicase/u32-suffix-context.c: New file.
31119         * modules/unicase/u32-suffix-context: New file.
31120
31121         New module 'unicase/u16-suffix-context'.
31122         * lib/unicase/u16-suffix-context.c: New file.
31123         * modules/unicase/u16-suffix-context: New file.
31124
31125         New module 'unicase/u8-suffix-context'.
31126         * lib/unicase/u8-suffix-context.c: New file.
31127         * lib/unicase/u-suffix-context.h: New file.
31128         * modules/unicase/u8-suffix-context: New file.
31129
31130         New module 'unicase/empty-suffix-context'.
31131         * lib/unicase/empty-suffix-context.c: New file.
31132         * modules/unicase/empty-suffix-context: New file.
31133
31134         New module 'unicase/u32-prefix-context'.
31135         * lib/unicase/u32-prefix-context.c: New file.
31136         * modules/unicase/u32-prefix-context: New file.
31137
31138         New module 'unicase/u16-prefix-context'.
31139         * lib/unicase/u16-prefix-context.c: New file.
31140         * modules/unicase/u16-prefix-context: New file.
31141
31142         New module 'unicase/u8-prefix-context'.
31143         * lib/unicase/u8-prefix-context.c: New file.
31144         * lib/unicase/u-prefix-context.h: New file.
31145         * lib/unicase/context.h: New file.
31146         * modules/unicase/u8-prefix-context: New file.
31147
31148         New module 'unicase/empty-prefix-context'.
31149         * lib/unicase/empty-prefix-context.c: New file.
31150         * modules/unicase/empty-prefix-context: New file.
31151
31152         New module 'unicase/ignorable'.
31153         * lib/unicase/ignorable.c: New file.
31154         * modules/unicase/ignorable: New file.
31155
31156         New module 'unicase/cased'.
31157         * lib/unicase/caseprop.h: New file.
31158         * lib/unicase/cased.c: New file.
31159         * modules/unicase/cased: New file.
31160
31161         New functions for case mapping of substrings.
31162         * lib/unicase.h (casing_prefix_context_t): New type.
31163         (unicase_empty_prefix_context): New variable.
31164         (u8_casing_prefix_context, u16_casing_prefix_context,
31165         u32_casing_prefix_context, u8_casing_prefixes_context,
31166         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31167         declarations.
31168         (casing_suffix_context_t): New type.
31169         (unicase_empty_suffix_context): New variable.
31170         (u8_casing_suffix_context, u16_casing_suffix_context,
31171         u32_casing_suffix_context, u8_casing_suffixes_context,
31172         u16_casing_suffixes_context, u32_casing_suffixes_context,
31173         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31174         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31175         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31176         declarations.
31177
31178 2009-06-28  Jim Meyering  <meyering@redhat.com>
31179
31180         boostrap: indent only with spaces
31181         * build-aux/bootstrap: Indent only with spaces, never TABs.
31182
31183         bootstrap: split long lines
31184         * build-aux/bootstrap: Keep line length < 80.
31185
31186         bootstrap: sync from coreutils
31187         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31188         just as autoreconf does.  Verify a list of prerequisite
31189         package-name,version-number pairs if defined in bootstrap.conf.
31190         Refer to README-prereq, if prerequisites are not satisfied.
31191
31192 2009-06-27  Eric Blake  <ebb9@byu.net>
31193
31194         tests: add test for bogus NULL definition
31195         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31196         * tests/test-stdlib.c: Likewise.
31197         * tests/test-string.c: Likewise.
31198         * tests/test-locale.c: Likewise.
31199         * tests/test-unistd.c: Likewise.
31200         * modules/stdio-tests (Depends-on): Add verify.
31201         * modules/stdlib-tests (Depends-on): Likewise.
31202         * modules/string-tests (Depends-on): Likewise.
31203         * modules/locale-tests (Depends-on): Likewise.
31204         * modules/unistd-tests (Depends-on): Likewise.
31205
31206 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31207
31208         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31209         self-explaining comment.
31210         * m4/selinux-selinux-h: Update serial.
31211         (gl_LIBSELINUX): New macro, adding a warning for missing development
31212         packages to code extracted from...
31213         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31214         Add warning for missing development packages here, too.
31215
31216 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31217
31218         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31219
31220 2009-06-25  Eric Blake  <ebb9@byu.net>
31221
31222         version-etc: fix regression
31223         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31224         gcc.
31225         (version_etc): Use it, to catch bugs with trailing NULL.
31226         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31227         (version_etc_va): Fix logic bug.
31228         * modules/version-etc-tests: Add test.
31229         * tests/test-version-etc.c: New file.
31230         * tests/test-version-etc.sh: Likewise.
31231
31232 2009-06-25  Sam Steingold  <sds@gnu.org>
31233
31234         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31235         mbtowc declaration.
31236
31237 2009-06-25  Eric Blake  <ebb9@byu.net>
31238
31239         fpurge: migrate into <stdio.h>
31240         * lib/fpurge.h: Delete...
31241         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31242         * lib/fpurge.c (fpurge): Change declaring header.
31243         * modules/fpurge (Files): Drop deleted file.
31244         (Depends-on): Add stdio.
31245         (configure.ac): Set witness.
31246         * modules/stdio (Makefile.am): Support fpurge macros.
31247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31249         * lib/fflush.c: Update client.
31250         * tests/test-fpurge.c: Likewise.
31251         * NEWS: Mention the change.
31252
31253 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31254
31255         * lib/argp-version-etc.c (program_authors): Add const
31256         qualifier.
31257         * lib/version-etc.c: Fix typos in the comments.
31258         * modules/argp-version-etc: Depends on version-etc.
31259
31260 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31261
31262         argp-version-etc: new module.
31263
31264         * lib/argp-version-etc.c: New file.
31265         * lib/argp-version-etc.h: New file.
31266         * modules/argp-version-etc: New file.
31267         * modules/argp-version-etc-tests: New file.
31268         * tests/test-argp-version-etc.c: New test.
31269         * tests/test-argp-version-etc-1.sh: New test.
31270
31271 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31272
31273         Provide additional interfaces and documentation for version-etc
31274         module.
31275
31276         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31277         interfaces.
31278         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31279         prototypes.
31280
31281 2009-06-24  Bruno Haible  <bruno@clisp.org>
31282
31283         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31284         HAVE_LIB${NAME} macro.
31285         Reported by Sam Steingold <sds@gnu.org>.
31286
31287 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31288
31289         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31290         needed.
31291
31292 2009-06-21  Bruno Haible  <bruno@clisp.org>
31293
31294         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31295         work.
31296         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31297         together with LIB${NAME}, LTLIB${NAME}.
31298         Reported by Sam Steingold <sds@gnu.org>.
31299
31300 2009-06-20  Jim Meyering  <meyering@redhat.com>
31301
31302         tests: make sc_require_test_exit_idiom more generic
31303         * top/maint.mk (Exit_witness_file): New overridable variable.
31304         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31305         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31306
31307 2009-06-19  Jim Meyering  <meyering@redhat.com>
31308
31309         hash: reverse order of src/dst parameters in an internal interface
31310         * lib/hash.c (transfer_entries): Reverse order of parameters to
31311         put DST before SRC.  Adjust callers.
31312
31313         tests: test-hash: avoid wholesale duplication
31314         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31315         Instead, use a loop and add a single conditional.
31316
31317         tests: test-hash: allow seed selection via a command line argument
31318         * tests/test-hash.c (get_seed): New function.
31319         (main): Use it.
31320
31321 2009-06-19  Eric Blake  <ebb9@byu.net>
31322
31323         hash: avoid memory leak on allocation failure
31324         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31325         failure.  Factor repeated algorithm...
31326         (transfer_entries): ...into new helper routine.
31327         (hash_delete): React to hash_rehash return value.
31328
31329         hash: reduce memory pressure in hash_rehash no-op case
31330         * lib/hash.c (next_prime): Avoid overflow.
31331         (hash_initialize): Factor bucket size computation...
31332         (compute_bucket_size): ...into new helper function.
31333         (hash_rehash): Use new function and open coding to reduce memory
31334         pressure, and avoid a memory leak in USE_OBSTACK code.
31335         Reported by Jim Meyering.
31336
31337 2009-06-18  Eric Blake  <ebb9@byu.net>
31338
31339         hash: make rotation more obvious
31340         * modules/hash (Depends-on): Add bitrotate and stdint.
31341         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31342         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31343         (SIZE_MAX): Rely on headers for definition.
31344         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31345         (raw_hasher): Use rotr_sz.
31346         Suggested by Jim Meyering.
31347
31348         hash: fix memory leak in last patch
31349         * lib/hash.c (hash_rehash): Avoid memory leak.
31350
31351         hash: avoid no-op rehashing
31352         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31353
31354         hash: provide default callback functions
31355         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31356         (hash_initialize): Use them as defaults.
31357         * tests/test-hash.c (main): Test this.
31358
31359         hash: minor optimization
31360         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31361         when possible.
31362         (hash_initialize): Document this promise.
31363         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31364         * tests/test-hash.c (hash_compare_strings): Test this.
31365
31366 2009-06-18  Bruno Haible  <bruno@clisp.org>
31367
31368         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31369         going to be replaced anyway.
31370
31371 2009-06-18  Bruno Haible  <bruno@clisp.org>
31372
31373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31374         in one place.
31375         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31376         be replaced anyway.
31377
31378 2009-06-18  Eric Blake  <ebb9@byu.net>
31379
31380         hash: check for resize before insertion
31381         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31382         threshold before insertion, so that a pathological hash_rehash
31383         that fills every bucket can still trigger another rehash.
31384
31385 2009-06-18  Jim Meyering  <meyering@redhat.com>
31386
31387         hash-tests: add a loop around the small tests
31388         * tests/test-hash.c (main): Repeat small tests with selected
31389         small initial table sizes.
31390
31391 2009-06-17  Eric Blake  <ebb9@byu.net>
31392
31393         hash: minor cleanups
31394         * lib/hash.h (hash_entry): Make opaque, by moving...
31395         * lib/hash.c (hash_entry): ...here.
31396         (hash_insert): Clarify restrictions on what can be inserted.
31397         (hash_get_next): Clarify when it is safe to remove an element
31398         during traversal.
31399         (check_tuning): Skip verification when tuning is known safe.
31400         (hash_initialize): Clarify restrictions on tuning.
31401
31402 2009-06-17  Jim Meyering  <jim@meyering.net>
31403         and Eric Blake  <ebb9@byu.net>
31404
31405         hash-tests: new module
31406         * modules/hash-tests: New file.
31407         * tests/test-hash.c: New file.
31408
31409 2009-06-17  Eric Blake  <ebb9@byu.net>
31410
31411         strstr-simple: document new module
31412         * MODULES.html.sh: Document new module.
31413
31414         strstr, strcasestr: replace on platforms with broken memchr
31415         * modules/strstr: Split into...
31416         * modules/strstr-simple: ...new module that does not care about
31417         performance, but does care about glibc bug.
31418         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31419         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31420         if platform memchr is broken, per Debian bug 521737.
31421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31422         memchr.
31423         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31424         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31425         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31426         * modules/mountlist (Depends-on): Add strstr-simple.
31427         * modules/gen-uni-tables (Depends-on): Likewise.
31428         * modules/argz (Depends-on): Add strstr.
31429
31430 2009-06-17  Bruno Haible  <bruno@clisp.org>
31431
31432         * modules/posix_spawn-internal (Depends-on): Add errno.
31433
31434 2009-06-17  Bruno Haible  <bruno@clisp.org>
31435
31436         Define missing ESTALE on Interix 3.5.
31437         * lib/errno.in.h (ESTALE): Assign a value if missing.
31438         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31440         missing.
31441         * doc/posix-headers/errno.texi: Mention the Interix bug.
31442         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31443
31444 2009-06-15  Eric Blake  <ebb9@byu.net>
31445
31446         memchr, memchr2: add valgrind exception
31447         * lib/memchr.valgrind: New file.
31448         * lib/memchr2.valgrind: New file.
31449         * modules/memchr (Files): Distribute valgrind file.
31450         * modules/memchr2 (Files): Likewise.
31451
31452         docs: memchr is no longer obsolete
31453         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31454         * lib/string.in.h (memchr): Simplify logic.
31455
31456 2009-06-14  Jim Meyering  <meyering@redhat.com>
31457
31458         link-follow: fix the "checking..." message to not mention trailing slash
31459         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31460         never considered trailing slashes.
31461
31462 2009-06-14  Bruno Haible  <bruno@clisp.org>
31463
31464         * m4/memchr.m4: Mention also the bug on IA-64.
31465         * doc/posix-functions/memchr.texi: Likewise.
31466
31467 2009-06-12  Eric Blake  <ebb9@byu.net>
31468
31469         memchr: detect broken x86_64 and alpha implementations
31470         * modules/memchr-tests (Depends-on): Move mmap detection...
31471         * modules/memchr (Depends-on): ...here.
31472         (configure.ac): Set indicator.
31473         * lib/string.in.h (memchr): Declare replacement.
31474         * modules/string (Makefile.am): Trigger replacement.
31475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31476         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31477         bugs.
31478         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31479         * modules/getpagesize (License): Relax license.
31480
31481 2009-06-11  Bruno Haible  <bruno@clisp.org>
31482
31483         * lib/idpriv.h: Add more references.
31484
31485 2009-06-08  Bruno Haible  <bruno@clisp.org>
31486
31487         Tests for module 'idpriv-droptemp'.
31488         * modules/idpriv-droptemp-tests: New file.
31489         * tests/test-idpriv-droptemp.sh: New file.
31490         * tests/test-idpriv-droptemp.su.sh: New file.
31491         * tests/test-idpriv-droptemp.c: New file.
31492
31493         New module 'idpriv-droptemp'.
31494         * lib/idpriv-droptemp.c: New file.
31495         * modules/idpriv-droptemp: New file.
31496
31497 2009-06-08  Bruno Haible  <bruno@clisp.org>
31498
31499         Tests for module 'idpriv-drop'.
31500         * modules/idpriv-drop-tests: New file.
31501         * tests/test-idpriv-drop.sh: New file.
31502         * tests/test-idpriv-drop.su.sh: New file.
31503         * tests/test-idpriv-drop.c: New file.
31504
31505         New module 'idpriv-drop'.
31506         * lib/idpriv.h: New file.
31507         * lib-idpriv-drop.c: New file.
31508         * m4/idpriv.m4: New file.
31509         * modules/idpriv-drop: New file.
31510
31511 2009-06-08  Bruno Haible  <bruno@clisp.org>
31512
31513         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31514         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31515         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31516         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31517         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31518         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31519         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31520
31521 2009-06-08  Eric Blake  <ebb9@byu.net>
31522
31523         test-strstr: use memory fence, when possible
31524         * tests/test-strstr.c (main): Use memory fence, in order to be
31525         more likely to trigger Debian bug 521737.
31526         * modules/strstr-tests (Files): Pull in additional files.
31527
31528         memchr: no longer obsolete, for wider field testing
31529         * modules/memchr (Status, Notice): Delete, this module is no
31530         longer obsolete.
31531         * modules/vasnprintf (Depends-on): Add memchr.
31532
31533 2009-06-07  Jim Meyering  <meyering@redhat.com>
31534
31535         hash: declare some functions with the warn_unused_result attribute
31536         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31537
31538 2009-06-07  Bruno Haible  <bruno@clisp.org>
31539
31540         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31541         Reported by Eric Blake.
31542
31543 2009-06-06  Eric Blake  <ebb9@byu.net>
31544
31545         test-alignof: fix typo with long double
31546         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31547         compiler error.
31548
31549 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31550
31551         Escape non-texinfo { and }s.
31552         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31553         markup error.
31554
31555 2009-06-04  Jim Meyering  <meyering@redhat.com>
31556
31557         gitlog-to-changelog: don't infloop on an empty commit log
31558         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31559         Reported by Boris Petersen <transacid@centerim.org>.
31560
31561 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31562
31563         version-etc: extend for packagers
31564         Add three new configure options, intended for packagers:
31565           --with-packager="packager name"
31566           --with-packager-version="packager-specific version"
31567           --with-packager-bug-reports="packager bug reporting"
31568         An example with coreutils:
31569           $ ./configure \
31570             --with-packager=Gentoo \
31571             --with-packager-bug-report=http://bugs.gentoo.org/ \
31572             --with-packager-version="patchset 1.6"
31573           $ ./src/ls --version | head -n2
31574           ls (GNU coreutils) 7.1-dirty
31575           Packaged by Gentoo (patchset 1.6)
31576         Note that the bug reporting info via --help doesn't show up because
31577         coreutils uses its own custom emit_bug_reporting_address() implementation
31578         in src/system.h.  If it didn't, it'd look like:
31579           $ ./src/ls --help | tail -n4
31580           Report bugs to <bug-coreutils@gnu.org>.
31581           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31582           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31583           General help using GNU software: <http://www.gnu.org/gethelp/>.
31584         * lib/version-etc.c: Print new information, if provided.
31585         * m4/version-etc.m4: New file.
31586         * modules/version-etc (Files): Add m4/version-etc.m4.
31587         (configure.ac): Add gl_VERSION_ETC.
31588
31589 2009-05-31  Bruno Haible  <bruno@clisp.org>
31590
31591         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31592         and 'int64_t'.
31593         * modules/alignof-tests (Dependencies): Add stdint.
31594         Reported by Eric Blake.
31595
31596 2009-05-31  Bruno Haible  <bruno@clisp.org>
31597
31598         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31599         restriction due to compiler bugs.
31600         Reported by Eric Blake.
31601
31602 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31603             Bruno Haible  <bruno@clisp.org>
31604
31605         Fix test-alignof failure.
31606         * lib/alignof.h (alignof_slot): New macro.
31607         (alignof_type): New macro, with the same semantics as the previous
31608         'alignof'.
31609         (alignof): Alias to alignof_slot.
31610         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31611         check that the results are usable as constant expressions.
31612
31613 2009-05-31  Bruno Haible  <bruno@clisp.org>
31614
31615         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31616         * tests/test-memchr.c (main): Check that memchr does not read past the
31617         first occurrence of the byte.
31618         * tests/test-strstr.c (main): Update comment.
31619         Suggested by Eric Blake.
31620
31621 2009-05-30  Bruno Haible  <bruno@clisp.org>
31622
31623         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31624         detail how to use dumpbin.
31625         Reported by David Byron <dbyron@dbyron.com>.
31626
31627 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31628
31629         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31630
31631 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31632
31633         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31634
31635 2009-05-28  Bruno Haible  <bruno@clisp.org>
31636
31637         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31638         build-aux/ files.
31639
31640 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31641
31642         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31643
31644 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31645
31646         * gnulib-tool (sed_transform_main_lib_file)
31647         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31648         regexps.
31649
31650 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31651
31652         * tests/test-strstr.c: Add another self-test.
31653         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31654         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31655
31656 2009-05-23  Bruno Haible  <bruno@clisp.org>
31657
31658         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31659         change.
31660
31661 2009-05-21  Bruno Haible  <bruno@clisp.org>
31662
31663         Simplify use of mode_t varargs.
31664         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31665         uses 'mode_t' or 'int'.
31666         * lib/openat.c (openat): Likewise.
31667         * lib/open-safer.c (open_safer): Likewise.
31668         * m4/mode_t.m4: New file.
31669         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31670         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31672         * modules/open (Files): Add m4/mode_t.m4.
31673         * modules/openat (Files): Likewise.
31674         * modules/fcntl-safer (Files): Likewise.
31675         Suggested by Eric Blake.
31676
31677 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31678
31679         * doc/glibc-functions/fallocate.texi: New file.
31680         * doc/gnulib.texi: Include it.
31681
31682 2009-05-21  Eric Blake  <ebb9@byu.net>
31683             Bruno Haible  <bruno@clisp.org>
31684
31685         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31686         invocations.
31687         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31688
31689 2009-05-21  Eric Blake  <ebb9@byu.net>
31690             Bruno Haible  <bruno@clisp.org>
31691
31692         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31693         include_next. Fix of 2008-11-20 commit.
31694         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31695         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31696         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31697         NEXT_MATH_H.
31698         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31699         instead of NEXT_MATH_H.
31700
31701 2009-05-21  Bruno Haible  <bruno@clisp.org>
31702
31703         Avoid redefinition warnings for SIZE_MAX.
31704         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31705         Reported by Simon Josefsson.
31706
31707 2009-05-21  Bruno Haible  <bruno@clisp.org>
31708
31709         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31710         AC_CACHE_VAL.
31711
31712 2009-05-20  Bruno Haible  <bruno@clisp.org>
31713
31714         Make zeroptr.h work on mingw.
31715         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31716         mprotect.
31717         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31718         * modules/memchr2-tests (configure.ac): Likewise.
31719         * modules/memcmp-tests (configure.ac): Likewise.
31720         * modules/memmem-tests (configure.ac): Likewise.
31721         * modules/memrchr-tests (configure.ac): Likewise.
31722         Reported by Simon Josefsson.
31723
31724 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31725
31726         * tests/test-glob.c: Include string.h for strcmp prototype.
31727
31728 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31729
31730         * modules/getdelim (Depends-on): Add explicit stdint, although it
31731         was implicitly already pulled in via realloc-posix.
31732         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31733
31734 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31735
31736         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31737         G. Christensen" <tgc@jupiterrise.com>.
31738         * m4/sys_socket_h.m4: Check for sa_family_t.
31739         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31740         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31741         * tests/test-sys_socket.c: Check that sa_family_t works.
31742
31743 2009-05-18  Eric Blake  <ebb9@byu.net>
31744
31745         maint.mk: allow gnulib_dir in VPATH build
31746         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31747
31748 2009-05-15  Jim Meyering  <meyering@redhat.com>
31749
31750         maint.mk: Give gnulib_dir a default definition.
31751         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31752         Thus, most packages no longer need to specify this variable in cfg.mk
31753
31754 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31755
31756         rename.m4: fix typos that would make non-mingw cross-configure fail
31757         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31758
31759 2009-05-13  Eric Blake  <ebb9@byu.net>
31760
31761         mmap-anon: avoid out-of-order autoconf expansion
31762         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31763         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31764         * modules/memchr-tests (Depends-on): Add extensions.
31765         * modules/memchr2-tests (Depends-on): Add extensions.
31766         * modules/memcmp-tests (Depends-on): Add extensions.
31767         * modules/memmem-tests (Depends-on): Add extensions.
31768         * modules/memrchr-tests (Depends-on): Add extensions.
31769
31770 2009-05-13  Bruno Haible  <bruno@clisp.org>
31771
31772         Make some tests ISO C 99 compliant.
31773         * tests/zerosize-ptr.h: New file.
31774         * tests/test-memchr.c: Include zerosize-ptr.h.
31775         (main): Use a zero-size object pointer instead of NULL.
31776         * tests/test-memchr2.c: Include zerosize-ptr.h.
31777         (main): Use a zero-size object pointer instead of NULL.
31778         * tests/test-memcmp.c: Include zerosize-ptr.h.
31779         (main): Use a zero-size object pointer instead of NULL.
31780         * tests/test-memmem.c: Include zerosize-ptr.h.
31781         (main): Use a zero-size object pointer instead of NULL.
31782         * tests/test-memrchr.c: Include zerosize-ptr.h.
31783         (main): Use a zero-size object pointer instead of NULL.
31784         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31785         m4/mmap-anon.m4.
31786         (Depends-on): Add getpagesize.
31787         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31788         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31789         m4/mmap-anon.m4.
31790         (Depends-on): Add getpagesize.
31791         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31792         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31793         m4/mmap-anon.m4.
31794         (Depends-on): Add getpagesize.
31795         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31796         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31797         m4/mmap-anon.m4.
31798         (Depends-on): Add getpagesize.
31799         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31800         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31801         m4/mmap-anon.m4.
31802         (Depends-on): Add getpagesize.
31803         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31804
31805 2009-05-12  Bruno Haible  <bruno@clisp.org>
31806
31807         Tests for module 'alignof'.
31808         * modules/alignof-tests: New file.
31809         * tests/test-alignof.c: New file.
31810
31811 2009-05-12  Bruno Haible  <bruno@clisp.org>
31812
31813         Fix alignof macro.
31814         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31815         vendor compilers that are always correct.
31816
31817 2009-05-12  Bruno Haible  <bruno@clisp.org>
31818
31819         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31820         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31821         not whether its fully works.
31822
31823 2009-05-12  Bruno Haible  <bruno@clisp.org>
31824
31825         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31826
31827 2009-05-12  Jim Meyering  <meyering@redhat.com>
31828
31829         * top/maint.mk: Adjust backslash alignment.
31830
31831 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31832
31833         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31834
31835 2009-05-11  Eric Blake  <ebb9@byu.net>
31836
31837         argp: avoid undefined behavior
31838         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31839         macros.
31840
31841 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31842
31843         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31844         user.name to prevent git commit from complaining.
31845
31846 2009-05-10  Bruno Haible  <bruno@clisp.org>
31847
31848         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31849         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31850         it rewrites every file name only once.
31851         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31852
31853 2009-05-08  Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31856         instead of 'max'.
31857
31858 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31859
31860         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31861         sockaddr_storage test.
31862
31863 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31864
31865         * modules/sys_socket (Makefile.am): Substitute
31866         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31867         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31868         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31869         * tests/test-sys_socket.c: Check sockaddr_storage.
31870
31871 2009-05-08  Bruno Haible  <bruno@clisp.org>
31872
31873         New module 'alignof'.
31874         * lib/alignof.h: New file.
31875         * modules/alignof: New file.
31876
31877 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31878             Bruno Haible  <bruno@clisp.org>
31879
31880         Fix test-file-has-acl on FreeBSD.
31881         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31882         mask is implicitly added.
31883         * tests/test-file-has-acl.c: Include <signal.h>.
31884         (main): Terminate the test after 5 seconds.
31885         * modules/acl-tests (configure.ac): Check for alarm function.
31886
31887 2009-05-04  Bruno Haible  <bruno@clisp.org>
31888
31889         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31890         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31891         * modules/errno (configure.ac): Drop AC_REQUIRE.
31892         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31893         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31894
31895 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31896
31897         * modules/glob-tests: New module.
31898         * tests/test-glob.c: Add.
31899
31900 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31901
31902         * modules/fnmatch-tests: New module.
31903         * tests/test-fnmatch.c: Add.
31904
31905 2009-05-04  Eric Blake  <ebb9@byu.net>
31906
31907         maint: make the new no-submodule-changes rule VPATH-safe
31908         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31909
31910 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31911             Bruno Haible  <bruno@clisp.org>
31912
31913         acl: Fix infinite loop on FreeBSD.
31914         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31915         of return value from acl_get_entry.
31916         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31917         Likewise.
31918
31919 2009-05-03  Bruno Haible  <bruno@clisp.org>
31920
31921         * lib/acl-internal.h (acl_entries): Clarify return value.
31922         * lib/acl_entries.c (acl_entries): Likewise.
31923
31924 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31925
31926         Bug fix in acl module.
31927         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31928
31929 2009-05-03  Bruno Haible  <bruno@clisp.org>
31930
31931         Create gperf-generated file in the source dir, not in the build dir.
31932         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31933         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31934         * modules/unicase/locale-language (unicase/locale-languages.h):
31935         Likewise.
31936         * modules/unicase/special-casing (unicase/special-casing-table.h):
31937         Likewise.
31938         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31939         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31940         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31941         Reported by Ralf Wildenhues.
31942
31943 2009-05-03  Bruno Haible  <bruno@clisp.org>
31944
31945         * modules/fnmatch (Description, configure.ac): Taken from
31946         fnmatch-posix.
31947         * modules/fnmatch-posix: Turn into a symbolic reference to the
31948         'fnmatch' module, and deprecate.
31949         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31950
31951 2009-05-03  Bruno Haible  <bruno@clisp.org>
31952
31953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31954         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31955         Reported by Ralf Wildenhues.
31956
31957 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31958
31959         * m4/fnmatch.m4: Fix fnmatch re-define.
31960
31961 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31962
31963         priv-set: new module and tests; adapt write-any-file
31964         * lib/priv-set.c: New file.
31965         * lib/priv-set.h: New file.
31966         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31967         * lib/write-any-file.c: Simplify by using priv-set module.
31968         * m4/priv-set.m4: New file.
31969         * modules/priv-set: New file.
31970         * modules/unlinkdir: Add dependency on priv-set module.
31971         * modules/write-any-file: Likewise.
31972
31973         Tests for module 'priv-set'.
31974         * modules/priv-set-tests: New file.
31975         * tests/test-priv-set.c: New file.
31976
31977 2009-05-03  Jim Meyering  <meyering@redhat.com>
31978             Bruno Haible  <bruno@clisp.org>
31979
31980         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31981         use the converted UTF-8 variant of the name instead.
31982
31983 2009-05-03  Jim Meyering  <meyering@redhat.com>
31984
31985         tests: tighten some getdate tests
31986         * tests/test-getdate.c (main): Tighten tests: require equality,
31987         not just greater than.  Set TZ envvar to UTC0.
31988
31989 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31990
31991         getdate: correctly interpret "next monday" when run on a Monday
31992         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31993         that e.g., "next tues" (when run on a tuesday) results in a date
31994         that is one week in the future, and not today's date.
31995         I.e., add a week when the wday is the same as the current one.
31996         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31997         and earlier by Martin Bernreuther and Jan Minář.
31998         * tests/test-getdate.c (main): Check that "next DAY" is always in
31999         the future and that "last DAY" is always in the past.
32000
32001 2009-05-02  Jim Meyering  <meyering@redhat.com>
32002
32003         build: ensure that a release build fails when a submodule is unclean
32004         * top/maint.mk (no-submodule-changes): New rule.
32005         (alpha beta major): Depend on it.
32006
32007 2009-05-02  Bruno Haible  <bruno@clisp.org>
32008
32009         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32010         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32011         shell variable gl_fnmatch_required to detect which variant is
32012         requested.
32013         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32014         gl_FUNC_FNMATCH_POSIX.
32015         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32016         exclude fnmatch-posix.
32017
32018 2009-05-02  Bruno Haible  <bruno@clisp.org>
32019
32020         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32021         * modules/mbsrtowcs (License): Change to LGPLv2+.
32022         * modules/strnlen1 (License): Likewise.
32023         Reported by Simon Josefsson.
32024
32025 2009-05-02  Bruno Haible  <bruno@clisp.org>
32026
32027         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32028         "cross".
32029         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32030         gnulib-tool was called with option --source-base=lib.
32031
32032 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32033
32034         Use automake *-local hooks without commands, for extensibility.
32035         * modules/localcharset (Makefile.am): Rename install-exec-local
32036         rule to install-exec-localcharset, and make it a prerequisite of
32037         install-exec-local.  Likewise, rename the uninstall-local rule to
32038         uninstall-localcharset, and make it a prerequisite of the former.
32039
32040 2009-05-01  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32043         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32044         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32046         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32047         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32048         m4/locale-zh.m4, m4/codeset.m4.
32049
32050         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32051         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32052         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32053         m4/locale-zh.m4.
32054
32055         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32056         REPLACE_WCRTOMB if mbstate_t must be replaced.
32057         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32058         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32059
32060 2009-05-01  Bruno Haible  <bruno@clisp.org>
32061
32062         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32063         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32064         dngettext, dcngettext, textdomain, bindtextdomain,
32065         bind_textdomain_codeset): Undefine before redefining.
32066
32067 2009-04-30  Bruno Haible  <bruno@clisp.org>
32068
32069         Fix bug introduced on 2009-04-25.
32070         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32071         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32072         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32073         is defined.
32074         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32075         is defined.
32076         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32077         is defined.
32078         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32079
32080 2009-04-28  Bruno Haible  <bruno@clisp.org>
32081
32082         Comment tweaks.
32083         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32084         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32085         * lib/unicase.h (u*_casexfrm): Likewise.
32086         Reported by Paolo Bonzini.
32087
32088 2009-04-28  Bruno Haible  <bruno@clisp.org>
32089
32090         Fix a compilation error.
32091         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32092         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32093         Reported by Jim Meyering.
32094
32095 2009-04-27  Bruno Haible  <bruno@clisp.org>
32096
32097         New module 'libunistring'.
32098         * modules/libunistring: New file.
32099         * m4/libunistring.m4: New file.
32100         * MODULES.html.sh (Unicode string functions): Add it.
32101
32102 2009-04-27  Eric Blake  <ebb9@byu.net>
32103
32104         maint.mk: allow package-specific header to provide <config.h>
32105         * top/maint.mk (sc_require_config_h): New variable.
32106         (sc_require_config_h, sc_require_config_h_first): Use it.
32107
32108 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32109
32110         * top/maint.mk (sc_avoid_if_before_free): Except
32111         useless-if-before-free script.
32112
32113 2009-04-27  Eric Blake  <ebb9@byu.net>
32114
32115         maintainer-makefile: depend on all required helper scripts
32116         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32117         useless-if-before-free.
32118         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32119         version, rather than assuming gnulib checkout is available.
32120         Reported by Simen Josefsson.
32121
32122 2009-04-26  Bruno Haible  <bruno@clisp.org>
32123
32124         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32125         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32126         "../" or "..".
32127
32128 2009-04-26  Bruno Haible  <bruno@clisp.org>
32129
32130         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32131         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32132         AC_LIB_HAVE_LINKFLAGS.
32133
32134 2009-04-26  Bruno Haible  <bruno@clisp.org>
32135
32136         Simplify calling convention of u*_conv_from_encoding.
32137         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32138         u32_conv_from_encoding): Expect a resultbuf argument and return the
32139         result directly as a pointer.
32140         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32141         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32142         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32143         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32144         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32145         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32146         Update.
32147         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32148         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32149         * lib/vasnprintf.c (VASNPRINTF): Update.
32150         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32151         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32152         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32153         * NEWS: Mention the change.
32154
32155 2009-04-26  Bruno Haible  <bruno@clisp.org>
32156
32157         Simplify calling convention of u*_conv_to_encoding.
32158         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32159         u32_conv_to_encoding): Expect a resultbuf argument and return the
32160         result directly as a pointer.
32161         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32162         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32163         freeing scaled_offsets if mem_iconveha failed.
32164         * lib/unicase/u-casexfrm.h (FUNC): Update.
32165         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32166         * lib/vasnprintf.c (VASNPRINTF): Update.
32167         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32168         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32169         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32170         * NEWS: Mention the change.
32171
32172 2009-04-26  Bruno Haible  <bruno@clisp.org>
32173
32174         Avoid test failures on AIX and OSF/1.
32175         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32176         malloc(0).
32177         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32178         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32179         Likewise.
32180         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32181         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32182         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32183         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32184         * doc/posix-functions/malloc.texi: Document the portability problem
32185         related to malloc(0).
32186
32187 2009-04-26  Bruno Haible  <bruno@clisp.org>
32188
32189         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32190         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32191         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32192
32193 2009-04-25  Bruno Haible  <bruno@clisp.org>
32194
32195         Avoid link error when creating a namespace clean library.
32196         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32197         as macro with arguments if already defined as an alias.
32198         * lib/signbitf.c (gl_signbitf): Don't undefine.
32199         * lib/signbitd.c (gl_signbitd): Don't undefine.
32200         * lib/signbitl.c (gl_signbitl): Don't undefine.
32201
32202 2009-04-25  Jim Meyering  <meyering@redhat.com>
32203
32204         vc-list-files: fix another quoting bug
32205         * build-aux/vc-list-files: Avoid sed backslash expansion
32206         of pathological directory names.
32207
32208 2009-04-25  Eric Blake  <ebb9@byu.net>
32209
32210         vc-list-files: fix shell quoting error
32211         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32212         timestamp.
32213
32214 2009-04-25  Jim Meyering  <meyering@redhat.com>
32215
32216         vc-list-files: restore lost functionality with subdir argument
32217         * build-aux/vc-list-files: When given a non-"." sub-directory
32218         argument, substitute the $dir/ prefix back onto each resulting name.
32219         Otherwise, coreutils' root_tests check would fail.
32220
32221 2009-04-24  Eric Blake  <ebb9@byu.net>
32222
32223         vc-list-files: ignore git symlinks
32224         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32225         than ls-files, to ignore git symlinks.
32226
32227         maint.mk: import improvements from m4
32228         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32229         (move_if_change): Delete unused macro.
32230         (news-date-check, vc-diff-check): Support VPATH builds.
32231         (announcement): Likewise.  Split --bootstrap-tools list...
32232         (boostrap-tools): ...into separate list, which can be overridden
32233         in cfg.mk.
32234         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32235         requiring dependency on useless-if-before-free module.
32236         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32237         Support VPATH builds.
32238
32239 2009-04-24  Jim Meyering  <meyering@redhat.com>
32240
32241         maint.mk: remove coreutils-specific rules and variables
32242         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32243         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32244         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32245
32246         maint.mk: remove obsolete rule
32247         * top/maint.mk (rel-check): Remove rule.
32248         (WGET, WGETFLAGS): Remove now-unused variables.
32249
32250 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32251
32252         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32253         consistency.
32254
32255         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32256         '$(PATH_SEPARATOR)' instead of ':'.
32257
32258 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32259
32260         * lib/getopt1.c (main): Use 'const' for static array.
32261
32262 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32263
32264         * top/maint.mk: Sync with coreutils.
32265         * NEWS: Explain incompatibilities.
32266
32267 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32268             Bruno Haible  <bruno@clisp.org>
32269
32270         Fix cross-compilation results.
32271         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32272         statement, as third argument of AC_TRY_RUN.
32273         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32274         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32275         Likewise.
32276         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32277         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32278         Likewise.
32279         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32280         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32281         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32282
32283 2009-04-20  Bruno Haible  <bruno@clisp.org>
32284
32285         Avoid test failure on mingw.
32286         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32287
32288 2009-04-20  Bruno Haible  <bruno@clisp.org>
32289
32290         Avoid compilation error on mingw.
32291         * modules/localename-tests (Depends-on): Add locale.
32292
32293 2009-04-19  Bruno Haible  <bruno@clisp.org>
32294
32295         Support for building a shared library on Windows platforms.
32296         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32297         (main): Test the presence of UNINORM_NFC here.
32298         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32299         (main): Test the presence of UNINORM_NFD here.
32300         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32301         (main): Test the presence of UNINORM_NFKC here.
32302         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32303         (main): Test the presence of UNINORM_NFKD here.
32304
32305 2009-04-19  Bruno Haible  <bruno@clisp.org>
32306
32307         Avoid a compiler warning.
32308         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32309         Change type of variable 'sequence'.
32310
32311 2009-04-19  Bruno Haible  <bruno@clisp.org>
32312
32313         * modules/configmake (Makefile.am): When the contents of configmake.h
32314         does not change, arrange to preserve its modification time.
32315
32316 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32317
32318         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32319         gettext domain.
32320
32321 2009-04-16  Jim Meyering  <meyering@redhat.com>
32322
32323         useless-if-before-free: improve conversion code
32324         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32325         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32326
32327 2009-04-14  Bruno Haible  <bruno@clisp.org>
32328
32329         * modules/fcntl (Depends-on): Add extensions.
32330         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32331
32332 2009-04-12  Ben Pfaff  <blp@gnu.org>
32333
32334         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32335         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32336
32337 2009-03-20  Ben Pfaff  <blp@gnu.org>
32338
32339         Make rename replace existing destinations on Windows.
32340         * m4/rename.m4: Add test for Mingw.
32341         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32342         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32343         * doc/posix-functions/rename.texi: Document.
32344
32345 2009-04-10  Bruno Haible  <bruno@clisp.org>
32346
32347         New include file "iconveh.h".
32348         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32349         * lib/striconveh.h: Include it.
32350         (enum iconv_ilseq_handler): Remove definition.
32351         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32352         striconveh.h.
32353         * lib/striconveha.c: Include striconveh.h.
32354         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32355         * modules/striconveh (Files): Add lib/iconveh.h.
32356         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32357         lib/striconveh.h.
32358
32359 2009-04-10  Bruno Haible  <bruno@clisp.org>
32360
32361         * lib/uniconv.h: Update comment.
32362
32363 2009-04-10  Bruno Haible  <bruno@clisp.org>
32364
32365         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32366         always.
32367         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32368         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32369         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32370         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32371         "unistring-notinline.h", so that the function gets defined always.
32372         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32373         * lib/unistr/u8-uctomb.c: Likewise.
32374         * lib/unistr/u16-mbtouc.c: Likewise.
32375         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32376         * lib/unistr/u16-uctomb.c: Likewise.
32377         * lib/unistr/u32-mbtouc.c: Likewise.
32378         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32379         * lib/unistr/u32-uctomb.c: Likewise.
32380
32381 2009-04-10  Bruno Haible  <bruno@clisp.org>
32382
32383         Mark 'utime' obsolete.
32384         * modules/utime (Status, Notice): New sections.
32385         Suggested by Jim Meyering.
32386
32387         Fix cross-compile guess for utime test.
32388         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32389         autoconf.
32390         * doc/posix-functions/utime.texi: Give more precisions.
32391         Reported by Jan <ipif@ymail.com>.
32392
32393 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32394
32395         filevercmp: correct today's change
32396         * lib/filevercmp.c: Also handle coreutils' test inputs.
32397         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32398
32399         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32400         for reporting it.
32401         * lib/filevercmp.c: Special handle for "", "." and "..".
32402         * tests/test-filevercmp.c: Enlarge the set suite.
32403
32404 2009-04-07  Jim Meyering  <meyering@redhat.com>
32405
32406         useless-if-before-free: show how to remove braced useless free, too
32407         * build-aux/useless-if-before-free: still only in a comment, though.
32408
32409 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32410
32411         maint.mk: import changes to syntax-check macros from coreutils
32412         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32413         Use them in the relevant macros.
32414
32415 2009-04-06  Bruno Haible  <bruno@clisp.org>
32416
32417         Fix unportable use of bit-fields.
32418         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32419         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32420         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32421
32422 2009-04-06  Bruno Haible  <bruno@clisp.org>
32423
32424         Avoid test failures on AIX and OSF/1.
32425         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32426         that malloc(0) = NULL.
32427         * tests/unicase/test-u8-tolower.c (check): Likewise.
32428         * tests/unicase/test-u8-totitle.c (check): Likewise.
32429         * tests/unicase/test-u8-toupper.c (check): Likewise.
32430         * tests/unicase/test-u16-casefold.c (check): Likewise.
32431         * tests/unicase/test-u16-tolower.c (check): Likewise.
32432         * tests/unicase/test-u16-totitle.c (check): Likewise.
32433         * tests/unicase/test-u16-toupper.c (check): Likewise.
32434         * tests/unicase/test-u32-casefold.c (check): Likewise.
32435         * tests/unicase/test-u32-tolower.c (check): Likewise.
32436         * tests/unicase/test-u32-totitle.c (check): Likewise.
32437         * tests/unicase/test-u32-toupper.c (check): Likewise.
32438         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32439         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32440         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32441         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32442         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32443         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32444         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32445         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32446         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32447         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32448         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32449         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32450
32451 2009-04-05  Bruno Haible  <bruno@clisp.org>
32452
32453         Work around an autoconf limitation.
32454         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32455         comment line if it would be longer than 3 KB.
32456
32457 2009-04-05  Bruno Haible  <bruno@clisp.org>
32458
32459         Avoid test failure with libiconv-1.13.
32460         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32461         of the expected test results.
32462
32463 2009-04-05  Bruno Haible  <bruno@clisp.org>
32464
32465         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32466         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32467         that it should be installed.
32468
32469 2009-04-05  Bruno Haible  <bruno@clisp.org>
32470
32471         * gnulib-tool: New option --copy-file.
32472         (func_usage): Document it.
32473         (func_dest_tmpfilename): Moved out of func_import.
32474         (func_add_file, func_update_file): New functions, extracted from
32475         func_import.
32476         (func_import): Update.
32477
32478 2009-04-05  Karl Berry  <karl@gnu.org>
32479
32480         * README: prominently mention gnulib-tool.
32481         Rearrange sections so getting the code is near the top.
32482
32483 2009-04-05  Bruno Haible  <bruno@clisp.org>
32484
32485         * lib/unicase.h: Mention u*_cmp2.
32486         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32487         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32488         * lib/unicase/ulc-casecmp.c: Likewise.
32489         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32490         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32491         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32492         unistr/u8-cmp.
32493         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32494         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32495         unistr/u16-cmp.
32496         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32497         unistr/u32-cmp.
32498
32499         * lib/uninorm.h: Mention u*_cmp2.
32500         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32501         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32502         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32503         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32504         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32505         unistr/u8-cmp.
32506         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32507         unistr/u16-cmp.
32508         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32509         unistr/u32-cmp.
32510
32511         New module 'unistr/u32-cmp2'.
32512         * lib/unistr/u32-cmp2.c: New file.
32513         * modules/unistr/u32-cmp2: New file.
32514
32515         New module 'unistr/u16-cmp2'.
32516         * lib/unistr/u16-cmp2.c: New file.
32517         * modules/unistr/u16-cmp2: New file.
32518
32519         New module 'unistr/u8-cmp2'.
32520         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32521         * lib/unistr/u8-cmp2.c: New file.
32522         * lib/unistr/u-cmp2.h: New file.
32523         * modules/unistr/u8-cmp2: New file.
32524
32525 2009-04-05  Bruno Haible  <bruno@clisp.org>
32526
32527         * lib/unictype.h (uc_property_is_valid): New macro.
32528         * tests/unictype/test-pr_byname.c (main): Use it.
32529
32530         * lib/unistr.h: Doc fixes.
32531         * lib/uniconv.h: Doc fixes.
32532         * lib/unictype.h: Doc fixes.
32533
32534 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32535
32536         Port coreutils 7.2 to Solaris 8.
32537
32538         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32539         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32540         for Solaris 8.  This is a bit of a hack, as it means it's the
32541         caller's responsibility to add -lnsl if needed, but most likely it
32542         won't be needed since only getaddrinfo uses this and getaddrinfo
32543         isn't needed on Solaris 8.
32544
32545         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32546         problem to Solaris 8 encountered with coreutils 7.2, which
32547         resulted in a message "fnmatch.c:292: warning: passing argument 4
32548         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32549         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32550
32551 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32552
32553         * m4/ld-version-script.m4: Add FIXME comment.
32554
32555 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32556
32557         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32558         SOVERSION variable.
32559
32560 2009-04-02  Bruno Haible  <bruno@clisp.org>
32561
32562         * Makefile (info, html, dvi, pdf): Combine the rules.
32563         Suggested by Jim Meyering.
32564
32565 2009-04-01  Bruno Haible  <bruno@clisp.org>
32566
32567         * Makefile (info, html, dvi, pdf): New targets.
32568         Reported by Reuben Thomas <rrt@sc3d.org>.
32569
32570 2009-04-01  Bruno Haible  <bruno@clisp.org>
32571
32572         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32573         can be put into PATH.
32574         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32575
32576 2009-04-01  Bruno Haible  <bruno@clisp.org>
32577
32578         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32579
32580 2009-04-01  Bruno Haible  <bruno@clisp.org>
32581
32582         Rename module 'visibility'.
32583         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32584         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32585         * doc/gnulib.texi: Update.
32586         * MODULES.html.sh (Misc): Update.
32587         * NEWS: Mention the change.
32588
32589 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32590
32591         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32592         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32593         Eric Blake <ebb9@byu.net> for review.
32594         * MODULES.html.sh: Add lib-msvc-compat.
32595         * doc/gnulib.texi: Link to new section.
32596         * m4/ld-output-def.m4: New file.
32597         * doc/ld-output-def.texi: New file.
32598
32599 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32600
32601         Rename ld-version-script to lib-symbol-versions.  Suggested by
32602         Bruno Haible <bruno@clisp.org>.
32603         * modules/ld-version-script: Renamed to lib-symbol-versions.
32604         * doc/ld-version-script.texi: Fix module name.
32605         * MODULES.html.sh: Add lib-symbol-versions.
32606
32607 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32608
32609         * modules/u64-tests: New file.
32610         * tests/test-u64.c: New file.
32611
32612 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32613
32614         * MODULES.html.sh: Mention u64.
32615         * modules/u64: New module.
32616         * modules/crypto/sha512: Depend on u64 module instead of providing
32617         u64.h.
32618
32619 2009-03-27  Eric Blake  <ebb9@byu.net>
32620
32621         test-strerror: make debugging EAI_SYSTEM easier
32622         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32623         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32624         failure was EAI_SYSTEM.
32625
32626 2009-03-25  Bruno Haible  <bruno@clisp.org>
32627
32628         Fix a problem with --enable-relocatable on Solaris 7.
32629         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32630         since 2008-02-24.
32631
32632 2009-03-25  Eric Blake  <ebb9@byu.net>
32633
32634         test-sockets: avoid gcc warning
32635         * tests/test-sockets.c (main): Silence compiler warning.
32636
32637 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32638
32639         New modules nproc, pthread, contributed by Glen Lenker.
32640
32641         * MODULES.html.sh: Add pthread, nproc.
32642         * lib/nproc.c: New file.
32643         * lib/nproc.h: New file.
32644         * lib/pthread.in.h: New file.
32645         * m4/pthread.m4: New file.
32646         * modules/nproc: New file.
32647         * modules/pthread: New file.
32648
32649 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32650
32651         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32652         New variable.
32653
32654 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32655
32656         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32657         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32658         * tests/test-filevercmp.c: Add tests for backup suffixes.
32659
32660 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32661
32662         * modules/stdlib (Depends-on): Add stdint, needed when defining
32663         struct random_data on, for example, HP-UX 10.20.  Reported by
32664         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32665
32666 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32667
32668         * lib/readline.c (readline): Call fflush on stdout after printing
32669         prompt.
32670
32671 2009-03-20  Bruno Haible  <bruno@clisp.org>
32672
32673         Remove dependency from 'close' module to -lws2_32 on native Windows.
32674         * lib/close-hook.h: New file.
32675         * lib/close-hook.c: New file.
32676         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32677         w32sock.h.
32678         (_gl_close_fd_maybe_socket): Remove function.
32679         (rpl_close): Invoke execute_all_close_hooks instead of
32680         _gl_close_fd_maybe_socket.
32681         * lib/sockets.c: Include close-hook.h, w32sock.h.
32682         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32683         (close_sockets_hook): New variable.
32684         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32685         (gl_sockets_cleanup): Unregister it.
32686         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32687         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32688         * modules/close-hook: New file.
32689         * modules/close (Files): Remove lib/w32sock.h.
32690         (Depends-on): Add close-hook.
32691         (Link): Remove section.
32692         * modules/sockets (Files): Add lib/w32sock.h.
32693         (Depends-on): Add close-hook.
32694         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32695         invocation.
32696         * NEWS: Mention that LIB_CLOSE is gone.
32697
32698 2009-03-23  Eric Blake  <ebb9@byu.net>
32699
32700         signal-tests: test previous patch
32701         * tests/test-signal.c: New file.
32702         * modules/signal-tests: Likewise.
32703
32704         signal.h: always support 'volatile sig_atomic_t'
32705         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32706         (gl_SIGNAL_H_DEFAULTS): Add a default.
32707         * modules/signal (Makefile.am): Substitute if needed.
32708         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32709         users can blindly add volatile.
32710         * doc/posix-headers/signal.texi (signal.h): Document it.
32711         Reported by Matthew Woehlke.
32712
32713 2009-03-23  Jim Meyering  <meyering@redhat.com>
32714
32715         pathmax: PATH_MAX: use pathconf only when available
32716         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32717         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32718         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32719         This avoids a link failure in a PSP cross-compilation environment
32720         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32721
32722         * lib/vasnprintf.c (divide): Fix typo in comment.
32723
32724 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32725
32726         * gnulib-tool (func_filter_filelist): Fix comment.
32727
32728 2009-03-20  Bruno Haible  <bruno@clisp.org>
32729
32730         Make sockets.h self-contained.
32731         * lib/sockets.c: Include sockets.h first.
32732         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32733
32734 2009-03-19  Eric Blake  <ebb9@byu.net>
32735
32736         doc: mention more functions added in cygwin 1.7.0
32737         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32738         addition.
32739         * doc/posix-functions/log2f.texi: Likewise.
32740
32741 2009-03-19  Jim Meyering  <meyering@redhat.com>
32742
32743         fsusage: avoid syntax error due to statement-before-declaration
32744         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32745         after all declarations.  Reported by Matthew Woehlke in
32746         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32747
32748 2009-03-18  Eric Blake  <ebb9@byu.net>
32749
32750         build-aux/compile: sync from automake
32751         * build-aux/compile: New file, from automake.
32752         * config/srclist.txt: Mention build-aux/compile.
32753
32754 2009-03-17  Bruno Haible  <bruno@clisp.org>
32755
32756         * lib/git-merge-changelog.c: Fix typo in comment.
32757         Reported by Reuben Thomas <rrt@sc3d.org>.
32758
32759 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32760
32761         * m4/regex.m4: update and improve help for
32762         --without-included-regex.
32763
32764 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32765
32766         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32767         failure on missing include files.
32768
32769 2009-03-17  Eric Blake  <ebb9@byu.net>
32770
32771         doc: mention more functions added in cygwin 1.7.0
32772         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32773         addition.
32774         * doc/posix-functions/fwscanf.texi: Likewise.
32775         * doc/posix-functions/swprintf.texi: Likewise.
32776         * doc/posix-functions/swscanf.texi: Likewise.
32777         * doc/posix-functions/vfwprintf.texi: Likewise.
32778         * doc/posix-functions/vfwscanf.texi: Likewise.
32779         * doc/posix-functions/vswprintf.texi: Likewise.
32780         * doc/posix-functions/vswscanf.texi: Likewise.
32781         * doc/posix-functions/vwprintf.texi: Likewise.
32782         * doc/posix-functions/vwscanf.texi: Likewise.
32783         * doc/posix-functions/wcscasecmp.texi: Likewise.
32784         * doc/posix-functions/wcsdup.texi: Likewise.
32785         * doc/posix-functions/wcsftime.texi: Likewise.
32786         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32787         * doc/posix-functions/wprintf.texi: Likewise.
32788         * doc/posix-functions/wscanf.texi: Likewise.
32789         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32790
32791 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32792
32793         maint.mk: really add $(AM_MAKEFLAGS)
32794         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32795         was inadvertently omitted in the last commit.
32796         Spotted by Bruno Haible.
32797
32798         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32799         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32800         $(AM_MAKEFLAGS)' rather than plain `make'.
32801
32802         gnulib-tool: execute $MAKE not make
32803         * gnulib-tool: Default $MAKE to 'make'.
32804         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32805         than make.  Initialize $MAKE in the do-autobuild script.
32806
32807         gnulib-tool: use $MAKE not make in generated files
32808         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32809         make, in generated files.  Initialize $MAKE in the do-autobuild
32810         script.
32811
32812         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32813
32814         GNUmakefile: disable parallelism only for multiple, recursive targets
32815         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32816         additions in the Makefile.
32817         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32818         by Automake.
32819         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32820         are listed on the command line and at least one of them is
32821         listed in $(ALL_RECURSIVE_TARGETS).
32822
32823 2009-03-14  Bruno Haible  <bruno@clisp.org>
32824
32825         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32826         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32827         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32828         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32829         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32830         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32831         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32832         unistr/u8-uctomb.
32833         * modules/unistr/u8-strchr (Depends-on): Likewise.
32834         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32835         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32836         unistr/u16-uctomb.
32837         * modules/unistr/u16-strchr (Depends-on): Likewise.
32838         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32839
32840 2009-03-12  Bruno Haible  <bruno@clisp.org>
32841
32842         Work around select() bug on Interix 3.5.
32843         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32844         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32845         * m4/select.m4: New file.
32846         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32847         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32848         * modules/select (Files): Add m4/select.m4.
32849         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32850         * modules/nanosleep (Depends-on): Add select.
32851         * modules/poll (Depends-on): Likewise.
32852         * doc/posix-functions/select.texi: Mention the Interix bug.
32853         Reported by Markus Duft <mduft@gentoo.org>.
32854
32855         * lib/select.c: Renamed from lib/winsock-select.c.
32856         * modules/select (Files): Add lib/select.c, remove
32857         lib/winsock-select.c.
32858         (configure.ac): Update.
32859
32860 2009-03-12  Jim Meyering  <meyering@redhat.com>
32861
32862         avoid gcc warnings about unused macro definitions
32863         * lib/readtokens.c (STREQ): Remove unused definition.
32864         * lib/xmalloc.c (SIZE_MAX): Likewise.
32865         * lib/openat-die.c (N_): Likewise.
32866         * lib/mountlist.c (SIZE_MAX): Remove definition.
32867         Instead, include <stdint.h>.
32868         * lib/readutmp.c: Likewise.
32869         * modules/readutmp (Depends-on): Add stdint.
32870         * modules/mountlist (Depends-on): Add stdint.
32871         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32872
32873 2009-03-10  Bruno Haible  <bruno@clisp.org>
32874
32875         Tests for module 'mbmemcasecoll'.
32876         * modules/mbmemcasecoll-tests: New file.
32877         * tests/test-mbmemcasecoll1.sh: New file.
32878         * tests/test-mbmemcasecoll2.sh: New file.
32879         * tests/test-mbmemcasecoll3.sh: New file.
32880         * tests/test-mbmemcasecoll.c: New file.
32881
32882         New module 'mbmemcasecoll'.
32883         * lib/mbmemcasecoll.h: New file.
32884         * lib/mbmemcasecoll.c: New file.
32885         * modules/mbmemcasecoll: New file.
32886
32887         * tests/test-mbmemcasecmp.h: New file, extracted from
32888         tests/test-mbmemcasecmp.c.
32889         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32890         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32891         (main): Update.
32892         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32893
32894 2009-03-09  Bruno Haible  <bruno@clisp.org>
32895
32896         Tests for module 'mbmemcasecmp'.
32897         * modules/mbmemcasecmp-tests: New file.
32898         * tests/test-mbmemcasecmp1.sh: New file.
32899         * tests/test-mbmemcasecmp2.sh: New file.
32900         * tests/test-mbmemcasecmp3.sh: New file.
32901         * tests/test-mbmemcasecmp.c: New file.
32902
32903         New module 'mbmemcasecmp'.
32904         * lib/mbmemcasecmp.h: New file.
32905         * lib/mbmemcasecmp.c: New file.
32906         * modules/mbmemcasecmp: New file.
32907
32908 2009-03-09  Bruno Haible  <bruno@clisp.org>
32909
32910         Tests for module 'unicase/ulc-casecoll'.
32911         * modules/unicase/ulc-casecoll-tests: New file.
32912         * tests/unicase/test-ulc-casecoll1.sh: New file.
32913         * tests/unicase/test-ulc-casecoll2.sh: New file.
32914         * tests/unicase/test-ulc-casecoll.c: New file.
32915
32916         New module 'unicase/ulc-casecoll'.
32917         * lib/unicase.h (ulc_casecoll): New declaration.
32918         * lib/unicase/ulc-casecoll.c: New file.
32919         * modules/unicase/ulc-casecoll: New file.
32920
32921         New module 'unicase/ulc-casexfrm'.
32922         * lib/unicase.h (ulc_casexfrm): New declaration.
32923         * lib/unicase/ulc-casexfrm.c: New file.
32924         * modules/unicase/ulc-casexfrm: New file.
32925
32926 2009-03-09  Bruno Haible  <bruno@clisp.org>
32927
32928         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32929         invocations.
32930
32931         * m4/mbscasecmp.m4: Remove file.
32932         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32933         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32934
32935         * m4/mbscasestr.m4: Remove file.
32936         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32937         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32938
32939         * m4/mbschr.m4: Remove file.
32940         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32941         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32942
32943         * m4/mbscspn.m4: Remove file.
32944         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32945         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32946
32947         * m4/mbslen.m4: Remove file.
32948         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32949         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32950
32951         * m4/mbsncasecmp.m4: Remove file.
32952         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32953         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32954
32955         * m4/mbsnlen.m4: Remove file.
32956         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32957         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32958
32959         * m4/mbspbrk.m4: Remove file.
32960         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32961         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32962
32963         * m4/mbspcasecmp.m4: Remove file.
32964         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32965         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32966
32967         * m4/mbsrchr.m4: Remove file.
32968         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32969         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32970
32971         * m4/mbssep.m4: Remove file.
32972         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32973         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32974
32975         * m4/mbsspn.m4: Remove file.
32976         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32977         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32978
32979         * m4/mbsstr.m4: Remove file.
32980         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32981         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32982
32983         * m4/mbstok_r.m4: Remove file.
32984         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32985         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32986
32987         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32988
32989         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32990         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32991
32992         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32993
32994 2009-03-08  Bruno Haible  <bruno@clisp.org>
32995
32996         Tests for module 'unicase/ulc-casecmp'.
32997         * modules/unicase/ulc-casecmp-tests: New file.
32998         * tests/unicase/test-ulc-casecmp1.sh: New file.
32999         * tests/unicase/test-ulc-casecmp2.sh: New file.
33000         * tests/unicase/test-ulc-casecmp.c: New file.
33001
33002         New module 'unicase/ulc-casecmp'.
33003         * lib/unicase.h (ulc_casecmp): New declaration.
33004         * lib/unicase/ulc-casecmp.c: New file.
33005         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33006         'const SRC_UNIT *'.
33007         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33008         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33009         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33010         * modules/unicase/ulc-casecmp: New file.
33011
33012         Tests for module 'unicase/u32-is-cased'.
33013         * modules/unicase/u32-is-cased-tests: New file.
33014         * tests/unicase/test-u32-is-cased.c: New file.
33015
33016         Tests for module 'unicase/u16-is-cased'.
33017         * modules/unicase/u16-is-cased-tests: New file.
33018         * tests/unicase/test-u16-is-cased.c: New file.
33019
33020         Tests for module 'unicase/u8-is-cased'.
33021         * modules/unicase/u8-is-cased-tests: New file.
33022         * tests/unicase/test-u8-is-cased.c: New file.
33023         * tests/unicase/test-is-cased.h: New file.
33024
33025         New module 'unicase/u32-is-cased'.
33026         * lib/unicase/u32-is-cased.c: New file.
33027         * modules/unicase/u32-is-cased: New file.
33028
33029         New module 'unicase/u16-is-cased'.
33030         * lib/unicase/u16-is-cased.c: New file.
33031         * modules/unicase/u16-is-cased: New file.
33032
33033         New module 'unicase/u8-is-cased'.
33034         * lib/unicase/u8-is-cased.c: New file.
33035         * lib/unicase/u-is-cased.h: New file.
33036         * modules/unicase/u8-is-cased: New file.
33037
33038         Tests for module 'unicase/u32-is-casefolded'.
33039         * modules/unicase/u32-is-casefolded-tests: New file.
33040         * tests/unicase/test-u32-is-casefolded.c: New file.
33041
33042         Tests for module 'unicase/u16-is-casefolded'.
33043         * modules/unicase/u16-is-casefolded-tests: New file.
33044         * tests/unicase/test-u16-is-casefolded.c: New file.
33045
33046         Tests for module 'unicase/u8-is-casefolded'.
33047         * modules/unicase/u8-is-casefolded-tests: New file.
33048         * tests/unicase/test-u8-is-casefolded.c: New file.
33049         * tests/unicase/test-is-casefolded.h: New file.
33050
33051         New module 'unicase/u32-is-casefolded'.
33052         * lib/unicase/u32-is-casefolded.c: New file.
33053         * modules/unicase/u32-is-casefolded: New file.
33054
33055         New module 'unicase/u16-is-casefolded'.
33056         * lib/unicase/u16-is-casefolded.c: New file.
33057         * modules/unicase/u16-is-casefolded: New file.
33058
33059         New module 'unicase/u8-is-casefolded'.
33060         * lib/unicase/u8-is-casefolded.c: New file.
33061         * modules/unicase/u8-is-casefolded: New file.
33062
33063         Tests for module 'unicase/u32-is-titlecase'.
33064         * modules/unicase/u32-is-titlecase-tests: New file.
33065         * tests/unicase/test-u32-is-titlecase.c: New file.
33066
33067         Tests for module 'unicase/u16-is-titlecase'.
33068         * modules/unicase/u16-is-titlecase-tests: New file.
33069         * tests/unicase/test-u16-is-titlecase.c: New file.
33070
33071         Tests for module 'unicase/u8-is-titlecase'.
33072         * modules/unicase/u8-is-titlecase-tests: New file.
33073         * tests/unicase/test-u8-is-titlecase.c: New file.
33074         * tests/unicase/test-is-titlecase.h: New file.
33075
33076         New module 'unicase/u32-is-titlecase'.
33077         * lib/unicase/u32-is-titlecase.c: New file.
33078         * modules/unicase/u32-is-titlecase: New file.
33079
33080         New module 'unicase/u16-is-titlecase'.
33081         * lib/unicase/u16-is-titlecase.c: New file.
33082         * modules/unicase/u16-is-titlecase: New file.
33083
33084         New module 'unicase/u8-is-titlecase'.
33085         * lib/unicase/u8-is-titlecase.c: New file.
33086         * modules/unicase/u8-is-titlecase: New file.
33087
33088         Tests for module 'unicase/u32-is-lowercase'.
33089         * modules/unicase/u32-is-lowercase-tests: New file.
33090         * tests/unicase/test-u32-is-lowercase.c: New file.
33091
33092         Tests for module 'unicase/u16-is-lowercase'.
33093         * modules/unicase/u16-is-lowercase-tests: New file.
33094         * tests/unicase/test-u16-is-lowercase.c: New file.
33095
33096         Tests for module 'unicase/u8-is-lowercase'.
33097         * modules/unicase/u8-is-lowercase-tests: New file.
33098         * tests/unicase/test-u8-is-lowercase.c: New file.
33099         * tests/unicase/test-is-lowercase.h: New file.
33100
33101         New module 'unicase/u32-is-lowercase'.
33102         * lib/unicase/u32-is-lowercase.c: New file.
33103         * modules/unicase/u32-is-lowercase: New file.
33104
33105         New module 'unicase/u16-is-lowercase'.
33106         * lib/unicase/u16-is-lowercase.c: New file.
33107         * modules/unicase/u16-is-lowercase: New file.
33108
33109         New module 'unicase/u8-is-lowercase'.
33110         * lib/unicase/u8-is-lowercase.c: New file.
33111         * modules/unicase/u8-is-lowercase: New file.
33112
33113         Tests for module 'unicase/u32-is-uppercase'.
33114         * modules/unicase/u32-is-uppercase-tests: New file.
33115         * tests/unicase/test-u32-is-uppercase.c: New file.
33116
33117         Tests for module 'unicase/u16-is-uppercase'.
33118         * modules/unicase/u16-is-uppercase-tests: New file.
33119         * tests/unicase/test-u16-is-uppercase.c: New file.
33120
33121         Tests for module 'unicase/u8-is-uppercase'.
33122         * modules/unicase/u8-is-uppercase-tests: New file.
33123         * tests/unicase/test-u8-is-uppercase.c: New file.
33124         * tests/unicase/test-is-uppercase.h: New file.
33125
33126         New module 'unicase/u32-is-uppercase'.
33127         * lib/unicase/u32-is-uppercase.c: New file.
33128         * modules/unicase/u32-is-uppercase: New file.
33129
33130         New module 'unicase/u16-is-uppercase'.
33131         * lib/unicase/u16-is-uppercase.c: New file.
33132         * modules/unicase/u16-is-uppercase: New file.
33133
33134         New module 'unicase/u8-is-uppercase'.
33135         * lib/unicase/u8-is-uppercase.c: New file.
33136         * modules/unicase/u8-is-uppercase: New file.
33137
33138         New module 'unicase/u32-is-invariant'.
33139         * lib/unicase/u32-is-invariant.c: New file.
33140         * modules/unicase/u32-is-invariant: New file.
33141
33142         New module 'unicase/u16-is-invariant'.
33143         * lib/unicase/u16-is-invariant.c: New file.
33144         * modules/unicase/u16-is-invariant: New file.
33145
33146         New module 'unicase/u8-is-invariant'.
33147         * lib/unicase/u8-is-invariant.c: New file.
33148         * lib/unicase/invariant.h: New file.
33149         * lib/unicase/u-is-invariant.h: New file.
33150         * modules/unicase/u8-is-invariant: New file.
33151
33152         Tests for module 'unicase/u32-casecoll'.
33153         * modules/unicase/u32-casecoll-tests: New file.
33154         * tests/unicase/test-u32-casecoll.c: New file.
33155
33156         Tests for module 'unicase/u16-casecoll'.
33157         * modules/unicase/u16-casecoll-tests: New file.
33158         * tests/unicase/test-u16-casecoll.c: New file.
33159
33160         Tests for module 'unicase/u8-casecoll'.
33161         * modules/unicase/u8-casecoll-tests: New file.
33162         * tests/unicase/test-u8-casecoll.c: New file.
33163
33164         New module 'unicase/u32-casecoll'.
33165         * lib/unicase/u32-casecoll.c: New file.
33166         * modules/unicase/u32-casecoll: New file.
33167
33168         New module 'unicase/u16-casecoll'.
33169         * lib/unicase/u16-casecoll.c: New file.
33170         * modules/unicase/u16-casecoll: New file.
33171
33172         New module 'unicase/u8-casecoll'.
33173         * lib/unicase/u8-casecoll.c: New file.
33174         * lib/unicase/u-casecoll.h: New file.
33175         * modules/unicase/u8-casecoll: New file.
33176
33177         New module 'unicase/u32-casexfrm'.
33178         * lib/unicase/u32-casexfrm.c: New file.
33179         * modules/unicase/u32-casexfrm: New file.
33180
33181         New module 'unicase/u16-casexfrm'.
33182         * lib/unicase/u16-casexfrm.c: New file.
33183         * modules/unicase/u16-casexfrm: New file.
33184
33185         New module 'unicase/u8-casexfrm'.
33186         * lib/unicase/u8-casexfrm.c: New file.
33187         * lib/unicase/u-casexfrm.h: New file.
33188         * modules/unicase/u8-casexfrm: New file.
33189
33190         Tests for module 'unicase/u32-casecmp'.
33191         * modules/unicase/u32-casecmp-tests: New file.
33192         * tests/unicase/test-u32-casecmp.c: New file.
33193
33194         Tests for module 'unicase/u16-casecmp'.
33195         * modules/unicase/u16-casecmp-tests: New file.
33196         * tests/unicase/test-u16-casecmp.c: New file.
33197
33198         Tests for module 'unicase/u8-casecmp'.
33199         * modules/unicase/u8-casecmp-tests: New file.
33200         * tests/unicase/test-u8-casecmp.c: New file.
33201         * tests/unicase/test-casecmp.h: New file.
33202
33203         New module 'unicase/u32-casecmp'.
33204         * lib/unicase/u32-casecmp.c: New file.
33205         * modules/unicase/u32-casecmp: New file.
33206
33207         New module 'unicase/u16-casecmp'.
33208         * lib/unicase/u16-casecmp.c: New file.
33209         * modules/unicase/u16-casecmp: New file.
33210
33211         New module 'unicase/u8-casecmp'.
33212         * lib/unicase/u8-casecmp.c: New file.
33213         * lib/unicase/u-casecmp.h: New file.
33214         * modules/unicase/u8-casecmp: New file.
33215
33216         Tests for module 'unicase/u32-casefold'.
33217         * modules/unicase/u32-casefold-tests: New file.
33218         * tests/unicase/test-u32-casefold.c: New file.
33219
33220         Tests for module 'unicase/u16-casefold'.
33221         * modules/unicase/u16-casefold-tests: New file.
33222         * tests/unicase/test-u16-casefold.c: New file.
33223
33224         Tests for module 'unicase/u8-casefold'.
33225         * modules/unicase/u8-casefold-tests: New file.
33226         * tests/unicase/test-u8-casefold.c: New file.
33227
33228         New module 'unicase/u32-casefold'.
33229         * lib/unicase/u32-casefold.c: New file.
33230         * modules/unicase/u32-casefold: New file.
33231
33232         New module 'unicase/u16-casefold'.
33233         * lib/unicase/u16-casefold.c: New file.
33234         * modules/unicase/u16-casefold: New file.
33235
33236         New module 'unicase/u8-casefold'.
33237         * lib/unicase/u8-casefold.c: New file.
33238         * lib/unicase/u-casefold.h: New file.
33239         * modules/unicase/u8-casefold: New file.
33240
33241         New module 'unicase/tocasefold'.
33242         * lib/unicase/casefold.h: New file.
33243         * lib/unicase/tocasefold.c: New file.
33244         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33245         * modules/unicase/tocasefold: New file.
33246
33247         Tests for module 'unicase/u32-totitle'.
33248         * modules/unicase/u32-totitle-tests: New file.
33249         * tests/unicase/test-u32-totitle.c: New file.
33250
33251         Tests for module 'unicase/u16-totitle'.
33252         * modules/unicase/u16-totitle-tests: New file.
33253         * tests/unicase/test-u16-totitle.c: New file.
33254
33255         Tests for module 'unicase/u8-totitle'.
33256         * modules/unicase/u8-totitle-tests: New file.
33257         * tests/unicase/test-u8-totitle.c: New file.
33258
33259         New module 'unicase/u32-totitle'.
33260         * lib/unicase/u32-totitle.c: New file.
33261         * modules/unicase/u32-totitle: New file.
33262
33263         New module 'unicase/u16-totitle'.
33264         * lib/unicase/u16-totitle.c: New file.
33265         * modules/unicase/u16-totitle: New file.
33266
33267         New module 'unicase/u8-totitle'.
33268         * lib/unicase/u8-totitle.c: New file.
33269         * lib/unicase/u-totitle.h: New file.
33270         * modules/unicase/u8-totitle: New file.
33271
33272         Tests for module 'unicase/u32-tolower'.
33273         * modules/unicase/u32-tolower-tests: New file.
33274         * tests/unicase/test-u32-tolower.c: New file.
33275
33276         Tests for module 'unicase/u16-tolower'.
33277         * modules/unicase/u16-tolower-tests: New file.
33278         * tests/unicase/test-u16-tolower.c: New file.
33279
33280         Tests for module 'unicase/u8-tolower'.
33281         * modules/unicase/u8-tolower-tests: New file.
33282         * tests/unicase/test-u8-tolower.c: New file.
33283
33284         New module 'unicase/u32-tolower'.
33285         * lib/unicase/u32-tolower.c: New file.
33286         * modules/unicase/u32-tolower: New file.
33287
33288         New module 'unicase/u16-tolower'.
33289         * lib/unicase/u16-tolower.c: New file.
33290         * modules/unicase/u16-tolower: New file.
33291
33292         New module 'unicase/u8-tolower'.
33293         * lib/unicase/u8-tolower.c: New file.
33294         * modules/unicase/u8-tolower: New file.
33295
33296         Tests for module 'unicase/u32-toupper'.
33297         * modules/unicase/u32-toupper-tests: New file.
33298         * tests/unicase/test-u32-toupper.c: New file.
33299
33300         Tests for module 'unicase/u16-toupper'.
33301         * modules/unicase/u16-toupper-tests: New file.
33302         * tests/unicase/test-u16-toupper.c: New file.
33303
33304         Tests for module 'unicase/u8-toupper'.
33305         * modules/unicase/u8-toupper-tests: New file.
33306         * tests/unicase/test-u8-toupper.c: New file.
33307
33308         New module 'unicase/u32-toupper'.
33309         * lib/unicase/u32-toupper.c: New file.
33310         * modules/unicase/u32-toupper: New file.
33311
33312         New module 'unicase/u16-toupper'.
33313         * lib/unicase/u16-toupper.c: New file.
33314         * modules/unicase/u16-toupper: New file.
33315
33316         New module 'unicase/u8-toupper'.
33317         * lib/unicase/u8-toupper.c: New file.
33318         * modules/unicase/u8-toupper: New file.
33319
33320         New module 'unicase/u32-casemap'.
33321         * lib/unicase/u32-casemap.c: New file.
33322         * modules/unicase/u32-casemap: New file.
33323
33324         New module 'unicase/u16-casemap'.
33325         * lib/unicase/u16-casemap.c: New file.
33326         * modules/unicase/u16-casemap: New file.
33327
33328         New module 'unicase/u8-casemap'.
33329         * lib/unicase/unicasemap.h: New file.
33330         * lib/unicase/u8-casemap.c: New file.
33331         * lib/unicase/u-casemap.h: New file.
33332         * modules/unicase/u8-casemap: New file.
33333
33334         New module 'unicase/special-casing'.
33335         * lib/unicase/special-casing.h: New file.
33336         * lib/unicase/special-casing.c: New file.
33337         * lib/unicase/special-casing-table.gperf: New file, generated by
33338         gen-uni-tables.c.
33339         * modules/unicase/special-casing: New file.
33340
33341         Tests for module 'unicase/locale-language'.
33342         * modules/unicase/locale-language-tests: New file.
33343         * tests/unicase/test-locale-language.sh: New file.
33344         * tests/unicase/test-locale-language.c: New file.
33345
33346         New module 'unicase/locale-language'.
33347         * lib/unicase/locale-language.c: New file.
33348         * lib/unicase/locale-languages.gperf: New file.
33349         * modules/unicase/locale-language: New file.
33350
33351         Generate more tables for case conversion and case folding.
33352         * lib/gen-uni-tables.c (SCC_*): New enum items.
33353         (struct special_casing_rule): New type.
33354         (casing_rules, num_casing_rules, allocated_casing_rules): New
33355         variables.
33356         (add_casing_rule, fill_casing_rules): New functions.
33357         (struct casefold_rule): New type.
33358         (casefolding_rules, num_casefolding_rules,
33359         allocated_casefolding_rules): New variables.
33360         (fill_casefolding_rules): New function.
33361         (unicode_casefold): New variable.
33362         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33363         sort_casing_rules, output_casing_rules): New functions.
33364         (main): Accept to more arguments: SpecialCasing.txt and
33365         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33366         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33367         Output mapping for casefolding.
33368
33369         * lib/unicase.h: Include stdbool.h, uninorm.h.
33370         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33371         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33372         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33373         arguments.
33374         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33375         resultp arguments.
33376         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33377         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33378         resultp arguments.
33379         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33380         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33381         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33382         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33383         declarations.
33384         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33385
33386 2009-03-08  Bruno Haible  <bruno@clisp.org>
33387
33388         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33389         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33390         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33391         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33392
33393 2009-03-07  Bruno Haible  <bruno@clisp.org>
33394
33395         Adjust u*_normcmp, u*_normcoll API.
33396         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33397         u16_normcoll, u32_normcoll): Change failure conventions.
33398         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33399         errno and return -1.
33400         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33401
33402 2009-03-07  Bruno Haible  <bruno@clisp.org>
33403
33404         Tests for module 'uninorm/u32-normcoll'.
33405         * modules/uninorm/u32-normcoll-tests: New file.
33406         * tests/uninorm/test-u32-normcoll.c: New file.
33407
33408         Tests for module 'uninorm/u16-normcoll'.
33409         * modules/uninorm/u16-normcoll-tests: New file.
33410         * tests/uninorm/test-u16-normcoll.c: New file.
33411
33412         Tests for module 'uninorm/u8-normcoll'.
33413         * modules/uninorm/u8-normcoll-tests: New file.
33414         * tests/uninorm/test-u8-normcoll.c: New file.
33415
33416 2009-03-07  Bruno Haible  <bruno@clisp.org>
33417
33418         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33419         tests/uninorm/test-u32-normcmp.c.
33420         * tests/uninorm/test-u32-normcmp.c: Include it.
33421         (test_nonascii): New function, extracted from main. Add some more
33422         tests.
33423         (main): Invoke test_ascii and test_nonascii.
33424         * modules/uninorm/u32-normcmp-tests (Files): Add
33425         tests/uninorm/test-u32-normcmp.h.
33426         (Depends-on): Remove uninorm/u32-normcmp.
33427
33428         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33429         tests/uninorm/test-u16-normcmp.c.
33430         * tests/uninorm/test-u16-normcmp.c: Include it.
33431         (test_nonascii): New function, extracted from main. Add some more
33432         tests.
33433         (main): Invoke test_ascii and test_nonascii.
33434         * modules/uninorm/u16-normcmp-tests (Files): Add
33435         tests/uninorm/test-u16-normcmp.h.
33436         (Depends-on): Remove uninorm/u16-normcmp.
33437
33438         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33439         tests/uninorm/test-u8-normcmp.c.
33440         * tests/uninorm/test-u8-normcmp.c: Include it.
33441         (test_nonascii): New function, extracted from main. Add some more
33442         tests.
33443         (main): Invoke test_ascii and test_nonascii.
33444         * modules/uninorm/u8-normcmp-tests (Files): Add
33445         tests/uninorm/test-u8-normcmp.h.
33446         (Depends-on): Remove uninorm/u8-normcmp.
33447
33448 2009-03-07  Bruno Haible  <bruno@clisp.org>
33449
33450         New module 'uninorm/u32-normcoll'.
33451         * lib/uninorm/u32-normcoll.c: New file.
33452         * modules/uninorm/u32-normcoll: New file.
33453
33454         New module 'uninorm/u16-normcoll'.
33455         * lib/uninorm/u16-normcoll.c: New file.
33456         * modules/uninorm/u16-normcoll: New file.
33457
33458         New module 'uninorm/u8-normcoll'.
33459         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33460         declarations.
33461         * lib/uninorm/u8-normcoll.c: New file.
33462         * lib/uninorm/u-normcoll.h: New file.
33463         * modules/uninorm/u8-normcoll: New file.
33464
33465         New module 'uninorm/u32-normxfrm'.
33466         * lib/uninorm/u32-normxfrm.c: New file.
33467         * modules/uninorm/u32-normxfrm: New file.
33468
33469         New module 'uninorm/u16-normxfrm'.
33470         * lib/uninorm/u16-normxfrm.c: New file.
33471         * modules/uninorm/u16-normxfrm: New file.
33472
33473         New module 'uninorm/u8-normxfrm'.
33474         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33475         declarations.
33476         * lib/uninorm/u8-normxfrm.c: New file.
33477         * lib/uninorm/u-normxfrm.h: New file.
33478         * modules/uninorm/u8-normxfrm: New file.
33479
33480 2009-03-07  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33483         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33484         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33485
33486 2009-03-07  Bruno Haible  <bruno@clisp.org>
33487
33488         New module 'memxfrm'.
33489         * lib/memxfrm.h: New file.
33490         * lib/memxfrm.c: New file.
33491         * modules/memxfrm: New file.
33492
33493 2009-03-07  Bruno Haible  <bruno@clisp.org>
33494
33495         New module 'memcmp2'.
33496         * lib/memcmp2.h: New file.
33497         * lib/memcmp2.c: New file.
33498         * modules/memcmp2: New file.
33499
33500 2009-03-07  Bruno Haible  <bruno@clisp.org>
33501
33502         Tests for module 'uninorm/decomposing-form'.
33503         * modules/uninorm/decomposing-form-tests: New file.
33504         * tests/uninorm/test-decomposing-form.c: New file.
33505
33506         New module 'uninorm/decomposing-form'.
33507         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33508         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33509         Add 'decomposing_variant' field.
33510         * lib/uninorm/decomposing-form.c: New file.
33511         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33512         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33513         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33514         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33515         * modules/uninorm/decomposing-form: New file.
33516         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33517         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33518
33519 2009-03-07  Bruno Haible  <bruno@clisp.org>
33520
33521         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33522         strings.
33523
33524 2009-03-06  Bruno Haible  <bruno@clisp.org>
33525
33526         Tests for module 'uninorm/u32-normcmp'.
33527         * tests/uninorm/test-u32-normcmp.c: New file.
33528         * modules/uninorm/u32-normcmp-tests: New file.
33529
33530         Tests for module 'uninorm/u16-normcmp'.
33531         * tests/uninorm/test-u16-normcmp.c: New file.
33532         * modules/uninorm/u16-normcmp-tests: New file.
33533
33534         Tests for module 'uninorm/u8-normcmp'.
33535         * tests/uninorm/test-u8-normcmp.c: New file.
33536         * modules/uninorm/u8-normcmp-tests: New file.
33537
33538         New module 'uninorm/u32-normcmp'.
33539         * lib/uninorm/u32-normcmp.c: New file.
33540         * modules/uninorm/u32-normcmp: New file.
33541
33542         New module 'uninorm/u16-normcmp'.
33543         * lib/uninorm/u16-normcmp.c: New file.
33544         * modules/uninorm/u16-normcmp: New file.
33545
33546         New module 'uninorm/u8-normcmp'.
33547         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33548         declarations.
33549         * lib/uninorm/u8-normcmp.c: New file.
33550         * lib/uninorm/u-normcmp.h: New file.
33551         * modules/uninorm/u8-normcmp: New file.
33552
33553 2009-03-06  Bruno Haible  <bruno@clisp.org>
33554
33555         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33556         Reported by Eric Blake.
33557
33558 2009-03-06  Eric Blake  <ebb9@byu.net>
33559             Bruno Haible  <bruno@clisp.org>
33560
33561         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33562         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33563         condition.
33564         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33565         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33566         condition.
33567         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33568
33569 2009-03-06  Eric Blake  <ebb9@byu.net>
33570
33571         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33572         to avoid compiler warnings.
33573         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33574
33575 2009-03-05  Bruno Haible  <bruno@clisp.org>
33576
33577         * tests/test-ftell.c (main): Disable test beyond end of file on
33578         FreeMiNT.
33579         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33580
33581 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33582
33583         * lib/filevercmp.c: Move hidden files up in ordering.
33584         * tests/test-filevercmp.c: Add tests for hidden files.
33585
33586 2009-03-04  Bruno Haible  <bruno@clisp.org>
33587
33588         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33589         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33590         AM_CFLAGS.
33591         Reported by Simon Josefsson.
33592
33593 2009-03-03  Bruno Haible  <bruno@clisp.org>
33594
33595         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33596         Reported by Simon Josefsson.
33597
33598         * doc/ld-version-script.texi: Update node reference.
33599
33600 2009-03-03  Bruno Haible  <bruno@clisp.org>
33601
33602         * modules/visibility (License): Change to 'unlimited'.
33603         Suggested by Simon Josefsson.
33604
33605 2009-03-03  Jim Meyering  <meyering@redhat.com>
33606
33607         unlinkdir: cannot_unlink_dir may modify process state
33608         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33609         it's neither thread-safe nor appropriate for use in a library.
33610
33611 2009-03-03  Eric Blake  <ebb9@byu.net>
33612
33613         test-closein: silence test under Darwin
33614         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33615         care if it dies from EPIPE or EBADF.
33616
33617 2009-03-03  Bruno Haible  <bruno@clisp.org>
33618
33619         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33620         earlier.
33621         * doc/visibility.texi: Fix @node and @section.
33622
33623 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33624
33625         * doc/gnulib.texi: Link to sections for ld version script and
33626         visibility.
33627         * doc/visibility.texi: Add @node and @section.
33628         * modules/ld-version-script: New module.
33629         * m4/ld-version-script.m4: New file.
33630         * doc/ld-version-script.texi: New file.
33631
33632 2009-03-02  David Lutterkort  <lutter@redhat.com>
33633
33634         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33636
33637 2009-03-02  Bruno Haible  <bruno@clisp.org>
33638
33639         * doc/visibility.texi: Mention libtool's -export-symbols option.
33640
33641 2009-03-02  Jim Meyering  <meyering@redhat.com>
33642
33643         announce-gen: new option: --no-print-checksums
33644         * build-aux/announce-gen (usage): Describe it.
33645         (print_checksums): Print a newline here, not in the [*] footnote.
33646         (main): Honor it.
33647
33648 2009-03-01  Bruno Haible  <bruno@clisp.org>
33649
33650         Use socklen_t in the native Windows replacements prototypes.
33651         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33652         instead of 'int'.
33653         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33654         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33655         * modules/getsockopt (Depends-on): Add socklen.
33656         * modules/setsockopt (Depends-on): Add socklen.
33657
33658 2009-03-01  Bruno Haible  <bruno@clisp.org>
33659
33660         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33661         least 4.2.
33662
33663 2009-03-01  Eric Blake  <ebb9@byu.net>
33664             Bruno Haible  <bruno@clisp.org>
33665
33666         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33667         error messages.
33668         * lib/wait-process.c (wait_subprocess): Omit error message about
33669         deadly signal sent to the child of termsigp != NULL.
33670
33671 2009-03-01  Eric Blake  <ebb9@byu.net>
33672
33673         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33674
33675 2009-03-01  Bruno Haible  <bruno@clisp.org>
33676
33677         Avoid a gcc warning.
33678         * tests/test-sched.c (b): Make global.
33679         Reported by Eric Blake.
33680
33681 2009-01-19  Martin Lambers  <marlam@marlam.de>
33682
33683         Provide POSIX semantics for socket timeout options on W32.
33684         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33685         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33686         * modules/setsockopt: Depend on sys_time module for struct timeval.
33687         * modules/getsockopt: Depend on sys_time module for struct timeval.
33688
33689 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33690
33691         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33692         __USE_GNU, for consistency with netdb.in.h.
33693         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33694
33695 2009-03-01  Bruno Haible  <bruno@clisp.org>
33696
33697         More support for FreeMiNT.
33698         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33699         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33700
33701 2009-03-01  Bruno Haible  <bruno@clisp.org>
33702
33703         More support for FreeMiNT.
33704         * lib/fpurge.c (fpurge): Correct last commit.
33705         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33706
33707 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33708
33709         Fix unportable awk script in vc-list-files.
33710         * build-aux/vc-list-files: In the replacement awk script, use
33711         substr with a second argument of 1, not zero.
33712         Report by Simon Josefsson.
33713
33714 2009-02-28  Bruno Haible  <bruno@clisp.org>
33715
33716         More support for FreeMiNT.
33717         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33718         to FreeMiNT today.
33719         * lib/fwriting.c (fwriting): Likewise.
33720         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33721
33722 2009-02-28  Bruno Haible  <bruno@clisp.org>
33723
33724         * tests/test-freadseek.c (main): Disable test beyond end of file on
33725         FreeMiNT.
33726         * tests/test-ftello.c (main): Likewise.
33727         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33728
33729 2009-02-28  Bruno Haible  <bruno@clisp.org>
33730
33731         Add tentative support for FreeMiNT.
33732         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33733         * lib/fpurge.c (fpurge): Likewise.
33734         * lib/freadable.c (freadable): Likewise.
33735         * lib/freading.c (freading): Likewise.
33736         * lib/freadptr.c (freadptr): Likewise.
33737         * lib/freadseek.c (freadptrinc): Likewise.
33738         * lib/fseeko.c (rpl_fseeko): Likewise.
33739         * lib/fseterr.c (fseterr): Likewise.
33740         * lib/fwritable.c (fwritable): Likewise.
33741         * lib/fwriting.c (fwriting): Likewise.
33742         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33743         Hourihane.
33744         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33745
33746 2009-02-28  Bruno Haible  <bruno@clisp.org>
33747
33748         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33749         SIGCHLD.
33750         Reported by Jim Meyering.
33751
33752 2009-02-28  Bruno Haible  <bruno@clisp.org>
33753
33754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33755         Mention the results of these tests on various platforms.
33756         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33757         order.
33758         * doc/posix-functions/printf.texi: Likewise.
33759         * doc/posix-functions/snprintf.texi: Likewise.
33760         * doc/posix-functions/sprintf.texi: Likewise.
33761         * doc/posix-functions/vfprintf.texi: Likewise.
33762         * doc/posix-functions/vprintf.texi: Likewise.
33763         * doc/posix-functions/vsnprintf.texi: Likewise.
33764         * doc/posix-functions/vsprintf.texi: Likewise.
33765         * doc/glibc-functions/obstack_printf.texi: Likewise.
33766         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33767
33768 2009-02-28  Bruno Haible  <bruno@clisp.org>
33769
33770         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33771         Reported by Loïc Minier <lool@dooz.org>.
33772
33773 2009-02-27  Bruno Haible  <bruno@clisp.org>
33774
33775         * gnulib-tool (func_import): Make the sed expression used to create the
33776         sed script for updating the .gitignore file POSIX compliant.
33777         Reported by Eric Blake.
33778
33779 2009-02-27  Bruno Haible  <bruno@clisp.org>
33780
33781         * gnulib-tool (sed): Don't alias as "sed --posix".
33782         Reported by Eric Blake.
33783
33784 2009-02-27  Bruno Haible  <bruno@clisp.org>
33785
33786         Avoid test link errors.
33787         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33788         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33789         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33790         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33792
33793 2009-02-27  Bruno Haible  <bruno@clisp.org>
33794
33795         Avoid spurious "(cached)" in configure output.
33796         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33797         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33798         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33799         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33800         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33801         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33802         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33803         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33804         Reported by Eric Blake.
33805
33806 2009-02-27  Eric Blake  <ebb9@byu.net>
33807
33808         printf: fix regression in previous patch
33809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33810
33811 2009-02-27  Bruno Haible  <bruno@clisp.org>
33812
33813         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33814         value.
33815         * lib/stdint.in.h: Likewise.
33816         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33817
33818 2009-02-27  Eric Blake  <ebb9@byu.net>
33819
33820         doc: mention more functions added in cygwin 1.7.0
33821         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33822         addition.
33823         * doc/posix-functions/open_wmemstream.texi: Likewise.
33824         * doc/posix-functions/wcsnlen.texi: Likewise.
33825         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33826         * doc/posix-functions/wcstod.texi: Likewise.
33827         * doc/posix-functions/wcstof.texi: Likewise.
33828         * doc/posix-functions/wcstoimax.texi: Likewise.
33829         * doc/posix-functions/wcstok.texi: Likewise.
33830         * doc/posix-functions/wcstoumax.texi: Likewise.
33831
33832         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33834         * doc/posix-functions/fprintf.texi: Update.
33835         * doc/posix-functions/printf.texi: Update.
33836         * doc/posix-functions/snprintf.texi: Update.
33837         * doc/posix-functions/sprintf.texi: Update.
33838         * doc/posix-functions/vfprintf.texi: Update.
33839         * doc/posix-functions/vprintf.texi: Update.
33840         * doc/posix-functions/vsnprintf.texi: Update.
33841         * doc/posix-functions/vsprintf.texi: Update.
33842         * doc/glibc-functions/obstack_printf.texi: Update.
33843         * doc/glibc-functions/obstack_vprintf.texi: Update.
33844
33845 2009-02-26  Eric Blake  <ebb9@byu.net>
33846
33847         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33848         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33849         compilation bug by using runtime conversion.
33850         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33851         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33852         * modules/ceill-tests (Files): Use nan.h.
33853         * modules/floorl-tests (Files): Likewise.
33854         * modules/frexpl-tests (Files): Likewise.
33855         * modules/isnanl-tests (Files): Likewise.
33856         * modules/ldexpl-tests (Files): Likewise.
33857         * modules/roundl-tests (Files): Likewise.
33858         * modules/truncl-tests (Files): Likewise.
33859         * tests/test-ceill.c (main): Use a working NaN.
33860         * tests/test-floorl.c (main): Likewise.
33861         * tests/test-frexpl.c (main): Likewise.
33862         * tests/test-isnan.c (test_long_double): Likewise.
33863         * tests/test-isnanl.h (main): Likewise.
33864         * tests/test-ldexpl.h (main): Likewise.
33865         * tests/test-roundl.h (main): Likewise.
33866         * tests/test-truncl.h (main): Likewise.
33867         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33868
33869 2009-02-26  Eric Blake  <ebb9@byu.net>
33870             Bruno Haible  <bruno@clisp.org>
33871
33872         Work around a *printf bug with %ls on Solaris.
33873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33874         precision is specified, sprintf stops converting the wide string
33875         argument when the number of bytes that have been produced by this
33876         conversion equals or exceeds the precision.
33877         * doc/posix-functions/fprintf.texi: Update.
33878         * doc/posix-functions/printf.texi: Update.
33879         * doc/posix-functions/snprintf.texi: Update.
33880         * doc/posix-functions/sprintf.texi: Update.
33881         * doc/posix-functions/vfprintf.texi: Update.
33882         * doc/posix-functions/vprintf.texi: Update.
33883         * doc/posix-functions/vsnprintf.texi: Update.
33884         * doc/posix-functions/vsprintf.texi: Update.
33885         * doc/glibc-functions/obstack_printf.texi: Update.
33886         * doc/glibc-functions/obstack_vprintf.texi: Update.
33887
33888 2009-02-26  Eric Blake  <ebb9@byu.net>
33889
33890         stdlib: favor compiler check of random.h
33891         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33892         to avoid an ObjC random.h installed by Swarm.
33893
33894 2009-02-26  Bruno Haible  <bruno@clisp.org>
33895
33896         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33897         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33898         Reported by Gary V. Vaughan <gary@gnu.org>.
33899
33900 2009-02-26  Bruno Haible  <bruno@clisp.org>
33901
33902         Fix *printf behaviour regarding the %ls directive.
33903         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33904         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33905         NEED_PRINTF_DIRECTIVE_LS.
33906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33907         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33909         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33910         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33911         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33914         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33917         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33918         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33920         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33921         * doc/posix-functions/fprintf.texi: Update.
33922         * doc/posix-functions/printf.texi: Update.
33923         * doc/posix-functions/snprintf.texi: Update.
33924         * doc/posix-functions/sprintf.texi: Update.
33925         * doc/posix-functions/vfprintf.texi: Update.
33926         * doc/posix-functions/vprintf.texi: Update.
33927         * doc/posix-functions/vsnprintf.texi: Update.
33928         * doc/posix-functions/vsprintf.texi: Update.
33929         * doc/glibc-functions/obstack_printf.texi: Update.
33930         * doc/glibc-functions/obstack_vprintf.texi: Update.
33931         Reported by Eric Blake.
33932
33933 2009-02-25  Bruno Haible  <bruno@clisp.org>
33934
33935         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33936         with known value.
33937         Reported by Gary V. Vaughan <gary@gnu.org>.
33938
33939 2009-02-25  Bruno Haible  <bruno@clisp.org>
33940
33941         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33942         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33943         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33944         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33945         Reported by Gary V. Vaughan <gary@gnu.org>.
33946
33947 2009-02-25  Bruno Haible  <bruno@clisp.org>
33948
33949         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33950         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33951         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33952         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33953         Reported by Gary V. Vaughan <gary@gnu.org>.
33954
33955 2009-02-25  Eric Blake  <ebb9@byu.net>
33956
33957         tests: skip fseek/ftell tests if ungetc is broken
33958         * m4/ungetc.m4: New file.
33959         * modules/fseek-tests: Split test, so ungetc dependency is
33960         separate from rest of test.
33961         * modules/fseeko-tests: Likewise.
33962         * modules/ftell-tests: Likewise.
33963         * modules/ftello-tests: Likewise.
33964         * tests/test-fseek.c (main): Isolate ungetc dependency.
33965         * tests/test-fseeko.c (main): Likewise.
33966         * tests/test-ftell.c (main): Likewise.
33967         * tests/test-ftello.c (main): Likewise.
33968         * tests/test-fseek2.sh: New file.
33969         * tests/test-fseeko2.sh: Likewise.
33970         * tests/test-ftell2.sh: Likewise.
33971         * tests/test-ftello2.sh: Likewise.
33972
33973 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33974
33975         test-getaddrinfo: fix usage of skip return code 77
33976         * tests/test-gettaddrinfo.c: Return skip code 77 only
33977         for first occurance of skip (4x77 is not 77)
33978
33979 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33980
33981         strtod: avoid C99 decl-after-statement
33982         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33983
33984 2009-02-24  Eric Blake  <ebb9@byu.net>
33985
33986         strtod: detect HP-UX 11.31 bug
33987         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33988         Reported by Gary V. Vaughan.
33989
33990 2009-02-23  Bruno Haible  <bruno@clisp.org>
33991
33992         Fix invalid read past end of memory block.
33993         * lib/vasnprintf.c (DCHAR_SET): Define.
33994         (local_wcslen): Define only when needed.
33995         (local_strnlen, local_wcsnlen): New functions.
33996         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33997         directives that involve a conversion ourselves.
33998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33999         wcsnlen, mbrtowc, wcrtomb.
34000         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34001         * tests/test-vasprintf-posix.c (test_function): Likewise.
34002         * tests/test-snprintf-posix.h (test_function): Likewise.
34003         * tests/test-sprintf-posix.h (test_function): Likewise.
34004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34005
34006 2009-02-22  Bruno Haible  <bruno@clisp.org>
34007
34008         Implement new clarified decomposition of Hangul syllables.
34009         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34010         of type LTV, return only a pairwise decomposition.
34011         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34012         Likewise.
34013         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34014         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34015         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34016
34017 2009-02-22  Bruno Haible  <bruno@clisp.org>
34018
34019         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34020         zero-length results and shrink excess allocated memory.
34021         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34022         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34023         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34024         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34025         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34026         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34027         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34028         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34029         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34030         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34031         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34032         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34033
34034 2009-02-21  Bruno Haible  <bruno@clisp.org>
34035
34036         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34037         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34038         spaces after a period. Put a space between a macro name and its
34039         argument list. Trivial rewordings.
34040         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34041         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34042         (main): Return 0 explicitly.
34043
34044 2009-02-21  Bruno Haible  <bruno@clisp.org>
34045
34046         Tests for module 'uninorm/filter'.
34047         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34048         * modules/uninorm/filter-tests: New file.
34049
34050         New module 'uninorm/filter'.
34051         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34052         uninorm_filter_flush, uninorm_filter_free): New declarations.
34053         * lib/uninorm/uninorm-filter.c: New file.
34054         * modules/uninorm/filter: New file.
34055
34056 2009-02-21  Bruno Haible  <bruno@clisp.org>
34057
34058         Tests for module 'uninorm/nfkc'.
34059         * tests/uninorm/test-nfkc.c: New file.
34060         * tests/uninorm/test-u8-nfkc.c: New file.
34061         * tests/uninorm/test-u16-nfkc.c: New file.
34062         * tests/uninorm/test-u32-nfkc.c: New file.
34063         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34064         * tests/uninorm/test-u32-nfkc-big.c: New file.
34065         * modules/uninorm/nfkc-tests: New file.
34066
34067         New module 'uninorm/nfkc'.
34068         * lib/uninorm/nfkc.c: New file.
34069         * modules/uninorm/nfkc: New file.
34070
34071         Tests for module 'uninorm/nfkd'.
34072         * tests/uninorm/test-nfkd.c: New file.
34073         * tests/uninorm/test-u8-nfkd.c: New file.
34074         * tests/uninorm/test-u16-nfkd.c: New file.
34075         * tests/uninorm/test-u32-nfkd.c: New file.
34076         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34077         * tests/uninorm/test-u32-nfkd-big.c: New file.
34078         * modules/uninorm/nfkd-tests: New file.
34079
34080         New module 'uninorm/nfkd'.
34081         * lib/uninorm/nfkd.c: New file.
34082         * modules/uninorm/nfkd: New file.
34083
34084         Tests for module 'uninorm/nfc'.
34085         * tests/uninorm/test-nfc.c: New file.
34086         * tests/uninorm/test-u8-nfc.c: New file.
34087         * tests/uninorm/test-u16-nfc.c: New file.
34088         * tests/uninorm/test-u32-nfc.c: New file.
34089         * tests/uninorm/test-u32-nfc-big.sh: New file.
34090         * tests/uninorm/test-u32-nfc-big.c: New file.
34091         * modules/uninorm/nfc-tests: New file.
34092
34093         New module 'uninorm/nfc'.
34094         * lib/uninorm/nfc.c: New file.
34095         * modules/uninorm/nfc: New file.
34096
34097         Tests for module 'uninorm/nfd'.
34098         * tests/uninorm/test-nfd.c: New file.
34099         * tests/uninorm/test-u8-nfd.c: New file.
34100         * tests/uninorm/test-u16-nfd.c: New file.
34101         * tests/uninorm/test-u32-nfd.c: New file.
34102         * tests/uninorm/test-u32-nfd-big.sh: New file.
34103         * tests/uninorm/test-u32-nfd-big.c: New file.
34104         * tests/uninorm/test-u32-normalize-big.h: New file.
34105         * tests/uninorm/test-u32-normalize-big.c: New file.
34106         * tests/uninorm/NormalizationTest.txt: New file, created from
34107         Unicode 5.1.0 NormalizationTest.txt.
34108         * modules/uninorm/nfd-tests: New file.
34109
34110         New module 'uninorm/nfd'.
34111         * lib/uninorm/nfd.c: New file.
34112         * modules/uninorm/nfd: New file.
34113
34114         New module 'uninorm/u32-normalize'.
34115         * lib/uninorm/u32-normalize.c: New file.
34116         * modules/uninorm/u32-normalize: New file.
34117
34118         New module 'uninorm/u16-normalize'.
34119         * lib/uninorm/u16-normalize.c: New file.
34120         * modules/uninorm/u16-normalize: New file.
34121
34122         New module 'uninorm/u8-normalize'.
34123         * lib/uninorm/u8-normalize.c: New file.
34124         * lib/uninorm/normalize-internal.h: New file.
34125         * lib/uninorm/u-normalize-internal.h: New file.
34126         * modules/uninorm/u8-normalize: New file.
34127
34128         New module 'uninorm/decompose-internal'.
34129         * lib/uninorm/decompose-internal.c: New file.
34130         * modules/uninorm/decompose-internal: New file.
34131
34132         Tests for module 'uninorm/composition'.
34133         * tests/uninorm/test-composition.c: New file.
34134         * modules/uninorm/composition-tests: New file.
34135
34136         New module 'uninorm/composition'.
34137         * lib/uninorm/composition.c: New file.
34138         * lib/uninorm/composition-table.gperf: New file, generated by
34139         gen-uni-tables.
34140         * modules/uninorm/composition: New file.
34141
34142         Tests for module 'uninorm/compat-decomposition'.
34143         * tests/uninorm/test-compat-decomposition.c: New file.
34144         * modules/uninorm/compat-decomposition-tests: New file.
34145
34146         New module 'uninorm/compat-decomposition'.
34147         * lib/uninorm/decompose-internal.h: New file.
34148         * lib/uninorm/compat-decomposition.c: New file.
34149         * modules/uninorm/compat-decomposition: New file.
34150
34151         Tests for module 'uninorm/canonical-decomposition'.
34152         * tests/uninorm/test-canonical-decomposition.c: New file.
34153         * modules/uninorm/canonical-decomposition-tests: New file.
34154
34155         New module 'uninorm/canonical-decomposition'.
34156         * lib/uninorm/canonical-decomposition.c: New file.
34157         * modules/uninorm/canonical-decomposition: New file.
34158
34159         Tests for module 'uninorm/decomposition'.
34160         * tests/uninorm/test-decomposition.c: New file.
34161         * modules/uninorm/decomposition-tests: New file.
34162
34163         New module 'uninorm/decomposition'.
34164         * lib/uninorm/decomposition.c: New file.
34165         * modules/uninorm/decomposition: New file.
34166
34167         New module 'uninorm/decomposition-table'.
34168         * lib/uninorm/decomposition-table.h: New file.
34169         * lib/uninorm/decomposition-table.c: New file.
34170         * lib/uninorm/decomposition-table1.h: New file, generated by
34171         gen-uni-tables.
34172         * lib/uninorm/decomposition-table2.h: New file, generated by
34173         gen-uni-tables.
34174         * modules/uninorm/decomposition-table: New file.
34175
34176         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34177         (UC_DECOMP_*): New enumeration items.
34178         (get_decomposition): New function.
34179         (struct decomp_table): New type.
34180         (output_decomposition, output_decomposition_tables): New functions.
34181         (unicode_composition_exclusions): New variable.
34182         (fill_composition_exclusions, debug_output_composition_tables): New
34183         functions.
34184         (main): Accept one more argument. Invoke fill_composition_exclusions.
34185         Output decomposition and composition tables.
34186
34187         New module 'uninorm/base'.
34188         * lib/uninorm.h: New file.
34189         * lib/unictype.h: Update comment.
34190         * modules/uninorm/base: New file.
34191
34192 2009-02-21  David Lutterkort  <lutter@redhat.com>
34193
34194         Tests for module 'safe-alloc'.
34195         * tests/test-safe-alloc.c: New file.
34196         * modules/safe-alloc-tests: New file.
34197
34198         New module 'safe-alloc'.
34199         * lib/safe-alloc.h: New file.
34200         * lib/safe-alloc.c: New file.
34201         * m4/safe-alloc.m4: New file.
34202         * modules/safe-alloc: New file.
34203         * doc/safe-alloc.texi: New file.
34204         * doc/gnulib.texi: Include it.
34205         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34206         safe-alloc.
34207
34208 2009-02-18  Bruno Haible  <bruno@clisp.org>
34209
34210         Fix link error on non-glibc systems.
34211         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34212         variable.
34213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34214
34215 2009-02-18  Jim Meyering  <meyering@redhat.com>
34216
34217         fts: avoid used-uninitialized error due to recent change
34218         * lib/fts.c (fts_read): Guard uses of the new member,
34219         parent->fts_n_dirs_remaining, since it's not relevant for
34220         the parent of a directory specified on the command-line.
34221
34222 2009-02-17  James Youngman  <jay@gnu.org>
34223             Bruno Haible  <bruno@clisp.org>
34224
34225         * m4/include_next.m4: Reformulate comment.
34226
34227 2009-02-16  Jim Meyering  <meyering@redhat.com>
34228
34229         fts: add #if guards so that the fts_lgpl module still builds
34230         * lib/fts.c: Guard just-added hash-table-using parts with
34231         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34232         Reported by Simon Josefsson.
34233
34234 2009-02-15  Bruno Haible  <bruno@clisp.org>
34235
34236         * modules/array-mergesort-tests: New file.
34237         * tests/test-array-mergesort.c: New file.
34238
34239         New module 'array-mergesort'.
34240         * modules/array-mergesort: New file.
34241         * lib/array-mergesort.h: New file.
34242
34243 2009-02-15  Bruno Haible  <bruno@clisp.org>
34244
34245         Fix 2009-02-07 commit.
34246         * lib/gen-uni-tables.c (output_predicate, output_category,
34247         output_combclass, output_bidi_category, output_decimal_digit,
34248         output_digit, output_numeric, output_mirror, output_scripts,
34249         output_ident_category, output_simple_mapping): Fix format directives.
34250         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34251
34252 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34253
34254         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34255         fixes are available from IBM.
34256
34257 2009-02-13  Jim Meyering  <meyering@redhat.com>
34258
34259         fts: arrange not to stat non-directories in more cases
34260         This makes GNU find (when it doesn't need to stat each file)
34261         *much* more efficient at traversing reiserfs file systems.
34262         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34263         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34264         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34265         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34266         (leaf_optimization_applies): New function.
34267         (LCO_hash, LCO_compare): New helper functions.
34268         (link_count_optimize_ok): New function.
34269         (fts_stat): Initialize new member (if dir).
34270         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34271         we've just stat'ed a directory.  Skip the stat call when possible.
34272         ---
34273         Note this AFS-related exchange:
34274         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34275         and note find's pioctl call in find/fstype.c.
34276         But that is necessary only if you want to enable the
34277         optimization for AFS, and for now, I don't.
34278
34279         fts: move a function definition "up" (no semantic change)
34280         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34281         "up" to precede upcoming use of a related function.
34282
34283 2009-02-11  Jim Meyering  <meyering@redhat.com>
34284
34285         fts: correct internal computation of nlinks (optimization-related)
34286         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34287         whether the current entry is a directory, so don't test it.
34288
34289 2009-02-10  Bruno Haible  <bruno@clisp.org>
34290
34291         Tests for module 'uniwbrk/ulc-wordbreaks'.
34292         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34293         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34294         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34295
34296         Tests for module 'uniwbrk/u32-wordbreaks'.
34297         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34298         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34299
34300         Tests for module 'uniwbrk/u16-wordbreaks'.
34301         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34302         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34303
34304         Tests for module 'uniwbrk/u8-wordbreaks'.
34305         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34306         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34307
34308 2009-02-10  Bruno Haible  <bruno@clisp.org>
34309
34310         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34311         property.
34312         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34313         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34314         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34315
34316 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34317
34318         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34319         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34320
34321 2009-02-10  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34324         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34325         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34326         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34327         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34328         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34329
34330 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34331
34332         * lib/sockets.h (gl_fd_to_handle): New function.
34333
34334         * tests/test-sockets.c: Call gl_fd_to_handle.
34335
34336 2009-02-09  Bruno Haible  <bruno@clisp.org>
34337
34338         * doc/havelib.texi: Document the conventions on bi-arch systems.
34339
34340 2009-02-08  Bruno Haible  <bruno@clisp.org>
34341
34342         Document the AC_LIB_LINKFLAGS macro.
34343         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34344         * doc/gnulib.texi: Include it.
34345
34346 2009-02-08  Bruno Haible  <bruno@clisp.org>
34347
34348         Fix wrong order of sections, compared to TOC.
34349         * doc/gnulib.texi: Include relocatable-maint.texi after the
34350         "Regular expressions" node, not before.
34351
34352 2009-02-08  Bruno Haible  <bruno@clisp.org>
34353
34354         Tests for module 'unicase/totitle'.
34355         * modules/unicase/totitle-tests: New file.
34356
34357         Tests for module 'unicase/tolower'.
34358         * modules/unicase/tolower-tests: New file.
34359
34360         Tests for module 'unicase/toupper'.
34361         * modules/unicase/toupper-tests: New file.
34362         * tests/unicase/test-mapping-part1.h: New file.
34363         * tests/unicase/test-mapping-part2.h: New file.
34364
34365         New module 'unicase/totitle'.
34366         * modules/unicase/totitle: New file.
34367         * lib/unicase/totitle.c: New file.
34368
34369         New module 'unicase/tolower'.
34370         * modules/unicase/tolower: New file.
34371         * lib/unicase/tolower.c: New file.
34372
34373         New module 'unicase/toupper'.
34374         * modules/unicase/toupper: New file.
34375         * lib/unicase/toupper.c: New file.
34376         * lib/unicase/simple-mapping.h: New file.
34377
34378         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34379         (mapping_table): New structure.
34380         (output_simple_mapping): New function.
34381         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34382         * modules/gen-uni-tables (Description): Update.
34383         * lib/unicase/toupper.h: New file, automatically generated by
34384         gen-uni-tables.
34385         * lib/unicase/tolower.h: New file, automatically generated by
34386         gen-uni-tables.
34387         * lib/unicase/totitle.h: New file, automatically generated by
34388         gen-uni-tables.
34389         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34390         gen-uni-tables.
34391         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34392         gen-uni-tables.
34393         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34394         gen-uni-tables.
34395
34396         New module 'unicase/base'.
34397         * modules/unicase/base: New file.
34398         * lib/unicase.h: New file.
34399
34400 2009-02-08  Bruno Haible  <bruno@clisp.org>
34401
34402         New module 'uniwbrk/ulc-wordbreaks'.
34403         * modules/uniwbrk/ulc-wordbreaks: New file.
34404         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34405
34406         New module 'uniwbrk/u32-wordbreaks'.
34407         * modules/uniwbrk/u32-wordbreaks: New file.
34408         * lib/uniwbrk/u32-wordbreaks.c: New file.
34409
34410         New module 'uniwbrk/u16-wordbreaks'.
34411         * modules/uniwbrk/u16-wordbreaks: New file.
34412         * lib/uniwbrk/u16-wordbreaks.c: New file.
34413
34414         New module 'uniwbrk/u8-wordbreaks'.
34415         * modules/uniwbrk/u8-wordbreaks: New file.
34416         * lib/uniwbrk/u8-wordbreaks.c: New file.
34417         * lib/uniwbrk/u-wordbreaks.h: New file.
34418
34419         New module 'uniwbrk/table'.
34420         * modules/uniwbrk/table: New file.
34421         * lib/uniwbrk/wbrktable.h: New file.
34422         * lib/uniwbrk/wbrktable.c: New file.
34423
34424         New module 'uniwbrk/wordbreak-property'.
34425         * modules/uniwbrk/wordbreak-property: New file.
34426         * lib/uniwbrk/wordbreak-property.c: New file.
34427
34428         * lib/gen-uni-tables.c (WBP_*): New enum items.
34429         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34430         (unicode_org_wbp): New variable.
34431         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34432         New functions.
34433         (wbp_table): New structure.
34434         (output_wbp, output_wbrk_tables): New functions.
34435         (main): Accept additional argument. Invoke fill_org_wbp,
34436         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34437         output_wbrk_tables.
34438         * modules/gen-uni-tables (Description): Update.
34439         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34440         gen-uni-tables.
34441
34442         New module 'uniwbrk/base'.
34443         * modules/uniwbrk/base: New file.
34444         * lib/uniwbrk.h: New file.
34445
34446 2009-02-08  Bruno Haible  <bruno@clisp.org>
34447
34448         Update to Unicode 5.1.0.
34449         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34450         U+2185..U+2188.
34451         (is_property_default_ignorable_code_point): Don't include characters
34452         of category Cc or Cs and not-a-characters.
34453         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34454         U+0D79, U+109E, U+109F, U+A60C.
34455         * lib/unictype/bidi_of.h: Regenerated.
34456         * lib/unictype/blocks.h: Regenerated.
34457         * lib/unictype/categ_C.h: Regenerated.
34458         * lib/unictype/categ_Cf.h: Regenerated.
34459         * lib/unictype/categ_Cn.h: Regenerated.
34460         * lib/unictype/categ_L.h: Regenerated.
34461         * lib/unictype/categ_Ll.h: Regenerated.
34462         * lib/unictype/categ_Lm.h: Regenerated.
34463         * lib/unictype/categ_Lo.h: Regenerated.
34464         * lib/unictype/categ_Lu.h: Regenerated.
34465         * lib/unictype/categ_M.h: Regenerated.
34466         * lib/unictype/categ_Mc.h: Regenerated.
34467         * lib/unictype/categ_Me.h: Regenerated.
34468         * lib/unictype/categ_Mn.h: Regenerated.
34469         * lib/unictype/categ_N.h: Regenerated.
34470         * lib/unictype/categ_Nd.h: Regenerated.
34471         * lib/unictype/categ_Nl.h: Regenerated.
34472         * lib/unictype/categ_No.h: Regenerated.
34473         * lib/unictype/categ_P.h: Regenerated.
34474         * lib/unictype/categ_Pd.h: Regenerated.
34475         * lib/unictype/categ_Pe.h: Regenerated.
34476         * lib/unictype/categ_Pf.h: Regenerated.
34477         * lib/unictype/categ_Pi.h: Regenerated.
34478         * lib/unictype/categ_Po.h: Regenerated.
34479         * lib/unictype/categ_Ps.h: Regenerated.
34480         * lib/unictype/categ_S.h: Regenerated.
34481         * lib/unictype/categ_Sk.h: Regenerated.
34482         * lib/unictype/categ_Sm.h: Regenerated.
34483         * lib/unictype/categ_So.h: Regenerated.
34484         * lib/unictype/categ_of.h: Regenerated.
34485         * lib/unictype/combining.h: Regenerated.
34486         * lib/unictype/ctype_alnum.h: Regenerated.
34487         * lib/unictype/ctype_alpha.h: Regenerated.
34488         * lib/unictype/ctype_graph.h: Regenerated.
34489         * lib/unictype/ctype_lower.h: Regenerated.
34490         * lib/unictype/ctype_print.h: Regenerated.
34491         * lib/unictype/ctype_punct.h: Regenerated.
34492         * lib/unictype/ctype_upper.h: Regenerated.
34493         * lib/unictype/decdigit.h: Regenerated.
34494         * lib/unictype/digit.h: Regenerated.
34495         * lib/unictype/mirror.h: Regenerated.
34496         * lib/unictype/numeric.h: Regenerated.
34497         * lib/unictype/pr_alphabetic.h: Regenerated.
34498         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34499         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34500         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34501         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34502         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34503         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34504         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34505         * lib/unictype/pr_combining.h: Regenerated.
34506         * lib/unictype/pr_dash.h: Regenerated.
34507         * lib/unictype/pr_decimal_digit.h: Regenerated.
34508         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34509         * lib/unictype/pr_deprecated.h: Regenerated.
34510         * lib/unictype/pr_diacritic.h: Regenerated.
34511         * lib/unictype/pr_extender.h: Regenerated.
34512         * lib/unictype/pr_format_control.h: Regenerated.
34513         * lib/unictype/pr_grapheme_base.h: Regenerated.
34514         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34515         * lib/unictype/pr_grapheme_link.h: Regenerated.
34516         * lib/unictype/pr_id_continue.h: Regenerated.
34517         * lib/unictype/pr_id_start.h: Regenerated.
34518         * lib/unictype/pr_ideographic.h: Regenerated.
34519         * lib/unictype/pr_ignorable_control.h: Regenerated.
34520         * lib/unictype/pr_lowercase.h: Regenerated.
34521         * lib/unictype/pr_math.h: Regenerated.
34522         * lib/unictype/pr_numeric.h: Regenerated.
34523         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34524         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34525         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34526         * lib/unictype/pr_other_id_continue.h: Regenerated.
34527         * lib/unictype/pr_other_lowercase.h: Regenerated.
34528         * lib/unictype/pr_other_math.h: Regenerated.
34529         * lib/unictype/pr_punctuation.h: Regenerated.
34530         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34531         * lib/unictype/pr_soft_dotted.h: Regenerated.
34532         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34533         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34534         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34535         * lib/unictype/pr_uppercase.h: Regenerated.
34536         * lib/unictype/pr_xid_continue.h: Regenerated.
34537         * lib/unictype/pr_xid_start.h: Regenerated.
34538         * lib/unictype/pr_zero_width.h: Regenerated.
34539         * lib/unictype/scripts.h: Regenerated.
34540         * lib/unictype/scripts_byname.gperf: Regenerated.
34541         * lib/unictype/sy_java_ident.h: Regenerated.
34542         * lib/unilbrk/lbrkprop1.h: Regenerated.
34543         * lib/unilbrk/lbrkprop2.h: Regenerated.
34544         * tests/unictype/test-categ_C.c: Regenerated.
34545         * tests/unictype/test-categ_Cf.c: Regenerated.
34546         * tests/unictype/test-categ_Cn.c: Regenerated.
34547         * tests/unictype/test-categ_L.c: Regenerated.
34548         * tests/unictype/test-categ_Ll.c: Regenerated.
34549         * tests/unictype/test-categ_Lm.c: Regenerated.
34550         * tests/unictype/test-categ_Lo.c: Regenerated.
34551         * tests/unictype/test-categ_Lu.c: Regenerated.
34552         * tests/unictype/test-categ_M.c: Regenerated.
34553         * tests/unictype/test-categ_Mc.c: Regenerated.
34554         * tests/unictype/test-categ_Me.c: Regenerated.
34555         * tests/unictype/test-categ_Mn.c: Regenerated.
34556         * tests/unictype/test-categ_N.c: Regenerated.
34557         * tests/unictype/test-categ_Nd.c: Regenerated.
34558         * tests/unictype/test-categ_Nl.c: Regenerated.
34559         * tests/unictype/test-categ_No.c: Regenerated.
34560         * tests/unictype/test-categ_P.c: Regenerated.
34561         * tests/unictype/test-categ_Pd.c: Regenerated.
34562         * tests/unictype/test-categ_Pe.c: Regenerated.
34563         * tests/unictype/test-categ_Pf.c: Regenerated.
34564         * tests/unictype/test-categ_Pi.c: Regenerated.
34565         * tests/unictype/test-categ_Po.c: Regenerated.
34566         * tests/unictype/test-categ_Ps.c: Regenerated.
34567         * tests/unictype/test-categ_S.c: Regenerated.
34568         * tests/unictype/test-categ_Sk.c: Regenerated.
34569         * tests/unictype/test-categ_Sm.c: Regenerated.
34570         * tests/unictype/test-categ_So.c: Regenerated.
34571         * tests/unictype/test-ctype_alnum.c: Regenerated.
34572         * tests/unictype/test-ctype_alpha.c: Regenerated.
34573         * tests/unictype/test-ctype_graph.c: Regenerated.
34574         * tests/unictype/test-ctype_lower.c: Regenerated.
34575         * tests/unictype/test-ctype_print.c: Regenerated.
34576         * tests/unictype/test-ctype_punct.c: Regenerated.
34577         * tests/unictype/test-ctype_upper.c: Regenerated.
34578         * tests/unictype/test-decdigit.h: Regenerated.
34579         * tests/unictype/test-digit.h: Regenerated.
34580         * tests/unictype/test-numeric.h: Regenerated.
34581         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34582         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34583         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34584         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34585         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34586         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34587         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34588         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34589         * tests/unictype/test-pr_combining.c: Regenerated.
34590         * tests/unictype/test-pr_dash.c: Regenerated.
34591         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34592         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34593         * tests/unictype/test-pr_deprecated.c: Regenerated.
34594         * tests/unictype/test-pr_diacritic.c: Regenerated.
34595         * tests/unictype/test-pr_extender.c: Regenerated.
34596         * tests/unictype/test-pr_format_control.c: Regenerated.
34597         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34598         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34599         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34600         * tests/unictype/test-pr_id_continue.c: Regenerated.
34601         * tests/unictype/test-pr_id_start.c: Regenerated.
34602         * tests/unictype/test-pr_ideographic.c: Regenerated.
34603         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34604         * tests/unictype/test-pr_lowercase.c: Regenerated.
34605         * tests/unictype/test-pr_math.c: Regenerated.
34606         * tests/unictype/test-pr_numeric.c: Regenerated.
34607         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34608         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34609         Regenerated.
34610         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34611         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34612         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34613         * tests/unictype/test-pr_other_math.c: Regenerated.
34614         * tests/unictype/test-pr_punctuation.c: Regenerated.
34615         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34616         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34617         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34618         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34619         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34620         * tests/unictype/test-pr_uppercase.c: Regenerated.
34621         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34622         * tests/unictype/test-pr_xid_start.c: Regenerated.
34623         * tests/unictype/test-pr_zero_width.c: Regenerated.
34624
34625         Update to Unicode 5.1.0.
34626         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34627         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34628         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34629         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34630         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34631         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34632         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34633         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34634         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34635         (nonspacing_table_ind): Update.
34636         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34637
34638         Update to Unicode 5.1.0.
34639         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34640         code transform.
34641         * lib/uniname/uniname.c (unicode_character_name,
34642         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34643         * lib/uniname/uninames.h: Regenerated.
34644         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34645
34646 2009-02-07  Bruno Haible  <bruno@clisp.org>
34647
34648         Merge gen-ctype and gen-lbrk into a single program.
34649         * lib/gen-uni-tables.c: New file, incorporating
34650         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34651         Add directory prefixes to the names of the generated files.
34652         * lib/unictype/gen-ctype.c: Remove file.
34653         * lib/unilbrk/gen-lbrk.c: Remove file.
34654         * modules/gen-uni-tables: New file.
34655         * modules/unictype/gen-ctype: Remove file.
34656         * modules/unilbrk/gen-lbrk: Remove file.
34657
34658 2009-02-07  Bruno Haible  <bruno@clisp.org>
34659
34660         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34661
34662         New module 'unistr/u32-strcoll'.
34663         * modules/unistr/u32-strcoll: New file.
34664         * lib/unistr/u32-strcoll.c: New file.
34665
34666         New module 'unistr/u16-strcoll'.
34667         * modules/unistr/u16-strcoll: New file.
34668         * lib/unistr/u16-strcoll.c: New file.
34669
34670         New module 'unistr/u8-strcoll'.
34671         * modules/unistr/u8-strcoll: New file.
34672         * lib/unistr/u8-strcoll.c: New file.
34673         * lib/unistr/u-strcoll.h: New file.
34674
34675 2009-02-07  Bruno Haible  <bruno@clisp.org>
34676
34677         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34678         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34679         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34680         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34681         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34682         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34683
34684 2009-02-07  Bruno Haible  <bruno@clisp.org>
34685
34686         Make 64-bit clean.
34687         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34688         output_combclass, output_bidi_category, output_decimal_digit,
34689         output_digit, output_numeric, output_mirror, output_scripts,
34690         output_ident_category): Use proper width specifier in format strings.
34691
34692 2009-02-07  Bruno Haible  <bruno@clisp.org>
34693
34694         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34695         failure behaviour.
34696
34697 2009-02-07  Jim Meyering  <meyering@redhat.com>
34698
34699         regex: avoid compilation failure with upcoming gcc-4.4
34700         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34701         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34702         "... error: integer overflow in preprocessor expression".
34703
34704 2009-02-05  Ben Pfaff  <blp@gnu.org>
34705
34706         Fix link errors on Windows when close module is used.
34707         * modules/close: Add $(LIB_CLOSE) to Link section.
34708         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34709         $(LIB_CLOSE) on Windows.
34710
34711 2009-02-05  Jim Meyering  <meyering@redhat.com>
34712
34713         still avoid unused-parameter warnings, but do it cleanly
34714         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34715         (get_fs_usage): Cast to void instead.
34716         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34717         (dev_from_mount_options, read_file_system_list): Cast to void.
34718         Prompted by Bruno Haible.
34719
34720 2009-02-04  Jim Meyering  <meyering@redhat.com>
34721
34722         fsusage.c: correct copyright year
34723         * lib/fsusage.c: Reflect year in which the change is pushed into
34724
34725         avoid misc. warnings
34726         * lib/fsusage.c (UNUSED_PARAM): Define.
34727         (get_fs_usage): Mark parameter "disk" as unused.
34728         * lib/getugroups.c (getgrent): Use "void" in prototype.
34729         * lib/mountlist.c: Mark unused parameters.
34730         (read_file_system_list): Declare a local with "const".
34731         * lib/nanosleep.c (getnow): Declare static.
34732         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34733
34734         dirfd: set errno upon failure
34735         * lib/dirfd.c: Include <errno.h>.
34736         Set errno to ENOTSUP when returning -1.
34737         * modules/dirfd (Depends-on): Add errno.
34738         Suggested by John Kodis <kodis@comcast.net>.
34739
34740 2009-02-01  Bruno Haible  <bruno@clisp.org>
34741
34742         Don't assume sizeof (long) >= sizeof (void *).
34743         * lib/memcmp.c: Include stdint.h.
34744         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34745         srcp2 to 'const byte *'.
34746         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34747         types to uintptr_t.
34748         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34749         * modules/memcmp (Depends-on): Add stdint.
34750         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34751
34752 2009-01-30  Eric Blake  <ebb9@byu.net>
34753
34754         fix more require-before-expand issues
34755         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34756         expand, AC_PROG_AWK.
34757         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34758
34759 2009-01-28  Eric Blake  <ebb9@byu.net>
34760
34761         version-etc: use consistent URL formatting
34762         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34763         Improve formatting.  Use fputs for string without %.
34764
34765 2009-01-28  Jim Meyering  <meyering@redhat.com>
34766
34767         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34768         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34769         "underquoted definition of NAME" from autoconf-2.59.
34770
34771 2009-01-28  Bruno Haible  <bruno@clisp.org>
34772
34773         * doc/gnulib.texi: Add "Obsolete modules" to index.
34774
34775 2009-01-28  Jim Meyering  <meyering@redhat.com>
34776
34777         useless-if-before-free: recognize more variants
34778         * build-aux/useless-if-before-free: Also recognize e.g.,
34779         if (NULL != p) free (p);
34780
34781 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34782
34783         test-getaddrinfo: skip (don't fail) this test when there's no network
34784         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34785         on the presumption that it means you lack network access.
34786
34787 2009-01-26  Jim Meyering  <meyering@redhat.com>
34788
34789         fflush: avoid warnings on modern systems
34790         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34791         pos and result, into scopes where they're used.
34792
34793 2009-01-26  Eric Blake  <ebb9@byu.net>
34794
34795         Silence warning reintroduced by recent extensions patch.
34796         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34797         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34798         autoconf.
34799
34800         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34801         * m4/00gnulib.m4: New file.
34802         * gnulib-tool (func_get_filelist): Always use it.
34803         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34804         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34805
34806 2009-01-25  Bruno Haible  <bruno@clisp.org>
34807
34808         Make test-quotearg work on MacOS X and AIX.
34809         * tests/test-quotearg.sh: New file.
34810         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34811         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34812         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34813         include <libintl.h>.
34814         (fake_locale): Remove variable.
34815         (gettext, dgettext, dcgettext): Remove functions.
34816         (main): Instead of setting a fake locale, set a real locale. Call
34817         textdomain and bindtextdomain.
34818         * modules/quotearg-tests (Files): Add the new files.
34819         (Depends-on): Add gettext, setenv, unsetenv.
34820         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34821         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34822         Augment TESTS_ENVIRONMENT.
34823
34824 2009-01-25  Bruno Haible  <bruno@clisp.org>
34825
34826         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34827         fr_FR.ISO8859-1 locale on MacOS X.
34828         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34829         ja_JP.eucJP locale on MacOS X.
34830         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34831         zh_CN.GB18030 locale on MacOS X.
34832
34833 2009-01-25  Bruno Haible  <bruno@clisp.org>
34834
34835         Avoid link errors on MacOS X 10.3.
34836         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34837         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34838
34839 2009-01-25  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34842         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34843         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34844         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34845         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34846         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34847         posix_spawnattr_init, posix_spawnattr_setsigmask,
34848         posix_spawnattr_setflags, posix_spawnattr_destroy.
34849
34850         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34851         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34852         * modules/execute (Files): Remove m4/posix_spawn.m4.
34853         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34854         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34855         posix_spawnattr_init, posix_spawnattr_setsigmask,
34856         posix_spawnattr_setflags, posix_spawnattr_destroy.
34857
34858 2009-01-25  Bruno Haible  <bruno@clisp.org>
34859
34860         * lib/glthread/threadlib.c: Include <stdlib.h>.
34861
34862 2009-01-25  Bruno Haible  <bruno@clisp.org>
34863
34864         * lib/glthread/threadlib.c (dummy): New declaration.
34865
34866 2009-01-25  Bruno Haible  <bruno@clisp.org>
34867
34868         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34869         multibyte characters also for the GB18030 encoding. Don't crash when
34870         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34871
34872 2009-01-25  Bruno Haible  <bruno@clisp.org>
34873
34874         Avoid redefining 'struct random_data' on OSF/1 5.1.
34875         * lib/stdlib.in.h: Include <random.h> if it exists.
34876         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34877         HAVE_RANDOM_H. Include <random.h> when testing whether
34878         'struct random_data' exists.
34879         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34880
34881 2009-01-25  Bruno Haible  <bruno@clisp.org>
34882
34883         Don't install charset.alias on MacOS X >= 10.3.
34884         * lib/localcharset.c (DARWIN7): New macro.
34885         (get_charset_aliases): Hardcode the result for Darwin7.
34886         * modules/localcharset (install-exec-local): Don't install
34887         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34888
34889 2009-01-25  Bruno Haible  <bruno@clisp.org>
34890
34891         Don't install charset.alias on mingw and Cygwin.
34892         * modules/localcharset (install-exec-local): Don't install
34893         charset.alias on mingw and Cygwin, if the file does not yet exist.
34894         The result for these platforms is hardcoded in localcharset.c.
34895
34896 2009-01-25  Bruno Haible  <bruno@clisp.org>
34897
34898         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34900         before requiring AC_USE_SYSTEM_EXTENSIONS.
34901
34902 2009-01-25  Jim Meyering  <meyering@redhat.com>
34903
34904         c-strtod: avoid warnings
34905         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34906         "assignment discards qualifiers from pointer target type" warnings.
34907
34908 2009-01-24  Bruno Haible  <bruno@clisp.org>
34909
34910         Add support for non-UTF-8 locales on MacOS X.
34911         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34912         canonical encodings. For Darwin 7 and newer, don't map traditional
34913         encodings to UTF-8.
34914         Reported by Vincent Lefevre <vincent@vinc17.org>
34915         at <http://savannah.gnu.org/bugs/?25235>.
34916
34917 2009-01-24  Bruno Haible  <bruno@clisp.org>
34918
34919         * doc/gnulib.texi (Obsolete modules): New section.
34920         Reported by Mike Frysinger <vapier@gentoo.org>.
34921
34922 2009-01-24  Bruno Haible  <bruno@clisp.org>
34923
34924         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34925         (%.dvi): New rule.
34926
34927 2009-01-24  Bruno Haible  <bruno@clisp.org>
34928
34929         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34930         Reported by Eric Blake.
34931
34932 2009-01-24  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34935         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34936         Reported by Gary V. Vaughan <gary@gnu.org>.
34937
34938 2009-01-24  Bruno Haible  <bruno@clisp.org>
34939
34940         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34941
34942 2009-01-23  Bruno Haible  <bruno@clisp.org>
34943
34944         Make c-strtod, c-strtold usable in libraries.
34945         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34946         (C_STRTOD): Call strdup instead of xstrdup.
34947         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34948         * modules/c-strtold (Depends-on): Likewise.
34949         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34950         * NEWS: Mention the change.
34951         Reported by Michael Gold <mgold@ncf.ca>.
34952
34953 2009-01-23  Jim Meyering  <meyering@redhat.com>
34954
34955         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34956         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34957         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34958
34959 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34960
34961         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34962         GNU CoreUtils.
34963         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34964         * modules/version-etc (Description): Update.
34965
34966 2009-01-22  Bruno Haible  <bruno@clisp.org>
34967
34968         Cache the C locale object.
34969         * lib/c-strtod.c (c_locale_cache): New variable.
34970         (c_locale): New function.
34971         (C_STRTOD): Use it, and don't call freelocale.
34972         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34973         Suggested by Paolo Bonzini.
34974
34975 2009-01-21  Bruno Haible  <bruno@clisp.org>
34976
34977         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34978         conditions other than overflow.
34979
34980 2009-01-21  Bruno Haible  <bruno@clisp.org>
34981
34982         * lib/c-strtod.c: Include errno.h.
34983         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34984         value from STRTOD_L and STRTOD.
34985
34986 2009-01-21  Bruno Haible  <bruno@clisp.org>
34987         and Jim Meyering  <meyering@redhat.com>
34988
34989         nanosleep: skip configure test (fail it) for apple universal builds
34990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34991         universal builds, assume that nanosleep does not work.
34992         * modules/nanosleep (Depends-on): Add multiarch.
34993
34994         mktime: skip configure test (fail it) for apple universal builds
34995         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34996         universal builds, assume that mktime does not work.
34997         * modules/mktime (Depends-on): Add multiarch.
34998
34999 2009-01-21  Eric Blake  <ebb9@byu.net>
35000
35001         multiarch: avoid expand-before-require warning
35002         * modules/multiarch (configure.ac): Require, rather than expand,
35003         gl_MULTIARCH.
35004         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35005         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35006         enforce that all clients require it.  Partial reversion of
35007         2008-12-29 patch.
35008
35009         error: avoid expand-before-require warning
35010         * modules/errno (configure.ac): Require, rather than expand,
35011         gl_HEADER_ERRNO_H.
35012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35013         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35014         enforce that all clients require it.
35015
35016         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35017         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35018         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35019         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35020
35021 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35022
35023         Revert:
35024         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35025
35026         regex: do not depend on obsolete modules.
35027         * modules/regex: Remove memcmp and memmove.
35028
35029 2009-01-20  Bruno Haible  <bruno@clisp.org>
35030
35031         Make the 'link' module link on Windows NT 4.
35032         * lib/link.c (_WIN32_WINNT): Don't define.
35033         (CreateHardLinkFuncType): New type.
35034         (CreateHardLinkFunc, initialized): New variables.
35035         (initialize): New function.
35036         (link): Invoke CreateHardLink indirectly through the function pointer.
35037
35038 2009-01-20  Bruno Haible  <bruno@clisp.org>
35039
35040         Fix compilation failure on mingw.
35041         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35042
35043 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35044
35045         * doc/c-strtod.texi: Mention a couple of restrictions.
35046
35047 2009-01-20  Jim Meyering  <meyering@redhat.com>
35048
35049         gettimeofday: move more declarations out of functions
35050         * lib/gettimeofday.c: Move extern declarations of tzset and
35051         gmtime out of containing functions.  Prompted by Bruno Haible.
35052
35053 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35054
35055         regex: do not depend on obsolete modules.
35056         * modules/regex: Remove memcmp and memmove.
35057
35058 2009-01-19  Bruno Haible  <bruno@clisp.org>
35059
35060         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35061         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35062         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35063         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35064         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35065
35066 2009-01-19  Bruno Haible  <bruno@clisp.org>
35067
35068         * tests/test-link.c: Include <errno.h>.
35069         (main): Exit with code 77 when a hard link cannot be created due to
35070         the file system.
35071         * tests/test-link.sh: Skip test when a hard link cannot be created due
35072         to the file system.
35073         Suggested by Eric Blake.
35074
35075 2009-01-19  Martin Lambers  <marlam@marlam.de>
35076
35077         * modules/link-tests: New file.
35078         * tests/test-link.sh: New file.
35079         * tests/test-link.c: New file.
35080
35081 2009-01-19  Eric Blake  <ebb9@byu.net>
35082
35083         doc: mention another function added in cygwin 1.7.0
35084         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35085         Another new function in cygwin 1.7.
35086
35087 2009-01-19  Bruno Haible  <bruno@clisp.org>
35088
35089         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35090         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35091         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35092         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35093         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35094         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35095         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35096         * m4/md4.m4 (gl_MD4): Likewise.
35097         * m4/md5.m4 (gl_MD5): Likewise.
35098         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35099         * m4/sha1.m4 (gl_SHA1): Likewise.
35100         * m4/sha256.m4 (gl_SHA256): Likewise.
35101         * m4/sha512.m4 (gl_SHA512): Likewise.
35102
35103 2009-01-19  Bruno Haible  <bruno@clisp.org>
35104
35105         * modules/uniname/uniname-tests (Depends-on): Add progname.
35106         * tests/uniname/test-uninames.c: Include progname.h.
35107         (main): Call set_program_name.
35108
35109         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35110         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35111         (main): Call set_program_name.
35112
35113         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35114         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35115         (main): Call set_program_name.
35116
35117         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35118         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35119         (main): Call set_program_name.
35120
35121         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35122         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35123         (main): Call set_program_name.
35124
35125         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35126         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35127         (main): Call set_program_name.
35128
35129         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35130         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35131         (main): Call set_program_name.
35132
35133         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35134         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35135         (main): Call set_program_name.
35136
35137         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35138         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35139         (main): Call set_program_name.
35140
35141 2009-01-19  Eric Blake  <ebb9@byu.net>
35142
35143         test-unistd: test previous patch
35144         * tests/test-unistd.c: Test *_FILENO macros.
35145
35146         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35147         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35148         Guarantee a definition.
35149         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35150         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35151         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35152         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35153         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35154         Likewise.
35155         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35156         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35157         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35158         Likewise.
35159         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35160         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35161         (STDERR_FILENO): Likewise.
35162         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35163         (STDERR_FILENO): Likewise.
35164         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35165         (STDERR_FILENO): Likewise.
35166         Reported by Elbert Pol.
35167
35168 2009-01-19  Eric Blake  <ebb9@byu.net>
35169
35170         doc: mention more functions added in cygwin 1.7.0
35171         * doc/posix-functions/abort.texi (abort): Update wording related
35172         to cygwin.
35173         * doc/posix-functions/daylight.texi (daylight): Likewise.
35174         * doc/posix-functions/optarg.texi (optarg): Likewise.
35175         * doc/posix-functions/optarg.texi (opterr): Likewise.
35176         * doc/posix-functions/optarg.texi (optind): Likewise.
35177         * doc/posix-functions/optarg.texi (optopt): Likewise.
35178         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35179         worked in 1.5.x, and was withdrawn in 1.7.
35180         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35181         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35182         cygwin versions.
35183         * doc/posix-functions/perror.texi (perror): Likewise.
35184         * doc/posix-functions/printf.texi (printf): Likewise.
35185         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35186         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35187         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35188         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35189         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35190         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35191         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35192         Likewise.
35193         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35194         Likewise.
35195         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35196         this function.
35197         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35198         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35199         Likewise.
35200         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35201         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35202         * doc/posix-functions/confstr.texi (confstr): Likewise.
35203         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35204         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35205         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35206         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35207         * doc/posix-functions/fputws.texi (fputws): Likewise.
35208         * doc/posix-functions/fwide.texi (fwide): Likewise.
35209         * doc/posix-functions/getwc.texi (getwc): Likewise.
35210         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35211         * doc/posix-functions/putwc.texi (putwc): Likewise.
35212         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35213         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35214         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35215         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35216         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35217         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35218         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35219         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35220         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35221         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35222         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35223
35224 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35225
35226         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35227         * lib/ioctl.c: Include <sys/ioctl.h>.
35228
35229 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35230
35231         * modules/getdate-tests (Depends-on): Add progname.
35232         * tests/test-getdate.c: Use progname module, to avoid link errors
35233         on non-glibc systems.
35234
35235 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35236
35237         * modules/filenamecat-tests (Depends-on): Add progname.
35238         * modules/fstrcmp-tests (Depends-on): Likewise.
35239
35240         * tests/test-filenamecat.c: Use progname module, to avoid link
35241         errors on non-glibc systems.
35242         * tests/test-fstrcmp.c: Likewise.
35243
35244 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35245
35246         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35247         * lib/gettimeofday.c: Move extern declaration out of function.
35248
35249 2009-01-18  Bruno Haible  <bruno@clisp.org>
35250
35251         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35252         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35253         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35254
35255 2009-01-18  Bruno Haible  <bruno@clisp.org>
35256
35257         * lib/strftime.c (MEMPCPY): Remove unused macro.
35258         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35259
35260 2009-01-18  Martin Lambers  <marlam@marlam.de>
35261
35262         New module 'link'.
35263         * lib/unistd.in.h (link): New declaration.
35264         * lib/link.c: New file.
35265         * m4/link.m4: New file.
35266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35267         HAVE_LINK.
35268         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35269         * modules/link: New file.
35270         * doc/posix-functions/link.texi: Mention the new module.
35271
35272 2009-01-18  Bruno Haible  <bruno@clisp.org>
35273
35274         * tests/test-avltree_list.c (main): Call set_program_name.
35275         * tests/test-avltree_oset.c (main): Likewise.
35276         * tests/test-obstack-printf.c: Include progname.h.
35277         (main): Call set_program_name.
35278         * tests/test-quotearg.c: Include progname.h.
35279         (main): Call set_program_name.
35280         * tests/test-xmemdup0.c: Include progname.h.
35281         (main): Call set_program_name.
35282
35283 2009-01-18  Bruno Haible  <bruno@clisp.org>
35284
35285         New module 'alphasort'.
35286         * lib/dirent.in.h (alphasort): New declaration.
35287         * lib/alphasort.c: New file, from glibc with modifications.
35288         * m4/alphasort.m4: New file.
35289         * modules/alphasort: New file.
35290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35291         HAVE_ALPHASORT.
35292         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35293         HAVE_ALPHASORT.
35294         * doc/posix-functions/alphasort.texi: Mention the new module and the
35295         portability problems.
35296
35297 2009-01-18  Bruno Haible  <bruno@clisp.org>
35298
35299         New module 'scandir'.
35300         * lib/dirent.in.h (scandir): New declaration.
35301         * lib/scandir.c: New file, from glibc with modifications.
35302         * m4/scandir.m4: New file.
35303         * modules/scandir: New file.
35304         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35305         HAVE_SCANDIR.
35306         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35307         HAVE_SCANDIR.
35308         * doc/posix-functions/scandir.texi: Mention the new module and the
35309         portability problems.
35310
35311 2009-01-17  Bruno Haible  <bruno@clisp.org>
35312
35313         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35314         Update documentation.
35315         (func_remove_suffix): Escape all dots in the suffix. Update
35316         documentation.
35317         (func_filter_filelist): Update documentation.
35318         Reported by Ralf Wildenhues.
35319
35320 2009-01-17  Bruno Haible  <bruno@clisp.org>
35321
35322         * modules/dprintf-posix-tests: New file.
35323         * tests/test-dprintf-posix.sh: New file.
35324         * tests/test-dprintf-posix.c: New file.
35325
35326         New modules 'dprintf', 'dprintf-posix'.
35327         * lib/stdio.in.h (dprintf): New declaration.
35328         * lib/dprintf.c: New file.
35329         * m4/dprintf.m4: New file.
35330         * m4/dprintf-posix.m4: New file.
35331         * modules/dprintf: New file.
35332         * modules/dprintf-posix: New file.
35333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35334         HAVE_DPRINTF, REPLACE_DPRINTF.
35335         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35336         HAVE_DPRINTF, REPLACE_DPRINTF.
35337         * doc/posix-functions/dprintf.texi: Mention the new modules.
35338
35339 2009-01-17  Bruno Haible  <bruno@clisp.org>
35340
35341         * modules/vdprintf-posix-tests: New file.
35342         * tests/test-vdprintf-posix.sh: New file.
35343         * tests/test-vdprintf-posix.c: New file.
35344
35345         New modules 'vdprintf', 'vdprintf-posix'.
35346         * lib/stdio.in.h (vdprintf): New declaration.
35347         * lib/vdprintf.c: New file.
35348         * m4/vdprintf.m4: New file.
35349         * m4/vdprintf-posix.m4: New file.
35350         * modules/vdprintf: New file.
35351         * modules/vdprintf-posix: New file.
35352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35353         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35354         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35355         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35356         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35357
35358 2009-01-17  Bruno Haible  <bruno@clisp.org>
35359
35360         Fix replacement of fopen on mingw.
35361         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35362         mingw.
35363
35364 2009-01-17  Bruno Haible  <bruno@clisp.org>
35365
35366         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35367         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35368
35369 2009-01-17  Bruno Haible  <bruno@clisp.org>
35370
35371         Avoid test-fflush2.sh failure on mingw.
35372         * tests/test-fflush2.c: Include binary-io.h.
35373         (main): Put standard input into binary mode.
35374         * modules/fflush-tests (Depends-on): Add binary-io.
35375
35376 2009-01-17  Bruno Haible  <bruno@clisp.org>
35377
35378         * lib/wchar.in.h: In another particular situation, include only the
35379         system's <wchar.h> file.
35380         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35381         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35382         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35383
35384 2009-01-17  Bruno Haible  <bruno@clisp.org>
35385
35386         Support for stripping executables in --enable-relocatable.
35387         * build-aux/install-reloc: Expect one more argument, or an environment
35388         variable RELOC_STRIP_PROG. If set, strip the destination program and
35389         its wrapper.
35390         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35391         RELOC_STRIP_PROG.
35392         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35393         to set RELOCATABLE_STRIP.
35394         * NEWS: Mention the new Makefile requirement.
35395
35396 2009-01-17  Bruno Haible  <bruno@clisp.org>
35397
35398         * build-aux/install-reloc: Remove debugging information left over by
35399         C compiler on MacOS X.
35400
35401 2009-01-17  Bruno Haible  <bruno@clisp.org>
35402
35403         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35404         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35405         _NSGetExecutablePath.
35406
35407 2009-01-16  Jim Meyering  <meyering@redhat.com>
35408
35409         strerror: avoid warnings about discarding "const"
35410         * lib/strerror.c (rpl_strerror): Instead of returning a const
35411         string from each and every "case", use a variable, and add a single
35412         cast after the switch.
35413
35414 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35415
35416         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35417
35418 2009-01-16  Bruno Haible  <bruno@clisp.org>
35419
35420         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35421         array initializer syntax that also works in C++ mode.
35422         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35423
35424 2009-01-16  Jim Meyering  <meyering@redhat.com>
35425
35426         poll: suppress a warning
35427         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35428         to ignore "...unsigned expression < 0 is always false" warnings.
35429
35430 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35431
35432         poll: remove declarations of unused variables
35433         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35434         sockbuf and optlen.
35435
35436 2009-01-15  Bruno Haible  <bruno@clisp.org>
35437
35438         Make fflush-after-ungetc POSIX compliant on BSD systems.
35439         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35440         (clear_ungetc_buffer): Implement also for other systems.
35441         (rpl_fflush): On glibc systems, invoke
35442         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35443         clear_ungetc_buffer after fetching the stream's position, not before.
35444
35445 2009-01-15  Bruno Haible  <bruno@clisp.org>
35446
35447         Make fflush-after-ungetc POSIX compliant on glibc systems.
35448         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35449         after ungetc.
35450         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35451         (rpl_fflush): On glibc systems, simply call the system's fflush
35452         function after clearing the ungetc buffer.
35453         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35454         Instead, lseek only to the end of file, then use the system's fseeko
35455         for the rest. On glibc systems, reset the EOF indicator bit.
35456
35457 2009-01-15  Jim Meyering  <meyering@redhat.com>
35458
35459         openmp.m4: revert quote-adding change, for portability to older autoconf
35460         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35461         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35462         Simon Josefsson noticed the problem when using autoconf-2.61.
35463
35464 2009-01-15  Bruno Haible  <bruno@clisp.org>
35465
35466         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35467         * tests/test-fflush2.c (ASSERT): Always fail.
35468         (main): Add two tests for fflush() after ungetc(), taking into account
35469         the Austin Group's clarification.
35470         Suggested by Eric Blake.
35471
35472 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35473
35474         mktime.m4: remove K&R-style function prototypes
35475         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35476         for the Sun C++ compiler.
35477
35478 2009-01-14  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35481         while including <wchar.h>.
35482         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35483         the system's <wchar.h> file.
35484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35485
35486 2009-01-14  Bruno Haible  <bruno@clisp.org>
35487
35488         * m4/csharp.m4: Don't mention gettext on the serial number line.
35489         * m4/csharpexec.m4: Likewise.
35490         * m4/eaccess.m4: Likewise.
35491         * m4/javaexec.m4: Likewise.
35492         * m4/sig_atomic_t.m4: Likewise.
35493         * m4/tmpdir.m4: Likewise.
35494         * m4/intldir.m4: Bump gettext version.
35495         * m4/lib-ld.m4: Likewise.
35496
35497 2009-01-14  Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/progname.c (set_program_name): Add more comments.
35500         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35501
35502 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35503
35504         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35505         were sys/stat.h does not define it.
35506
35507 2009-01-14  Jim Meyering  <meyering@redhat.com>
35508
35509         many *.m4 files: improve m4 quoting
35510         99% of this change was performed by running the following commands:
35511         git ls-files | grep '\.m4$' | xargs perl -pi \
35512           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35513           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35514           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35515           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35516         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35517         The remainder were to add Copyright dates, increment serial numbers,
35518         undo some changes in comments, exclude m4/intl.m4, and add quotes
35519         around the "1" in ",1" where the unusual spacing prohibited the
35520         above regexps from doing the job.  For more details, see
35521         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35522         * m4/acl.m4: Modified.
35523         * m4/afs.m4: Likewise.
35524         * m4/alloca.m4: Likewise.
35525         * m4/argp.m4: Likewise.
35526         * m4/argz.m4: Likewise.
35527         * m4/atexit.m4: Likewise.
35528         * m4/bison-i18n.m4: Likewise.
35529         * m4/bison.m4: Likewise.
35530         * m4/byteswap.m4: Likewise.
35531         * m4/c-stack.m4: Likewise.
35532         * m4/c-strtod.m4: Likewise.
35533         * m4/calloc.m4: Likewise.
35534         * m4/canonicalize-lgpl.m4: Likewise.
35535         * m4/chown.m4: Likewise.
35536         * m4/clock_time.m4: Likewise.
35537         * m4/codeset.m4: Likewise.
35538         * m4/copy-file.m4: Likewise.
35539         * m4/csharp.m4: Likewise.
35540         * m4/csharpcomp.m4: Likewise.
35541         * m4/csharpexec.m4: Likewise.
35542         * m4/d-ino.m4: Likewise.
35543         * m4/d-type.m4: Likewise.
35544         * m4/dirfd.m4: Likewise.
35545         * m4/double-slash-root.m4: Likewise.
35546         * m4/eaccess.m4: Likewise.
35547         * m4/eealloc.m4: Likewise.
35548         * m4/environ.m4: Likewise.
35549         * m4/errno_h.m4: Likewise.
35550         * m4/euidaccess.m4: Likewise.
35551         * m4/execute.m4: Likewise.
35552         * m4/fatal-signal.m4: Likewise.
35553         * m4/fchdir.m4: Likewise.
35554         * m4/fcntl_h.m4: Likewise.
35555         * m4/fileblocks.m4: Likewise.
35556         * m4/filenamecat.m4: Likewise.
35557         * m4/findprog.m4: Likewise.
35558         * m4/flexmember.m4: Likewise.
35559         * m4/fnmatch.m4: Likewise.
35560         * m4/fopen.m4: Likewise.
35561         * m4/fpending.m4: Likewise.
35562         * m4/fprintf-posix.m4: Likewise.
35563         * m4/free.m4: Likewise.
35564         * m4/frexp.m4: Likewise.
35565         * m4/frexpl.m4: Likewise.
35566         * m4/fsusage.m4: Likewise.
35567         * m4/ftruncate.m4: Likewise.
35568         * m4/gc-camellia.m4: Likewise.
35569         * m4/gc-random.m4: Likewise.
35570         * m4/gc.m4: Likewise.
35571         * m4/getaddrinfo.m4: Likewise.
35572         * m4/getcwd-abort-bug.m4: Likewise.
35573         * m4/getcwd-path-max.m4: Likewise.
35574         * m4/getdate.m4: Likewise.
35575         * m4/getdomainname.m4: Likewise.
35576         * m4/getgroups.m4: Likewise.
35577         * m4/gethostname.m4: Likewise.
35578         * m4/gethrxtime.m4: Likewise.
35579         * m4/getline.m4: Likewise.
35580         * m4/getloadavg.m4: Likewise.
35581         * m4/getndelim2.m4: Likewise.
35582         * m4/getpass.m4: Likewise.
35583         * m4/gettext.m4: Likewise.
35584         * m4/gettime.m4: Likewise.
35585         * m4/gettimeofday.m4: Likewise.
35586         * m4/gnulib-common.m4: Likewise.
35587         * m4/group-member.m4: Likewise.
35588         * m4/host-os.m4: Likewise.
35589         * m4/iconv.m4: Likewise.
35590         * m4/iconv_open.m4: Likewise.
35591         * m4/inet_ntop.m4: Likewise.
35592         * m4/inet_pton.m4: Likewise.
35593         * m4/inline.m4: Likewise.
35594         * m4/intldir.m4: Likewise.
35595         * m4/intlmacosx.m4: Likewise.
35596         * m4/intmax.m4: Likewise.
35597         * m4/intmax_t.m4: Likewise.
35598         * m4/inttypes.m4: Likewise.
35599         * m4/inttypes_h.m4: Likewise.
35600         * m4/inttypes-pri.m4: Likewise.
35601         * m4/isapipe.m4: Likewise.
35602         * m4/isnand.m4: Likewise.
35603         * m4/isnanf.m4: Likewise.
35604         * m4/isnanl.m4: Likewise.
35605         * m4/javacomp.m4: Likewise.
35606         * m4/javaexec.m4: Likewise.
35607         * m4/jm-winsz1.m4: Likewise.
35608         * m4/jm-winsz2.m4: Likewise.
35609         * m4/lchown.m4: Likewise.
35610         * m4/lcmessage.m4: Likewise.
35611         * m4/ldexpl.m4: Likewise.
35612         * m4/lib-ld.m4: Likewise.
35613         * m4/lib-link.m4: Likewise.
35614         * m4/libsigsegv.m4: Likewise.
35615         * m4/link-follow.m4: Likewise.
35616         * m4/localcharset.m4: Likewise.
35617         * m4/locale-fr.m4: Likewise.
35618         * m4/locale-ja.m4: Likewise.
35619         * m4/locale-tr.m4: Likewise.
35620         * m4/locale-zh.m4: Likewise.
35621         * m4/lock.m4: Likewise.
35622         * m4/longlong.m4: Likewise.
35623         * m4/ls-mntd-fs.m4: Likewise.
35624         * m4/lstat.m4: Likewise.
35625         * m4/malloc.m4: Likewise.
35626         * m4/mathl.m4: Likewise.
35627         * m4/mbrtowc.m4: Likewise.
35628         * m4/mbstate_t.m4: Likewise.
35629         * m4/mbswidth.m4: Likewise.
35630         * m4/memchr.m4: Likewise.
35631         * m4/memcmp.m4: Likewise.
35632         * m4/memcpy.m4: Likewise.
35633         * m4/memmem.m4: Likewise.
35634         * m4/memmove.m4: Likewise.
35635         * m4/mempcpy.m4: Likewise.
35636         * m4/memrchr.m4: Likewise.
35637         * m4/memset.m4: Likewise.
35638         * m4/minmax.m4: Likewise.
35639         * m4/mkdir-slash.m4: Likewise.
35640         * m4/mkdtemp.m4: Likewise.
35641         * m4/mktime.m4: Likewise.
35642         * m4/mmap-anon.m4: Likewise.
35643         * m4/mountlist.m4: Likewise.
35644         * m4/nanosleep.m4: Likewise.
35645         * m4/nls.m4: Likewise.
35646         * m4/nocrash.m4: Likewise.
35647         * m4/open.m4: Likewise.
35648         * m4/openat.m4: Likewise.
35649         * m4/openmp.m4: Likewise.
35650         * m4/pathmax.m4: Likewise.
35651         * m4/perl.m4: Likewise.
35652         * m4/physmem.m4: Likewise.
35653         * m4/pipe.m4: Likewise.
35654         * m4/po.m4: Likewise.
35655         * m4/poll.m4: Likewise.
35656         * m4/posixtm.m4: Likewise.
35657         * m4/posixver.m4: Likewise.
35658         * m4/printf-frexp.m4: Likewise.
35659         * m4/printf-frexpl.m4: Likewise.
35660         * m4/printf-posix.m4: Likewise.
35661         * m4/printf-posix-rpl.m4: Likewise.
35662         * m4/printf.m4: Likewise.
35663         * m4/progtest.m4: Likewise.
35664         * m4/putenv.m4: Likewise.
35665         * m4/readline.m4: Likewise.
35666         * m4/readlink.m4: Likewise.
35667         * m4/readutmp.m4: Likewise.
35668         * m4/realloc.m4: Likewise.
35669         * m4/regex.m4: Likewise.
35670         * m4/relocatable.m4: Likewise.
35671         * m4/relocatable-lib.m4: Likewise.
35672         * m4/rename-dest-slash.m4: Likewise.
35673         * m4/rename.m4: Likewise.
35674         * m4/rmdir-errno.m4: Likewise.
35675         * m4/rmdir.m4: Likewise.
35676         * m4/roundf.m4: Likewise.
35677         * m4/roundl.m4: Likewise.
35678         * m4/rpmatch.m4: Likewise.
35679         * m4/save-cwd.m4: Likewise.
35680         * m4/selinux-selinux-h.m4: Likewise.
35681         * m4/setenv.m4: Likewise.
35682         * m4/settime.m4: Likewise.
35683         * m4/sig2str.m4: Likewise.
35684         * m4/sig_atomic_t.m4: Likewise.
35685         * m4/signalblocking.m4: Likewise.
35686         * m4/signbit.m4: Likewise.
35687         * m4/sigpipe.m4: Likewise.
35688         * m4/sockets.m4: Likewise.
35689         * m4/sockpfaf.m4: Likewise.
35690         * m4/st_dm_mode.m4: Likewise.
35691         * m4/stat-time.m4: Likewise.
35692         * m4/stdbool.m4: Likewise.
35693         * m4/stdint.m4: Likewise.
35694         * m4/stdint_h.m4: Likewise.
35695         * m4/stpcpy.m4: Likewise.
35696         * m4/stpncpy.m4: Likewise.
35697         * m4/strcase.m4: Likewise.
35698         * m4/strchrnul.m4: Likewise.
35699         * m4/strcspn.m4: Likewise.
35700         * m4/strdup.m4: Likewise.
35701         * m4/strftime.m4: Likewise.
35702         * m4/strndup.m4: Likewise.
35703         * m4/strnlen.m4: Likewise.
35704         * m4/strpbrk.m4: Likewise.
35705         * m4/strptime.m4: Likewise.
35706         * m4/strsep.m4: Likewise.
35707         * m4/strtod.m4: Likewise.
35708         * m4/strtoimax.m4: Likewise.
35709         * m4/strtok_r.m4: Likewise.
35710         * m4/strtol.m4: Likewise.
35711         * m4/strtoll.m4: Likewise.
35712         * m4/strtoul.m4: Likewise.
35713         * m4/strtoull.m4: Likewise.
35714         * m4/strtoumax.m4: Likewise.
35715         * m4/strverscmp.m4: Likewise.
35716         * m4/threadlib.m4: Likewise.
35717         * m4/timegm.m4: Likewise.
35718         * m4/tm_gmtoff.m4: Likewise.
35719         * m4/tmpdir.m4: Likewise.
35720         * m4/tmpfile.m4: Likewise.
35721         * m4/tzset.m4: Likewise.
35722         * m4/uintmax_t.m4: Likewise.
35723         * m4/unlinkdir.m4: Likewise.
35724         * m4/unlocked-io.m4: Likewise.
35725         * m4/uptime.m4: Likewise.
35726         * m4/userspec.m4: Likewise.
35727         * m4/utimbuf.m4: Likewise.
35728         * m4/utime.m4: Likewise.
35729         * m4/utimes-null.m4: Likewise.
35730         * m4/utimes.m4: Likewise.
35731         * m4/vararrays.m4: Likewise.
35732         * m4/vasnprintf.m4: Likewise.
35733         * m4/vfprintf-posix.m4: Likewise.
35734         * m4/vprintf-posix.m4: Likewise.
35735         * m4/wait-process.m4: Likewise.
35736         * m4/wchar_t.m4: Likewise.
35737         * m4/wint_t.m4: Likewise.
35738         * m4/write-any-file.m4: Likewise.
35739         * m4/yield.m4: Likewise.
35740
35741 2009-01-13  Bruno Haible  <bruno@clisp.org>
35742
35743         Avoid test-copy-file.sh failures when ACL support insufficient.
35744         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35745         TESTS_ENVIRONMENT.
35746         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35747         Reported by Jim Meyering.
35748
35749 2009-01-13  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35752         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35753         * modules/unistdio/u8-printf-parse (Files): Likewise.
35754         * modules/unistdio/u32-printf-parse (Files): Likewise.
35755         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35756
35757 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35758
35759         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35760         and m4/inttypes_h.m4 too.
35761
35762 2009-01-12  Eric Blake  <ebb9@byu.net>
35763
35764         tests: IRIX 6.2 cc can't compile -0.0 into .data
35765         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35766         rather than at compile-time.
35767         * tests/test-floorl.c (minus_zero): Likewise.
35768         * tests/test-frexpl.c (minus_zero): Likewise.
35769         * tests/test-isnan.c (minus_zerol): Likewise.
35770         * tests/test-isnanl.h (minus_zero): Likewise.
35771         * tests/test-ldexpl.c (minus_zero): Likewise.
35772         * tests/test-roundl.c (minus_zero): Likewise.
35773         * tests/test-signbit.c (minus_zerol): Likewise.
35774         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35775         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35776         * tests/test-truncl.c (minus_zero): Likewise.
35777         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35778         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35779         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35780
35781 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35782
35783         regex: fix glibc bug 9697
35784         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35785         handling.
35786
35787 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35788
35789         regex: fix glibc bug 697
35790         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35791         being NULL also if there are no backreferences.
35792
35793 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35794
35795         regex: merge glibc changes
35796         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35797         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35798         re_string_skip_chars, re_string_reconstruct): Likewise.
35799         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35800
35801 2009-01-07  Jim Meyering  <meyering@redhat.com>
35802
35803         poll: filter through cppi
35804         * lib/poll.c: Indent cpp directives to reflect nesting.
35805
35806 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35807
35808         poll: don't return uninitialized
35809         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35810
35811 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35812
35813         avoid compile failure on AIX 6.1
35814         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35815         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35816
35817 2009-01-04  Jim Meyering  <meyering@redhat.com>
35818
35819         remove duplicate inclusion of <stdio.h>
35820         * tests/test-fprintf-posix.c: Likewise.
35821         * tests/test-printf-posix.c: Likewise.
35822         * tests/test-snprintf-posix.c: Likewise.
35823         * tests/test-sprintf-posix.c: Likewise.
35824         * tests/test-vasprintf-posix.c: Likewise.
35825         * tests/test-vfprintf-posix.c: Likewise.
35826         * tests/test-vprintf-posix.c: Likewise.
35827         * tests/test-vsnprintf-posix.c: Likewise.
35828         * tests/test-vsprintf-posix.c: Likewise.
35829
35830 2009-01-03  Jim Meyering  <meyering@redhat.com>
35831
35832         gnulib-tool: fix sed-based filtering
35833         * gnulib-tool (func_filter_filelist): Remove extra backslash
35834         in sed_fff_filter definition.
35835
35836 2009-01-02  Jim Meyering  <meyering@redhat.com>
35837
35838         strftime: avoid compilation failure on Solaris 2.6
35839         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35840         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35841         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35842         be available.  Reported by Tom G. Christensen.  Details in
35843         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35844
35845 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35846             Bruno Haible  <bruno@clisp.org>
35847
35848         Speed up gnulib-tool by doing more string processing through shell
35849         built-ins.
35850         * gnulib-tool (fast_func_append): New variable.
35851         (func_remove_prefix, func_remove_suffix): New functions.
35852         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35853         (func_filter_filelist): New function.
35854         (func_get_dependencies): Use func_remove_suffix instead of sed.
35855         (func_get_automake_snippet): Use func_filter_filelist instead of a
35856         subshell and sed invocation.
35857
35858 2009-01-01  Bruno Haible  <bruno@clisp.org>
35859
35860         Fix a security bug.
35861         * gnulib-tool (func_import, import, update): Don't allow the characters
35862         '"', '$', '`', '\' in macro arguments that become part of commands that
35863         are evaluated.
35864
35865 2009-01-01  Bruno Haible  <bruno@clisp.org>
35866
35867         * gnulib-tool (func_reset_sigpipe): Add more comments.
35868
35869 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35870
35871         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35872         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35873         already know the answer.
35874
35875 2009-01-01  Jim Meyering  <meyering@redhat.com>
35876
35877         * lib/version-etc.c (version_etc_va): Update copyright year.
35878
35879 2008-12-30  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35882         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35883         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35884
35885 2008-12-29  Eric Blake  <ebb9@byu.net>
35886
35887         multiarch: avoid autoconf AC_REQUIRE bug
35888         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35889         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35890         2.63 and older.
35891         Reported by Bruno Haible, and analyzed in
35892         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35893
35894 2008-12-29  Bruno Haible  <bruno@clisp.org>
35895
35896         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35897         files in subdirectories correctly.
35898         Reported by Ralf Wildenhues.
35899
35900 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35901
35902         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35903         rather than 'join FILE -', for Solaris join.
35904
35905 2008-12-29  Bruno Haible  <bruno@clisp.org>
35906
35907         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35908         quoting.
35909         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35910         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35911         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35912         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35913         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35914         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35915         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35916         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35917         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35918         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35919         * m4/nls.m4 (AM_NLS): Likewise.
35920         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35921         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35922         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35923         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35924         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35925         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35926         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35927         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35928         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35929         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35930         * m4/xsize.m4 (gl_XSIZE): Likewise.
35931         Suggested by Jim Meyering.
35932
35933 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35934
35935         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35936         * lib/parse-duration.c: use a switch instead of cascading if's.
35937
35938 2008-12-29  Eric Blake  <ebb9@byu.net>
35939
35940         wchar.h: supply WEOF on Irix 5.3
35941         * lib/wchar.in.h (wint_t): Also supply WEOF.
35942         * lib/wctype.in.h (wint_t): Likewise.
35943         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35944         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35945         Reported by Tom G. Christensen.
35946
35947 2008-12-26  Bruno Haible  <bruno@clisp.org>
35948
35949         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35950         i486, i586, i686.
35951
35952 2008-12-26  Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35955
35956 2008-12-26  Bruno Haible  <bruno@clisp.org>
35957
35958         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35959         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35960         not __STDC_CONSTANT_MACROS.
35961         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35962
35963 2008-12-25  Bruno Haible  <bruno@clisp.org>
35964
35965         Add support for universal builds to vasnprintf.
35966         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35967         universal builds, guess no.
35968         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35969         * modules/vasprintf-posix (Depends-on): Likewise.
35970         * modules/fprintf-posix (Depends-on): Likewise.
35971         * modules/vfprintf-posix (Depends-on): Likewise.
35972         * modules/snprintf-posix (Depends-on): Likewise.
35973         * modules/vsnprintf-posix (Depends-on): Likewise.
35974         * modules/sprintf-posix (Depends-on): Likewise.
35975         * modules/vsprintf-posix (Depends-on): Likewise.
35976         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35977         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35978         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35979         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35980         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35981         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35982         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35983
35984         Add support for universal builds to <inttypes.h>.
35985         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35986         _SCNu64_PREFIX): In Apple
35987         universal builds, define directly, using _LP64.
35988         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35989         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35990         * modules/inttypes (Depends-on): Add multiarch.
35991         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35992
35993         Add support for universal builds to <stdint.h>.
35994         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35995         universal builds, define directly, using _LP64.
35996         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35997         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35998         and size_t.
35999         * modules/stdint (Depends-on): Add multiarch.
36000         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36001
36002         New module 'multiarch'.
36003         * modules/multiarch: New file.
36004         * m4/multiarch.m4: New file.
36005
36006 2008-12-25  Bruno Haible  <bruno@clisp.org>
36007
36008         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36009
36010 2008-12-25  Bruno Haible  <bruno@clisp.org>
36011
36012         * modules/btowc (License): Relicense under LGPLv2+.
36013         * modules/mbsinit (License): Likewise.
36014         * modules/mbrtowc (License): Likewise.
36015         * modules/wcrtomb (License): Likewise.
36016         * modules/streq (License): Likewise.
36017         Reported by David Lutterkort <lutter@redhat.com>.
36018
36019 2008-12-23  Bruno Haible  <bruno@clisp.org>
36020
36021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36022
36023 2008-12-23  Bruno Haible  <bruno@clisp.org>
36024
36025         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36027         GETADDRINFO_LIB, not in LIBS.
36028         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36029         * modules/canon-host (Link): Likewise.
36030         * NEWS: Mention the change.
36031         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36032         GETADDRINFO_LIB.
36033
36034 2008-12-22  Bruno Haible  <bruno@clisp.org>
36035
36036         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36037         * doc/posix-functions/iswalpha_l.texi: Likewise.
36038         * doc/posix-functions/iswblank_l.texi: Likewise.
36039         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36040         * doc/posix-functions/iswctype_l.texi: Likewise.
36041         * doc/posix-functions/iswdigit_l.texi: Likewise.
36042         * doc/posix-functions/iswgraph_l.texi: Likewise.
36043         * doc/posix-functions/iswlower_l.texi: Likewise.
36044         * doc/posix-functions/iswprint_l.texi: Likewise.
36045         * doc/posix-functions/iswpunct_l.texi: Likewise.
36046         * doc/posix-functions/iswspace_l.texi: Likewise.
36047         * doc/posix-functions/iswupper_l.texi: Likewise.
36048         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36049         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36050         * doc/posix-functions/open_wmemstream.texi: Likewise.
36051         * doc/posix-functions/swscanf.texi: Likewise.
36052         * doc/posix-functions/towctrans_l.texi: Likewise.
36053         * doc/posix-functions/towlower.texi: Likewise.
36054         * doc/posix-functions/towlower_l.texi: Likewise.
36055         * doc/posix-functions/towupper.texi: Likewise.
36056         * doc/posix-functions/towupper_l.texi: Likewise.
36057         * doc/posix-functions/vfwprintf.texi: Likewise.
36058         * doc/posix-functions/vfwscanf.texi: Likewise.
36059         * doc/posix-functions/vswscanf.texi: Likewise.
36060         * doc/posix-functions/vwprintf.texi: Likewise.
36061         * doc/posix-functions/vwscanf.texi: Likewise.
36062         * doc/posix-functions/wcpcpy.texi: Likewise.
36063         * doc/posix-functions/wcpncpy.texi: Likewise.
36064         * doc/posix-functions/wcscasecmp.texi: Likewise.
36065         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36066         * doc/posix-functions/wcscoll_l.texi: Likewise.
36067         * doc/posix-functions/wcsdup.texi: Likewise.
36068         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36069         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36070         * doc/posix-functions/wcsnlen.texi: Likewise.
36071         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36072         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36073         * doc/posix-functions/wctrans_l.texi: Likewise.
36074         * doc/posix-functions/wctype_l.texi: Likewise.
36075         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36076         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36077         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36078         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36079         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36080         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36081         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36082         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36083         * doc/glibc-functions/wcschrnul.texi: Likewise.
36084         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36085         * doc/glibc-functions/wcstod_l.texi: Likewise.
36086         * doc/glibc-functions/wcstof_l.texi: Likewise.
36087         * doc/glibc-functions/wcstol_l.texi: Likewise.
36088         * doc/glibc-functions/wcstold_l.texi: Likewise.
36089         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36090         * doc/glibc-functions/wcstoq.texi: Likewise.
36091         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36092         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36093         * doc/glibc-functions/wcstouq.texi: Likewise.
36094         * doc/glibc-functions/wmempcpy.texi: Likewise.
36095
36096 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36097             Eric Blake  <ebb9@byu.net>
36098             Paolo Bonzini  <bonzini@gnu.org>
36099             Bruno Haible  <bruno@clisp.org>
36100
36101         Make c-stack work on Haiku.
36102         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36103         (c_stack_action): Use SA_ONSTACK flag.
36104
36105 2008-12-22  Bruno Haible  <bruno@clisp.org>
36106
36107         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36108
36109 2008-12-22  Bruno Haible  <bruno@clisp.org>
36110
36111         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36112         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36113         being overridden.
36114         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36115         New macros.
36116         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36118         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36119         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36120
36121 2008-12-22  Bruno Haible  <bruno@clisp.org>
36122
36123         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36124         from test code.
36125
36126 2008-12-22  Eric Blake  <ebb9@byu.net>
36127
36128         Avoid gcc warnings on cygwin.
36129         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36130         Avoid unused variable.
36131         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36132         Likewise.
36133
36134 2008-12-22  Bruno Haible  <bruno@clisp.org>
36135
36136         Remove HAVE_MBRTOWC conditionals.
36137         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36138         (mbscasecmp): Assume mbrtowc function.
36139         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36140         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36141         * lib/mbschr.c: Include mbuiter.h unconditionally.
36142         (mbschr): Assume mbrtowc function.
36143         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36144         (mbscspn): Assume mbrtowc function.
36145         * lib/mbslen.c: Include mbuiter.h unconditionally.
36146         (mbslen): Assume mbrtowc function.
36147         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36148         (mbsncasecmp): Assume mbrtowc function.
36149         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36150         (mbsnlen): Assume mbrtowc function.
36151         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36152         (mbspbrk): Assume mbrtowc function.
36153         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36154         (mbspcasecmp): Assume mbrtowc function.
36155         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36156         (mbsrchr): Assume mbrtowc function.
36157         * lib/mbssep.c: Include mbuiter.h unconditionally.
36158         (mbssep): Assume mbrtowc function.
36159         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36160         (mbsspn): Assume mbrtowc function.
36161         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36162         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36163         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36164         (mbstok_r): Assume mbrtowc function.
36165         * lib/propername.c: Include mbuiter.h unconditionally.
36166         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36167         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36168         (trim2): Assume mbrtowc function.
36169         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36170         (mbsnwidth): Assume mbrtowc function.
36171         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36172         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36173         fallback definitions.
36174         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36175
36176 2008-12-22  Bruno Haible  <bruno@clisp.org>
36177
36178         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36179
36180 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36181
36182         * modules/regex: Request emulations for the mb*/wc* functions we need.
36183         * m4/regex.m4: Don't look for those functions here.
36184         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36185
36186 2008-12-22  Bruno Haible  <bruno@clisp.org>
36187
36188         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36189
36190 2008-12-21  Bruno Haible  <bruno@clisp.org>
36191
36192         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36193         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36194         (Include): Remove conditionalization.
36195         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36196         (Include): Remove conditionalization.
36197         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36198         (Include): Remove conditionalization.
36199         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36200         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36201         * NEWS: Mention the change.
36202         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36203         via Sergey Poznyakoff <gray@gnu.org.ua>.
36204
36205 2008-12-21  Bruno Haible  <bruno@clisp.org>
36206
36207         * MODULES.html.sh (Extended multibyte and wide character utilities
36208         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36209         wcrtomb, wcsrtombs.
36210         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36211         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36212         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36213         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36214
36215 2008-12-21  Bruno Haible  <bruno@clisp.org>
36216
36217         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36218
36219 2008-12-21  Bruno Haible  <bruno@clisp.org>
36220
36221         * modules/wcsnrtombs-tests: New file.
36222         * tests/test-wcsnrtombs1.sh: New file.
36223         * tests/test-wcsnrtombs2.sh: New file.
36224         * tests/test-wcsnrtombs3.sh: New file.
36225         * tests/test-wcsnrtombs4.sh: New file.
36226         * tests/test-wcsnrtombs.c: New file.
36227
36228         New module 'wcsnrtombs'.
36229         * lib/wchar.in.h (wcsnrtombs): New declaration.
36230         * lib/wcsnrtombs.c: New file.
36231         * lib/wcsrtombs-state.c: New file.
36232         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36233         (internal_state): Remove variable.
36234         * m4/wcsnrtombs.m4: New file.
36235         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36236         compilation units.
36237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36238         HAVE_WCSNRTOMBS.
36239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36240         HAVE_WCSNRTOMBS.
36241         * modules/wcsnrtombs: New file.
36242         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36243         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36244
36245 2008-12-21  Bruno Haible  <bruno@clisp.org>
36246
36247         * modules/wcsrtombs-tests: New file.
36248         * tests/test-wcsrtombs1.sh: New file.
36249         * tests/test-wcsrtombs2.sh: New file.
36250         * tests/test-wcsrtombs3.sh: New file.
36251         * tests/test-wcsrtombs4.sh: New file.
36252         * tests/test-wcsrtombs.c: New file.
36253
36254         New module 'wcsrtombs'.
36255         * lib/wchar.in.h (wcsrtombs): New declaration.
36256         * lib/wcsrtombs.c: New file.
36257         * m4/wcsrtombs.m4: New file.
36258         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36259         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36261         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36262         * modules/wcsrtombs: New file.
36263         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36264         bugs.
36265
36266 2008-12-21  Bruno Haible  <bruno@clisp.org>
36267
36268         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36269         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36270         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36271         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36272         if not correct.
36273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36274         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36275         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36276         m4/locale-zh.m4, m4/codeset.m4.
36277         * doc/posix-functions/wcrtomb.texi: Document the bug.
36278
36279 2008-12-21  Bruno Haible  <bruno@clisp.org>
36280
36281         Work around a btowc() bug on IRIX 6.5.
36282         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36283         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36284         REPLACE_WTOBC if not.
36285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36286         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36287         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36288
36289 2008-12-21  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/wcrtomb-tests: New file.
36292         * tests/test-wcrtomb.sh: New file.
36293         * tests/test-wcrtomb.c: New file.
36294
36295         New module 'wcrtomb'.
36296         * lib/wchar.in.h (wcrtomb): New declaration.
36297         * lib/wcrtomb.c: New file.
36298         * m4/wcrtomb.m4: New file.
36299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36300         HAVE_WCRTOMB.
36301         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36302         HAVE_WCRTOMB.
36303         * modules/wcrtomb: New file.
36304         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36305
36306 2008-12-21  Bruno Haible  <bruno@clisp.org>
36307
36308         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36309         * modules/mbsrtowcs (Files): Likewise.
36310         * modules/wctob (Files): Likewise.
36311         * modules/c-strcase-tests (Files): Likewise.
36312         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36313         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36314         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36315         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36316         * modules/vasnprintf-posix-tests (Files): Likewise.
36317
36318 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36319
36320         gitlog-to-changelog: pass all command-line arguments to git-log
36321         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36322         it is sometimes convenient to filter the commits in various ways.
36323         gitlog-to-changelog only allows --since to specify a start date,
36324         but git-log itself supports many other filtering mechanisms.
36325         At the moment, I want to filter by branch name.  Rather than
36326         adding a --branch option to gitlog-to-changelog, it seems more
36327         flexible to simply pass all options directly to git-log and let
36328         git do the work.  Notice that this effectively makes --since a
36329         redundant option for gitlog-to-changelog, but removing it would
36330         require current usage to change since calls would then require
36331         an additional '--'.
36332
36333 2008-12-21  Bruno Haible  <bruno@clisp.org>
36334
36335         * modules/mbsnrtowcs-tests: New file.
36336         * tests/test-mbsnrtowcs1.sh: New file.
36337         * tests/test-mbsnrtowcs2.sh: New file.
36338         * tests/test-mbsnrtowcs3.sh: New file.
36339         * tests/test-mbsnrtowcs4.sh: New file.
36340         * tests/test-mbsnrtowcs.c: New file.
36341
36342         New module 'mbsnrtowcs'.
36343         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36344         * lib/mbsnrtowcs.c: New file.
36345         * lib/mbsrtowcs-state.c: New file.
36346         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36347         (internal_state): Remove variable.
36348         * m4/mbsnrtowcs.m4: New file.
36349         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36350         compilation units.
36351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36352         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36353         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36354         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36355         * modules/mbsnrtowcs: New file.
36356         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36357         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36358         portability problem.
36359
36360 2008-12-21  Bruno Haible  <bruno@clisp.org>
36361
36362         Work around mbsrtowcs bug.
36363         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36364         (gl_FUNC_MBSRTOWCS): Invoke it.
36365         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36366         m4/locale-zh.m4.
36367         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36368
36369 2008-12-21  Bruno Haible  <bruno@clisp.org>
36370
36371         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36372
36373 2008-12-21  Bruno Haible  <bruno@clisp.org>
36374
36375         Update doc for AIX.
36376         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36377         16-bit wchar_t type.
36378         * doc/posix-functions/btowc.texi: Likewise.
36379         * doc/posix-functions/fgetwc.texi: Likewise.
36380         * doc/posix-functions/fgetws.texi: Likewise.
36381         * doc/posix-functions/fputwc.texi: Likewise.
36382         * doc/posix-functions/fputws.texi: Likewise.
36383         * doc/posix-functions/fwide.texi: Likewise.
36384         * doc/posix-functions/fwprintf.texi: Likewise.
36385         * doc/posix-functions/fwscanf.texi: Likewise.
36386         * doc/posix-functions/getwchar.texi: Likewise.
36387         * doc/posix-functions/getwc.texi: Likewise.
36388         * doc/posix-functions/iswalnum.texi: Likewise.
36389         * doc/posix-functions/iswalpha.texi: Likewise.
36390         * doc/posix-functions/iswblank.texi: Likewise.
36391         * doc/posix-functions/iswcntrl.texi: Likewise.
36392         * doc/posix-functions/iswctype.texi: Likewise.
36393         * doc/posix-functions/iswdigit.texi: Likewise.
36394         * doc/posix-functions/iswgraph.texi: Likewise.
36395         * doc/posix-functions/iswlower.texi: Likewise.
36396         * doc/posix-functions/iswprint.texi: Likewise.
36397         * doc/posix-functions/iswpunct.texi: Likewise.
36398         * doc/posix-functions/iswspace.texi: Likewise.
36399         * doc/posix-functions/iswupper.texi: Likewise.
36400         * doc/posix-functions/iswxdigit.texi: Likewise.
36401         * doc/posix-functions/mbrtowc.texi: Likewise.
36402         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36403         * doc/posix-functions/mbstowcs.texi: Likewise.
36404         * doc/posix-functions/mbtowc.texi: Likewise.
36405         * doc/posix-functions/putwchar.texi: Likewise.
36406         * doc/posix-functions/putwc.texi: Likewise.
36407         * doc/posix-functions/swprintf.texi: Likewise.
36408         * doc/posix-functions/tolower.texi: Likewise.
36409         * doc/posix-functions/toupper.texi: Likewise.
36410         * doc/posix-functions/towctrans.texi: Likewise.
36411         * doc/posix-functions/ungetwc.texi: Likewise.
36412         * doc/posix-functions/vswprintf.texi: Likewise.
36413         * doc/posix-functions/wcrtomb.texi: Likewise.
36414         * doc/posix-functions/wcscat.texi: Likewise.
36415         * doc/posix-functions/wcschr.texi: Likewise.
36416         * doc/posix-functions/wcscmp.texi: Likewise.
36417         * doc/posix-functions/wcscoll.texi: Likewise.
36418         * doc/posix-functions/wcscpy.texi: Likewise.
36419         * doc/posix-functions/wcscspn.texi: Likewise.
36420         * doc/posix-functions/wcsftime.texi: Likewise.
36421         * doc/posix-functions/wcslen.texi: Likewise.
36422         * doc/posix-functions/wcsncat.texi: Likewise.
36423         * doc/posix-functions/wcsncmp.texi: Likewise.
36424         * doc/posix-functions/wcsncpy.texi: Likewise.
36425         * doc/posix-functions/wcspbrk.texi: Likewise.
36426         * doc/posix-functions/wcsrchr.texi: Likewise.
36427         * doc/posix-functions/wcsrtombs.texi: Likewise.
36428         * doc/posix-functions/wcsspn.texi: Likewise.
36429         * doc/posix-functions/wcsstr.texi: Likewise.
36430         * doc/posix-functions/wcstod.texi: Likewise.
36431         * doc/posix-functions/wcstof.texi: Likewise.
36432         * doc/posix-functions/wcstoimax.texi: Likewise.
36433         * doc/posix-functions/wcstok.texi: Likewise.
36434         * doc/posix-functions/wcstold.texi: Likewise.
36435         * doc/posix-functions/wcstoll.texi: Likewise.
36436         * doc/posix-functions/wcstol.texi: Likewise.
36437         * doc/posix-functions/wcstombs.texi: Likewise.
36438         * doc/posix-functions/wcstoull.texi: Likewise.
36439         * doc/posix-functions/wcstoul.texi: Likewise.
36440         * doc/posix-functions/wcstoumax.texi: Likewise.
36441         * doc/posix-functions/wcswidth.texi: Likewise.
36442         * doc/posix-functions/wcsxfrm.texi: Likewise.
36443         * doc/posix-functions/wctob.texi: Likewise.
36444         * doc/posix-functions/wctomb.texi: Likewise.
36445         * doc/posix-functions/wctrans.texi: Likewise.
36446         * doc/posix-functions/wctype.texi: Likewise.
36447         * doc/posix-functions/wcwidth.texi: Likewise.
36448         * doc/posix-functions/wmemchr.texi: Likewise.
36449         * doc/posix-functions/wmemcmp.texi: Likewise.
36450         * doc/posix-functions/wmemcpy.texi: Likewise.
36451         * doc/posix-functions/wmemmove.texi: Likewise.
36452         * doc/posix-functions/wmemset.texi: Likewise.
36453         * doc/posix-functions/wprintf.texi: Likewise.
36454         * doc/posix-functions/wscanf.texi: Likewise.
36455
36456 2008-12-21  Bruno Haible  <bruno@clisp.org>
36457
36458         Update doc for HP-UX 11.11.
36459         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36460         in HP-UX version 11.00, not in all versions of HP-UX 11.
36461         * doc/posix-functions/fwide.texi: Likewise.
36462         * doc/posix-functions/fwprintf.texi: Likewise.
36463         * doc/posix-functions/fwscanf.texi: Likewise.
36464         * doc/posix-functions/inet_ntop.texi: Likewise.
36465         * doc/posix-functions/inet_pton.texi: Likewise.
36466         * doc/posix-functions/mbrlen.texi: Likewise.
36467         * doc/posix-functions/mbrtowc.texi: Likewise.
36468         * doc/posix-functions/mbsinit.texi: Likewise.
36469         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36470         * doc/posix-functions/swprintf.texi: Likewise.
36471         * doc/posix-functions/swscanf.texi: Likewise.
36472         * doc/posix-functions/towctrans.texi: Likewise.
36473         * doc/posix-functions/vfwprintf.texi: Likewise.
36474         * doc/posix-functions/vswprintf.texi: Likewise.
36475         * doc/posix-functions/vwprintf.texi: Likewise.
36476         * doc/posix-functions/wcrtomb.texi: Likewise.
36477         * doc/posix-functions/wcsrtombs.texi: Likewise.
36478         * doc/posix-functions/wcsstr.texi: Likewise.
36479         * doc/posix-functions/wctob.texi: Likewise.
36480         * doc/posix-functions/wctrans.texi: Likewise.
36481         * doc/posix-functions/wmemchr.texi: Likewise.
36482         * doc/posix-functions/wmemcmp.texi: Likewise.
36483         * doc/posix-functions/wmemcpy.texi: Likewise.
36484         * doc/posix-functions/wmemmove.texi: Likewise.
36485         * doc/posix-functions/wmemset.texi: Likewise.
36486         * doc/posix-functions/wprintf.texi: Likewise.
36487         * doc/posix-functions/wscanf.texi: Likewise.
36488
36489 2008-12-21  Bruno Haible  <bruno@clisp.org>
36490
36491         Work around a portability problem.
36492         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36493         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36494
36495 2008-12-20  Bruno Haible  <bruno@clisp.org>
36496
36497         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36498         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36499         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36501         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36502
36503         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36504         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36505         set.
36506         (GNULIB_defined_mbstate_t): New macro.
36507         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36508         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36509         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36510         reuses the system's mbrtowc function but works around the bugs.
36511         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36512         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36513         macros.
36514         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36515         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36516         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36517         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36518         REPLACE_MBSINIT if mbsinit needs to be overridden.
36519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36520         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36521         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36522         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36523         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36524         m4/locale-zh.m4.
36525         (Depends): Add mbsinit.
36526         * modules/mbsinit (Depends): Add mbrtowc.
36527         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36528
36529 2008-12-20  Bruno Haible  <bruno@clisp.org>
36530
36531         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36532         so that there are no conversion errors on AIX.
36533         * tests/test-mbsrtowcs.c (main): LIkewise.
36534
36535 2008-12-20  Bruno Haible  <bruno@clisp.org>
36536
36537         Work around wctob bug on Solaris <= 9.
36538         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36539         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36541         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36542         * modules/wctob (Files): Add m4/locale-fr.m4.
36543         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36544
36545 2008-12-20  Bruno Haible  <bruno@clisp.org>
36546
36547         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36548         /dev/null.
36549         * tests/test-select-in.sh: Likewise.
36550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36551
36552 2008-12-20  Bruno Haible  <bruno@clisp.org>
36553
36554         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36555         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36556         Cygwin 1.5.x.
36557
36558 2008-12-20  Bruno Haible  <bruno@clisp.org>
36559
36560         Ensure mbstate_t is defined on HP-UX 11.11.
36561         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36562         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36563         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36564         AC_USE_SYSTEM_EXTENSIONS.
36565         * modules/fnmatch (Depends-on): Add extensions.
36566         * modules/mbrlen (Depends-on): Likewise.
36567         * modules/mbrtowc (Depends-on): Likewise.
36568         * modules/mbsinit (Depends-on): Likewise.
36569         * modules/mbsrtowcs (Depends-on): Likewise.
36570         * modules/mbswidth (Depends-on): Likewise.
36571         * modules/quotearg (Depends-on): Likewise.
36572         * modules/strftime (Depends-on): Likewise.
36573
36574 2008-12-20  Bruno Haible  <bruno@clisp.org>
36575
36576         Ensure wctob is declared on IRIX 6.5.
36577         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36578         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36579         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36580         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36581         of HAVE_WCTOB.
36582         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36583         HAVE_WCTOB.
36584         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36585
36586 2008-12-19  Bruno Haible  <bruno@clisp.org>
36587
36588         * modules/mbsrtowcs-tests: New file.
36589         * tests/test-mbsrtowcs1.sh: New file.
36590         * tests/test-mbsrtowcs2.sh: New file.
36591         * tests/test-mbsrtowcs3.sh: New file.
36592         * tests/test-mbsrtowcs4.sh: New file.
36593         * tests/test-mbsrtowcs.c: New file.
36594
36595         New module 'mbsrtowcs'.
36596         * lib/wchar.in.h (mbsrtowcs): New declaration.
36597         * lib/mbsrtowcs.c: New file.
36598         * m4/mbsrtowcs.m4: New file.
36599         * modules/mbsrtowcs: New file.
36600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36601         HAVE_MBSRTOWCS.
36602         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36603         HAVE_MBSRTOWCS.
36604         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36605
36606 2008-12-19  Bruno Haible  <bruno@clisp.org>
36607
36608         New module 'mbrlen'.
36609         * lib/wchar.in.h (mbrlen): New declaration.
36610         * lib/mbrlen.c: New file.
36611         * m4/mbrlen.m4: New file.
36612         * modules/mbrlen: New file.
36613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36614         HAVE_MBRLEN.
36615         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36616         HAVE_MBRLEN.
36617         * doc/posix-functions/mbrlen.texi: Document the new module.
36618
36619 2008-12-19  Bruno Haible  <bruno@clisp.org>
36620
36621         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36622         * modules/mbrtowc (Depends-on): Add verify.
36623         Suggested by Paul Eggert.
36624
36625 2008-12-18  Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/mbsinit-tests: New file.
36628         * tests/test-mbsinit.sh: New file.
36629         * tests/test-mbsinit.c: New file.
36630
36631 2008-12-18  Bruno Haible  <bruno@clisp.org>
36632
36633         * modules/mbrtowc-tests: New file.
36634         * tests/test-mbrtowc1.sh: New file.
36635         * tests/test-mbrtowc2.sh: New file.
36636         * tests/test-mbrtowc3.sh: New file.
36637         * tests/test-mbrtowc4.sh: New file.
36638         * tests/test-mbrtowc.c: New file.
36639
36640         New module 'mbrtowc'.
36641         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36642         mbsinit and mbrtowc.
36643         (mbrtowc): New declaration.
36644         * lib/mbrtowc.c: New file.
36645         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36646         * modules/mbrtowc: New file.
36647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36648         HAVE_MBRTOWC.
36649         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36650         HAVE_MBRTOWC.
36651         * doc/posix-functions/mbrtowc.texi: Document the new module.
36652
36653 2008-12-18  Bruno Haible  <bruno@clisp.org>
36654
36655         New module 'wctob'.
36656         * lib/wchar.in.h (wctob): New declaration.
36657         * lib/wctob.c: New file.
36658         * m4/wctob.m4: New file.
36659         * modules/wctob: New file.
36660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36661         HAVE_WCTOB.
36662         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36663         * doc/posix-functions/wctob.texi: Document the new module.
36664
36665 2008-12-18  Bruno Haible  <bruno@clisp.org>
36666
36667         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36668         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36669
36670 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36671
36672         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36673         G. Christensen" <tgc@jupiterrise.com>.
36674
36675         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36676         G. Christensen" <tgc@jupiterrise.com>.
36677
36678         * lib/flock.c: Need to include string.h.  Reported by "Tom
36679         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36680         <ebb9@byu.net>.
36681
36682 2008-12-18  Bruno Haible  <bruno@clisp.org>
36683
36684         * m4/locale-ja.m4: New file, from GNU gettext.
36685
36686 2008-12-17  Bruno Haible  <bruno@clisp.org>
36687
36688         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36689         Suggested by Eric Blake.
36690
36691 2008-12-17  Bruno Haible  <bruno@clisp.org>
36692
36693         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36694
36695 2008-12-17  Bruno Haible  <bruno@clisp.org>
36696
36697         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36698         * modules/mbsinit (Depends-on): Add verify.
36699         Suggested by Paul Eggert.
36700
36701 2008-12-17  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36704         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36705         gl_FUNC_MBRTOWC.
36706         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36707         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36708         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36709         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36710         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36711         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36712         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36713         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36714         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36715         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36716         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36717         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36718         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36719         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36720         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36721         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36722         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36723         * modules/trim (configure.ac): Likewise.
36724
36725 2008-12-17  Bruno Haible  <bruno@clisp.org>
36726
36727         * modules/btowc-tests: New file.
36728         * tests/test-btowc1.sh: New file.
36729         * tests/test-btowc2.sh: New file.
36730         * tests/test-btowc.c: New file.
36731
36732         New module 'btowc'.
36733         * lib/wchar.in.h (btowc): New declaration.
36734         * lib/btowc.c: New file.
36735         * m4/btowc.m4: New file.
36736         * modules/btowc: New file.
36737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36738         HAVE_BTOWC.
36739         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36740         * doc/posix-functions/btowc.texi: Document the new module.
36741
36742 2008-12-17  Bruno Haible  <bruno@clisp.org>
36743
36744         New module 'mbsinit'.
36745         * lib/wchar.in.h (mbsinit): New declaration.
36746         * lib/mbsinit.c: New file.
36747         * m4/mbsinit.m4: New file.
36748         * modules/mbsinit: New file.
36749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36750         HAVE_MBSINIT.
36751         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36752         HAVE_MBSINIT.
36753         * doc/posix-functions/mbsinit.texi: Document the new module.
36754
36755 2008-12-16  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/unistd.in.h: Add comment.
36758         * tests/test-environ.c: Don't include <stdlib.h>.
36759
36760 2008-12-16  Bruno Haible  <bruno@clisp.org>
36761
36762         * lib/parse-duration.h (parse_duration): Document return value
36763         convention.
36764         * lib/parse-duration.c: Include specification header first. Add
36765         comments.
36766         (_): Remove macro.
36767         (parse_year_month_day, parse_hour_minute_second): Move side effects
36768         outside of strchr call.
36769         (parse_non_iso8601): Move side effects outside of isspace call.
36770         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36771         call.
36772
36773 2008-12-16  Bruno Haible  <bruno@clisp.org>
36774
36775         * tests/test-parse-duration.sh: Produce no output when the test
36776         succeeds.
36777
36778 2008-12-16  Bruno Haible  <bruno@clisp.org>
36779
36780         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36781         expressions.
36782
36783 2008-12-15  Bruno Haible  <bruno@clisp.org>
36784
36785         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36786         * doc/glibc-functions/flistxattr.texi: Likewise.
36787         * doc/glibc-functions/fopencookie.texi: Likewise.
36788         * doc/glibc-functions/fremovexattr.texi: Likewise.
36789         * doc/glibc-functions/fsetxattr.texi: Likewise.
36790         * doc/glibc-functions/getxattr.texi: Likewise.
36791         * doc/glibc-functions/lgetxattr.texi: Likewise.
36792         * doc/glibc-functions/listxattr.texi: Likewise.
36793         * doc/glibc-functions/llistxattr.texi: Likewise.
36794         * doc/glibc-functions/lremovexattr.texi: Likewise.
36795         * doc/glibc-functions/lsetxattr.texi: Likewise.
36796         * doc/glibc-functions/removexattr.texi: Likewise.
36797         * doc/glibc-functions/setxattr.texi: Likewise.
36798         * doc/posix-functions/open_memstream.texi: Likewise.
36799
36800 2008-12-15  Eric Blake  <ebb9@byu.net>
36801
36802         Update doc for cygwin 1.7.
36803         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36804         functions.
36805         * doc/posix-functions/fchmodat.texi: Likewise.
36806         * doc/posix-functions/fchownat.texi: Likewise.
36807         * doc/posix-functions/fdopendir.texi: Likewise.
36808         * doc/posix-functions/fmemopen.texi: Likewise.
36809         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36810         * doc/posix-functions/fstatat.texi: Likewise.
36811         * doc/posix-functions/futimens.texi: Likewise.
36812         * doc/posix-functions/gai_strerror.texi: Likewise.
36813         * doc/posix-functions/getaddrinfo.texi: Likewise.
36814         * doc/posix-functions/getnameinfo.texi: Likewise.
36815         * doc/posix-functions/if_freenameindex.texi: Likewise.
36816         * doc/posix-functions/if_indextoname.texi: Likewise.
36817         * doc/posix-functions/if_nameindex.texi: Likewise.
36818         * doc/posix-functions/if_nametoindex.texi: Likewise.
36819         * doc/posix-functions/insque.texi: Likewise.
36820         * doc/posix-functions/linkat.texi: Likewise.
36821         * doc/posix-functions/llrint.texi: Likewise.
36822         * doc/posix-functions/llrintf.texi: Likewise.
36823         * doc/posix-functions/llrintl.texi: Likewise.
36824         * doc/posix-functions/lockf.texi: Likewise.
36825         * doc/posix-functions/lrintl.texi: Likewise.
36826         * doc/posix-functions/mkdirat.texi: Likewise.
36827         * doc/posix-functions/mkfifoat.texi: Likewise.
36828         * doc/posix-functions/mknodat.texi: Likewise.
36829         * doc/posix-functions/mq_close.texi: Likewise.
36830         * doc/posix-functions/mq_getattr.texi: Likewise.
36831         * doc/posix-functions/mq_notify.texi: Likewise.
36832         * doc/posix-functions/mq_open.texi: Likewise.
36833         * doc/posix-functions/mq_receive.texi: Likewise.
36834         * doc/posix-functions/mq_send.texi: Likewise.
36835         * doc/posix-functions/mq_setattr.texi: Likewise.
36836         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36837         * doc/posix-functions/mq_timedsend.texi: Likewise.
36838         * doc/posix-functions/mq_unlink.texi: Likewise.
36839         * doc/posix-functions/open_memstream.texi: Likewise.
36840         * doc/posix-functions/openat.texi: Likewise.
36841         * doc/posix-functions/posix_fadvise.texi: Likewise.
36842         * doc/posix-functions/posix_fallocate.texi: Likewise.
36843         * doc/posix-functions/posix_madvise.texi: Likewise.
36844         * doc/posix-functions/posix_memalign.texi: Likewise.
36845         * doc/posix-functions/posix_openpt.texi: Likewise.
36846         * doc/posix-functions/readlinkat.texi: Likewise.
36847         * doc/posix-functions/remque.texi: Likewise.
36848         * doc/posix-functions/renameat.texi: Likewise.
36849         * doc/posix-functions/rintl.texi: Likewise.
36850         * doc/posix-functions/sem_unlink.texi: Likewise.
36851         * doc/posix-functions/shm_open.texi: Likewise.
36852         * doc/posix-functions/shm_unlink.texi: Likewise.
36853         * doc/posix-functions/signgam.texi: Likewise.
36854         * doc/posix-functions/sigset.texi: Likewise.
36855         * doc/posix-functions/stpcpy.texi: Likewise.
36856         * doc/posix-functions/stpncpy.texi: Likewise.
36857         * doc/posix-functions/strerror.texi: Likewise.
36858         * doc/posix-functions/strtod.texi: Likewise.
36859         * doc/posix-functions/symlinkat.texi: Likewise.
36860         * doc/posix-functions/unlinkat.texi: Likewise.
36861         * doc/posix-functions/utimensat.texi: Likewise.
36862         * doc/glibc-functions/bindresvport.texi: Likewise.
36863         * doc/glibc-functions/dn_expand.texi: Likewise.
36864         * doc/glibc-functions/exp10.texi: Likewise.
36865         * doc/glibc-functions/exp10f.texi: Likewise.
36866         * doc/glibc-functions/fgetxattr.texi: Likewise.
36867         * doc/glibc-functions/flistxattr.texi: Likewise.
36868         * doc/glibc-functions/fopencookie.texi: Likewise.
36869         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36870         * doc/glibc-functions/fremovexattr.texi: Likewise.
36871         * doc/glibc-functions/fsetxattr.texi: Likewise.
36872         * doc/glibc-functions/getifaddrs.texi: Likewise.
36873         * doc/glibc-functions/getxattr.texi: Likewise.
36874         * doc/glibc-functions/lgetxattr.texi: Likewise.
36875         * doc/glibc-functions/listxattr.texi: Likewise.
36876         * doc/glibc-functions/llistxattr.texi: Likewise.
36877         * doc/glibc-functions/lremovexattr.texi: Likewise.
36878         * doc/glibc-functions/lsetxattr.texi: Likewise.
36879         * doc/glibc-functions/pow10.texi: Likewise.
36880         * doc/glibc-functions/pow10f.texi: Likewise.
36881         * doc/glibc-functions/rcmd_af.texi: Likewise.
36882         * doc/glibc-functions/removexattr.texi: Likewise.
36883         * doc/glibc-functions/res_init.texi: Likewise.
36884         * doc/glibc-functions/res_mkquery.texi: Likewise.
36885         * doc/glibc-functions/res_query.texi: Likewise.
36886         * doc/glibc-functions/res_querydomain.texi: Likewise.
36887         * doc/glibc-functions/res_send.texi: Likewise.
36888         * doc/glibc-functions/rresvport_af.texi: Likewise.
36889         * doc/glibc-functions/setxattr.texi: Likewise.
36890         * doc/glibc-functions/strcasestr.texi: Likewise.
36891
36892 2008-12-15  Bruno Haible  <bruno@clisp.org>
36893
36894         Fix compilation error on OSF/1 4.0.
36895         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36896         <sys/time.h>, simply delegate to the system header.
36897         Reported by Daniel Richard G. <oss@teragram.com>.
36898
36899 2008-12-15  Bruno Haible  <bruno@clisp.org>
36900
36901         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36902         * doc/posix-functions/fchmodat.texi: Likewise.
36903         * doc/posix-functions/fchownat.texi: Likewise.
36904         * doc/posix-functions/fdopendir.texi: Likewise.
36905         * doc/posix-functions/fstatat.texi: Likewise.
36906         * doc/posix-functions/mkdirat.texi: Likewise.
36907         * doc/posix-functions/unlinkat.texi: Likewise.
36908
36909 2008-12-14  Bruno Haible  <bruno@clisp.org>
36910
36911         Update doc for POSIX:2008.
36912         * doc/posix-functions/faccessat.texi: New file.
36913         * doc/posix-functions/fchmodat.texi: New file.
36914         * doc/posix-functions/fchownat.texi: New file.
36915         * doc/posix-functions/fdopendir.texi: New file.
36916         * doc/posix-functions/fstatat.texi: New file.
36917         * doc/posix-functions/futimens.texi: New file.
36918         * doc/posix-functions/linkat.texi: New file.
36919         * doc/posix-functions/mkdirat.texi: New file.
36920         * doc/posix-functions/mkfifoat.texi: New file.
36921         * doc/posix-functions/mknodat.texi: New file.
36922         * doc/posix-functions/open_wmemstream.texi: New file.
36923         * doc/posix-functions/openat.texi: New file.
36924         * doc/posix-functions/psiginfo.texi: New file.
36925         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36926         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36927         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36928         * doc/posix-functions/readlinkat.texi: New file.
36929         * doc/posix-functions/renameat.texi: New file.
36930         * doc/posix-functions/strerror_l.texi: New file.
36931         * doc/posix-functions/symlinkat.texi: New file.
36932         * doc/posix-functions/unlinkat.texi: New file.
36933         * doc/posix-functions/utimensat.texi: New file.
36934         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36935
36936 2008-12-14  Bruno Haible  <bruno@clisp.org>
36937
36938         Update doc for POSIX:2008.
36939         * doc/posix-functions/alphasort.texi: Renamed from
36940         doc/glibc-functions/alphasort.texi.
36941         * doc/posix-functions/dirfd.texi: Renamed from
36942         doc/glibc-functions/dirfd.texi.
36943         * doc/posix-functions/dprintf.texi: Renamed from
36944         doc/glibc-functions/dprintf.texi.
36945         * doc/posix-functions/duplocale.texi: Renamed from
36946         doc/glibc-functions/duplocale.texi.
36947         * doc/posix-functions/fexecve.texi: Renamed from
36948         doc/glibc-functions/fexecve.texi.
36949         * doc/posix-functions/fmemopen.texi: Renamed from
36950         doc/glibc-functions/fmemopen.texi.
36951         * doc/posix-functions/freelocale.texi: Renamed from
36952         doc/glibc-functions/freelocale.texi.
36953         * doc/posix-functions/getdate_err.texi: Renamed from
36954         doc/glibc-functions/getdate_err.texi.
36955         * doc/posix-functions/isalnum_l.texi: Renamed from
36956         doc/glibc-functions/isalnum_l.texi.
36957         * doc/posix-functions/isalpha_l.texi: Renamed from
36958         doc/glibc-functions/isalpha_l.texi.
36959         * doc/posix-functions/isblank_l.texi: Renamed from
36960         doc/glibc-functions/isblank_l.texi.
36961         * doc/posix-functions/iscntrl_l.texi: Renamed from
36962         doc/glibc-functions/iscntrl_l.texi.
36963         * doc/posix-functions/isdigit_l.texi: Renamed from
36964         doc/glibc-functions/isdigit_l.texi.
36965         * doc/posix-functions/isgraph_l.texi: Renamed from
36966         doc/glibc-functions/isgraph_l.texi.
36967         * doc/posix-functions/islower_l.texi: Renamed from
36968         doc/glibc-functions/islower_l.texi.
36969         * doc/posix-functions/isprint_l.texi: Renamed from
36970         doc/glibc-functions/isprint_l.texi.
36971         * doc/posix-functions/ispunct_l.texi: Renamed from
36972         doc/glibc-functions/ispunct_l.texi.
36973         * doc/posix-functions/isspace_l.texi: Renamed from
36974         doc/glibc-functions/isspace_l.texi.
36975         * doc/posix-functions/isupper_l.texi: Renamed from
36976         doc/glibc-functions/isupper_l.texi.
36977         * doc/posix-functions/iswalnum_l.texi: Renamed from
36978         doc/glibc-functions/iswalnum_l.texi.
36979         * doc/posix-functions/iswalpha_l.texi: Renamed from
36980         doc/glibc-functions/iswalpha_l.texi.
36981         * doc/posix-functions/iswblank_l.texi: Renamed from
36982         doc/glibc-functions/iswblank_l.texi.
36983         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36984         doc/glibc-functions/iswcntrl_l.texi.
36985         * doc/posix-functions/iswctype_l.texi: Renamed from
36986         doc/glibc-functions/iswctype_l.texi.
36987         * doc/posix-functions/iswdigit_l.texi: Renamed from
36988         doc/glibc-functions/iswdigit_l.texi.
36989         * doc/posix-functions/iswgraph_l.texi: Renamed from
36990         doc/glibc-functions/iswgraph_l.texi.
36991         * doc/posix-functions/iswlower_l.texi: Renamed from
36992         doc/glibc-functions/iswlower_l.texi.
36993         * doc/posix-functions/iswprint_l.texi: Renamed from
36994         doc/glibc-functions/iswprint_l.texi.
36995         * doc/posix-functions/iswpunct_l.texi: Renamed from
36996         doc/glibc-functions/iswpunct_l.texi.
36997         * doc/posix-functions/iswspace_l.texi: Renamed from
36998         doc/glibc-functions/iswspace_l.texi.
36999         * doc/posix-functions/iswupper_l.texi: Renamed from
37000         doc/glibc-functions/iswupper_l.texi.
37001         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37002         doc/glibc-functions/iswxdigit_l.texi.
37003         * doc/posix-functions/isxdigit_l.texi: Renamed from
37004         doc/glibc-functions/isxdigit_l.texi.
37005         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37006         doc/glibc-functions/mbsnrtowcs.texi.
37007         * doc/posix-functions/mkdtemp.texi: Renamed from
37008         doc/glibc-functions/mkdtemp.texi.
37009         * doc/posix-functions/newlocale.texi: Renamed from
37010         doc/glibc-functions/newlocale.texi.
37011         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37012         doc/glibc-functions/nl_langinfo_l.texi.
37013         * doc/posix-functions/open_memstream.texi: Renamed from
37014         doc/glibc-functions/open_memstream.texi.
37015         * doc/posix-functions/opterr.texi: Renamed from
37016         doc/glibc-functions/opterr.texi.
37017         * doc/posix-functions/optind.texi: Renamed from
37018         doc/glibc-functions/optind.texi.
37019         * doc/posix-functions/optopt.texi: Renamed from
37020         doc/glibc-functions/optopt.texi.
37021         * doc/posix-functions/psignal.texi: Renamed from
37022         doc/glibc-functions/psignal.texi.
37023         * doc/posix-functions/scandir.texi: Renamed from
37024         doc/glibc-functions/scandir.texi.
37025         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37026         doc/glibc-functions/sched_get_priority_min.texi.
37027         * doc/posix-functions/signgam.texi: Renamed from
37028         doc/glibc-functions/signgam.texi.
37029         * doc/posix-functions/stpcpy.texi: Renamed from
37030         doc/glibc-functions/stpcpy.texi.
37031         * doc/posix-functions/stpncpy.texi: Renamed from
37032         doc/glibc-functions/stpncpy.texi.
37033         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37034         doc/glibc-functions/strcasecmp_l.texi.
37035         * doc/posix-functions/strcoll_l.texi: Renamed from
37036         doc/glibc-functions/strcoll_l.texi.
37037         * doc/posix-functions/strfmon_l.texi: Renamed from
37038         doc/glibc-functions/strfmon_l.texi.
37039         * doc/posix-functions/strftime_l.texi: Renamed from
37040         doc/glibc-functions/strftime_l.texi.
37041         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37042         doc/glibc-functions/strncasecmp_l.texi.
37043         * doc/posix-functions/strndup.texi: Renamed from
37044         doc/glibc-functions/strndup.texi.
37045         * doc/posix-functions/strnlen.texi: Renamed from
37046         doc/glibc-functions/strnlen.texi.
37047         * doc/posix-functions/strsignal.texi: Renamed from
37048         doc/glibc-functions/strsignal.texi.
37049         * doc/posix-functions/strxfrm_l.texi: Renamed from
37050         doc/glibc-functions/strxfrm_l.texi.
37051         * doc/posix-functions/timer_gettime.texi: Renamed from
37052         doc/glibc-functions/timer_gettime.texi.
37053         * doc/posix-functions/tolower_l.texi: Renamed from
37054         doc/glibc-functions/tolower_l.texi.
37055         * doc/posix-functions/toupper_l.texi: Renamed from
37056         doc/glibc-functions/toupper_l.texi.
37057         * doc/posix-functions/towctrans_l.texi: Renamed from
37058         doc/glibc-functions/towctrans_l.texi.
37059         * doc/posix-functions/towlower_l.texi: Renamed from
37060         doc/glibc-functions/towlower_l.texi.
37061         * doc/posix-functions/towupper_l.texi: Renamed from
37062         doc/glibc-functions/towupper_l.texi.
37063         * doc/posix-functions/uselocale.texi: Renamed from
37064         doc/glibc-functions/uselocale.texi.
37065         * doc/posix-functions/vdprintf.texi: Renamed from
37066         doc/glibc-functions/vdprintf.texi.
37067         * doc/posix-functions/wcpcpy.texi:
37068         Renamed from doc/glibc-functions/wcpcpy.texi.
37069         * doc/posix-functions/wcpncpy.texi: Renamed from
37070         doc/glibc-functions/wcpncpy.texi.
37071         * doc/posix-functions/wcscasecmp.texi: Renamed from
37072         doc/glibc-functions/wcscasecmp.texi.
37073         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37074         doc/glibc-functions/wcscasecmp_l.texi.
37075         * doc/posix-functions/wcscoll_l.texi: Renamed from
37076         doc/glibc-functions/wcscoll_l.texi.
37077         * doc/posix-functions/wcsdup.texi: Renamed from
37078         doc/glibc-functions/wcsdup.texi.
37079         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37080         doc/glibc-functions/wcsncasecmp.texi.
37081         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37082         doc/glibc-functions/wcsncasecmp_l.texi.
37083         * doc/posix-functions/wcsnlen.texi: Renamed from
37084         doc/glibc-functions/wcsnlen.texi.
37085         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37086         doc/glibc-functions/wcsnrtombs.texi.
37087         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37088         doc/glibc-functions/wcsxfrm_l.texi.
37089         * doc/posix-functions/wctrans_l.texi: Renamed from
37090         doc/glibc-functions/wctrans_l.texi.
37091         * doc/posix-functions/wctype_l.texi: Renamed from
37092         doc/glibc-functions/wctype_l.texi.
37093         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37094         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37095         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37096         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37097         these subsections.
37098         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37099         Remove sections.
37100
37101 2008-12-14  Bruno Haible  <bruno@clisp.org>
37102
37103         Update doc for POSIX:2008.
37104         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37105
37106 2008-12-14  Bruno Haible  <bruno@clisp.org>
37107
37108         Update doc for POSIX:2008.
37109         * doc/pastposix-functions/bcmp.texi: Renamed from
37110         doc/posix-functions/bcmp.texi.
37111         * doc/pastposix-functions/bcopy.texi: Renamed from
37112         doc/posix-functions/bcopy.texi.
37113         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37114         doc/posix-functions/bsd_signal.texi.
37115         * doc/pastposix-functions/bzero.texi: Renamed from
37116         doc/posix-functions/bzero.texi.
37117         * doc/pastposix-functions/ecvt.texi: Renamed from
37118         doc/posix-functions/ecvt.texi.
37119         * doc/pastposix-functions/fcvt.texi: Renamed from
37120         doc/posix-functions/fcvt.texi.
37121         * doc/pastposix-functions/ftime.texi: Renamed from
37122         doc/posix-functions/ftime.texi.
37123         * doc/pastposix-functions/gcvt.texi: Renamed from
37124         doc/posix-functions/gcvt.texi.
37125         * doc/pastposix-functions/getcontext.texi: Renamed from
37126         doc/posix-functions/getcontext.texi.
37127         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37128         doc/posix-functions/gethostbyaddr.texi.
37129         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37130         doc/posix-functions/gethostbyname.texi.
37131         * doc/pastposix-functions/getwd.texi: Renamed from
37132         doc/posix-functions/getwd.texi.
37133         * doc/pastposix-functions/h_errno.texi: Renamed from
37134         doc/posix-functions/h_errno.texi.
37135         * doc/pastposix-functions/index.texi: Renamed from
37136         doc/posix-functions/index.texi.
37137         * doc/pastposix-functions/makecontext.texi: Renamed from
37138         doc/posix-functions/makecontext.texi.
37139         * doc/pastposix-functions/mktemp.texi: Renamed from
37140         doc/posix-functions/mktemp.texi.
37141         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37142         doc/posix-functions/pthread_attr_getstackaddr.texi.
37143         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37144         doc/posix-functions/pthread_attr_setstackaddr.texi.
37145         * doc/pastposix-functions/rindex.texi: Renamed from
37146         doc/posix-functions/rindex.texi.
37147         * doc/pastposix-functions/scalb.texi: Renamed from
37148         doc/posix-functions/scalb.texi.
37149         * doc/pastposix-functions/setcontext.texi: Renamed from
37150         doc/posix-functions/setcontext.texi.
37151         * doc/pastposix-functions/swapcontext.texi: Renamed from
37152         doc/posix-functions/swapcontext.texi.
37153         * doc/pastposix-functions/ualarm.texi: Renamed from
37154         doc/posix-functions/ualarm.texi.
37155         * doc/pastposix-functions/usleep.texi: Renamed from
37156         doc/posix-functions/usleep.texi.
37157         * doc/pastposix-functions/vfork.texi: Renamed from
37158         doc/posix-functions/vfork.texi.
37159         * doc/pastposix-functions/wcswcs.texi: Renamed from
37160         doc/posix-functions/wcswcs.texi.
37161         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37162         (Function Substitutes): Update.
37163
37164 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37165
37166         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37167         m4/strerror.m4.
37168
37169 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37170             Bruno Haible  <bruno@clisp.org>
37171
37172         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37173
37174 2008-12-13  Bruno Haible  <bruno@clisp.org>
37175
37176         * modules/strtoull (Depends-on): Remove unistd.
37177
37178 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37179
37180         * modules/strtoull (Depends-on): Add stdlib.
37181
37182 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37183
37184         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37185
37186 2008-12-10  Jim Meyering  <meyering@redhat.com>
37187
37188         gl_ASSERT: don't say assertions are disabled when they're not
37189         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37190         "checking whether to enable assertions... no", when they are in
37191         fact enabled.  This is solely a bug in the output of configure.
37192         In spite of saying "no", NDEBUG was not defined in that case.
37193         Also, as noted by Eric Blake, leave assertions enabled upon
37194         --enable-assert=INVALID.
37195
37196 2008-12-10  Bruno Haible  <bruno@clisp.org>
37197
37198         Change MODULES.html to refer to POSIX:2008 where possible.
37199         * MODULES.html.sh (POSIX2008_URL): New variable.
37200         (posix_headers): Remove sys/timeb, ucontext.
37201         (posix2001_headers): New variable.
37202         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37203         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37204         index, makecontext, mktemp, pthread_attr_getstackaddr,
37205         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37206         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37207         (posix2001_functions): New variable.
37208         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37209         otherwise.
37210
37211 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37212
37213         add missing include to parse-duration.c
37214         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37215         * modules/parse-duration (Depends-on): Add xalloc.
37216
37217         fix sed script reading maint.mk
37218         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37219         (syntax-check-rules): Use it.
37220
37221 2008-12-09  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37224         MacOS X 10.4/PowerPC.
37225         Reported by Simon Josefsson.
37226
37227 2008-12-08  Jim Meyering  <meyering@redhat.com>
37228
37229         work around mingw's lack of some S_IF definitions
37230         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37231         Reported by Simon Josefsson.
37232
37233 2008-12-08  Bruno Haible  <bruno@clisp.org>
37234
37235         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37236         applied to variables. Needed on MacOS X 10.4/PowerPC.
37237         Reported by Simon Josefsson.
37238
37239 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37240         and Eric Blake  <ebb9@byu.net>
37241
37242         assert: honor --enable-assert
37243         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37244         order to honor --enable-assert, rather than treating it as a
37245         synonym for --disable-assert.
37246
37247 2008-12-08  Jim Meyering  <meyering@redhat.com>
37248
37249         * lib/posixtm.c: Remove now-useless declaration of mktime.
37250
37251         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37252
37253 2008-12-07  Bruno Haible  <bruno@clisp.org>
37254
37255         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37256         test_once): Mark functions as static.
37257         * tests/test-tls.c (test_tls): Likewise.
37258
37259 2008-12-07  Bruno Haible  <bruno@clisp.org>
37260
37261         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37262         iconv_register_autodetect.
37263
37264 2008-12-07  Jim Meyering  <meyering@redhat.com>
37265
37266         posixtm.c: avoid a warning
37267         * lib/posixtm.c (posixtime): Don't initialize tm0.
37268         It's no longer needed to placate gcc4's -Wuninitialized,
37269         and the attempt to placate would elicit a new warning.
37270
37271         unicodeio.c: mark unused parameters
37272         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37273         (fallback_failure_callback): Likewise.
37274
37275 2008-12-07  Bruno Haible  <bruno@clisp.org>
37276
37277         * gnulib-tool (func_create_testdir): When building the tests
37278         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37279         Reported by Simon Josefsson.
37280
37281 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37282
37283         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37284
37285 2008-12-06  Bruno Haible  <bruno@clisp.org>
37286
37287         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37288         Suggested by Eric Blake.
37289
37290 2008-12-06  Bruno Haible  <bruno@clisp.org>
37291
37292         Fix a c-stack test failure on MacOS X.
37293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37294         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37295         handler for SIGBUS as well.
37296         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37297         install a signal handler for SIGBUS as well.
37298         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37299
37300 2008-12-06  Bruno Haible  <bruno@clisp.org>
37301
37302         Advocacy documentation.
37303         * doc/gnulib-intro.texi (Benefits): New section.
37304         * doc/gnulib.texi: Update.
37305
37306 2008-12-06  Bruno Haible  <bruno@clisp.org>
37307
37308         Document the 'manywarnings' module.
37309         * doc/manywarnings.texi: New file.
37310         * doc/gnulib.texi: Include it.
37311
37312 2008-12-05  Eric Blake  <ebb9@byu.net>
37313
37314         tests: silence some gcc warnings
37315         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37316         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37317         type mismatches.
37318
37319 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37320             Bruno Haible  <bruno@clisp.org>
37321
37322         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37323
37324 2008-11-29  Jim Meyering  <meyering@redhat.com>
37325
37326         unicodeio.c: mark unused parameters
37327         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37328         (fallback_failure_callback): Likewise.
37329
37330         fts: fix a thinko
37331         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37332         (set_stat_type): Return S_IF*-valued "type" directly.
37333         Prompted by James Youngman's spotting a related bug.
37334         Confirmed by further testing through find.
37335
37336         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37337         * lib/fts.c (D_TYPE): Define.
37338         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37339         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37340         (s_ifmt_shift_bits): New function.
37341         (set_stat_type): New function.
37342         (fts_build): When not calling fts_stat, call set_stat_type
37343         to propagate dirent.d_type info to fts_read caller.
37344         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37345         fts_statp->st_mode type information may be valid.
37346
37347 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37348
37349         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37350         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37351         <sds@gnu.org>.
37352
37353 2008-11-20  Bruno Haible  <bruno@clisp.org>
37354
37355         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37356         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37357         INCLUDE_NEXT.
37358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37359         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37360         * modules/math (Makefile.am): Substitute
37361         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37362         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37363
37364 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37365             Bruno Haible  <bruno@clisp.org>
37366
37367         * lib/stdint.in.h: Define all type macros so that their expansion is
37368         a single typedef'ed token. Fixes a compilation failure in Boost which
37369         does "using ::int8_t;".
37370
37371 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37372
37373         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37374         gl_MANYWARN_ALL_GCC.
37375         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37376         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37377         * modules/manywarnings: New file.
37378         * MODULES.html.sh: Mention manywarnings module.
37379
37380 2008-11-18  Bruno Haible  <bruno@clisp.org>
37381
37382         * doc/gnulib-tool.texi (Unit tests): New section.
37383
37384 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37385
37386         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37387         paths like 'lib/po/foo.po'.
37388
37389 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37390
37391         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37392         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37393
37394 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37395
37396         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37397         parameter works.
37398
37399 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37400
37401         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37402
37403 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37404
37405         * modules/parse-duration-tests: New file.
37406         * tests/test-parse-duration.sh: New file.
37407         * tests/test-parse-duration.c: New file.
37408
37409         New module 'parse-duration'.
37410         * lib/parse-duration.h: New file.
37411         * lib/parse-duration.c: New file.
37412         * modules/parse-duration: New file.
37413
37414 2008-11-17  Bruno Haible  <bruno@clisp.org>
37415
37416         * tests/test-select-out.sh: Comment out the first pipe test.
37417         Reported by Simon Josefsson.
37418
37419 2008-11-17  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37422         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37423         gl_HOSTENT.
37424
37425 2008-11-17  Bruno Haible  <bruno@clisp.org>
37426
37427         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37428         -lnetwork and -lnet. Needed for Haiku and BeOS.
37429
37430 2008-11-16  Bruno Haible  <bruno@clisp.org>
37431
37432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37433
37434 2008-11-16  Bruno Haible  <bruno@clisp.org>
37435
37436         Avoid test failure on Haiku.
37437         * tests/test-fsync.c: Include <errno.h>.
37438         (main): Don't require that fsync (0) fails.
37439
37440 2008-11-15  Bruno Haible  <bruno@clisp.org>
37441
37442         New module 'hostent'.
37443         * modules/hostent: New file.
37444         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37445
37446 2008-11-15  Bruno Haible  <bruno@clisp.org>
37447
37448         New module 'servent'.
37449         * modules/servent: New file.
37450         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37451
37452 2008-11-15  Bruno Haible  <bruno@clisp.org>
37453
37454         Avoid generating same test program with two different rules.
37455         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37456         test-frexp to test-frexp-nolibm.
37457         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37458         test-frexpl to test-frexpl-nolibm.
37459
37460 2008-11-15  Bruno Haible  <bruno@clisp.org>
37461
37462         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37463         $(FREXPL_LIBM).
37464
37465 2008-11-15  Bruno Haible  <bruno@clisp.org>
37466
37467         * lib/netdb.in.h: Activate the definitions also when the system's
37468         <netdb.h> has 'struct addrinfo'.
37469         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37470         EAI_OVERFLOW or AI_NUMERICSERV.
37471         * doc/posix-headers/netdb.texi: Document the problem.
37472
37473 2008-11-15  Bruno Haible  <bruno@clisp.org>
37474
37475         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37476
37477         Make the 'sched' module work on platforms where <sched.h> exists but
37478         is incomplete (such as Haiku).
37479         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37480         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37481         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37482         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37483         HAVE_STRUCT_SCHED_PARAM.
37484         * modules/sched (Depends-on): Add include_next.
37485         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37486         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37487         * doc/posix-headers/sched.texi: Document the issue.
37488
37489 2008-11-13  Jim Meyering  <meyering@redhat.com>
37490
37491         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37492         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37493         test would fail due to the difference in the Report bugs to ...
37494         line.  The expected address is empty, "<>", while the actual
37495         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37496
37497 2008-11-12  Bruno Haible  <bruno@clisp.org>
37498
37499         lstat: don't compile lstat.c on systems lacking lstat
37500         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37501         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37502         Reported by Daniel P. Berrange via Jim Meyering.
37503
37504 2008-11-12  Jim Meyering  <meyering@redhat.com>
37505
37506         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37507
37508 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37509
37510         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37511         instead.
37512
37513 2008-11-12  Bruno Haible  <bruno@clisp.org>
37514
37515         * lib/unicodeio.c: Include unistr.h.
37516         (utf8_wctomb): Remove function.
37517         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37518
37519 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37520
37521         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37522         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37523         <bruno@clisp.org>.
37524         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37525
37526 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37527
37528         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37529         * doc/gnulib.texi: Add section for warnings.
37530
37531 2008-11-11  Bruno Haible  <bruno@clisp.org>
37532
37533         * lib/sockets.h: Add a comment.
37534
37535 2008-11-11  Karl Berry  <karl@gnu.org>
37536
37537         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37538
37539 2008-11-11  Eric Blake  <ebb9@byu.net>
37540
37541         fdl.texi: avoid git symlinks
37542         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37543
37544 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37545
37546         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37547
37548 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37549
37550         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37551         (gl_WARN_ADD): Substitute $2 if literal.
37552
37553 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37554
37555         * m4/warning.m4: Remove.
37556
37557 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37558
37559         * m4/warnings.m4: Almost complete rewrite. :-)
37560
37561 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37562
37563         * modules/warnings: New module.
37564         * m4/warnings.m4: New file.
37565         * MODULES.html.sh: Mention warnings module.
37566         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37567         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37568
37569 2008-11-10  Eric Blake  <ebb9@byu.net>
37570
37571         fdl.texi: make a symlink to the latest version
37572         * doc/standards.texi: Revert today's earlier change.
37573         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37574         * doc/fdl.texi: ...and replace this with a symlink to the newer
37575         fdl-1.3.texi.
37576
37577 2008-11-10  Bruno Haible  <bruno@clisp.org>
37578
37579         * tests/test-select-fd.c (main): Accept the result file name as fourth
37580         argument.
37581         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37582         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37583
37584 2008-11-10  Bruno Haible  <bruno@clisp.org>
37585
37586         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37587         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37588         as autoconf-substituted macros.
37589         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37590         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37591         gl_NETDB_H_DEFAULTS. Set these variables.
37592         * modules/netdb (Makefile.am): Substitute these variables.
37593
37594 2008-11-10  Eric Blake  <ebb9@byu.net>
37595
37596         standards.texi: include correct file for FDL 1.3
37597         * doc/standards.texi (GNU Free Documentation License): Change
37598         include file to pull in FDL 1.3, not 1.2.
37599
37600         fdl.texi: revert accidental change to license
37601         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37602
37603 2008-11-10  Bruno Haible  <bruno@clisp.org>
37604
37605         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37606         cross-compiling guesses also when the native compile gives no result.
37607
37608 2008-11-10  Bruno Haible  <bruno@clisp.org>
37609
37610         * lib/spawni.c (__spawni): Force variable into the stack.
37611
37612 2008-11-10  Bruno Haible  <bruno@clisp.org>
37613
37614         Add support for Haiku.
37615         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37616         glibc and BeOS, but also on Haiku.
37617         * lib/fpurge.c (fpurge): Likewise.
37618         * lib/freadable.c (freadable): Likewise.
37619         * lib/freadahead.c (freadahead): Likewise.
37620         * lib/freading.c (freading): Likewise.
37621         * lib/freadptr.c (freadptr): Likewise.
37622         * lib/freadseek.c (freadptrinc): Likewise.
37623         * lib/fseeko.c (rpl_fseeko): Likewise.
37624         * lib/fseterr.c (fseterr): Likewise.
37625         * lib/fwritable.c (fwritable): Likewise.
37626         * lib/fwriting.c (fwriting): Likewise.
37627         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37628
37629 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37630
37631         * lib/config.charset: Treat Haiku like BeOS.
37632
37633 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37634
37635         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37636         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37637
37638 2008-11-08  Bruno Haible  <bruno@clisp.org>
37639
37640         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37641         AC_CACHE_CHECK.
37642
37643 2008-11-08  Bruno Haible  <bruno@clisp.org>
37644
37645         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37646
37647 2008-11-08  Bruno Haible  <bruno@clisp.org>
37648
37649         * tests/test-select-fd.c: New file.
37650         * tests/test-select-in.sh: New file.
37651         * tests/test-select-out.sh: New file.
37652         * tests/test-select-stdin.c: New file.
37653         * modules/select-tests (Files): Add the new files.
37654         (Depends-on): Add gettimeofday.
37655         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37656         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37657         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37658
37659 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37660             Bruno Haible  <bruno@clisp.org>
37661
37662         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37663
37664 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37665
37666         * build-aux/pmccabe2html: Added support for C++ source files.
37667
37668 2008-11-05  Ben Pfaff  <blp@gnu.org>
37669
37670         Fix lib/close.c build on Windows.
37671         * modules/close (Files): Add lib/w32sock.h.
37672
37673 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37674
37675         Accept Bison's NEWS format.
37676         * build-aux/announce-gen (print_news_deltas): Tweak
37677         $re_prefix.
37678
37679 2008-11-04  Bruno Haible  <bruno@clisp.org>
37680
37681         * modules/random_r (Maintainer): Add glibc.
37682
37683 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37684
37685         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37686         by karl@freefriends.org (Karl Berry).
37687         * doc/alloca.texi: Likewise.
37688         * doc/c-ctype.texi: Likewise.
37689         * doc/c-strcase.texi: Likewise.
37690         * doc/c-strcaseeq.texi: Likewise.
37691         * doc/c-strcasestr.texi: Likewise.
37692         * doc/c-strstr.texi: Likewise.
37693         * doc/c-strtod.texi: Likewise.
37694         * doc/c-strtold.texi: Likewise.
37695         * doc/ctime.texi: Likewise.
37696         * doc/error.texi: Likewise.
37697         * doc/fdl.texi: Likewise.
37698         * doc/gcd.texi: Likewise.
37699         * doc/getdate.texi: Likewise.
37700         * doc/gnulib-intro.texi: Likewise.
37701         * doc/gnulib-tool.texi: Likewise.
37702         * doc/gnulib.texi: Likewise.
37703         * doc/inet_ntoa.texi: Likewise.
37704         * doc/maintain.texi: Likewise.
37705         * doc/make-stds.texi: Likewise.
37706         * doc/quote.texi: Likewise.
37707         * doc/regexprops-generic.texi: Likewise.
37708         * doc/standards.texi: Likewise.
37709         * doc/verify.texi: Likewise.
37710         * doc/visibility.texi: Likewise.
37711         * doc/gnulib.texi (GNU Free Documentation License): Include
37712         fdl-1.3.texi instead of fdl.texi.
37713
37714 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37715
37716         * doc/fdl-1.3.texi: New file, from
37717         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37718         * modules/fdl-1.3: Add.
37719         * MODULES.html.sh: Add fdl-1.3.
37720
37721 2008-11-03  Bruno Haible  <bruno@clisp.org>
37722
37723         Make determination of absolute name of header file work with AIX xlc.
37724         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37725         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37726         preprocessing.
37727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37728         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37729
37730 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37731
37732         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37733         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37734         <ludo@gnu.org>.
37735
37736 2008-11-02  Bruno Haible  <bruno@clisp.org>
37737
37738         Mark 'strpbrk' obsolete.
37739         * modules/strpbrk (Status, Notice): New sections.
37740         * modules/strtok_r (Depends-on): Add strpbrk.
37741
37742 2008-11-02  Bruno Haible  <bruno@clisp.org>
37743
37744         Mark 'strdup' obsolete.
37745         * modules/strdup (Status, Notice): New sections.
37746         * modules/findprog (Depends-on): Add strdup.
37747         * modules/getaddrinfo (Depends-on): Likewise.
37748         * modules/localename (Depends-on): Likewise.
37749         * modules/relocatable-lib (Depends-on): Likewise.
37750         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37751         * modules/relocatable-prog (Depends-on): Likewise.
37752         * modules/trim (Depends-on): Likewise.
37753         * modules/unictype/gen-ctype (Depends-on): Likewise.
37754         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37755
37756 2008-11-02  Bruno Haible  <bruno@clisp.org>
37757
37758         Mark 'strcspn' obsolete.
37759         * modules/strcspn (Status, Notice): New sections.
37760
37761 2008-11-02  Bruno Haible  <bruno@clisp.org>
37762
37763         Mark 'rmdir' obsolete.
37764         * modules/rmdir (Status, Notice): New sections.
37765         * modules/clean-temp (Depends-on): Add rmdir.
37766         * modules/openat (Depends-on): Likewise.
37767
37768 2008-11-02  Bruno Haible  <bruno@clisp.org>
37769
37770         Mark 'raise' obsolete.
37771         * modules/raise (Status, Notice): New sections.
37772         (Include): Specify <signal.h>.
37773         * modules/stdio (Depends-on): Add raise.
37774         * modules/write (Depends-on): Likewise.
37775
37776 2008-11-02  Bruno Haible  <bruno@clisp.org>
37777
37778         Mark 'memset' obsolete.
37779         * modules/memset (Status, Notice): New sections.
37780
37781 2008-11-02  Bruno Haible  <bruno@clisp.org>
37782
37783         Mark 'memmove' obsolete.
37784         * modules/memmove (Status, Notice): New sections.
37785         * modules/argp (Depends-on): Add memmove.
37786         * modules/argz (Depends-on): Likewise.
37787         * modules/canonicalize (Depends-on): Likewise.
37788         * modules/canonicalize-lgpl (Depends-on): Likewise.
37789         * modules/fts (Depends-on): Likewise.
37790         * modules/getcwd (Depends-on): Likewise.
37791         * modules/human (Depends-on): Likewise.
37792         * modules/regex (Depends-on): Likewise.
37793         * modules/striconveh (Depends-on): Likewise.
37794         * modules/trim (Depends-on): Likewise.
37795         * modules/unistr/u8-move (Depends-on): Likewise.
37796         * modules/unistr/u16-move (Depends-on): Likewise.
37797         * modules/unistr/u32-move (Depends-on): Likewise.
37798
37799 2008-11-02  Bruno Haible  <bruno@clisp.org>
37800
37801         Mark 'memcpy' obsolete.
37802         * modules/memcpy (Status, Notice): New sections.
37803
37804 2008-11-02  Bruno Haible  <bruno@clisp.org>
37805
37806         Mark 'memcmp' obsolete.
37807         * modules/memcmp (Status, Notice): New sections.
37808         * modules/argmatch (Depends-on): Add memchr.
37809         * modules/backupfile (Depends-on): Likewise.
37810         * modules/c-strcasestr (Depends-on): Likewise.
37811         * modules/crypto/des (Depends-on): Likewise.
37812         * modules/csharpcomp (Depends-on): Likewise.
37813         * modules/fnmatch (Depends-on): Likewise.
37814         * modules/git-merge-changelog (Depends-on): Likewise.
37815         * modules/isnand (Depends-on): Likewise.
37816         * modules/isnand-nolibm (Depends-on): Likewise.
37817         * modules/isnanf (Depends-on): Likewise.
37818         * modules/isnanf-nolibm (Depends-on): Likewise.
37819         * modules/isnanl (Depends-on): Likewise.
37820         * modules/isnanl-nolibm (Depends-on): Likewise.
37821         * modules/mbchar (Depends-on): Likewise.
37822         * modules/memcoll (Depends-on): Likewise.
37823         * modules/quotearg (Depends-on): Likewise.
37824         * modules/regex (Depends-on): Likewise.
37825         * modules/relocatable-prog (Depends-on): Likewise.
37826         * modules/same (Depends-on): Likewise.
37827         * modules/signbit (Depends-on): Likewise.
37828         * modules/strcasestr-simple (Depends-on): Likewise.
37829         * modules/unictype/gen-ctype (Depends-on): Likewise.
37830         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37831         * modules/uniname/uniname (Depends-on): Likewise.
37832         * modules/unistr/u8-cmp (Depends-on): Likewise.
37833
37834 2008-11-02  Bruno Haible  <bruno@clisp.org>
37835
37836         Mark 'memchr' obsolete.
37837         * modules/memchr (Status, Notice): New sections.
37838         * modules/argp (Depends-on): Add memchr.
37839         * modules/base64 (Depends-on): Likewise.
37840         * modules/c-strcasestr (Depends-on): Likewise.
37841         * modules/chdir-long (Depends-on): Likewise.
37842         * modules/fnmatch (Depends-on): Likewise.
37843         * modules/getsubopt (Depends-on): Likewise.
37844         * modules/git-merge-changelog (Depends-on): Likewise.
37845         * modules/glob (Depends-on): Likewise.
37846         * modules/strcasestr-simple (Depends-on): Likewise.
37847         * modules/strnlen (Depends-on): Likewise.
37848
37849 2008-11-02  Bruno Haible  <bruno@clisp.org>
37850
37851         Mark 'atexit' obsolete.
37852         * modules/atexit (Status, Notice): New sections.
37853         * modules/chdir-long (Depends-on): Add atexit.
37854         * modules/wait-process (Depends-on): Likewise.
37855
37856 2008-11-02  Bruno Haible  <bruno@clisp.org>
37857
37858         * gnulib-tool: New option --with-obsolete.
37859         (func_usage): Document it.
37860         (func_modules_transitive_closure): Drop obsolete dependencies if
37861         incobsolete is not true.
37862         (func_import): Read and save the incobsolete variable to the cache.
37863
37864 2008-11-02  Bruno Haible  <bruno@clisp.org>
37865
37866         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37867         * gnulib-tool: New option --extract-status.
37868         (func_usage): Document it.
37869         (sed_extract_prog): Recognize it.
37870         (func_get_status): New function.
37871
37872 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37873
37874         * modules/sockets (License): Change from LGPL to LGPLv2+.
37875
37876 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37877
37878         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37879
37880 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37881
37882         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37883         Mention times and sys_times.
37884         * modules/sys_times, modules/sys_times-tests: New modules.
37885         * modules/times, modules/times-tests: Likewise
37886         * m4/sys_times_h.m4: New file.
37887         * lib/sys_times.in.h: Likewise
37888         * lib/times.c: Likewise.
37889         * tests/test-sys_times.c: Likewise.
37890         * tests/test-times.c: Likewise.
37891         * doc/posix-headers/sys_times.texi: Update.
37892         * doc/posix-functions/times.texi: Update.
37893
37894 2008-10-28  Jim Meyering  <meyering@redhat.com>
37895
37896         * modules/tempname (Depends-on): Add lstat.
37897
37898         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37899
37900 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37901
37902         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37903         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37904         using idiom used elsewhere in gnulib.
37905
37906 2008-10-27  Jim Meyering  <meyering@redhat.com>
37907
37908         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37909
37910 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37911
37912         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37913         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37914         programs.
37915         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37916
37917 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37918
37919         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37920
37921 2008-10-27  Bruno Haible  <bruno@clisp.org>
37922
37923         * tests/test-lstat.c: Include <stdio.h>.
37924
37925 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37926
37927         * modules/lstat-tests: New module.
37928         * tests/test-lstat.c: New file.
37929
37930 2008-10-26  Jim Meyering  <meyering@redhat.com>
37931
37932         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37933
37934 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37935             Bruno Haible  <bruno@clisp.org>
37936
37937         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37938         * modules/configmake (Include): Add a note that the include must come
37939         after all system headers.
37940         * lib/javaversion.c: Include configmake.h after all other includes.
37941
37942 2008-10-26  Bruno Haible  <bruno@clisp.org>
37943
37944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37945         HAVE_STRUCT_RANDOM_DATA to 1.
37946         (gl_STDLIB_H): Simplify.
37947
37948 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37949
37950         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37951         substitute HAVE_STRUCT_RANDOM_DATA.
37952         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37953         random_data.
37954         * modules/stdlib (Makefile.am): Substitute
37955         HAVE_STRUCT_RANDOM_DATA.
37956
37957 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37958
37959         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37960         * doc/gnulib-intro.texi (Copyright): Likewise.
37961
37962 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37963
37964         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37965         findings.
37966
37967 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37968             Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/unistd.in.h: Include <winsock2.h>.
37971         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37972         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37973         Provide dummy declarations.
37974         (gethostname): Override.
37975         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37976         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37977         gl_PREREQ_SYS_H_WINSOCK2.
37978         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37979         * doc/posix-functions/gethostname.texi: More details.
37980
37981 2008-10-25  Bruno Haible  <bruno@clisp.org>
37982
37983         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37984         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37985         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37986
37987         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37988         here ...
37989         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37991         gl_UNISTD_H_DEFAULTS.
37992
37993 2008-10-25  Eric Blake  <ebb9@byu.net>
37994
37995         signbit: avoid spurious compiler failure
37996         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37997         declarations inside function.
37998
37999 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38000             Bruno Haible  <bruno@clisp.org>
38001
38002         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38003         * modules/random_r (Depends-on): Add stdint.
38004
38005 2008-10-24  Bruno Haible  <bruno@clisp.org>
38006
38007         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38008         Eggert.
38009         * modules/strerror (License): Likewise.
38010
38011 2008-10-24  Jim Meyering  <meyering@redhat.com>
38012
38013         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38014         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38015
38016 2008-10-24  Eric Blake  <ebb9@byu.net>
38017
38018         getgroups: fix compilation when getgroups is available
38019         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38020         but with <config.h> override of getgroups disabled.
38021
38022 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38023
38024         * doc/gnulib.texi (Header files): Add note about C++ problems.
38025         Explained by Bruno Haible <bruno@clisp.org>.
38026
38027 2008-10-23  Bruno Haible  <bruno@clisp.org>
38028
38029         Define a dummy SA_NODEFER macro on Interix.
38030         * lib/signal.in.h (SA_NODEFER): Define fallback.
38031         Reported by Aleksey Cheusov <cheusov@tut.by> via
38032         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38033
38034 2008-10-23  Bruno Haible  <bruno@clisp.org>
38035
38036         * modules/freadahead (License): Change to LGPLv2+.
38037         Suggested by Simon Josefsson.
38038
38039 2008-10-23  Jim Meyering  <meyering@redhat.com>
38040
38041         random_r: new module
38042         * modules/random_r: New file.
38043         * m4/random_r.m4: New file.
38044         * lib/random_r.c: New file, from glibc.
38045         * modules/random_r-tests: New file.
38046         * tests/test-random_r.c: New file.
38047         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38048          Declare.
38049         (RAND_MAX): Define.
38050         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38051         * modules/stdlib: Substitute them, too.
38052         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38053         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38054         * doc/glibc-functions/random_r.texi: Likewise.
38055         * doc/glibc-functions/setstate_r.texi: Likewise.
38056         * doc/glibc-functions/srandom_r.texi: Likewise.
38057         * config/srclist.txt: Mention it.
38058
38059 2008-10-23  David Lutterkort  <lutter@redhat.com>
38060
38061         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38062         link requirement
38063
38064 2008-10-23  Jim Meyering  <meyering@redhat.com>
38065
38066         selinux-h: mark parameters of stub functions as intentionally unused
38067         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38068         * lib/se-context.in.h: Likewise.
38069
38070 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38071
38072         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38073
38074 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38075
38076         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38077
38078 2008-10-22  Eric Blake  <ebb9@byu.net>
38079
38080         glthread/thread: avoid compiler warning
38081         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38082         Add unreachable abort to silence compiler.
38083
38084 2008-10-22  Eric Blake  <ebb9@byu.net>
38085
38086         netdb: also supply struct addrinfo for cygwin 1.5.x
38087         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38088         older cygwin.
38089         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38090         cygwin.
38091         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38092
38093 2008-10-22  Bruno Haible  <bruno@clisp.org>
38094
38095         * users.txt: Update entry about pspp.
38096
38097 2008-10-21  Bruno Haible  <bruno@clisp.org>
38098
38099         Simplification.
38100         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38101         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38102
38103         Simplification.
38104         * lib/ioctl.c (ioctl): Don't undefine.
38105         * lib/socket.c (socket): Don't undefine.
38106
38107         Remove unused module indicator macros.
38108         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38109         GNULIB_$1 as a C macro.
38110
38111         * doc/posix-functions/close.texi: Undo last change.
38112         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38113         Windows platforms.
38114
38115 2008-10-21  Bruno Haible  <bruno@clisp.org>
38116
38117         Add gethostname() declaration to <unistd.h>.
38118         * lib/unistd.in.h (gethostname): New declaration.
38119         * lib/gethostname.c: Include <unistd.h>.
38120         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38121         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38123         and HAVE_GETHOSTNAME.
38124         * modules/gethostname (Depends-on): Add unistd.
38125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38126         (Include): Specify <unistd.h>.
38127         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38128         HAVE_GETHOSTNAME.
38129         * tests/test-gethostname.c: Include <unistd.h> first.
38130
38131 2008-10-21  Bruno Haible  <bruno@clisp.org>
38132
38133         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38134         * modules/select-tests (Depends-on): Likewise.
38135         Reported by Simon Josefsson.
38136
38137 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38138
38139         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38140         * lib/accept.c: New file, based on winsock.c.
38141         * lib/bind.c: New file, based on winsock.c.
38142         * lib/connect.c: New file, based on winsock.c.
38143         * lib/getpeername.c: New file, based on winsock.c.
38144         * lib/getsockname.c: New file, based on winsock.c.
38145         * lib/getsockopt.c: New file, based on winsock.c.
38146         * lib/ioctl.c: New file, based on winsock.c.
38147         * lib/listen.c: New file, based on winsock.c.
38148         * lib/recv.c: New file, based on winsock.c.
38149         * lib/recvfrom.c: New file, based on winsock.c.
38150         * lib/send.c: New file, based on winsock.c.
38151         * lib/sendto.c: New file, based on winsock.c.
38152         * lib/setsockopt.c: New file, based on winsock.c.
38153         * lib/shutdown.c: New file, based on winsock.c.
38154         * lib/socket.c: New file, based on winsock.c.
38155         * lib/w32sock.h: New file, based on winsock.c.
38156         * lib/winsock.c: Remove file.
38157         * modules/accept: Likewise.
38158         * modules/bind: Likewise.
38159         * modules/connect: Likewise.
38160         * modules/getpeername: Likewise.
38161         * modules/getsockname: Likewise.
38162         * modules/getsockopt: Likewise.
38163         * modules/ioctl: Likewise.
38164         * modules/listen: Likewise.
38165         * modules/recv: Likewise.
38166         * modules/recvfrom: Likewise.
38167         * modules/send: Likewise.
38168         * modules/sendto: Likewise.
38169         * modules/setsockopt: Likewise.
38170         * modules/shutdown: Likewise.
38171         * modules/socket: Use socket.c instead of winsock.c.
38172         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38173         * doc/posix-functions/accept.texi: Doc fix.
38174         * doc/posix-functions/bind.texi: Doc fix.
38175         * doc/posix-functions/close.texi: Doc fix.
38176         * doc/posix-functions/connect.texi: Doc fix.
38177         * doc/posix-functions/getpeername.texi: Doc fix.
38178         * doc/posix-functions/getsockname.texi: Doc fix.
38179         * doc/posix-functions/getsockopt.texi: Doc fix.
38180         * doc/posix-functions/ioctl.texi: Doc fix.
38181         * doc/posix-functions/listen.texi: Doc fix.
38182         * doc/posix-functions/recv.texi: Doc fix.
38183         * doc/posix-functions/recvfrom.texi: Doc fix.
38184         * doc/posix-functions/send.texi: Doc fix.
38185         * doc/posix-functions/sendto.texi: Doc fix.
38186         * doc/posix-functions/setsockopt.texi: Doc fix.
38187         * doc/posix-functions/shutdown.texi: Doc fix.
38188         * doc/posix-functions/socket.texi: Doc fix.
38189
38190 2008-10-20  Bruno Haible  <bruno@clisp.org>
38191
38192         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38193         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38194         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38195         as an alias for SIGABRT.
38196         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38197         (sigaction): Map it to SIGABRT.
38198         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38199
38200 2008-10-20  Bruno Haible  <bruno@clisp.org>
38201
38202         * lib/fts.c: Don't include lstat.h.
38203         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38204
38205         Move the lstat() declaration to <sys/stat.h>.
38206         * lib/lstat.h: Remove file.
38207         * lib/sys_stat.in.h: Add special invocation convention.
38208         (lstat): New declaration.
38209         * lib/lstat.c (orig_lstat): New function.
38210         (rpl_lstat): Use orig_lstat instead of lstat.
38211         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38212         AC_C_INLINE. Set REPLACE_LSTAT.
38213         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38214         and REPLACE_LSTAT.
38215         * modules/lstat (Files): Remove lib/lstat.h.
38216         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38217         (Include): Specify <sys/stat.h> instead of lstat.h.
38218         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38219         REPLACE_LSTAT.
38220         * NEWS: Mention the change.
38221
38222 2008-10-20  Bruno Haible  <bruno@clisp.org>
38223
38224         * modules/posix_spawn-tests: New file.
38225         * tests/test-posix_spawn3.c: New file.
38226
38227 2008-10-20  Bruno Haible  <bruno@clisp.org>
38228
38229         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38230         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38231         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38232         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38233         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38234
38235 2008-10-20  Bruno Haible  <bruno@clisp.org>
38236
38237         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38238         of posix_spawn on AIX 5.3.
38239
38240 2008-10-20  Bruno Haible  <bruno@clisp.org>
38241
38242         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38243
38244 2008-10-20  Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38247         of AC_LANG_PROGRAM.
38248
38249 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38250
38251         * lib/netdb.in.h: Don't define GNU specific constants until they
38252         are supported or needed.  Reported by Bruno Haible
38253         <bruno@clisp.org>.
38254
38255 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38256
38257         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38258
38259 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38260
38261         * lib/getaddrinfo.h: Remove file.
38262         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38263         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38264         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38265         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38266         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38267         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38268         * tests/test-getaddrinfo.c: Likewise.
38269         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38270         * NEWS: Mention change.
38271
38272 2008-10-19  Bruno Haible  <bruno@clisp.org>
38273
38274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38275
38276 2008-10-19  Bruno Haible  <bruno@clisp.org>
38277
38278         * lib/wait-process.c: Include simply <sys/wait.h>.
38279         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38280         WIFSTOPPED): Remove fallback definitions.
38281         * modules/wait-process (Depends-on): Add sys_wait.
38282
38283         New module 'sys_wait'.
38284         * modules/sys_wait: New file.
38285         * lib/sys_wait.in.h: New file, partially copied from
38286         lib/wait-process.c.
38287         * m4/sys_wait_h.m4: New file.
38288         * doc/posix-headers/sys_wait.texi: Mention the new module.
38289
38290 2008-10-19  Bruno Haible  <bruno@clisp.org>
38291
38292         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38293
38294 2008-10-19  Bruno Haible  <bruno@clisp.org>
38295
38296         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38297         * lib/wait-process.c (WAIT_T): Remove type.
38298         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38299         (wait_subprocess): Update.
38300
38301 2008-10-19  Bruno Haible  <bruno@clisp.org>
38302
38303         New module 'atoll'.
38304         * modules/atoll: New file.
38305         * lib/stdlib.in.h (atoll): New declaration.
38306         * lib/atoll.c: New file, from glibc with modifications.
38307         * m4/atoll.m4: New file.
38308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38309         HAVE_ATOLL.
38310         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38311         * doc/posix-functions/atoll.texi: Mention the new module.
38312
38313 2008-10-19  Bruno Haible  <bruno@clisp.org>
38314
38315         Add strtoull() declaration to <stdlib.h>.
38316         * lib/stdlib.in.h (strtoull): New declaration.
38317         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38318         Set HAVE_STRTOULL.
38319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38320         HAVE_STRTOULL.
38321         * modules/strtoull (Depends-on): Add stdlib.
38322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38323         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38324         HAVE_STRTOULL.
38325
38326 2008-10-19  Bruno Haible  <bruno@clisp.org>
38327
38328         Add strtoll() declaration to <stdlib.h>.
38329         * lib/stdlib.in.h (strtoll): New declaration.
38330         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38331         Set HAVE_STRTOLL.
38332         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38333         HAVE_STRTOLL.
38334         * modules/strtoll (Depends-on): Add stdlib.
38335         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38336         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38337
38338 2008-10-19  Bruno Haible  <bruno@clisp.org>
38339
38340         * modules/bcopy (Depends-on): Add strings.
38341         (Include): Specify <strings.h>.
38342
38343 2008-10-19  Bruno Haible  <bruno@clisp.org>
38344
38345         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38346
38347 2008-10-19  Bruno Haible  <bruno@clisp.org>
38348
38349         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38350         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38351         mingw.
38352
38353 2008-10-19  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/atanl.c: Don't include isnanl.h.
38356         * lib/cosl.c: Likewise.
38357         * lib/ldexpl.c: Likewise.
38358         * lib/logl.c: Likewise.
38359         * lib/sinl.c: Likewise.
38360         * lib/sqrtl.c: Likewise.
38361         * lib/tanl.c: Likewise.
38362
38363         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38364         * lib/isnanf.h: Remove file.
38365         * lib/isnand.h: Remove file.
38366         * lib/isnanl.h: Remove file.
38367         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38368         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38369         macros.
38370         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38371         HAVE_ISNANF, don't define it as a C macro.
38372         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38373         HAVE_ISNAND, don't define it as a C macro.
38374         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38375         HAVE_ISNANL, don't define it as a C macro.
38376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38377         HAVE_ISNAN[FDL].
38378         * modules/isnanf (Files): Remove lib/isnanf.h.
38379         (Depends-on): Add math.
38380         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38381         (Include): Specify <math.h> instead of isnanf.h.
38382         * modules/isnand (Files): Remove lib/isnand.h.
38383         (Depends-on): Add math.
38384         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38385         (Include): Specify <math.h> instead of isnand.h.
38386         * modules/isnanl (Files): Remove lib/isnanl.h.
38387         (Depends-on): Add math.
38388         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38389         (Include): Specify <math.h> instead of isnanl.h.
38390         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38391         HAVE_ISNAN[FDL].
38392         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38393         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38394         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38395         * NEWS: Mention the change.
38396
38397 2008-10-18  Bruno Haible  <bruno@clisp.org>
38398
38399         Add getusershell(), setusershell(), endusershell() declarations to
38400         <unistd.h>.
38401         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38402         declarations.
38403         * lib/getusershell.c: Include unistd.h.
38404         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38405         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38406         HAVE_GETUSERSHELL.
38407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38408         and HAVE_GETUSERSHELL.
38409         * modules/getusershell (Depends-on): Add unistd, extensions.
38410         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38411         (Include): Specify <unistd.h>.
38412         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38413         HAVE_GETUSERSHELL.
38414
38415 2008-10-18  Bruno Haible  <bruno@clisp.org>
38416
38417         Add a getloadavg() declaration to <stdlib.h>.
38418         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38419         getloadavg declaration.
38420         (getloadavg): New declaration.
38421         * lib/getloadavg.c: Include <stdlib.h> first.
38422         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38423         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38424         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38426         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38427         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38428         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38429         (Include): Specify <stdlib.h>.
38430         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38431         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38432
38433 2008-10-18  Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/dirchownmod.c: Don't include lchmod.h.
38436
38437         Move the lchmod() declaration to <sys/stat.h>.
38438         * lib/lchmod.h: Remove file.
38439         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38440         (lchmod): New declaration, moved here from lib/lchown.h.
38441         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38442         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38443         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38444         and HAVE_LCHMOD.
38445         * modules/lchmod (Files): Remove lib/lchmod.h.
38446         (Depends-on): Add sys_stat, extensions.
38447         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38448         (Include): Specify <sys/stat.h> instead of lchmod.h.
38449         * modules/sys_stat (Depends-on): Add link-warning.
38450         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38451         definition of GL_LINK_WARNING.
38452         * NEWS: Mention the change.
38453
38454 2008-10-18  Bruno Haible  <bruno@clisp.org>
38455
38456         * lib/fchdir.c: Don't include dirfd.h.
38457         * lib/fts.c: Likewise.
38458         * lib/getcwd.c: Likewise.
38459         * lib/glob.c: Likewise.
38460
38461         Move the dirfd() declaration to <dirent.h>.
38462         * lib/dirfd.h: Remove file.
38463         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38464         (dirfd): New declaration.
38465         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38466         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38467         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38468         HAVE_DECL_DIRFD.
38469         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38470         HAVE_DECL_DIRFD.
38471         * modules/dirfd (Files): Remove lib/dirfd.h.
38472         (Depends-on): Add dirent, extensions.
38473         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38474         (Include): Specify <dirent.h> instead of dirfd.h.
38475         * modules/dirent (Depends-on): Add link-warning.
38476         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38477         definition of GL_LINK_WARNING.
38478         * NEWS: Mention the change.
38479
38480 2008-10-18  Bruno Haible  <bruno@clisp.org>
38481
38482         Move the euidaccess() declaration to <unistd.h>.
38483         * lib/euidaccess.h: Remove file.
38484         * lib/unistd.in.h (euidaccess): New declaration.
38485         * lib/euidaccess.c: Don't include euidaccess.h.
38486         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38487         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38489         and HAVE_EUIDACCESS.
38490         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38491         (Depends-on): Add unistd.
38492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38493         (Include): Specify <unistd.h> instead of euidaccess.h.
38494         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38495         HAVE_EUIDACCESS.
38496         * NEWS: Mention the change.
38497
38498 2008-10-18  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38501
38502         Move the getdomainname() declaration to <unistd.h>.
38503         * lib/getdomainname.h: Remove file.
38504         * lib/unistd.in.h (getdomainname): New declaration.
38505         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38506         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38507         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38508         HAVE_GETDOMAINNAME.
38509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38510         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38511         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38512         (Depends-on): Add unistd, extensions.
38513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38514         (Includes): Specify <unistd.h> instead of getdomainname.h.
38515         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38516         HAVE_GETDOMAINNAME.
38517         * NEWS: Mention the change.
38518
38519 2008-10-18  Bruno Haible  <bruno@clisp.org>
38520
38521         * modules/dirent: New file.
38522         * m4/dirent_h.m4: New file.
38523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38524         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38525         * modules/fchdir (Files): Remove lib/dirent.in.h.
38526         (Depends-on): Add dirent.
38527         (Makefile.am): Move rules to modules/dirent.
38528         * doc/posix-headers/dirent.texi: Mention the new module.
38529
38530 2008-10-18  Bruno Haible  <bruno@clisp.org>
38531
38532         Avoid -Wunused-parameter warnings in public gnulib header files.
38533         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38534         macro.
38535         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38536
38537 2008-10-18  Bruno Haible  <bruno@clisp.org>
38538
38539         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38540         * doc/glibc-functions/error.texi: Mention the module 'error'.
38541         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38542         * doc/glibc-functions/getdomainname.texi: Mention the module
38543         'getdomainname'.
38544         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38545         * doc/glibc-functions/getpagesize.texi: Mention the module
38546         'getpagesize'.
38547         * doc/glibc-functions/getusershell.texi: Mention the module
38548         'getusershell'.
38549         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38550         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38551         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38552         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38553         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38554         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38555         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38556         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38557         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38558         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38559         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38560         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38561         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38562         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38563
38564 2008-10-17  Bruno Haible  <bruno@clisp.org>
38565
38566         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38567         HP-UX and IRIX, use -0.0L.
38568         * tests/test-ceill.c (minus_zero): Likewise.
38569         * tests/test-floorl.c (minus_zero): Likewise.
38570         * tests/test-frexpl.c (minus_zero): Likewise.
38571         * tests/test-isnan.c (minus_zerol): Likewise.
38572         * tests/test-isnanl.h (minus_zero): Likewise.
38573         * tests/test-ldexpl.c (minus_zero): Likewise.
38574         * tests/test-roundl.c (minus_zero): Likewise.
38575         * tests/test-signbit.c (minus_zerol): Likewise.
38576         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38577         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38578         * tests/test-truncl.c (minus_zero): Likewise.
38579         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38580         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38581         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38582         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38583
38584 2008-10-17  Bruno Haible  <bruno@clisp.org>
38585
38586         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38587         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38588         that it gets activated only for gcc >= 3.0.
38589         * lib/dirent.in.h: Likewise.
38590         * lib/errno.in.h: Likewise.
38591         * lib/fcntl.in.h: Likewise.
38592         * lib/float.in.h: Likewise.
38593         * lib/iconv.in.h: Likewise.
38594         * lib/inttypes.in.h: Likewise.
38595         * lib/locale.in.h: Likewise.
38596         * lib/math.in.h: Likewise.
38597         * lib/netdb.in.h: Likewise.
38598         * lib/netinet_in.in.h: Likewise.
38599         * lib/search.in.h: Likewise.
38600         * lib/signal.in.h: Likewise.
38601         * lib/spawn.in.h: Likewise.
38602         * lib/stdarg.in.h: Likewise.
38603         * lib/stdint.in.h: Likewise.
38604         * lib/stdio.in.h: Likewise.
38605         * lib/stdlib.in.h: Likewise.
38606         * lib/string.in.h: Likewise.
38607         * lib/strings.in.h: Likewise.
38608         * lib/sys_file.in.h: Likewise.
38609         * lib/sys_ioctl.in.h: Likewise.
38610         * lib/sys_select.in.h: Likewise.
38611         * lib/sys_socket.in.h: Likewise.
38612         * lib/sys_stat.in.h: Likewise.
38613         * lib/sys_time.in.h: Likewise.
38614         * lib/sysexits.in.h: Likewise.
38615         * lib/time.in.h: Likewise.
38616         * lib/unistd.in.h: Likewise.
38617         * lib/wchar.in.h: Likewise.
38618         * lib/wctype.in.h: Likewise.
38619         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38620
38621 2008-10-17  Jim Meyering  <meyering@redhat.com>
38622
38623         ignore-value: don't depend on inline module
38624         * modules/ignore-value (Depends-on): Remove 'inline'.
38625         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38626         Suggestion from Bruno Haible.
38627
38628 2008-10-17  Bruno Haible  <bruno@clisp.org>
38629
38630         New implementation of condition variables for Win32.
38631         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38632         (gl_linked_waitqueue_t): New type.
38633         (gl_cond_t): Use it.
38634         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38635         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38636         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38637         (glthread_cond_init_func, glthread_cond_wait_func,
38638         glthread_cond_timedwait_func, glthread_cond_signal_func,
38639         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38640         Reimplemented on the basis of gl_linked_waitqueue_t.
38641         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38642         gl_waitqueue_t.
38643         (gl_rwlock_t): Update.
38644         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38645
38646 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38647
38648         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38649         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38650
38651 2008-10-17  Jim Meyering  <meyering@redhat.com>
38652
38653         ignore-value: new module
38654         * modules/ignore-value: New file.
38655         * lib/ignore-value.h: New file.
38656         * MODULES.html.sh (Compiler warning management): New section,
38657         just for this module.  More to come.
38658
38659 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38660
38661         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38662         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38663         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38664
38665 2008-10-16  Jim Meyering  <meyering@redhat.com>
38666
38667         openat-die.c: avoid 'no previous prototype' warning
38668         * lib/openat-die.c: Include "openat.h".
38669         Reported by Reuben Thomas <rrt@sc3d.org>.
38670
38671 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38672
38673         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38674         * lib/netdb.in.h: Fix typo.
38675         Reported by Bruno Haible  <bruno@clisp.org>
38676
38677         * lib/netdb.in.h: Include sys/socket.h for platforms without
38678         netdb.h, to get structures like hostent on MinGW.
38679         * modules/netdb (Depends-on): Add sys_socket.
38680
38681 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38682
38683         * modules/netdb, modules/netdb-tests: New file.
38684         * m4/netdb_h.m4: New file.
38685         * lib/netdb.in.h: Add, currently just an empty file pending
38686         definitions.
38687         * tests/test-netdb.c: New file.
38688         * doc/posix-headers/netdb.texi: Mention that we replace it if
38689         needed.
38690         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38691         netdb.
38692
38693 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38694
38695         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38696         with code.
38697
38698 2008-10-13  Bruno Haible  <bruno@clisp.org>
38699
38700         * lib/glthread/cond.c (glthread_cond_wait_func,
38701         glthread_cond_timedwait_func): Add a comment.
38702
38703 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38704
38705         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38706         * tests/test-select.c: Likewise,
38707
38708 2008-10-13  Bruno Haible  <bruno@clisp.org>
38709
38710         * lib/glthread/cond.c (glthread_cond_wait_func,
38711         glthread_cond_timedwait_func): Fix variable name.
38712         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38713
38714 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38715
38716         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38718         struct sockaddr.sa_len.
38719         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38720
38721 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38722
38723         * build-aux/pmccabe2html: Add css and css_url parameters.
38724
38725 2008-10-12  Bruno Haible  <bruno@clisp.org>
38726
38727         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38728         calling aclx_get.
38729         Reported by Rainer Tammer <tammer@tammer.net>.
38730
38731 2008-10-12  Bruno Haible  <bruno@clisp.org>
38732
38733         Use msvcrt aware primitives for creation/termination of Win32 threads.
38734         * lib/glthread/thread.c: Include <process.h>.
38735         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38736         (wrapper_func): Update signature.
38737         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38738
38739 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38740             Bruno Haible  <bruno@clisp.org>
38741
38742         Provide a Win32 implementation of the 'cond' module.
38743         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38744         * lib/glthread/cond.c (glthread_cond_init_func,
38745         glthread_cond_wait_func, glthread_cond_timedwait_func,
38746         glthread_cond_signal_func, glthread_cond_broadcast_func,
38747         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38748         * modules/cond (Dependencies): Add gettimeofday.
38749
38750 2008-10-11  Bruno Haible  <bruno@clisp.org>
38751
38752         Make sleep work on older versions of mingw.
38753         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38754         only whether it exists.
38755         * doc/posix-functions/sleep.texi: Mention the problem with older
38756         versions of mingw.
38757
38758 2008-10-11  Bruno Haible  <bruno@clisp.org>
38759
38760         New module 'shutdown'.
38761         * modules/shutdown: New file.
38762         * lib/sys_socket.in.h (shutdown): New declaration.
38763         * lib/winsock.c (shutdown): New function.
38764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38765         GNULIB_SHUTDOWN.
38766         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38767         * doc/posix-functions/shutdown.texi: Document the new module.
38768
38769 2008-10-11  Jim Meyering  <meyering@redhat.com>
38770
38771         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38772
38773 2008-10-11  Bruno Haible  <bruno@clisp.org>
38774
38775         New module 'fclose'.
38776         * modules/fclose: New file.
38777         * lib/stdio.in.h (fclose): New declaration.
38778         * lib/fclose.c: New file.
38779         * m4/fclose.m4: New file.
38780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38781         REPLACE_FCLOSE.
38782         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38783         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38784         REPLACE_FCLOSE.
38785         * modules/close (Depends-on): fclose.
38786         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38787
38788 2008-10-11  Bruno Haible  <bruno@clisp.org>
38789
38790         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38791         set errno and don't call _close.
38792
38793 2008-10-10  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38796         ACL, not afterwards. Fixes test failure on Cygwin.
38797
38798 2008-10-09  Ben Pfaff  <blp@gnu.org>
38799
38800         * build-aux/announce-gen: Fix gnulib version related part of usage
38801         message.  Die with a useful error message if no tarballs are
38802         found.
38803
38804 2008-10-10  Jim Meyering  <meyering@redhat.com>
38805
38806         bootstrap: use git's --depth=N option only if it's supported
38807         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38808         recognize the --depth option.  Reported by Pádraig Brady.
38809
38810 2008-10-09  Bruno Haible  <bruno@clisp.org>
38811
38812         New module 'ioctl'.
38813         * modules/ioctl: New file.
38814         * lib/sys_socket.in.h (ioctl): Remove declaration.
38815         * lib/winsock.c: Include <sys/ioctl.h>.
38816         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38817         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38818         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38819         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38820         * doc/posix-functions/ioctl.texi: Mention the new module.
38821
38822 2008-10-09  Bruno Haible  <bruno@clisp.org>
38823
38824         New module 'sys_ioctl'.
38825         * lib/sys_ioctl.in.h: New file.
38826         * m4/sys_ioctl_h.m4: New file.
38827         * modules/sys_ioctl: New file.
38828         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38829
38830 2008-10-09  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38833         * lib/winsock.c: Include <stdarg.h>.
38834         (rpl_ioctl): Change to second argument 'int' and then varargs.
38835
38836 2008-10-09  Bruno Haible  <bruno@clisp.org>
38837
38838         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38839         when the sys_socket module is present and the system has <winsock2.h>.
38840
38841 2008-10-09  Bruno Haible  <bruno@clisp.org>
38842
38843         * doc/posix-functions/close.texi: Mention module 'close' instead of
38844         module 'sys_socket'.
38845
38846 2008-10-09  Bruno Haible  <bruno@clisp.org>
38847
38848         * doc/glibc-headers/sys_ioctl.texi: New file.
38849         * doc/gnulib.texi: Include it.
38850
38851 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38852             Bruno Haible  <bruno@clisp.org>
38853
38854         Combine the two replacements of 'close'.
38855         * lib/sys_socket.in.h (close): Define to a reminder to include
38856         <unistd.h>.
38857         (_gl_close_fd_maybe_socket): New declaration.
38858         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38859         * lib/winsock.c (close): Remove undefinition.
38860         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38861         needed for the gnulib module 'close'.
38862         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38863         define to an error symbol or to a warning, if suitable.
38864         * lib/close.c: Include <sys/socket.h>.
38865         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38866         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38867         UNISTD_H_HAVE_WINSOCK2_H.
38868         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38870         UNISTD_H_HAVE_WINSOCK2_H.
38871         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38872         (configure.ac): Set a module indicator.
38873         (Makefile.am): Substitute GNULIB_CLOSE.
38874         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38875         * modules/poll-tests (Depends-on): Add close.
38876         * modules/select-tests (Depends-on): Likewise.
38877
38878 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38879             Bruno Haible  <bruno@clisp.org>
38880
38881         New module 'close'.
38882         * modules/close: New file.
38883         * lib/unistd.in.h (close): Move declaration out of the
38884         FCHDIR_REPLACEMENT scope.
38885         (_gl_unregister_fd): New declaration.
38886         * lib/close.c: New file.
38887         * lib/fchdir.c (rpl_close): Remove function.
38888         * m4/close.m4: New file.
38889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38890         close.
38891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38892         REPLACE_CLOSE.
38893         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38894         REPLACE_CLOSE.
38895         * modules/fchdir (Depends-on): Add close.
38896
38897 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38898             Bruno Haible  <bruno@clisp.org>
38899
38900         * lib/fcntl.in.h (open): Simplify conditionals.
38901         (_gl_register_fd): New declaration.
38902         * lib/fchdir.c (rpl_open): Remove function.
38903         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38904         also.
38905         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38906         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38907         open.
38908
38909 2008-10-09  Jim Meyering  <meyering@redhat.com>
38910
38911         GNUmakefile: use the more name-space-friendly "_version"
38912         * top/GNUmakefile (_dummy): Update.
38913         (_version): Rename from "version".
38914
38915 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38916             Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38919         rpl_close.
38920         (_gl_register_fd): New function, extracted from rpl_open.
38921         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38922         (rpl_open, rpl_opendir): Use _gl_register_fd.
38923
38924 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38925
38926         Fix organization of 'open' replacement.
38927         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38928         (gl_FUNC_OPEN): Use it.
38929         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38930
38931 2008-10-08  Bruno Haible  <bruno@clisp.org>
38932
38933         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38934
38935 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38936
38937         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38938         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38939         listen).
38940
38941 2008-10-08  Eric Blake  <ebb9@byu.net>
38942
38943         GNUmakefile: add 'make version' target
38944         * top/GNUmakefile (_curr-ver): Split version update rules...
38945         (version): ...into a target.
38946
38947 2008-10-07  Bruno Haible  <bruno@clisp.org>
38948
38949         Use a more portable replacement expression for -0.0L.
38950         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38951         instead of -0.0L. Fix m4 quotation.
38952
38953         * tests/test-signbit.c: Include <float.h>.
38954         (minus_zero): New variable.
38955         (test_signbitl): Use minus_zero instead of -zero.
38956         * modules/signbit-tests (Depends-on): Add float.
38957
38958         * tests/test-ceill.c: Include <float.h>.
38959         (zero): Remove variable.
38960         (minus_zero): New variable.
38961         (main): Use minus_zero instead of -zero.
38962         * modules/ceill-tests (Depends-on): Add float.
38963
38964         * tests/test-floorl.c: Include <float.h>.
38965         (zero): Remove variable.
38966         (minus_zero): New variable.
38967         (main): Use minus_zero instead of -zero.
38968         * modules/floorl-tests (Depends-on): Add float.
38969
38970         * tests/test-roundl.c: Include <float.h>.
38971         (zero): Remove variable.
38972         (minus_zero): New variable.
38973         (main): Use minus_zero instead of -zero.
38974         * modules/roundl-tests (Depends-on): Add float.
38975
38976         * tests/test-truncl.c: Include <float.h>.
38977         (zero): Remove variable.
38978         (minus_zero): New variable.
38979         (main): Use minus_zero instead of -zero.
38980         * modules/truncl-tests (Depends-on): Add float.
38981
38982         * tests/test-frexpl.c (zero): Remove variable.
38983         (minus_zero): New variable.
38984         (main): Use minus_zero instead of -zero.
38985         * modules/frexpl-tests (Depends-on): Add float.
38986
38987         * tests/test-isnan.c (zerol): Remove variable.
38988         (minus_zerol): New variable.
38989         (test_long_double): Use minus_zerol instead of -zerol.
38990         * modules/isnan-tests (Depends-on): Add float.
38991
38992         * tests/test-isnanl.h (zero): Remove variable.
38993         (minus_zero): New variable.
38994         (main): Use minus_zero instead of -zero.
38995         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38996         * modules/isnanl-tests (Depends-on): Add float.
38997
38998         * tests/test-ldexpl.c (zero): Remove variable.
38999         (minus_zero): New variable.
39000         (main): Use minus_zero instead of -zero.
39001         * modules/ldexpl-tests (Depends-on): Add float.
39002
39003         * tests/test-snprintf-posix.h (zerol): Remove variable.
39004         (minus_zerol): New variable.
39005         (test_function): Use minus_zerol instead of -zerol.
39006         * modules/snprintf-posix-tests (Depends-on): Add float.
39007         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39008
39009         * tests/test-sprintf-posix.h (zerol): Remove variable.
39010         (minus_zerol): New variable.
39011         (test_function): Use minus_zerol instead of -zerol.
39012         * modules/sprintf-posix-tests (Depends-on): Add float.
39013         * modules/vsprintf-posix-tests (Depends-on): Add float.
39014
39015         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39016         (minus_zerol): New variable.
39017         (test_function): Use minus_zerol instead of -zerol.
39018         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39019
39020         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39021         (minus_zerol): New variable.
39022         (test_function): Use minus_zerol instead of -zerol.
39023         * modules/vasprintf-posix-tests (Depends-on): Add float.
39024
39025 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39026
39027         * MODULES.html.sh (Support for building documentation): Mention
39028         pmccabe2html.  Sort entries.
39029
39030         Add pmccabe2html module, from gnupdf.
39031         * build-aux/pmccabe.css: New file.
39032         * build-aux/pmccabe2html: New file.
39033         * m4/pmccabe2html.m4: New file.
39034         * modules/pmccabe2html: New file.
39035
39036 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39037
39038         flock: new module
39039         * MODULES.html.sh: Add to list of modules.
39040         * lib/flock.c: flock implementation for Windows and Unix systems
39041         which have fcntl.
39042         * doc/glibc-functions/flock.texi: Update documentation.
39043         * lib/sys_file.in.h: <sys/file.h> header file.
39044         * m4/flock.m4: M4 macros.
39045         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39046         * modules/flock: flock module.
39047         * modules/flock-tests: flock tests module.
39048         * modules/sys_file: sys/file.h module.
39049         * tests/test-flock.c: test suite for flock.
39050
39051 2008-10-06  Jim Meyering  <meyering@redhat.com>
39052
39053         bootstrap: check for LT_INIT more portably still ;-)
39054         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39055         Spotted by Bruno Haible.
39056
39057 2008-10-06  Eric Blake  <ebb9@byu.net>
39058
39059         test-signbit: avoid tripping Irix cc bug on -0.0L
39060         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39061         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39062         entire testsuite consistent and avoids an Irix 6.2 bug.
39063
39064 2008-10-05  Bruno Haible  <bruno@clisp.org>
39065             Jim Meyering  <jim@meyering.net>
39066
39067         Add an option for ignoring EPIPE during close_stdout.
39068         * lib/closeout.h: Include <stdbool.h>.
39069         (close_stdout_set_ignore_EPIPE): New declaration.
39070         * lib/closeout.c: Include <stdbool.h>.
39071         (ignore_EPIPE): New variable.
39072         (close_stdout_set_ignore_EPIPE): New function.
39073         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39074         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39075         failure.
39076         * modules/closeout (Depends-on): Add stdbool.
39077
39078 2008-10-05  Bruno Haible  <bruno@clisp.org>
39079
39080         * modules/accept: New file.
39081         * modules/bind: New file.
39082         * modules/connect: New file.
39083         * modules/getpeername: New file.
39084         * modules/getsockname: New file.
39085         * modules/getsockopt: New file.
39086         * modules/listen: New file.
39087         * modules/recv: New file.
39088         * modules/recvfrom: New file.
39089         * modules/send: New file.
39090         * modules/sendto: New file.
39091         * modules/setsockopt: New file.
39092         * modules/socket: New file.
39093         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39094         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39095         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39096         the particular module is requested. Add a link warning when the
39097         particular module is not requested.
39098         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39099         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39100         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39101         the particular module is requested.
39102         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39103         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39104         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39105         * modules/sys_socket (Depends-on): Add link-warning.
39106         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39107         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39108         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39109         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39110         GL_LINK_WARNING.
39111         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39112         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39113         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39114         * doc/posix-functions/getpeername.texi: Mention the new module
39115         'getpeername'.
39116         * doc/posix-functions/getsockname.texi: Mention the new module
39117         'getsockname'.
39118         * doc/posix-functions/getsockopt.texi: Mention the new module
39119         'getsockopt'.
39120         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39121         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39122         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39123         * doc/posix-functions/send.texi: Mention the new module 'send'.
39124         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39125         * doc/posix-functions/setsockopt.texi: Mention the new module
39126         'setsockopt'.
39127         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39128         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39129         listen, connect, accept.
39130         * modules/select-tests (Depends-on): Likewise.
39131
39132 2008-10-05  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/winsock.c (strerror): Remove unused #undef.
39135         (rpl_close): Remove unused local variable.
39136
39137         * modules/sys_socket (Depends-on); Add errno.
39138
39139 2008-10-05  Bruno Haible  <bruno@clisp.org>
39140
39141         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39142         (select): Add a link warning when the 'select' module is not used.
39143         * modules/sys_select (Depends-on): Add link-warning.
39144         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39145         Suggested by Paolo Bonzini.
39146
39147 2008-10-05  Jim Meyering  <meyering@redhat.com>
39148
39149         bootstrap: check for LT_INIT more portably
39150         * build-aux/bootstrap: Avoid using grep -E, since it's not
39151         portable enough.  Suggestion from Bruno Haible.
39152
39153 2008-10-05  Bruno Haible  <bruno@clisp.org>
39154
39155         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39156         as being fixed by gnulib.
39157
39158 2008-10-05  Bruno Haible  <bruno@clisp.org>
39159
39160         * modules/select-tests: New file, mostly copied from
39161         modules/sys_select-tests.
39162         * tests/test-select.c: New file, mostly copied from
39163         tests/test-sys_select.c.
39164         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39165         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39166         (Makefile.am): Remove test_sys_select_LDADD.
39167
39168         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39169         to an undefined symbol, for an error message.
39170         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39171         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39172         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39173         winsock-select.c here.
39174         * modules/sys_select (Files): Remove lib/winsock-select.c.
39175         (Depends-on): Remove alloca.
39176         (Makefile.am): Substitute GNULIB_SELECT.
39177         * modules/select: New file.
39178         * doc/posix-functions/select.texi: Update.
39179
39180 2008-10-05  Bruno Haible  <bruno@clisp.org>
39181
39182         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39183         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39184         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39185         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39186         getdtablesize.
39187         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39188         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39189
39190 2008-10-05  Bruno Haible  <bruno@clisp.org>
39191
39192         * modules/getdtablesize-tests: New file.
39193         * tests/test-getdtablesize.c: New file.
39194
39195         New module 'getdtablesize'.
39196         * lib/unistd.in.h (getdtablesize): New declaration.
39197         * lib/getdtablesize.c: New file.
39198         * m4/getdtablesize.m4: New file.
39199         * modules/getdtablesize: New file.
39200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39201         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39202         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39203         HAVE_GETDTABLESIZE.
39204         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39205
39206 2008-10-05  Bruno Haible  <bruno@clisp.org>
39207
39208         * modules/sched (Makefile.am): Fix typo.
39209         Reported by Simon Josefsson.
39210
39211 2008-10-05  Jim Meyering  <meyering@redhat.com>
39212
39213         bootstrap: check for LT_INIT, too
39214         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39215         are deprecated.  Suggestion from Ralf Wildenhues.
39216
39217 2008-10-05  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39220         overriding them by ours.
39221         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39222
39223 2008-10-05  Jim Meyering  <meyering@redhat.com>
39224
39225         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39226         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39227         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39228
39229 2008-10-04  Bruno Haible  <bruno@clisp.org>
39230
39231         * modules/dup2 (License): Change to LGPLv2+.
39232         * modules/sleep (License): Likewise.
39233         * modules/perror (License): Likewise.
39234         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39235         Blake.
39236         * modules/signal (License): Likewise.
39237         * modules/sigprocmask (License): Likewise.
39238         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39239         Meyering.
39240
39241 2008-10-04  Bruno Haible  <bruno@clisp.org>
39242
39243         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39244         Reported by Rainer Tammer <tammer@tammer.net>.
39245
39246 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39247             Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39250         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39251         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39252
39253 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39254
39255         filevercmp: new module
39256         * lib/filevercmp.h: New function filevercmp comparing version strings.
39257         * lib/filevercmp.c: Implementation of filevercmp function.
39258         * modules/filevercmp: Module metadata.
39259         * tests/test-filevercmp.c: Unit test for new module.
39260         * modules/filevercmp-tests: Unit test metadata.
39261         * MODULES.html.sh: Add filevercmp module.
39262
39263 2008-10-03  Bruno Haible  <bruno@clisp.org>
39264
39265         * lib/c-ctype.h: Add comment.
39266         Reported by Jim Meyering.
39267
39268 2008-10-02  Bruno Haible  <bruno@clisp.org>
39269
39270         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39271
39272 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39273
39274         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39275         name of bootstrap.conf accordingly.
39276
39277 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39278
39279         * build-aux/bootstrap: Install git-merge-changelog configuration
39280         items into .gitconfig if needed.
39281
39282 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39283
39284         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39285         git repository, and initialize/update it accordingly.
39286
39287 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39288
39289         * modules/fsync-tests: New file.
39290         * tests/test-fsync.c: New file.
39291
39292         New module 'fsync'.
39293         * lib/fsync.c: New file.
39294         * m4/fsync.m4: New file.
39295         * modules/fsync: New file.
39296         * lib/unistd.in.h (fsync): New declaration.
39297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39298         GNULIB_FSYNC and HAVE_FSYNC.
39299         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39300         * MODULES.html.sh (posix_functions): Add fsync.
39301         * doc/posix-functions/fsync.texi: Mention the new module.
39302
39303 2008-10-02  Jim Meyering  <meyering@redhat.com>
39304
39305         fts.c: sync with similar code from coreutils' remove.c
39306         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39307         Guard also with "#if defined __linux__", since for now at least,
39308         this code is Linux-kernel-specific.
39309
39310 2008-10-02  Jim Meyering  <meyering@redhat.com>
39311
39312         fts: bug fixes
39313         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39314         Include <sys/vfs.h>, not <sys/statfs.h>.
39315
39316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39317         Include <sys/vfs.h>, not <sys/statfs.h>.
39318
39319 2008-10-01  Bruno Haible  <bruno@clisp.org>
39320
39321         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39323         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39324         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39325         * doc/posix-functions/posix_spawnp.texi: Likewise.
39326         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39327         whether posix_spawn actually works.
39328         * m4/pipe.m4 (gl_PIPE): Likewise.
39329         * modules/execute (Files): Add m4/posix_spawn.m4.
39330         * modules/pipe (Files): Add m4/posix_spawn.m4.
39331         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39332
39333 2008-10-01  Jim Meyering  <meyering@redhat.com>
39334
39335         remove trailing spaces
39336         * NEWS: Likewise.
39337         * lib/poll.c (poll): Likewise.
39338         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39339         * lib/winsock.c (rpl_close): Likewise.
39340         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39341         * modules/yield: Likewise.
39342         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39343         * tests/test-sys_select.c (connect_to_socket): Likewise.
39344
39345         fts.c: adjust a new interface to be more generally useful
39346         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39347         (fts_build): Adjust caller.
39348
39349 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39350
39351         * modules/cond-tests: New file.
39352         * tests/test-cond.c: New file.
39353
39354 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39355             Bruno Haible  <bruno@clisp.org>
39356
39357         * modules/cond (Dependencies): Add errno, time.
39358         * lib/glthread/cond.h: Include <time.h>.
39359         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39360         across platforms.
39361
39362 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39363             Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39366
39367 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39368             Bruno Haible  <bruno@clisp.org>
39369
39370         * modules/tls-tests (Depends-on): Add thread, yield.
39371         (configure.ac): Remove all checks.
39372         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39373         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39374         gl_thread_self): Remove definitions. Include glthread/thread.h and
39375         glthread/yield.h instead.
39376         (test_tls): Pass an additional NULL argument to gl_thread_join.
39377
39378 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39379             Bruno Haible  <bruno@clisp.org>
39380
39381         * modules/lock-tests (Depends-on): Add thread, yield.
39382         (configure.ac): Remove all checks.
39383         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39384         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39385         gl_thread_self): Remove definitions. Include glthread/thread.h and
39386         glthread/yield.h instead.
39387         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39388         additional NULL argument to gl_thread_join.
39389
39390 2008-09-30  Bruno Haible  <bruno@clisp.org>
39391
39392         Fix the Win32 implementation of the 'thread' module.
39393         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39394         pointer type.
39395         (gl_thread_self): Invoke gl_thread_self_func.
39396         (gl_thread_self_func): New declaration.
39397         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39398         (do_init_self_key, init_self_key): New functions.
39399         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39400         Remove some fields.
39401         (running_threads, running_lock): Remove variables.
39402         (get_current_thread_handle): New function.
39403         (gl_thread_self_func, wrapper_func, glthread_create_func,
39404         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39405         simplified.
39406
39407 2008-09-30  Bruno Haible  <bruno@clisp.org>
39408
39409         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39410         files.
39411
39412 2008-09-30  Jim Meyering  <meyering@redhat.com>
39413
39414         fts.m4: correct the test for statfs.f_type
39415         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39416         when checking for statfs.f_type.
39417
39418 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39419
39420         tests: avoid some compiler warnings
39421         * tests/test-memchr.c (main): Pass NULL indirectly.
39422         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39423
39424 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39425
39426         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39427         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39428         exactly specified dayshifts.
39429         (dayshift): New rule.
39430         (rel): Add dayshift.
39431         (relative_time_table) [tomorrow, yesterday, today, now]:
39432         Use tDAY_SHIFT in place of tDAY_UNIT.
39433         * tests/test-getdate.c: Add tests for now-disallowed countable
39434         dayshifts, e.g., "4 yesterday ago".
39435
39436 2008-09-29  Bruno Haible  <bruno@clisp.org>
39437
39438         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39439         * tests/test-posix_spawn1.in.sh: Renamed from
39440         tests/test-posix_spawn.in.sh.
39441         * tests/test-posix_spawn2.c: New file.
39442         * tests/test-posix_spawn2.in.sh: New file.
39443         * modules/posix_spawnp-tests (Files): Update.
39444         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39445
39446 2008-09-29  Bruno Haible  <bruno@clisp.org>
39447
39448         Propagate effects of putenv/setenv/unsetenv to child processes.
39449         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39450         * lib/pipe.c (create_pipe): Likewise.
39451
39452 2008-09-29  Bruno Haible  <bruno@clisp.org>
39453
39454         Enable use of shell scripts as executables in mingw.
39455         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39456         run the program as a shell script.
39457         * lib/pipe.c (create_pipe): Likewise.
39458         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39459         resulting array.
39460
39461 2008-09-29  Eric Blake  <ebb9@byu.net>
39462
39463         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39464
39465 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39466
39467         * doc/posix-functions/accept.texi: Update mingw problems.
39468         * doc/posix-functions/bind.texi: Update mingw problems.
39469         * doc/posix-functions/close.texi: Update mingw problems.
39470         * doc/posix-functions/connect.texi: Update mingw problems.
39471         * doc/posix-functions/getpeername.texi: Update mingw problems.
39472         * doc/posix-functions/getsockname.texi: Update mingw problems.
39473         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39474         * doc/posix-functions/ioctl.texi: Update mingw problems.
39475         * doc/posix-functions/listen.texi: Update mingw problems.
39476         * doc/posix-functions/recv.texi: Update mingw problems.
39477         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39478         * doc/posix-functions/select.texi: Update mingw problems.
39479         * doc/posix-functions/send.texi: Update mingw problems.
39480         * doc/posix-functions/sendto.texi: Update mingw problems.
39481         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39482         * doc/posix-functions/socket.texi: Update mingw problems.
39483
39484 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39485             Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/sys_select.in.h: Include sys/time.h.
39488         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39489         * modules/sys_select: Depend on sys_time.
39490         * tests/test-sys_select.c: Test that sys/select.h defines struct
39491         timeval fully.
39492
39493 2008-09-29  Bruno Haible  <bruno@clisp.org>
39494
39495         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39496         * lib/sys_select.in.h: Likewise.
39497
39498 2008-09-29  Bruno Haible  <bruno@clisp.org>
39499
39500         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39501
39502 2008-09-29  Bruno Haible  <bruno@clisp.org>
39503
39504         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39505         Set LIBSOCKET instead of augmenting LIBS.
39506         * modules/sockets (Link): New section.
39507         * modules/sockets-tests (test_sockets_LDADD): New variable.
39508         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39509         * modules/poll-tests (test_poll_LDADD): New variable.
39510         * NEWS: Document the change.
39511
39512 2008-09-29  Bruno Haible  <bruno@clisp.org>
39513
39514         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39515         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39516         ARPA_INET_H directly.
39517         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39518
39519 2008-09-28  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39522         from gl_HEADER_SYS_SOCKET.
39523         (gl_HEADER_SYS_SOCKET): Invoke it.
39524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39525
39526 2008-09-28  Bruno Haible  <bruno@clisp.org>
39527
39528         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39529         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39530         Needed on OSF/1 4.0.
39531
39532 2008-09-28  Bruno Haible  <bruno@clisp.org>
39533
39534         Override open more carefully.
39535         * lib/open.c (orig_open): New function.
39536         (rpl_open): Use orig_open instead of open.
39537         * lib/fcntl.in.h: Add special invocation convention.
39538         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39539         (gl_FUNC_OPEN): Invoke it.
39540
39541         Override freopen more carefully.
39542         * lib/freopen.c (orig_freopen): New function.
39543         (rpl_freopen): Use orig_freopen instead of freopen.
39544         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39545         (gl_FUNC_FREOPEN): Invoke it.
39546
39547         Override fopen more carefully.
39548         * lib/fopen.c (orig_fopen): New function.
39549         (rpl_fopen): Use orig_fopen instead of fopen.
39550         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39551         (gl_FUNC_FOPEN): Invoke it.
39552         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39553
39554 2008-09-28  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39557         SIGPIPE.
39558
39559 2008-09-28  Bruno Haible  <bruno@clisp.org>
39560
39561         * tests/test-sigaction.c (handler, main): Disable the check whether
39562         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39563         glibc systems with LinuxThreads.
39564
39565 2008-09-28  Bruno Haible  <bruno@clisp.org>
39566
39567         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39568
39569         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39570         with AIX xlc.
39571         * lib/fcntl.in.h (open): Likewise.
39572         Reported by Rainer Tammer <tammer@tammer.net>.
39573
39574 2008-09-28  Bruno Haible  <bruno@clisp.org>
39575
39576         * modules/posix_spawnp-tests: New file.
39577         * tests/test-posix_spawn.c: New file.
39578         * tests/test-posix_spawn.in.sh: New file.
39579
39580         New module 'posix_spawnp'.
39581         * modules/posix_spawnp: New file.
39582         * lib/spawnp.c: New file, from GNU libc with modifications.
39583         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39584
39585         New module 'posix_spawn'.
39586         * modules/posix_spawn: New file.
39587         * lib/spawn.c: New file, from GNU libc with modifications.
39588         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39589
39590         New module 'posix_spawnattr_destroy'.
39591         * modules/posix_spawnattr_destroy: New file.
39592         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39593         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39594         module.
39595
39596         New module 'posix_spawnattr_setsigmask'.
39597         * modules/posix_spawnattr_setsigmask: New file.
39598         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39599         modifications.
39600         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39601         new module.
39602
39603         New module 'posix_spawnattr_getsigmask'.
39604         * modules/posix_spawnattr_getsigmask: New file.
39605         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39606         modifications.
39607         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39608         new module.
39609
39610         New module 'posix_spawnattr_setsigdefault'.
39611         * modules/posix_spawnattr_setsigdefault: New file.
39612         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39613         modifications.
39614         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39615         new module.
39616
39617         New module 'posix_spawnattr_getsigdefault'.
39618         * modules/posix_spawnattr_getsigdefault: New file.
39619         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39620         modifications.
39621         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39622         new module.
39623
39624         New module 'posix_spawnattr_setschedpolicy'.
39625         * modules/posix_spawnattr_setschedpolicy: New file.
39626         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39627         modifications.
39628         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39629         new module.
39630
39631         New module 'posix_spawnattr_getschedpolicy'.
39632         * modules/posix_spawnattr_getschedpolicy: New file.
39633         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39634         modifications.
39635         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39636         new module.
39637
39638         New module 'posix_spawnattr_setschedparam'.
39639         * modules/posix_spawnattr_setschedparam: New file.
39640         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39641         modifications.
39642         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39643         new module.
39644
39645         New module 'posix_spawnattr_getschedparam'.
39646         * modules/posix_spawnattr_getschedparam: New file.
39647         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39648         modifications.
39649         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39650         new module.
39651
39652         New module 'posix_spawnattr_setpgroup'.
39653         * modules/posix_spawnattr_setpgroup: New file.
39654         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39655         modifications.
39656         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39657         module.
39658
39659         New module 'posix_spawnattr_getpgroup'.
39660         * modules/posix_spawnattr_getpgroup: New file.
39661         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39662         modifications.
39663         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39664         module.
39665
39666         New module 'posix_spawnattr_setflags'.
39667         * modules/posix_spawnattr_setflags: New file.
39668         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39669         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39670         module.
39671
39672         New module 'posix_spawnattr_getflags'.
39673         * modules/posix_spawnattr_getflags: New file.
39674         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39675         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39676         module.
39677
39678         New module 'posix_spawnattr_init'.
39679         * modules/posix_spawnattr_init: New file.
39680         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39681         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39682         module.
39683
39684         New module 'posix_spawn_file_actions_destroy'.
39685         * modules/posix_spawn_file_actions_destroy: New file.
39686         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39687         modifications.
39688         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39689         the new module.
39690
39691         New module 'posix_spawn_file_actions_addopen'.
39692         * modules/posix_spawn_file_actions_addopen: New file.
39693         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39694         modifications.
39695         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39696         the new module.
39697
39698         New module 'posix_spawn_file_actions_adddup2'.
39699         * modules/posix_spawn_file_actions_adddup2: New file.
39700         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39701         modifications.
39702         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39703         the new module.
39704
39705         New module 'posix_spawn_file_actions_addclose'.
39706         * modules/posix_spawn_file_actions_addclose: New file.
39707         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39708         modifications.
39709         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39710         the new module.
39711
39712         New module 'posix_spawn_file_actions_init'.
39713         * modules/posix_spawn_file_actions_init: New file.
39714         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39715         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39716         new module.
39717
39718         New module 'posix_spawn-internal'.
39719         * modules/posix_spawn-internal: New file.
39720         * lib/spawn_int.h: New file, from GNU libc with modifications.
39721         * lib/spawni.c: New file, from GNU libc with modifications.
39722         * m4/posix_spawn.m4: New file.
39723
39724         New module 'spawn'.
39725         * modules/spawn: New file.
39726         * lib/spawn.in.h: New file, from GNU libc with modifications.
39727         * m4/spawn_h.m4: New file.
39728         * doc/posix-headers/spawn.texi: Mention the new module.
39729
39730 2008-09-28  Bruno Haible  <bruno@clisp.org>
39731
39732         * modules/sched-tests: New file.
39733         * tests/test-sched.c: New file.
39734
39735         New module 'sched'.
39736         * modules/sched: New file.
39737         * lib/sched.in.h: New file.
39738         * m4/sched_h.m4: New file.
39739         * doc/posix-headers/sched.texi: Mention the new module.
39740
39741 2008-09-27  Eric Blake  <ebb9@byu.net>
39742
39743         Fix previous patch, and tweak references to $0.
39744         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39745         (func_version, func_gnulib_dir): Don't call this program
39746         gnulib-tool.
39747         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39748         with using $0 in function.
39749         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39750         (func_fatal_error): Reuse the name the user invoked us with.
39751
39752 2008-09-27  Bruno Haible  <bruno@clisp.org>
39753
39754         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39755         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39756         (gl_ICONV_H): Not here.
39757         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39758         instead of assigning ICONV_H directly.
39759
39760         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39762         WCHAR_H directly.
39763
39764 2008-09-27  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39767         * modules/arpa_inet (Depends-on): Add link-warning.
39768         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39769         * modules/unistd (Makefile.am): Likewise.
39770
39771 2008-09-26  Bruno Haible  <bruno@clisp.org>
39772
39773         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39774         variables.
39775         (func_version): Essentially copied from gnulib-tool.
39776         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39777         func_readlink): Copied from gnulib-tool.
39778
39779 2008-09-26  Bruno Haible  <bruno@clisp.org>
39780
39781         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39782         invoking git-version-gen.
39783
39784 2008-09-26  Bruno Haible  <bruno@clisp.org>
39785
39786         * posix-modules: Update to directory names changed on 2008-01-19.
39787         Remove commas in output before splitting into words. No more need to
39788         avoid 'ftruncate' since 2007-02-19.
39789
39790 2008-09-26  Bruno Haible  <bruno@clisp.org>
39791
39792         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39793
39794 2008-09-26  Bruno Haible  <bruno@clisp.org>
39795
39796         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39797         * modules/fwriteerror (Depends-on): Add errno.
39798
39799 2008-09-26  Bruno Haible  <bruno@clisp.org>
39800
39801         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39802         * tests/test-vc-list-files-cvs.sh: Likewise.
39803
39804 2008-09-26  Bruno Haible  <bruno@clisp.org>
39805
39806         * doc/posix-headers/sys_resource.texi: Reorder items.
39807
39808 2008-09-26  Jim Meyering  <meyering@redhat.com>
39809
39810         fts: tweak inode comparison function
39811         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39812         inode numbers, as documented.
39813
39814         fts: sort dirent entries on inode number before traversing
39815         This avoids a quadratic, seek-related performance penalty when
39816         operating on a directory containing many entries (measurable at 10k;
39817         3.5 hours at 2 million entries with a cold cache) on certain types
39818         of file systems, including ext3 and ext4, but not tmpfs.
39819         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39820         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39821         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39822         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39823         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39824         (fts_build): Set the stat.st_ino member from D_INO.
39825         If it is likely to be useful, sort dirent entries on inode number.
39826
39827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39828         and the struct statfs.f_type member.
39829         * modules/fts (Depends-on): Add d-ino.
39830
39831 2008-09-26  Bruno Haible  <bruno@clisp.org>
39832
39833         * modules/sigpipe-die (Depends-on): Add sigpipe.
39834
39835         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39836         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39837         and GNULIB_STDIO_H_SIGPIPE are set.
39838         * lib/stdio-write.c: New file.
39839         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39840         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39841         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39842         REPLACE_STDIO_WRITE_FUNCS.
39843         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39844         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39845         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39846         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39847         * modules/stdio (Files): Add lib/stdio-write.c.
39848         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39849         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39850         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39851         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39852         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39853         REPLACE_FPRINTF_POSIX.
39854         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39855         REPLACE_PRINTF_POSIX.
39856         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39857         REPLACE_VFPRINTF_POSIX.
39858         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39859         REPLACE_VPRINTF_POSIX.
39860         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39861         SIGPIPE issue.
39862         * doc/posix-functions/fputc.texi: Likewise.
39863         * doc/posix-functions/fputs.texi: Likewise.
39864         * doc/posix-functions/fwrite.texi: Likewise.
39865         * doc/posix-functions/printf.texi: Likewise.
39866         * doc/posix-functions/putc.texi: Likewise.
39867         * doc/posix-functions/putchar.texi: Likewise.
39868         * doc/posix-functions/puts.texi: Likewise.
39869         * doc/posix-functions/vfprintf.texi: Likewise.
39870         * doc/posix-functions/vprintf.texi: Likewise.
39871
39872         * modules/safe-write (Depends-on): Add write.
39873
39874         * modules/sigpipe-tests: New file.
39875         * tests/test-sigpipe.c: New file.
39876         * tests/test-sigpipe.sh: New file.
39877
39878         * modules/write: New file.
39879         * lib/unistd.in.h: Include <sys/types.h>.
39880         (write): New declaration.
39881         * lib/write.c: New file.
39882         * m4/write.m4: New file.
39883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39884         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39885         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39886         GNULIB_WRITE, REPLACE_WRITE.
39887         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39888         and the SIGPIPE issue.
39889
39890         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39891         (raise): New declaration.
39892         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39893         (ext_signal): New function.
39894         (rpl_raise): New function.
39895         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39896         GNULIB_SIGNAL_H_SIGPIPE.
39897         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39898         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39899
39900         * modules/sigpipe: New file.
39901         * m4/sigpipe.m4: New file.
39902
39903 2008-09-25  Derek Price  <derek@ximbiot.com>
39904             Bruno Haible  <bruno@clisp.org>
39905
39906         * gnulib-tool (func_import): Report all license incompatibilities, not
39907         just the first one.
39908
39909 2008-09-25  Bruno Haible  <bruno@clisp.org>
39910
39911         * gnulib-tool (func_import): When computing the edits, consider not
39912         only the Makefile.ams that exist but also those that will be generated.
39913
39914 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39915
39916         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39917         fixes gnulib-tool --test warning about duplicate dependency.
39918
39919 2008-09-25  Bruno Haible  <bruno@clisp.org>
39920
39921         * gnulib-tool: Don't ask the user to perform edits in the generated
39922         Makefile.ams.
39923         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39924         apply to the Makefile.am being generated.
39925         (func_emit_tests_Makefile_am): Execute edits that apply to the
39926         Makefile.am being generated.
39927         (func_import): Setup list of Makefile.am edits before emitting the
39928         Makefile.ams, not at the end.
39929         (func_create_testdir): Update.
39930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39931
39932 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39933
39934         * gnulib-tool (func_import): Store the --tests-base option in the
39935         comment in gnulib-cache.m4.
39936
39937 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39938
39939         * NEWS: Document increased portability that sys_select now provides.
39940
39941         * lib/sys_select.in.h: Install select wrapper.
39942         * lib/sys_socket.in.h: Use more descriptive name when there is no
39943         select wrapper.
39944         * lib/winsock-select.c: New.
39945         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39946         Require gl_HEADER_SYS_SOCKET.
39947         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39948         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39949         * tests/test-sys_select.c: Add functional tests.
39950
39951 2008-09-24  Eric Blake  <ebb9@byu.net>
39952
39953         open, fopen: close fd leak in last patch
39954         * lib/open.c (rpl_open): Close fd before returning error.
39955         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39956         * doc/posix-functions/open.texi (open): Document that Irix also
39957         has the bug.
39958         * doc/posix-functions/fopen.texi (fopen): Likewise.
39959         Reported by Paolo Bonzini.
39960
39961 2008-09-24  Bruno Haible  <bruno@clisp.org>
39962
39963         Ensure that a filename ending in a slash cannot be used to access a
39964         non-directory.
39965         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39966         to check whether it's really a directory.
39967         * lib/fopen.c: Include fcntl.h, unistd.h.
39968         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39969         and fdopen().
39970         * modules/fopen (Depends-on): Add unistd.
39971         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39972         * tests/test-fopen.c (main): Likewise.
39973         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39974         * doc/posix-functions/fopen.texi: Likewise.
39975         Reported by Eric Blake.
39976
39977 2008-09-23  Eric Blake  <ebb9@byu.net>
39978
39979         c-stack: avoid compiler optimizations when provoking overflow
39980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39981         recursion harder to optimize, to ensure a stack overflow occurs.
39982         * tests/test-c-stack.c (recurse): Likewise.
39983         Borrowed from libsigsegv.
39984
39985         c-stack: work around Irix sigaltstack bug
39986         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39987         whether sigaltstack uses wrong end of stack_t (copied in part from
39988         libsigsegv).
39989         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39990         Irix bug, without requiring an over-allocation.
39991         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39992         bug.
39993
39994         fopen: document mingw bug on directories
39995         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39996         not allowing a stream visiting a directory, even though reading
39997         from such a stream is not portable.
39998
39999 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40000
40001         * lib/poll.c: Rewrite.
40002         * modules/poll: Depend on alloca.
40003
40004 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40005
40006         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40007         instead define prototypes for a full set of wrappers.  Ensure
40008         that Cygwin does not use the compatibility code, which is only
40009         for MinGW.
40010         * lib/winsock.c: New.
40011         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40012         * modules/sys_socket: Add lib/winsock.c.
40013
40014         * modules/poll-tests: Add errno and perror.
40015         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40016
40017 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40018
40019         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40020
40021 2008-09-23  Bruno Haible  <bruno@clisp.org>
40022
40023         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40024         * doc/glibc-functions/*: Likewise.
40025
40026 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40027
40028         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40029         success.
40030
40031 2008-09-22  Eric Blake  <ebb9@byu.net>
40032             Bruno Haible  <bruno@clisp.org>
40033
40034         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40035         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40036         supply %A but mishandle pseudo-NaN.
40037         Reported by Simon Josefsson.
40038
40039 2008-09-21  Bruno Haible  <bruno@clisp.org>
40040
40041         * tests/test-lock.c (main): Tweak skip message.
40042         * tests/test-tls.c (main): Likewise.
40043
40044 2008-09-21  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40047         whether 'struct sigaction' has sa_sigaction here...
40048         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40049         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40050
40051 2008-09-21  Bruno Haible  <bruno@clisp.org>
40052
40053         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40054         section.
40055         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40056         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40057         the new section.
40058         (Support for obsolete systems lacking POSIX:2001): New section.
40059         (String handling <string.h>): Move strdup to the new section.
40060         Suggested by Simon Josefsson and Paolo Bonzini.
40061
40062 2008-09-21  Bruno Haible  <bruno@clisp.org>
40063
40064         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40065         exponents in %e and %g results on 'long double'. Needed for mingw's
40066         improved *printf functions.
40067         * tests/test-vasprintf-posix.c (test_function): Likewise.
40068         * tests/test-snprintf-posix.h (test_function): Likewise.
40069         * tests/test-sprintf-posix.h (test_function): Likewise.
40070         Reported by Eric Blake.
40071
40072 2008-09-21  Bruno Haible  <bruno@clisp.org>
40073
40074         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40075         * tests/test-sprintf-posix.h (test_function): Likewise.
40076
40077 2008-09-21  Bruno Haible  <bruno@clisp.org>
40078
40079         * modules/getpass (Depends-on): Add strdup-posix.
40080
40081         New module 'strdup-posix'.
40082         * modules/strdup-posix: New file.
40083         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40084         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40086         REPLACE_STRDUP.
40087         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40088         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40090         strdup-posix.
40091
40092         * modules/strdup (Depends-on): Remove malloc-posix.
40093
40094 2008-09-20  Bruno Haible  <bruno@clisp.org>
40095
40096         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40097         Wildenhues.
40098
40099 2008-09-20  Bruno Haible  <bruno@clisp.org>
40100
40101         Ensure that wint_t gets defined on IRIX 5.3.
40102         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40103         * lib/wctype.in.h (wint_t): Likewise.
40104         (__wctype_wint_t): Remove type.
40105         (isw*): Use wint_t instead of __wctype_wint_t.
40106         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40107         * modules/wchar (Files): Add m4/wint_t.m4.
40108         (Makefile.am): Substitute HAVE_WINT_T.
40109         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40110         * tests/test-wctype.c: Check that wint_t is defined.
40111         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40112         * doc/posix-headers/wctype.texi: Likewise.
40113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40114
40115 2008-09-18  Bruno Haible  <bruno@clisp.org>
40116
40117         * gnulib-tool (func_exit): Update comment.
40118
40119 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40120
40121         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40122         assumes strdup exists and does not depend on strdup to return
40123         ENOMEM on out of memory conditions.
40124
40125 2008-09-18  Bruno Haible  <bruno@clisp.org>
40126
40127         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40128         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40129         digits for the exponent.
40130
40131 2008-09-18  Jim Meyering  <meyering@redhat.com>
40132             Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/vasnprintf.c (decimal_point_char): Define also if
40135         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40136
40137 2008-09-16  Bruno Haible  <bruno@clisp.org>
40138         and Eric Blake  <ebb9@byu.net>
40139
40140         vasnprintf: support Irix 5.3
40141         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40142         that mishandle long double infinity.
40143         Reported by Tom G. Christensen.
40144
40145 2008-09-16  Bruno Haible  <bruno@clisp.org>
40146
40147         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40148         Solaris 9.
40149         * doc/glibc-functions/alphasort.texi: Likewise.
40150         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40151
40152 2008-09-16  Jim Meyering  <meyering@redhat.com>
40153
40154         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40155         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40156         a umask modification leak out of a subshell.  Otherwise, the
40157         opensolaris /bin/sh would be accepted and thus cause unwarranted
40158         failures in the coreutils test suite.
40159
40160 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40161
40162         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40163         to succeed.
40164
40165 2008-09-16  Jim Meyering  <meyering@redhat.com>
40166
40167         avoid spurious test failure when library is built without ACL support
40168         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40169         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40170         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40171         * tests/test-copy-acl.sh: Likewise.
40172
40173 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40174
40175         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40176         based on character occurrence counts.
40177
40178 2008-09-15  Eric Blake  <ebb9@byu.net>
40179
40180         tests: avoid some compiler warnings
40181         * tests/test-memchr.c (main): Pass NULL indirectly.
40182         * tests/test-closein.c (main): Avoid unused variable.
40183
40184 2008-09-15  Bruno Haible  <bruno@clisp.org>
40185
40186         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40187         are missing on OpenBSD 4.0 individually.
40188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40189
40190 2008-09-15  Bruno Haible  <bruno@clisp.org>
40191
40192         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40193         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40194         * doc/posix-functions/perror.texi: Likewise.
40195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40196         is missing.
40197         Reported by Eric Blake.
40198
40199         * lib/errno.in.h: Use replacement values >= 2000.
40200         Reported by Eric Blake.
40201
40202 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40203
40204         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40205         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40206         limit.
40207         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40208         compareseq was aborted.
40209
40210 2008-09-14  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40213         yvec_edit_count.
40214         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40215         (fstrcmp_bounded): Simplify result computation accordingly.
40216
40217 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40218
40219         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40220         (fstrcmp): Define in terms of fstrcmp_bounded.
40221         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40222         lower_bound argument.
40223         Return quickly if the result is certainly < lower_bound.
40224         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40225
40226 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40227
40228         * lib/diffseq.h (EARLY_ABORT): New macro.
40229         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40230         evaluates to true.
40231
40232 2008-09-14  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/perror-tests: New file.
40235         * tests/test-perror.sh: New file.
40236         * tests/test-perror.c: New file.
40237
40238         New module 'perror'.
40239         * lib/stdio.in.h (perror): New declaration.
40240         * lib/perror.c: New file.
40241         * m4/perror.m4: New file.
40242         * modules/perror: New file.
40243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40244         * doc/posix-functions/perror.texi: Mention the perror module.
40245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40246         REPLACE_PERROR.
40247         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40248         REPLACE_PERROR.
40249
40250 2008-09-14  Bruno Haible  <bruno@clisp.org>
40251
40252         * modules/stdio (Makefile.am): Reorder to match the order in
40253         lib/stdio.in.h.
40254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40255
40256 2008-09-13  Bruno Haible  <bruno@clisp.org>
40257
40258         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40259
40260 2008-09-13  Bruno Haible  <bruno@clisp.org>
40261
40262         Extend strerror to cover the added errno values.
40263         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40264         (rpl_strerror): Provide error messages for the added errno values and
40265         for the WSA* values.
40266         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40267         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40268         strerror.
40269         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40270         * modules/strerror (Depends-on): Add errno.
40271         * doc/posix-functions/strerror.texi: Document the change.
40272         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40273         and EOVERFLOW.
40274
40275 2008-09-13  Bruno Haible  <bruno@clisp.org>
40276
40277         * modules/EOVERFLOW: Remove file.
40278         * m4/eoverflow.m4: Remove file.
40279         * modules/EOVERFLOW-tests: Remove file.
40280         * tests/test-EOVERFLOW.c: Remove file.
40281         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40282         * modules/ftell (Depends-on): Likewise.
40283         * modules/getdelim (Depends-on): Likewise.
40284         * modules/getugroups (Depends-on): Likewise.
40285         * modules/poll (Depends-on): Likewise.
40286         * modules/snprintf (Depends-on): Likewise.
40287         * modules/sprintf-posix (Depends-on): Likewise.
40288         * modules/vasnprintf (Depends-on): Likewise.
40289         * modules/vasprintf (Depends-on): Likewise.
40290         * modules/vfprintf-posix (Depends-on): Likewise.
40291         * modules/vsnprintf (Depends-on): Likewise.
40292         * modules/vsprintf-posix (Depends-on): Likewise.
40293         * modules/xvasprintf (Depends-on): Likewise.
40294         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40295         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40296         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40297         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40298         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40299         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40300         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40301         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40302         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40303         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40304         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40305         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40307         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40308         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40309         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40311         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40312         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40313         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40315         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40316         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40317         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40318         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40319         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40320         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40321         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40322         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40323         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40324         * MODULES.html.sh: Remove EOVERFLOW.
40325         * NEWS: Mention the change.
40326
40327 2008-09-13  Bruno Haible  <bruno@clisp.org>
40328
40329         * modules/errno-tests: New file.
40330         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40331
40332         * lib/errno.in.h: New file.
40333         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40334         * modules/errno: New file.
40335         * doc/posix-headers/errno.texi: Update documentation.
40336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40337
40338 2008-09-13  Bruno Haible  <bruno@clisp.org>
40339
40340         * tests/test-poll.c: Use #if for native Windows, rather than testing
40341         __MSVCRT__.
40342
40343 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40344             Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/glob.c: Don't include <pwd.h> on native Windows.
40347         (WINDOWS32): New macro.
40348         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40349
40350 2008-09-13  Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40353         (ETIMEDOUT): Remove macro.
40354         (glthread_cond_timedwait_multithreaded): New declaration.
40355         (glthread_cond_timedwait): Use it.
40356         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40357         (glthread_cond_timedwait_multithreaded): New function.
40358
40359 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40360
40361         * modules/poll-tests: Do not check for io.h.
40362         * tests/test-poll.c: Check for __MSVCRT__ instead.
40363
40364 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40365
40366         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40367         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40368         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40369
40370 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40371
40372         * modules/poll-tests: New.
40373         * tests/test-poll.c: New.
40374
40375 2008-09-12  Eric Blake  <ebb9@byu.net>
40376
40377         frexp: test for NetBSD failure on -0.0
40378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40379         not all, bugs from NetBSD 3.0 have been fixed.
40380         * doc/posix-functions/frexp.texi (frexp): Document bug.
40381         Reported by Thomas Klausner.
40382
40383         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40384         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40385         literal -0.0.
40386         Reported by Jonathan C. Patschke <jp@centtech.com>.
40387
40388 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40389
40390         * lib/glthread/cond.h: Use dummy implementation also if
40391         USE_WIN32_THREADS.
40392
40393 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40394
40395         * modules/fnmatch-posix (License): Change to LGPLv2+.
40396         * modules/fnmatch-gnu (License): Likewise.
40397
40398 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40399
40400         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40401
40402 2008-09-11  Jim Meyering  <meyering@redhat.com>
40403
40404         * users.txt: Add gtk-vnc.
40405
40406 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40407
40408         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40409         rotate amounts.
40410
40411         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40412         required for 16-bit and 8-bit rotates.
40413         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40414         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40415         UINT8_MAX instead of hard-coded constants.
40416         Suggested by Paul Eggert.
40417
40418 2008-09-07  Bruno Haible  <bruno@clisp.org>
40419
40420         * tests/test-striconveh.c (main): Check behaviour when converting from
40421         UTF-7.
40422
40423         Make striconveh work better with stateful encodings.
40424         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40425         that iconv does not increment the inptr when returning -1/EINVAL.
40426
40427 2008-09-07  Bruno Haible  <bruno@clisp.org>
40428
40429         * build-aux/config.rpath: Update according to libtool-2.2.6.
40430         * build-aux/config.libpath: Likewise.
40431
40432 2008-09-06  Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40435         * lib/freadptr.c (freadptr): Likewise.
40436         * lib/freadseek.c (freadptrinc): Likewise.
40437         Reported by Simon Josefsson.
40438
40439 2008-09-06  Bruno Haible  <bruno@clisp.org>
40440
40441         * modules/freadptr (License): Change to LGPLv2+.
40442         * modules/freadseek (License): Likewise.
40443         Suggested by Eric Blake.
40444
40445         * modules/memchr2 (License): Change to LGPLv2+.
40446         Approved by Eric Blake.
40447
40448 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40449             Bruno Haible  <bruno@clisp.org>
40450
40451         Make gnulib-tool work with native 'sed' on AIX.
40452         * gnulib-tool (sed_noop): New variable.
40453         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40454         func_add_or_update, func_create_testdir): Use it to initialize sed
40455         script variables.
40456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40457
40458 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40459             Bruno Haible  <bruno@clisp.org>
40460
40461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40462         also works after #include directives.
40463
40464 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40465
40466         getdate.y: reject an out-of-range timezone value
40467         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40468         the range [-24...+24].  When specified with only one or two digits,
40469         * tests/test-getdate.c: Tests for the fix.
40470         * doc/getdate.texi: Document this change.
40471
40472 2008-09-03  Bruno Haible  <bruno@clisp.org>
40473
40474         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40475
40476 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40477
40478         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40479         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40480         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40481         Blake <ebb9@byu.net>.
40482
40483         * tests/test-bitrotate.c: Add more test vectors.
40484
40485 2008-09-02  Eric Blake  <ebb9@byu.net>
40486
40487         vasnprintf-posix: handle large precision via %.*d
40488         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40489         when handling it ourselves.
40490         * tests/test-vasnprintf-posix.c (test_function): Add test.
40491         * tests/test-snprintf-posix.h (test_function): Likewise.
40492         * tests/test-sprintf-posix.h (test_function): Likewise.
40493         * tests/test-vasprintf-posix.c (test_function): Likewise.
40494         Reported by Alain Guibert.
40495
40496 2008-09-01  Eric Blake  <ebb9@byu.net>
40497
40498         c-stack: make configure-time check more robust
40499         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40500         successful sigaction call.
40501         Reported by Tom G. Christensen.
40502
40503 2008-09-01  Bruno Haible  <bruno@clisp.org>
40504
40505         New module 'findprog-lgpl'.
40506         * modules/findprog-lgpl: New file.
40507         * lib/findprog-lgpl.c: New file.
40508         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40509         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40510         to decide whether to use strdup or xstrdup, concatenated_filename or
40511         xconcatenated_filename.
40512
40513 2008-09-01  Bruno Haible  <bruno@clisp.org>
40514
40515         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40516         'xconcat-filename' (GPL).
40517         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40518         (License): Change to LGPLv2+.
40519         * modules/xconcat-filename: New file.
40520         * lib/concat-filename.h (concatenated_filename): Change specification.
40521         (xconcatenated_filename): New declaration.
40522         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40523         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40524         memory situations.
40525         * lib/xconcat-filename.c: New file.
40526         * NEWS: Mention the change.
40527         * lib/findprog.c: Include concat-filename.h, not filename.h.
40528         (find_in_path): Use xconcatenated_filename instead of
40529         concatenated_filename.
40530         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40531         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40532         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40533         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40534         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40535         instead of concatenated_filename.
40536         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40537         (execute_java_class): Use xconcatenated_filename instead of
40538         concatenated_filename.
40539         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40540         * modules/javacomp (Depends-on): Likewise.
40541         * modules/javaexec (Depends-on): Likewise.
40542
40543 2008-09-01  Bruno Haible  <bruno@clisp.org>
40544
40545         Split module 'filename' into 'filename' and 'concat-filename'.
40546         * modules/filename: Keep only lib/filename.h.
40547         (License): Change to LGPLv2+.
40548         * modules/concat-filename: New file, extracted from modules/filename.
40549         * lib/filename.h (concatenated_filename): Remove declaration.
40550         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40551         * lib/concat-filename.c: Include concat-filename.h.
40552         * NEWS: Mention the change.
40553
40554 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40555
40556         * lib/bitrotate.h (rotl8, rotr8): Add.
40557
40558         * modules/bitrotate (configure.ac): Need
40559         AC_REQUIRE([AC_C_INLINE]).
40560         (Description): Mention stdint.h.  Reported by Bruno Haible
40561         <bruno@clisp.org>.
40562
40563         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40564         Paolo Bonzini <bonzini@gnu.org>.
40565
40566 2008-08-31  Bruno Haible  <bruno@clisp.org>
40567
40568         Assume Solaris specific bi-arch conventions on Solaris systems.
40569         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40570         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40571         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40572         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40573         like acl_libdirstem.
40574         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40575         acl_libdirstem.
40576         * NEWS: Mention the change.
40577         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40578
40579 2008-08-31  Jim Meyering  <meyering@redhat.com>
40580
40581         * lib/strftime.h: Add comments describing the two added arguments.
40582
40583         remove duplicate #include directives
40584         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40585         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40586
40587 2008-08-31  Bruno Haible  <bruno@clisp.org>
40588
40589         New module 'sigpipe-die'.
40590         * modules/sigpipe-die: New file.
40591         * lib/sigpipe-die.h: New file.
40592         * lib/sigpipe-die.c: New file.
40593         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40594
40595 2008-08-31  Bruno Haible  <bruno@clisp.org>
40596
40597         Don't override previously installed signal handlers.
40598         * lib/fatal-signal.c (saved_sigactions): New variable.
40599         (uninstall_handlers): Reset the signal to the saved handler, not
40600         to SIG_DFL (except when ignored).
40601         (install_handlers): Save the previous handlers.
40602
40603 2008-08-30  Bruno Haible  <bruno@clisp.org>
40604
40605         * gnulib-tool (func_reset_sigpipe): New function.
40606         (func_get_automake_snippet, func_modules_transitive_closure,
40607         func_import): Invoke it before a join command that reads from stdin,
40608         to avoid "echo: write error: Broken pipe" error messages on stderr.
40609         Reported by Sam Steingold <sds@gnu.org>.
40610
40611 2008-08-30  Bruno Haible  <bruno@clisp.org>
40612
40613         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40614         Code copied from m4/open.m4.
40615         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40616         access and the filename ends in a slash. Code copied from lib/open.c.
40617         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40618         * tests/test-fopen.c (main): Check against bug with trailing slash.
40619
40620 2008-08-29  Bruno Haible  <bruno@clisp.org>
40621
40622         Avoid some "gcc -pedantic" warnings.
40623         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40624         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40625         * lib/dirent.in.h: Likewise.
40626         * lib/fcntl.in.h: Likewise.
40627         * lib/float.in.h: Likewise.
40628         * lib/iconv.in.h: Likewise.
40629         * lib/inttypes.in.h: Likewise.
40630         * lib/locale.in.h: Likewise.
40631         * lib/math.in.h: Likewise.
40632         * lib/netinet_in.in.h: Likewise.
40633         * lib/search.in.h: Likewise.
40634         * lib/signal.in.h: Likewise.
40635         * lib/stdarg.in.h: Likewise.
40636         * lib/stdint.in.h: Likewise.
40637         * lib/stdio.in.h: Likewise.
40638         * lib/stdlib.in.h: Likewise.
40639         * lib/string.in.h: Likewise.
40640         * lib/strings.in.h: Likewise.
40641         * lib/sys_select.in.h: Likewise.
40642         * lib/sys_socket.in.h: Likewise.
40643         * lib/sys_stat.in.h: Likewise.
40644         * lib/sys_time.in.h: Likewise.
40645         * lib/sysexits.in.h: Likewise.
40646         * lib/time.in.h: Likewise.
40647         * lib/unistd.in.h: Likewise.
40648         * lib/wchar.in.h: Likewise.
40649         * lib/wctype.in.h: Likewise.
40650         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40651         * modules/fchdir (Makefile.am): Likewise.
40652         * modules/fcntl (Makefile.am): Likewise.
40653         * modules/float (Makefile.am): Likewise.
40654         * modules/iconv_open (Makefile.am): Likewise.
40655         * modules/inttypes (Makefile.am): Likewise.
40656         * modules/locale (Makefile.am): Likewise.
40657         * modules/math (Makefile.am): Likewise.
40658         * modules/netinet_in (Makefile.am): Likewise.
40659         * modules/search (Makefile.am): Likewise.
40660         * modules/signal (Makefile.am): Likewise.
40661         * modules/stdarg (Makefile.am): Likewise.
40662         * modules/stdint (Makefile.am): Likewise.
40663         * modules/stdio (Makefile.am): Likewise.
40664         * modules/stdlib (Makefile.am): Likewise.
40665         * modules/string (Makefile.am): Likewise.
40666         * modules/strings (Makefile.am): Likewise.
40667         * modules/sys_select (Makefile.am): Likewise.
40668         * modules/sys_socket (Makefile.am): Likewise.
40669         * modules/sys_stat (Makefile.am): Likewise.
40670         * modules/sys_time (Makefile.am): Likewise.
40671         * modules/sysexits (Makefile.am): Likewise.
40672         * modules/time (Makefile.am): Likewise.
40673         * modules/unistd (Makefile.am): Likewise.
40674         * modules/wchar (Makefile.am): Likewise.
40675         * modules/wctype (Makefile.am): Likewise.
40676         Reported by Reuben Thomas <rrt@sc3d.org>.
40677
40678 2008-08-29  Bruno Haible  <bruno@clisp.org>
40679
40680         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40681         any more.
40682
40683 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40684
40685         * MODULES.html.sh (Misc): Add bitrotate.
40686
40687         * modules/bitrotate: New file.
40688
40689         * lib/bitrotate.h: New file.
40690
40691         * modules/bitrotate-tests: New file.
40692
40693         * tests/test-bitrotate.c: New file.
40694
40695         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40696         on the bitrotate module.
40697
40698         * lib/arctwo.c: Use new bitrotate module.
40699
40700 2008-08-29  Jim Meyering  <meyering@redhat.com>
40701
40702         bootstrap: merge changes from coreutils
40703         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40704         of copied files.  Remove a kludge, now that this is fixed.
40705         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40706         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40707         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40708
40709 2008-08-29  Bruno Haible  <bruno@clisp.org>
40710
40711         * MODULES.html.sh: Remove --cvs-urls option.
40712
40713 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40714
40715         maint.mk: adjust to file name change
40716         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40717
40718 2008-08-28  Jim Meyering  <meyering@redhat.com>
40719
40720         * modules/getndelim2 (License): Relicense to LGPLv2+.
40721         Approved by Richard Stallman for the version of 1995, and by
40722         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40723
40724 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40725
40726         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40727         dummy if one is not available.  Do not touch them if
40728         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40729         (getc_maybe_unlocked): New.
40730         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40731
40732 2008-08-26  Eric Blake  <ebb9@byu.net>
40733
40734         doc/INSTALL: resync from autoconf
40735         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40736         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40737         moving...
40738         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40739         * INSTALL: Regenerate.
40740         * INSTALL.ISO: New file.
40741         * INSTALL.UTF-8: Likewise.
40742
40743 2008-08-26  Jim Meyering  <meyering@redhat.com>
40744
40745         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40746         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40747         these definitions conditional, so that they may be overridden, too.
40748
40749 2008-08-26  Bruno Haible  <bruno@clisp.org>
40750
40751         Generate INSTALL file variants with prettier quotes.
40752         * doc/Makefile (INSTALL_PRELUDE): New macro.
40753         (INSTALL): Use it.
40754         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40755
40756 2008-08-26  Bruno Haible  <bruno@clisp.org>
40757
40758         Run makeinfo in an English locale.
40759         * doc/Makefile (MAKEINFO): New variable.
40760
40761 2008-08-26  Bruno Haible  <bruno@clisp.org>
40762
40763         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40764         Suggested by Eric Blake.
40765
40766 2008-08-25  Bruno Haible  <bruno@clisp.org>
40767
40768         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40769
40770 2008-08-25  Eric Blake  <ebb9@byu.net>
40771
40772         c-stack: test that stack overflow can be caught
40773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40774         that platform allows handling stack overflow; at least OS/2 EMX
40775         has sigaltstack, but crashes before transferring control to
40776         handler on stack overflow.
40777         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40778         check for HAVE_STACK_OVERFLOW_HANDLING.
40779         Reported by Elbert Pol.
40780
40781 2008-08-25  Bruno Haible  <bruno@clisp.org>
40782
40783         * doc/posix-functions/strftime.texi: Fix description of strftime
40784         module.
40785
40786 2008-08-24  Bruno Haible  <bruno@clisp.org>
40787
40788         * tests/uniwidth/test-uc_width2.c: New file.
40789         * tests/uniwidth/test-uc_width2.sh: New file.
40790         * modules/uniwidth/width-tests (Files): Add the new files.
40791         (TESTS): Add uniwidth/test-uc_width2.sh.
40792         (TESTS_ENVIRONMENT): New variable.
40793         (check_PROGRAMS): Add test-uc_width2.
40794         (test_uc_width2_SOURCES): New variable.
40795
40796         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40797         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40798         not 0x00AB.
40799         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40800
40801 2008-08-22  Eric Blake  <ebb9@byu.net>
40802
40803         test-lock, test-tls: mention why a test is skipped
40804         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40805         skipped.
40806         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40807
40808         count-one-bits: relax license
40809         * modules/count-one-bits (License): Relicense to LGPLv2+.
40810         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40811
40812 2008-08-22  Andreas Schwab  <schwab@suse.de>
40813
40814         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40815         Remove spurious space in assignment.
40816
40817 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40818
40819         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40820         Paul Eggert <eggert@CS.UCLA.EDU>.
40821
40822 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40823
40824         * modules/gettext: Add m4/threadlib.m4.
40825
40826 2008-08-19  Eric Blake  <ebb9@byu.net>
40827
40828         test-c-stack: fix compilation failure on FreeBSD 5.0
40829         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40830         headers before <sys/resource.h>.
40831         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40832         the bug.
40833         Reported by Nelson H. F. Beebe.
40834
40835         strverscmp: migrate from "strverscmp.h" to <string.h>
40836         * modules/string (Makefile.am): Add new hooks.
40837         * modules/strverscmp (Files): Remove strverscmp.h.
40838         (Depends-on): Add string.
40839         (configure.ac): Add indicator.
40840         (Include): Mention new header.
40841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40842         defaults.
40843         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40844         results.
40845         * lib/strverscmp.h: Delete.
40846         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40847         * tests/test-strverscmp.c (includes): Adjust client.
40848         * lib/check-version.c (includes): Likewise.
40849         * NEWS: Document the change.
40850
40851         strverscmp: add unit test
40852         * modules/strverscmp-tests: New file.
40853         * tests/test-strverscmp.c: Likewise.
40854
40855 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40856
40857         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40858         regarding Windows crypto stuff, from Mono.
40859
40860 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40861
40862         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40863         if present, for intel RND.  Return error on failures.
40864
40865 2008-08-18  Ben Pfaff  <blp@gnu.org>
40866
40867         gitlog-to-changelog: give better diagnostic for failed pipe-open
40868         * build-aux/gitlog-to-changelog: Improve error message: suggest
40869         that the version of Git may be too old.
40870
40871 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40872
40873         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40874         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40875
40876 2008-08-18  Bruno Haible  <bruno@clisp.org>
40877
40878         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40879         pthread_in_use().
40880
40881 2008-08-18  Bruno Haible  <bruno@clisp.org>
40882
40883         * lib/glthread/threadlib.c: Include <pthread.h>.
40884
40885 2008-08-18  Bruno Haible  <bruno@clisp.org>
40886
40887         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40888         glthread_recursive_lock_* macros.
40889         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40890         Fix syntax error.
40891
40892 2008-08-18  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/glthread/thread.c: Avoid forcing a context switch right after
40895         thread creation.
40896
40897 2008-08-17  Bruno Haible  <bruno@clisp.org>
40898
40899         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40900         * lib/glthread/thread.h: Provide Win32 specific implementation.
40901         * modules/thread (Files): Add lib/glthread/thread.c.
40902         (Depends-on): Add lock.
40903         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40904
40905 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40906
40907         New module 'yield'.
40908         * modules/yield: New file.
40909         * lib/glthread/yield.h: New file.
40910         * m4/yield.m4: New file.
40911         * MODULES.html.sh (Multithreading): Add yield.
40912
40913 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40914
40915         New module 'thread'.
40916         * modules/thread: New file.
40917         * lib/glthread/thread.h: New file.
40918         * m4/thread.m4: New file.
40919         * MODULES.html.sh (Multithreading): Add thread.
40920
40921 2008-08-17  Bruno Haible  <bruno@clisp.org>
40922
40923         * lib/glthread/lock.h: Include <stdlib.h> always.
40924         * lib/glthread/tls.h: Likewise.
40925         * lib/glthread/cond.h: Likewise.
40926
40927 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40928
40929         New module 'cond'.
40930         * modules/cond: New file.
40931         * lib/glthread/cond.h: New file.
40932         * lib/glthread/cond.c: New file.
40933         * m4/cond.m4: New file.
40934         * MODULES.html.sh (Multithreading): Add cond.
40935
40936 2008-08-16  Eric Blake  <ebb9@byu.net>
40937
40938         c-stack: fix regression on Irix 5.3 from 2008-06-21
40939         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40940         sa_sigaction...
40941         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40942         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40943         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40944         * modules/signal (Makefile.am): Use the value.
40945         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40946         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40947         * doc/posix-headers/signal.texi (signal.h): Document this
40948         portability issue.
40949         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40950         Reported by Tom G. Christensen.
40951
40952 2008-08-17  Bruno Haible  <bruno@clisp.org>
40953
40954         New module 'threadlib'.
40955         * modules/threadlib: New file.
40956         * lib/glthread/threadlib.c: New file, extracted from
40957         lib/glthread/lock.c.
40958         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40959         functions.
40960         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40961         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40962         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40963         macros.
40964         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40965         (gl_DISABLE_THREADS): Remove macro.
40966         * modules/lock (Files): Remove build-aux/config.rpath.
40967         (Depends-on): Remove havelib. Add threadlib.
40968         (configure.ac-early): Remove section.
40969         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40970         * modules/tls (Depends-on): Remove lock. Add threadlib.
40971         (Link): New section, copied from threadlib.
40972         * MODULES.html.sh (Multithreading): Add threadlib.
40973
40974 2008-08-14  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40977         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40978         glthread_rwlock_unlock, glthread_rwlock_destroy,
40979         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40980         glthread_recursive_lock_destroy): Define as macros always.
40981         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40982         glthread_lock_lock.
40983         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40984         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40985         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40986         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40987         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40988         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40989         (glthread_recursive_lock_lock_func): Renamed from
40990         glthread_recursive_lock_lock.
40991         (glthread_recursive_lock_unlock_func): Renamed from
40992         glthread_recursive_lock_unlock.
40993         (glthread_recursive_lock_destroy_func): Renamed from
40994         glthread_recursive_lock_destroy.
40995
40996 2008-08-14  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/glthread/lock.h: Renamed from lib/lock.h.
40999         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41000         * lib/glthread/tls.h: Renamed from lib/tls.h.
41001         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41002         * lib/fstrcmp.c: Update includes.
41003         * lib/strsignal.c: Update includes.
41004         * modules/lock (Files, Makefile.am): Update.
41005         (Include): Change to "glthread/lock.h".
41006         * modules/tls (Files, Makefile.am): Update.
41007         (Include): Change to "glthread/tls.h".
41008         * tests/test-lock.c: Update includes.
41009         * tests/test-tls.c: Update includes.
41010         * NEWS: Mention the renamed header files.
41011
41012 2008-08-11  Jim Meyering  <meyering@redhat.com>
41013
41014         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41015
41016 2008-08-11  Eric Blake  <ebb9@byu.net>
41017
41018         test-c-stack: avoid C99-ism
41019         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41020         before statement.
41021         Reported by Alain Guibert.
41022
41023 2008-08-10  Jim Meyering  <meyering@redhat.com>
41024
41025         ensure that return value of uinttostr et al are not ignored
41026         * lib/inttostr.h (__GNUC_PREREQ): Define.
41027         (__attribute_warn_unused_result__): Define.
41028         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41029
41030 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41031
41032         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41033         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41034
41035 2008-08-07  Jim Meyering  <meyering@redhat.com>
41036
41037         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41038
41039         * modules/mkstemp (License): Relicense under LGPLv2+.
41040         * modules/tempname (License): Likewise.
41041
41042 2008-08-06  Bruno Haible  <bruno@clisp.org>
41043
41044         * lib/poll.c (poll): Further micro-optimization.
41045
41046 2008-08-06  Jim Meyering  <meyering@redhat.com>
41047
41048         inet_pton.c: use locale-independent tolower
41049         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41050         (inet_pton6): Use c_tolower rather than tolower.
41051         * modules/inet_pton (Depends-on): Add c-ctype.
41052
41053 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41054
41055         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41056         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41057
41058 2008-08-06  Jim Meyering  <meyering@redhat.com>
41059
41060         * modules/inet_pton (License): Relicense under LGPLv2+.
41061
41062 2008-08-03  Bruno Haible  <bruno@clisp.org>
41063
41064         Additional non-aborting API for lock and tls.
41065         * lib/lock.h: Include <errno.h>.
41066         (glthread_lock_init): New macro/function.
41067         (gl_lock_init): Define as wrapper around glthread_lock_init.
41068         (glthread_lock_lock): New macro/function.
41069         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41070         (glthread_lock_unlock): New macro/function.
41071         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41072         (glthread_lock_destroy): New macro/function.
41073         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41074         (glthread_rwlock_init): New macro/function.
41075         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41076         (glthread_rwlock_rdlock): New macro/function.
41077         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41078         (glthread_rwlock_wrlock): New macro/function.
41079         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41080         (glthread_rwlock_unlock): New macro/function.
41081         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41082         (glthread_rwlock_destroy): New macro/function.
41083         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41084         (glthread_recursive_lock_init): New macro/function.
41085         (gl_recursive_lock_init): Define as wrapper around
41086         glthread_recursive_lock_init.
41087         (glthread_recursive_lock_lock): New macro/function.
41088         (gl_recursive_lock_lock): Define as wrapper around
41089         glthread_recursive_lock_lock.
41090         (glthread_recursive_lock_unlock): New macro/function.
41091         (gl_recursive_lock_unlock): Define as wrapper around
41092         glthread_recursive_lock_unlock.
41093         (glthread_recursive_lock_destroy): New macro/function.
41094         (gl_recursive_lock_destroy): Define as wrapper around
41095         glthread_recursive_lock_destroy.
41096         (glthread_once): New macro/function.
41097         (gl_once): Define as wrapper around glthread_once.
41098         Update function declarations.
41099         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41100         glthread_rwlock_init. Return error code.
41101         (glthread_rwlock_rdlock_multithreaded): Renamed from
41102         glthread_rwlock_rdlock. Return error code.
41103         (glthread_rwlock_wrlock_multithreaded): Renamed from
41104         glthread_rwlock_wrlock. Return error code.
41105         (glthread_rwlock_unlock_multithreaded): Renamed from
41106         glthread_rwlock_unlock. Return error code.
41107         (glthread_rwlock_destroy_multithreaded): Renamed from
41108         glthread_rwlock_destroy. Return error code.
41109         (glthread_recursive_lock_init_multithreaded): Renamed from
41110         glthread_recursive_lock_init. Return error code.
41111         (glthread_recursive_lock_lock_multithreaded): Renamed from
41112         glthread_recursive_lock_lock. Return error code.
41113         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41114         glthread_recursive_lock_unlock. Return error code.
41115         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41116         glthread_recursive_lock_destroy. Return error code.
41117         (glthread_once_call): Make static.
41118         (glthread_once_multithreaded): Renamed from glthread_once.
41119         * lib/tls.h: Include <errno.h>.
41120         (glthread_tls_key_init): New macro/function.
41121         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41122         (glthread_tls_set): New macro/function.
41123         (gl_tls_set): Define as wrapper around glthread_tls_set.
41124         (glthread_tls_key_destroy): New macro/function.
41125         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41126         Update function declarations.
41127         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41128         glthread_tls_get.
41129         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41130
41131 2008-08-04  Eric Blake  <ebb9@byu.net>
41132
41133         gnumakefile: use space, not TAB, outside of targets
41134         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41135
41136 2008-08-02  Jim Meyering  <meyering@redhat.com>
41137
41138         getdate.y: avoid locale-dependent date parsing failure
41139         In Turkish locales, getdate would fail to recognize keywords
41140         containing a lowercase "i".  The solution is not to rely on
41141         locale-sensitive case-conversion.
41142         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41143         (lookup_word): Use c_toupper in place of toupper.
41144         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41145         Reported by Vefa Bicakci <bicave@superonline.com> in
41146         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41147         * modules/getdate (Depends-on): Add c-ctype.
41148
41149 2008-08-02  Bruno Haible  <bruno@clisp.org>
41150
41151         * gnulib-tool (func_import): When updating or creating a .gitignore
41152         file, prepend each added line with a slash, and ignore leading slashes
41153         from the existing lines.
41154         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41155
41156 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41157
41158         Portability fix for GNU make 3.79.1.
41159         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41160         versions do not understand.
41161
41162 2008-08-01  Bruno Haible  <bruno@clisp.org>
41163
41164         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41165         * tests/test-isnanf.h (zero): New variable.
41166         (main): Avoid literal -0.0f.
41167         * tests/test-isnand.h (zero): New variable.
41168         (main): Avoid literal -0.0.
41169         * tests/test-isnanl.h (zero): New variable.
41170         (main): Avoid literal -0.0L.
41171         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41172         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41173         -0.0, -0.0L.
41174         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41175         (test_signbitd): Avoid literal -0.0.
41176         (test_signbitl): Avoid literal -0.0L.
41177         * tests/test-ceilf1.c (zero): New variable.
41178         (main): Avoid literal -0.0f.
41179         * tests/test-ceill.c (zero): New variable.
41180         (main): Avoid literal -0.0L.
41181         * tests/test-floorf1.c (zero): New variable.
41182         (main): Avoid literal -0.0f.
41183         * tests/test-floorl.c (zero): New variable.
41184         (main): Avoid literal -0.0L.
41185         * tests/test-roundf1.c (zero): New variable.
41186         (main): Avoid literal -0.0f.
41187         * tests/test-round1.c (zero): New variable.
41188         (main): Avoid literal -0.0.
41189         * tests/test-roundl.c (zero): New variable.
41190         (main): Avoid literal -0.0L.
41191         * tests/test-truncf1.c (zero): New variable.
41192         (main): Avoid literal -0.0f.
41193         * tests/test-trunc1.c (zero): New variable.
41194         (main): Avoid literal -0.0.
41195         * tests/test-truncl.c (zero): New variable.
41196         (main): Avoid literal -0.0L.
41197         * tests/test-frexp.c (zero): New variable.
41198         (main): Avoid literal -0.0.
41199         * tests/test-frexpl.c (zero): New variable.
41200         (main): Avoid literal -0.0L.
41201         * tests/test-ldexpl.c (zero): New variable.
41202         (main): Avoid literal -0.0L.
41203         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41204         (zerod, zerol): New variables.
41205         (test_function): Avoid literals -0.0, -0.0L.
41206         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41207         (zerod, zerol): New variables.
41208         (test_function): Avoid literals -0.0, -0.0L.
41209         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41210         (zerod, zerol): New variables.
41211         (test_function): Avoid literals -0.0, -0.0L.
41212         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41213         (zerod, zerol): New variables.
41214         (test_function): Avoid literals -0.0, -0.0L.
41215         * tests/test-strtod.c (zero): New variable.
41216         (main): Avoid literal -0.0.
41217         Reported by Jonathan C. Patschke <jp@centtech.com>.
41218
41219 2008-07-31  Jim Meyering  <meyering@redhat.com>
41220
41221         sha256.h: correct definition of SHA224_DIGEST_SIZE
41222         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41223         Reported by Paulie Pena IV <paulie4@gmail.com>.
41224         Define as 224 / 8, rather than as a literal.
41225         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41226         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41227         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41228
41229 2008-07-31  Bruno Haible  <bruno@clisp.org>
41230
41231         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41232         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41233         Reported by Jonathan Patschke <jp@centtech.com>.
41234
41235 2008-07-31  Bruno Haible  <bruno@clisp.org>
41236
41237         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41238         Reported by Paolo Bonzini <bonzini@gnu.org>.
41239
41240 2008-07-30  Eric Blake  <ebb9@byu.net>
41241
41242         test-strtod: allow compilation without -lm
41243         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41244         Reported by Dennis Clarke <blastwave@gmail.com>.
41245
41246 2008-07-28  Jim Meyering  <meyering@redhat.com>
41247
41248         bootstrap: work also when there are no .po files in po/
41249         * build-aux/bootstrap (update_po_files): Complete the change
41250         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41251
41252 2008-07-27  Jim Meyering  <meyering@redhat.com>
41253
41254         * users.txt: Add zile.
41255
41256 2008-07-26  Ben Pfaff  <blp@gnu.org>
41257
41258         Add missing dependencies on new m4/exponent[fdl].m4 files.
41259         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41260         * modules/isnand-nolibm: Add m4/exponentd.m4.
41261         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41262         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41263         m4/isnan[fdl].m4, because the macros actually used moved.
41264         Reported by Jim Meyering.
41265
41266 2008-07-14  Ben Pfaff  <blp@gnu.org>
41267
41268         Add isinf module.
41269         * lib/isinf.c: New file.
41270         * lib/math.in.h: Define isinf macro if we have decided to replace
41271         it.
41272         * m4/isinf.m4: New file.
41273         * m4/math_h.m4: Initialize and substitute variables for isinf
41274         module.
41275         * modules/isinf: New file.
41276         * modules/isinf-tests: New file.
41277         * modules/math: Add substitutions for new module.
41278         * tests/test-isinf.c: New file.
41279         * doc/posix-functions/isinf.texi: Mention new module.
41280         * MODULES.html.sh: Mention new module.
41281
41282 2008-07-14  Ben Pfaff  <blp@gnu.org>
41283
41284         Factor out some macros for use by additional modules.
41285         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41286         exponentf.m4.
41287         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41288         exponentd.m4.
41289         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41290         file exponentl.m4.
41291         * m4/exponentf.m4: New file.
41292         * m4/exponentd.m4: New file.
41293         * m4/exponentl.m4: New file.
41294         * modules/isnanf: Use new file m4/exponentf.m4.
41295         * modules/isnand: Use new file m4/exponentd.m4.
41296         * modules/isnanl: Use new file m4/exponentl.m4.
41297
41298 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41299
41300         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41301         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41302         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41303         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41304
41305         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41306         readlink on platforms without PATH_MAX.
41307
41308 2008-07-21  Eric Blake  <ebb9@byu.net>
41309
41310         Warn, not fail, on stale version.
41311         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41312
41313         Don't allow installation with stale devel version number.
41314         * top/GNUmakefile (_is-install-target): New macro.
41315         (_curr-ver): Forbid installation with stale version number.
41316
41317 2008-07-20  Bruno Haible  <bruno@clisp.org>
41318
41319         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41320         TESTS_ENVIRONMENT.
41321         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41322
41323 2008-07-20  Bruno Haible  <bruno@clisp.org>
41324
41325         * lib/c-stack.h (c_stack_action): Add documentation.
41326         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41327
41328 2008-07-20  Bruno Haible  <bruno@clisp.org>
41329
41330         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41331         * modules/readlink (License): Likewise.
41332
41333 2008-07-17  Eric Blake  <ebb9@byu.net>
41334
41335         * modules/c-stack (Link): Fix typo.
41336
41337         Make c-stack use libsigsegv, when available.
41338         * modules/c-stack (Depends-on): Add libsigsegv.
41339         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41340         needed.
41341         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41342         (segv_handler, overflow_handler, c_stack_action)
41343         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41344         implementation when libsigsegv is available, but only when using
41345         the library is necessary.
41346         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41347         comment, explaining why XSI check fails on Linux.
41348         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41349         * tests/test-c-stack2.sh: Tweak skip message.
41350         * NEWS: Document new link-time requirements.
41351
41352 2008-07-16  Eric Blake  <ebb9@byu.net>
41353
41354         c-stack: Expose false positives when not using libsigsegv.
41355         * modules/c-stack-tests (Files): Expand test.
41356         * tests/test-c-stack.c (main): Add means to conditionally trigger
41357         non-overflow SIGSEGV.
41358         * tests/test-c-stack2.sh: New file.
41359
41360 2008-07-14  Bruno Haible  <bruno@clisp.org>
41361
41362         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41363         Reported by Eric Blake.
41364
41365 2008-07-14  Sam Steingold  <sds@gnu.org>
41366             Bruno Haible  <bruno@clisp.org>
41367
41368         New module libsigsegv.
41369         * modules/libsigsegv: New file.
41370         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41371         modifications.
41372         * MODULES.html.sh (Signal handling): New section.
41373
41374 2008-07-14  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/unictype/ctype-* (Description): Add the word "function".
41377         Improves the resulting doc in MODULES.html.
41378
41379 2008-07-12  Ben Pfaff  <blp@gnu.org>
41380
41381         Add longlong module.
41382         * modules/longlong: New file.
41383
41384 2008-07-12  Bruno Haible  <bruno@clisp.org>
41385
41386         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41387         to empty.
41388
41389 2008-07-10  Ben Pfaff  <blp@gnu.org>
41390
41391         Add isnan module.
41392         * doc/posix-functions/isnan.texi: Mention new module.
41393         * lib/math.in.h: Define isnan macro if we have decided to replace
41394         it.
41395         * m4/isnan.m4: New file.
41396         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41397         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41398         also.
41399         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41400         redundancy.
41401         * m4/math_h.m4: Initialize and substitute variables for isnan
41402         module.
41403         * modules/isnan: New file.
41404         * modules/isnan-tests: New file.
41405         * modules/math: Add substitutions for new module.
41406         * tests/test-isnan.c: New file.
41407         * MODULES.html.sh: Mention new module.
41408
41409 2008-07-10  Ben Pfaff  <blp@gnu.org>
41410
41411         Add isnanf module.
41412         * lib/isnanf.m4: New file.
41413         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41414         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41415         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41416         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41417         * modules/isnanf: New file.
41418         * modules/isnanf-tests: New file.
41419         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41420         files.
41421         * tests/test-isnanf-nolibm.c: factored most of its contents into
41422         new file tests/test-isnanf.h.
41423         * tests/test-isnanf.h: New file.
41424         * tests/test-isnanf.c: New file.
41425         * MODULES.html.sh: Mention new module.
41426         * doc/glibc-functions/isnanf.texi: Mention new module.
41427
41428 2008-07-10  Ben Pfaff  <blp@gnu.org>
41429
41430         Add isnand module.
41431         * lib/isnand.h: New file.
41432         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41433         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41434         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41435         functionality also.
41436         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41437         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41438         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41439         * modules/isnand: New file.
41440         * modules/isnand-tests: New file.
41441         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41442         files.
41443         * tests/test-isnand-nolibm.c: factored most of its contents into
41444         new file tests/test-isnand.h.
41445         * tests/test-isnand.h: New file.
41446         * tests/test-isnand.c: New file.
41447         * MODULES.html.sh: Mention new module.
41448
41449 2008-07-10  Ben Pfaff  <blp@gnu.org>
41450
41451         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41452         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41453         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41454         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41455         * modules/isnanf-nolibm: Update references to renamed files.
41456         * modules/isnand-nolibm: Likewise.
41457         * modules/isnanf-nolibm-tests: Likewise.
41458         * modules/isnand-nolibm-tests: Likewise.
41459         * lib/frexp.c: Likewise.
41460         * lib/isfinite.c: Likewise.
41461         * lib/signbitd.c: Likewise.
41462         * lib/signbitf.c: Likewise.
41463         * lib/vasnprintf.c: Likewise.
41464         * tests/test-ceilf1.c: Likewise.
41465         * tests/test-ceilf2.c: Likewise.
41466         * tests/test-floorf1.c: Likewise.
41467         * tests/test-floorf2.c: Likewise.
41468         * tests/test-frexp.c: Likewise.
41469         * tests/test-round1.c: Likewise.
41470         * tests/test-round2.c: Likewise.
41471         * tests/test-roundf1.c: Likewise.
41472         * tests/test-strtod.c: Likewise.
41473         * tests/test-trunc1.c: Likewise.
41474         * tests/test-trunc2.c: Likewise.
41475         * tests/test-truncf1.c: Likewise.
41476         * tests/test-truncf2.c: Likewise.
41477         * NEWS: Mention the renamed header files.
41478
41479 2008-07-11  Jim Meyering  <meyering@redhat.com>
41480
41481         vc-list-files: make the last-resort awk code more portable
41482         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41483         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41484         does not support it.
41485
41486 2008-07-10  Eric Blake  <ebb9@byu.net>
41487
41488         Work with tar's bootstrap.
41489         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41490         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41491         an m4 comment.
41492
41493 2008-07-09  Jim Meyering  <meyering@redhat.com>
41494
41495         posix-shell.m4: fix typo that made this test malfunction
41496         * m4/posix-shell.m4: Remove capitalization in variable name.
41497
41498 2008-07-08  Bruno Haible  <bruno@clisp.org>
41499
41500         * m4/onceonly.m4: Update comments.
41501         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41502
41503 2008-07-04  Jim Meyering  <meyering@redhat.com>
41504
41505         * users.txt: Add vc-dwim.
41506         (bison, coreutils): Use the gitweb URL.
41507
41508 2008-07-03  Jim Meyering  <meyering@redhat.com>
41509
41510         * users.txt: Add libffcall.  From Sam Steingold.
41511
41512 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41513
41514         getdate.y: do not ignore TZ with relative day, month or year offset
41515         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41516         relative-date-handling, since otherwise, the latter would clobber the
41517         sole output (an updated Start value) of the tz-handling block.
41518         * tests/test-getdate.c: Tests for the fix
41519
41520 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41521
41522         Recognize 'foo_LIBRARIES += libgnu.a'.
41523         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41524         makefile snippet has already specified an installation location,
41525         also using '+='.
41526
41527 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41528
41529         getdate.y: factor out common actions
41530         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41531         Use them in place of open-coded actions.
41532
41533 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41534
41535         Add self-test for getdate module.
41536         * modules/getdate-tests: New file.
41537         * tests/test-getdate.c: New file.
41538
41539 2008-06-29  Bruno Haible  <bruno@clisp.org>
41540
41541         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41542         .gitignore.
41543         Reported by Sylvain Beucler <beuc@beuc.net>.
41544
41545 2008-06-29  Bruno Haible  <bruno@clisp.org>
41546
41547         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41548         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41549
41550 2008-06-29  Bruno Haible  <bruno@clisp.org>
41551
41552         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41553         EXTRA_DIST.
41554         Reported by Sylvain Beucler <beuc@beuc.net>.
41555
41556 2008-06-26  Jim Meyering  <meyering@redhat.com>
41557
41558         make several modules depend on the "open" module
41559         This provides slightly increased consistency when opening-for-write
41560         the name of a non-directory spelled with a trailing slash.
41561         * modules/chdir-safer: Likewise.
41562         * modules/chown: Likewise.
41563         * modules/clean-temp: Likewise.
41564         * modules/copy-file: Likewise.
41565         * modules/fchdir: Likewise.
41566         * modules/fcntl-safer: Likewise.
41567         * modules/pipe: Likewise.
41568         * modules/utime: Likewise.
41569         Prompted by Eric Blake and Bruno Haible.
41570
41571 2008-06-24  Andreas Schwab  <schwab@suse.de>
41572
41573         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41574         literals can be used as initializers for global variables.
41575
41576 2008-06-23  Eric Blake  <ebb9@byu.net>
41577
41578         Make gnulib-cache.m4 easier to diff.
41579         * gnulib-tool (func_import): Allow newlines when reading cached
41580         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41581
41582 2008-06-23  Bruno Haible  <bruno@clisp.org>
41583
41584         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41585         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41586         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41587         m4/signalblocking.m4.
41588         (gl_PREREQ_SIGACTION): Don't invoke it.
41589         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41590         gl_PREREQ_SIG_HANDLER_H.
41591         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41592         Don't check for sigaction here.
41593
41594 2008-06-23  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41597         (install_handlers): Don't set the SA_RESETHAND flag.
41598
41599 2008-06-23  Bruno Haible  <bruno@clisp.org>
41600
41601         * m4/sigaction.m4: Comment fixes.
41602         * lib/signal.in.h: Likewise.
41603
41604 2008-06-23  Eric Blake  <ebb9@byu.net>
41605
41606         Fix typo.
41607         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41608
41609         Avoid SA_ namespace.
41610         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41611         Reported by Ralf Wildenhues.
41612
41613         Avoid test failure due to SA_RESTORER.
41614         * tests/test-sigaction.c (SA_MASK): New macro.
41615         (main): Avoid failing due to extension flags being set.
41616         Reported by Jim Meyering.
41617
41618         Revert use of sig-handler.h in sigprocmask.c.
41619         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41620         it requires the existence of struct sigaction.
41621         * lib/sigprocmask.c (handler_t): Restore typedef.
41622         (rpl_signal, old_handlers): Use local type.
41623
41624 2008-06-22  Bruno Haible  <bruno@clisp.org>
41625
41626         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41627         conditionally.
41628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41629
41630 2008-06-22  Bruno Haible  <bruno@clisp.org>
41631
41632         * doc/posix-functions/siginterrupt.texi: Move note.
41633
41634         * lib/signal.in.h (SA_RESTART): New macro.
41635         * lib/sigaction.c: Update comment.
41636
41637         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41638
41639         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41640         (gl_PREREQ_SIGPROCMASK): Invoke it.
41641         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41642
41643         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41644
41645         * lib/sigprocmask.c: Update a comment.
41646
41647 2008-06-21  Eric Blake  <ebb9@byu.net>
41648
41649         Use sigaction module rather than signal().
41650         * modules/c-stack (Depends-on): Add sigaction.
41651         * modules/fatal-signal (Depends-on): Likewise.
41652         * modules/nanosleep (Depends-on): Likewise.
41653         * modules/sigprocmask (Files): Add sig-handler.h.
41654         * modules/sigaction (Files): Likewise.
41655         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41656         Eggert.
41657         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41658         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41659         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41660         (init_fatal_signals): Likewise.
41661         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41662         (siginterrupt): Delete fallback.
41663         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41664         instead.
41665         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41666         siginterrupt.
41667
41668         New module sigaction, for mingw.
41669         * modules/sigaction: New module...
41670         * modules/sigaction-tests: ...and its test.
41671         * m4/sigaction.m4: New file.
41672         * lib/sigaction.c: Likewise.
41673         * tests/test-sigaction.c: Likewise.
41674         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41675         * modules/signal (Makefile.am): Likewise.
41676         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41677         needed.
41678         * doc/posix-headers/signal.texi (signal.h): Mention provided
41679         types.
41680         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41681         that sigaction is preferable.
41682         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41683         module.
41684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41685         sigaction.
41686
41687         Improve robustness of sigprocmask by overriding signal.
41688         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41689         is in use.
41690         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41691         (SIGKILL, SIGSTOP): Provide fallbacks.
41692         (rpl_signal): Implement.
41693         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41694         signal can be called inside handlers.
41695
41696         Fix nanosleep module on mingw.
41697         * modules/nanosleep (Depends-on): Add sys_select.
41698         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41699
41700         Fix licensing of sigprocmask.
41701         * modules/raise (License): Relicense as LGPL.
41702
41703 2008-06-21  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41706         result if it contains question marks.
41707         Reported by Michael Geng <linux@michaelgeng.de>.
41708
41709 2008-06-19  Bruno Haible  <bruno@clisp.org>
41710
41711         Fix CVS-ism.
41712         * doc/gnulib.texi: Include updated-stamp.texi.
41713         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41714         (updated-stamp.texi): New rule.
41715         (gnulib.info): Depend on it.
41716         * doc/.gitignore: Add updated-stamp.texi.
41717         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41718
41719 2008-06-19  Bruno Haible  <bruno@clisp.org>
41720
41721         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41722         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41723
41724 2008-06-19  Eric Blake  <ebb9@byu.net>
41725
41726         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41727         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41728         Reported by Stepan Kasal.
41729
41730 2008-06-18  Bruno Haible  <bruno@clisp.org>
41731
41732         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41733         Reported by Eric Blake.
41734
41735 2008-06-18  Eric Blake  <ebb9@byu.net>
41736
41737         Work around cygwin 1.5.25 strsignal bug.
41738         * tests/test-strsignal.c: Allow for const char *.
41739         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41740
41741 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41742
41743         * users.txt: Update URL to article and add author/date
41744         information.
41745
41746 2008-06-17  Bruno Haible  <bruno@clisp.org>
41747
41748         New macro gl_DISABLE_THREADS.
41749         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41750         if the user did not pass --enable-threads or --disable-threads option.
41751         (gl_DISABLE_THREADS): New macro.
41752         Reported by Eric Blake <ebb9@byu.net>.
41753
41754 2008-06-17  Bruno Haible  <bruno@clisp.org>
41755
41756         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41757         when the macro ignores it.
41758         Based on a patch by Eric Blake <ebb9@byu.net>.
41759
41760 2008-06-17  Bruno Haible  <bruno@clisp.org>
41761
41762         * modules/tls (License): Change to LGPLv2+.
41763         Reported by Eric Blake.
41764
41765 2008-06-17  Eric Blake  <ebb9@byu.net>
41766
41767         Simplify c-stack prerequisites.
41768         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41770         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41771         check.
41772         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41773         <sys/resource.h>.
41774
41775         Move c-stack test into testsuite.
41776         * modules/c-stack-tests: New file.
41777         * lib/c-stack.c [DEBUG]: Move test program...
41778         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41779         fail test if sigaltstack is lacking.
41780         * tests/test-c-stack.sh: New driver file.
41781
41782 2008-06-16  Eric Blake  <ebb9@byu.net>
41783
41784         Use raise module consistently.
41785         * modules/fatal-signal (Depends-on): Add raise.
41786         * modules/sigprocmask (Depends-on): Likewise.
41787         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41788         * lib/sigprocmask.c (sigprocmask): Likewise.
41789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41790         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41791
41792         Fix compliance bug in sigpending.
41793         * lib/sigprocmask.c (sigpending): Return pending array via
41794         parameter, not return value.
41795
41796 2008-06-14  Eric Blake  <ebb9@byu.net>
41797
41798         Improve obstack-printf test code.
41799         * tests/test-obstack-printf.c (test_function): Fix comment, and
41800         simplify usage of obstack_* in macros.  Add a test for coverage.
41801         Reported by Bruno Haible.
41802
41803 2008-06-14  Bruno Haible  <bruno@clisp.org>
41804
41805         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41806         array size as a constant, not as a const variable.
41807         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41808         AC_USE_SYSTEM_EXTENSIONS.
41809         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41810         Test whether the obstack_printf function actually exists.
41811         * modules/obstack-printf (Depends-on): Add extensions.
41812         (Include): Remove obstack.h.
41813         * modules/obstack-printf-posix (Depends-on): Add extensions.
41814         (Include): Remove obstack.h.
41815
41816 2008-06-13  Eric Blake  <ebb9@byu.net>
41817
41818         Add obstack-printf and obstack-printf-posix modules.
41819         * modules/obstack-printf: New file.
41820         * modules/obstack-printf-posix: Likewise.
41821         * MODULES.html.sh (Misc): Mention them.
41822         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41823         Likewise.
41824         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41825         Likewise.
41826         * modules/stdio (Makefile.am): Accomodate new modules.
41827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41828         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41829         Declare.
41830         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41831         functions.
41832         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41833         (gl_REPLACE_OBSTACK_PRINTF): New macros
41834         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41835         * tests/test-obstack-printf.c: New file.
41836         * modules/obstack-printf-tests: Likewise.
41837         * modules/obstack-printf-posix-tests: Likewise.
41838
41839 2008-06-11  Bruno Haible  <bruno@clisp.org>
41840
41841         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41842         * lib/open.c: Include errno.h.
41843         (open): Fail when attempting to write to a file that has a trailing
41844         slash.
41845         * tests/test-open.c (main): Test against trailing slash bug.
41846         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41847
41848 2008-06-10  Bruno Haible  <bruno@clisp.org>
41849
41850         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41851         for $? to work inside the trap command, with various /bin/sh-s.
41852         * tests/test-vc-list-files-cvs.sh: Likewise.
41853
41854 2008-06-10  Bruno Haible  <bruno@clisp.org>
41855
41856         * lib/acl-internal.h: Don't include gettext.h here.
41857         * lib/set-mode-acl.c: Include gettext.h here.
41858         * lib/copy-acl.c: Likewise.
41859
41860 2008-06-10  Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41863         * lib/wait-process.c (wait_subprocess): Likewise.
41864         * lib/execute.h (execute): Add termsigp argument.
41865         * lib/execute.c (execute): Likewise.
41866         * lib/csharpcomp.c (compile_csharp_using_pnet,
41867         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41868         * lib/csharpexec.c (execute_csharp_using_pnet,
41869         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41870         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41871         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41872         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41873         is_jikes_present): Update.
41874         * lib/javaexec.c (execute_java_class): Update.
41875         * lib/javaversion.c (execute_and_read_line): Update.
41876         * NEWS: Document the changes.
41877         Reported by Eric Blake.
41878
41879 2008-06-10  Eric Blake  <ebb9@byu.net>
41880
41881         Add missing include.
41882         * tests/test-strstr.c (includes): Add <signal.h>.
41883         * tests/test-strcasestr.c (includes): Likewise.
41884         * tests/test-memmem.c (includes): Likewise.
41885
41886 2008-06-10  Bruno Haible  <bruno@clisp.org>
41887
41888         * lib/wait-process.c (wait_subprocess): Add an assertion.
41889
41890 2008-06-10  Bruno Haible  <bruno@clisp.org>
41891
41892         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41893
41894 2008-06-10  Bruno Haible  <bruno@clisp.org>
41895
41896         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41897         using alarm().
41898         * tests/test-strcasestr.c (main): Likewise.
41899         * tests/test-strstr.c (main): Likewise.
41900
41901 2008-06-09  Bruno Haible  <bruno@clisp.org>
41902
41903         Work around the Solaris 10 ACE ACLs ABI change.
41904         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41905         declare if ACL_NO_TRIVIAL is present.
41906         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41907         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41908         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41909         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41910         define if ACL_NO_TRIVIAL is present.
41911         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41912         and use the current ABI.
41913         (file_has_acl): Use same #if condition as elsewhere.
41914         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41915         in use, and use the current ABI.
41916         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41917         Reported by Jim Meyering.
41918
41919 2008-06-09  Eric Blake  <ebb9@byu.net>
41920
41921         Work around environments that (stupidly) ignore SIGALRM.
41922         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41923         before using alarm().
41924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41926         Reported by Ian Beckwith <ianb@erislabs.net>.
41927
41928         Produce autobuild blurb earlier in log.
41929         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41930
41931 2008-06-09  Jim Meyering  <meyering@redhat.com>
41932         and OndÅ™ej Vašík  <ovasik@redhat.com>
41933
41934         utimens.c: correct kernel bug work-around
41935         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41936         failure, not success, and the kernel bug we're trying to work
41937         around affects not just the utimensat call, but also the fallback
41938         futimens call.
41939         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41940         not success.
41941         [HAVE_FUTIMENS]: Use the same work-around, here.
41942
41943 2008-06-09  Jim Meyering  <meyering@redhat.com>
41944
41945         add more guards around definition of ACE_-related code
41946         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41947         ALLOW and ACE_OWNER are also defined.
41948
41949 2008-06-08  Bruno Haible  <bruno@clisp.org>
41950
41951         * lib/acl-internal.h: Add me as co-author.
41952         * lib/file-has-acl.c: Likewise.
41953         * lib/set-mode-acl.c: Likewise.
41954         * lib/copy-acl.c: Likewise.
41955
41956 2008-06-08  Bruno Haible  <bruno@clisp.org>
41957
41958         Add support for AIX ACLs.
41959         * lib/acl-internal.h (acl_nontrivial): New declaration.
41960         * lib/file-has-acl.c (acl_nontrivial): New function.
41961         (file_has_acl): Add implementation using AIX 4 ACL API.
41962         * lib/set-mode-acl.c (qset_acl): Likewise.
41963         * lib/copy-acl.c (qcopy_acl): Likewise.
41964
41965 2008-06-08  Bruno Haible  <bruno@clisp.org>
41966
41967         Add support for HP-UX ACLs.
41968         * lib/acl-internal.h (acl_nontrivial): New declaration.
41969         * lib/file-has-acl.c (acl_nontrivial): New function.
41970         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41971         * lib/set-mode-acl.c (qset_acl): Likewise.
41972         * lib/copy-acl.c (qcopy_acl): Likewise.
41973
41974 2008-06-08  Bruno Haible  <bruno@clisp.org>
41975
41976         Add support for Cygwin ACLs.
41977         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41978         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41979         the chmod_or_fchmod call.
41980         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41981
41982 2008-06-08  Bruno Haible  <bruno@clisp.org>
41983
41984         Fix bug with setuid modes in Solaris 10+ code.
41985         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41986         succeeded, when the mode contains some special bits.
41987
41988 2008-06-08  Bruno Haible  <bruno@clisp.org>
41989
41990         Add support for Solaris 7..10 ACLs.
41991         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41992         declarations.
41993         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41994         functions.
41995         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41996         * lib/set-mode-acl.c (qset_acl): Likewise.
41997         * lib/copy-acl.c (qcopy_acl): Likewise.
41998
41999 2008-06-08  Bruno Haible  <bruno@clisp.org>
42000
42001         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42002         declaration.
42003         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42004         (acl_access_nontrivial): Remove MacOS X case.
42005         (file_has_acl): Use acl_extended_nontrivial.
42006         * lib/copy-acl.c (qcopy_acl): Likewise.
42007
42008 2008-06-08  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42011
42012 2008-06-08  Jim Meyering  <meyering@redhat.com>
42013
42014         * modules/acl (Maintainer): Add Bruno Haible.
42015
42016 2008-06-07  Bruno Haible  <bruno@clisp.org>
42017
42018         Improve support for Tru64 ACLs.
42019         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42020         ACL on OSF/1.
42021
42022 2008-06-07  Bruno Haible  <bruno@clisp.org>
42023
42024         Add support for MacOS X ACLs.
42025         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42026         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42027         * lib/set-mode-acl.c (qset_acl): Likewise.
42028         * lib/copy-acl.c (qcopy_acl): Likewise.
42029
42030 2008-06-07  Bruno Haible  <bruno@clisp.org>
42031
42032         Fix memory leak introduced on 2008-05-22.
42033         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42034         use.
42035
42036 2008-06-07  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42039         to construct an empty ACL.
42040
42041 2008-06-07  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42044         precisely.
42045         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42046
42047 2008-06-07  Bruno Haible  <bruno@clisp.org>
42048
42049         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42050         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42051
42052 2008-06-07  Bruno Haible  <bruno@clisp.org>
42053
42054         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42055         regardless of POSIX.
42056         * doc/posix-functions/_longjmp.texi: Likewise.
42057         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42058         SystemV platform in this case.
42059
42060 2008-06-06  Eric Blake  <ebb9@byu.net>
42061
42062         Document abort() bugs.
42063         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42064
42065         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42066         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42067         sigsetjmp.
42068         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42069         siglongjmp, but only as a macro.
42070         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42071         is obsolete.
42072         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42073
42074         Tweak documentation to cover cygwin argz bugs.
42075         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42076         argz bug fix; no code change needed since no cygwin releases
42077         occurred between the last fix and the bug being tested.
42078         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42079         module and recently fixed cygwin bugs.
42080         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42081         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42082         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42083         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42084         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42085         Likewise.
42086         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42087         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42088         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42089         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42090         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42091         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42092         Likewise.
42093
42094         Avoid gcc warning on cygwin.
42095         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42096         !ACL_NO_TRIVIAL]: Avoid unused variable.
42097
42098 2008-06-05  Eric Blake  <ebb9@byu.net>
42099
42100         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42101         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42102         git-version-gen fails to come up with a version.
42103         Reported by Simon Josefsson.
42104
42105 2008-06-05  Jim Meyering  <meyering@redhat.com>
42106             Paul Eggert  <eggert@cs.ucla.edu>
42107
42108         utimens.c: work around a probable Linux kernel bug
42109         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42110         appears to be a kernel bug that causes utimensat to return 280
42111         instead of 0, indicating success.
42112
42113 2008-06-04  Bruno Haible  <bruno@clisp.org>
42114
42115         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42116         2008-06-01 commit.
42117
42118 2008-06-04  Bruno Haible  <bruno@clisp.org>
42119
42120         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42121         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42122         (file_has_acl): Use it. Save errno afterwards.
42123         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42124
42125 2008-06-03  Bruno Haible  <bruno@clisp.org>
42126
42127         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42128         draft code. Simplify #ifs.
42129         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42130         Put Solaris code after POSIX-draft code. Fix comments regarding
42131         Solaris 10, HP-UX. Mention Cygwin.
42132         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42133
42134 2008-06-03  Eric Blake  <ebb9@byu.net>
42135
42136         Provide fallback for older kernels.
42137         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42138         Provide runtime fallback if kernel lacks support.
42139         Reported by Mike Frysinger.
42140
42141 2008-06-02  Bruno Haible  <bruno@clisp.org>
42142
42143         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42144         it exists.
42145
42146 2008-06-02  Bruno Haible  <bruno@clisp.org>
42147
42148         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42149         * lib/copy-acl.c (qcopy_acl): Update comment.
42150
42151 2008-06-02  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42154         like ACL APIs.
42155
42156 2008-06-02  Bruno Haible  <bruno@clisp.org>
42157
42158         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42159         * tests/test-set-mode-acl.sh: Likewise.
42160         * tests/test-copy-acl.sh: Likewise.
42161         * tests/test-copy-file.sh: Likewise.
42162
42163 2008-06-02  Bruno Haible  <bruno@clisp.org>
42164
42165         * tests/test-file-has-acl.sh: Remove unused code.
42166
42167 2008-06-01  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42170         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42171         messages.
42172         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42173
42174 2008-06-01  Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42177         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42178         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42179         APIs.
42180         * modules/acl-tests (configure.ac): Remove tests now contained in
42181         m4/acl.m4.
42182
42183 2008-06-02  Jim Meyering  <meyering@redhat.com>
42184
42185         announce-gen: use a better key-server host name
42186         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42187         it may be more consistently reliable.  Suggested by Werner Koch
42188         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42189
42190 2008-06-01  Bruno Haible  <bruno@clisp.org>
42191
42192         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42193         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42194
42195 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42196
42197         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42198
42199 2008-06-01  Bruno Haible  <bruno@clisp.org>
42200
42201         New ACL tests.
42202         * tests/test-file-has-acl.sh: New file.
42203         * tests/test-file-has-acl.c: New file.
42204         * tests/test-set-mode-acl.sh: New file.
42205         * tests/test-set-mode-acl.c: New file.
42206         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42207         * tests/test-copy-acl.c: New file.
42208         * modules/acl-tests: New file, based on modules/copy-file-tests.
42209         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42210         (Depends-on): Add acl-tests.
42211         (configure.ac): Remove checks.
42212         (Makefile.am): Don't create test-sameacls program here any more.
42213
42214 2008-06-01  Bruno Haible  <bruno@clisp.org>
42215
42216         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42217         * tests/test-sameacls.c: Include progname.h.
42218         (main): Invoke set_program_name. Portability fixes for MacOS X,
42219         Solaris, HP-UX.
42220
42221 2008-06-01  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42224         function.
42225         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42226
42227 2008-06-01  Bruno Haible  <bruno@clisp.org>
42228
42229         * modules/rpmatch (Depends-on): Add strdup.
42230
42231 2008-06-01  Bruno Haible  <bruno@clisp.org>
42232
42233         * lib/pipe.c: Include unistd-safer.h.
42234         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42235         * modules/pipe (Depends-on): Add unistd-safer.
42236
42237 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42238
42239         * modules/autobuild (configure.ac): Call AB_INIT.
42240
42241 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42242
42243         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42244         Suggested by Bruno Haible <bruno@clisp.org>.
42245
42246 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42247
42248         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42249         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42250         <bruno@clisp.org>.
42251
42252 2008-05-29  Eric Blake  <ebb9@byu.net>
42253
42254         Prefer new POSIX 200x interfaces over futimesat.
42255         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42256         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42257         when available.
42258         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42259
42260 2008-05-28  Bruno Haible  <bruno@clisp.org>
42261
42262         * modules/stpcpy (License): Change to LGPLv2+.
42263         Requested by David Lutterkort <dlutter@redhat.com>.
42264
42265 2008-05-27  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42268         current mingw.
42269         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42270
42271 2008-05-27  Bruno Haible  <bruno@clisp.org>
42272
42273         * modules/iconv_open (Link): New section, from module 'iconv'.
42274         * modules/striconv (Link): Likewise.
42275         * modules/striconveh (Link): Likewise.
42276         * modules/xstriconv (Link): Likewise.
42277         * modules/unicodeio (Link): Likewise.
42278         * modules/propername (Link): Likewise.
42279         Reported by Jim Meyering.
42280
42281 2008-05-26  Jim Meyering  <meyering@redhat.com>
42282
42283         sha256: do not artificially restrict buffer length to be < 2^32
42284         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42285         uint32_t to size_t.
42286         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42287         to match.
42288
42289         avoid unaligned access errors, e.g., on sparc
42290         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42291         direct access through a possibly-unaligned uint64* pointer.
42292         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42293         direct access through a possibly-unaligned uint32* pointer.
42294         Prompted by this patch from Tom "spot" Callaway:
42295         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42296
42297         sha512.c: fix typo in comment
42298         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42299
42300 2008-05-25  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42303         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42304         (Makefile.am): Update lib_SOURCES.
42305
42306 2008-05-25  Bruno Haible  <bruno@clisp.org>
42307
42308         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42309
42310 2008-05-25  Jim Meyering  <meyering@redhat.com>
42311
42312         useless-if-before-free: freed expr may have white-space differences
42313         * build-aux/useless-if-before-free: Recognize cases in which the
42314         freed expression differs from the tested one in embedded white
42315         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42316         $1 was used, so we can't make any regexp shy.  Improved tests now
42317         detect this.
42318
42319         useless-if-before-free: accept white space in the expression.
42320         * build-aux/useless-if-before-free: For now, any white space
42321         in the expression must be identical in the free argument.
42322
42323         useless-if-before-free: efficiency tweak
42324         * build-aux/useless-if-before-free: Make the expression-matching
42325         regexp "shy".
42326         Make the *outer* regexp shy, not the expr-matching one.
42327
42328         update code-in-comment to accept cast of free arg
42329         * build-aux/useless-if-before-free: Update regexp.
42330
42331 2008-05-25  Bruno Haible  <bruno@clisp.org>
42332
42333         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42334         * modules/copy-file-tests (Files, Makefile.am): Update.
42335         * tests/test-copy-file.c (func_test_copy): Update.
42336
42337 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42338
42339         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42340
42341 2008-05-23  Bruno Haible  <bruno@clisp.org>
42342
42343         Improve support for ACLs on OSF/1.
42344         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42345         Remove fallback for unknown flavors of ACLs.
42346
42347 2008-05-22  Bruno Haible  <bruno@clisp.org>
42348
42349         Add support for ACLs on OSF/1.
42350         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42351         replacements.
42352         (acl_free_text): New macro fallback.
42353         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42354         acl_free.
42355         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42356         acl_free_text function. Require AC_C_INLINE.
42357
42358 2008-05-22  Bruno Haible  <bruno@clisp.org>
42359
42360         Make copy_acl work on MacOS X 10.5.
42361         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42362         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42363         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42364         If MODE_INSIDE_ACL, don't assume that every system has the same text
42365         representation for ACLs as FreeBSD.
42366         * lib/copy-acl.c (copy_acl): Add support for platforms with
42367         !MODE_INSIDE_ACL.
42368         * lib/file-has-acl.c (file_has_acl): Likewise.
42369         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42370         FreeBSD, MacOS X, or IRIX, respectively.
42371
42372 2008-05-22  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/acl.h: Don't include <sys/acl.h>.
42375         (GETACLCNT): Move fallback to lib/acl-internal.h.
42376         * lib/acl-internal.h: Include <sys/acl.h> here.
42377         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42378
42379 2008-05-22  Bruno Haible  <bruno@clisp.org>
42380
42381         Split off copy_acl function to separate file.
42382         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42383         * lib/acl.c (copy_acl): Moved function to separate file.
42384         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42385         * modules/acl (Files): Add lib/copy-acl.c.
42386         (Makefiles.am): Augment lib_SOURCES.
42387
42388 2008-05-22  Bruno Haible  <bruno@clisp.org>
42389
42390         * modules/copy-file-tests: New file.
42391         * tests/test-copy-file.sh: New file.
42392         * tests/test-copy-file.c: New file.
42393         * tests/test-copy-file-sameacls.c: New file.
42394
42395 2008-05-22  Eric Blake  <ebb9@byu.net>
42396
42397         Avoid gcc warning.
42398         * tests/test-memcmp.c (main): Pass NULL indirectly.
42399
42400 2008-05-21  Bruno Haible  <bruno@clisp.org>
42401
42402         Add reference doc about ACLs.
42403         * doc/acl-resources.txt: New file.
42404         * doc/acl-cygwin.txt: New file.
42405
42406 2008-05-21  Bruno Haible  <bruno@clisp.org>
42407
42408         Avoid one more warning from gcc.
42409         * lib/vasnprintf.c (IF_LINT): Update comments.
42410         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42411
42412 2008-05-21  Jim Meyering  <meyering@redhat.com>
42413
42414         avoid a warning from gcc
42415         * lib/vasnprintf.c (IF_LINT): Define.
42416         (scale10_round_decimal_long_double):
42417         Use it to avoid a "may be used uninitialized" warning.
42418         (scale10_round_decimal_double): Likewise.
42419
42420 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42421
42422         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42423         declared.
42424
42425 2008-05-20  Bruno Haible  <bruno@clisp.org>
42426
42427         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42428         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42429
42430 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42431
42432         * modules/memcmp-tests: New file.
42433         * tests/test-memcmp.c: New file.
42434
42435 2008-05-19  Bruno Haible  <bruno@clisp.org>
42436
42437         * modules/propername (Notice, configure.ac): Put quoted "..." into
42438         --keyword option.
42439         * lib/propername.h: Update comments accordingly.
42440         Reported by Eric Blake.
42441
42442 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42443
42444         * modules/getpass-gnu (Depends-on): Add fseeko.
42445
42446 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42447
42448         * modules/base64-tests: New file.
42449
42450 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42451
42452         * lib/base64.c (base64_decode_ctx): If a decode context structure
42453         was passed in use it to ignore newlines.  If a context structure
42454         was _not_ passed in, continue to treat newlines as garbage (this
42455         is the historical behavior).  Formerly base64_decode.
42456         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42457         takes a decode context structure.
42458         * lib/base64.h (base64_decode): Macro for four-argument calls.
42459         (base64_decode_alloc): Likewise.
42460         * lib/base64.c (base64_decode_ctx): If a decode context structure
42461         was passed in use it to ignore newlines.  If a context structure
42462         was _not_ passed in, continue to treat newlines as garbage (this
42463         is the historical behavior).  Formerly base64_decode.
42464         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42465         takes a decode context structure.
42466         * lib/base64.h (base64_decode): Macro for four-argument calls.
42467         (base64_decode_alloc): Likewise.
42468
42469 2008-05-19  Jim Meyering  <meyering@redhat.com>
42470
42471         avoid a warning from gcc
42472         * lib/trim.c (IF_LINT): Define.
42473         (trim2): Use it to avoid a "may be used uninitialized" warning.
42474
42475         Fix doc typo.
42476         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42477
42478 2008-05-19  Bruno Haible  <bruno@clisp.org>
42479
42480         * doc/glibc-functions/getpass.texi: Document limits of other
42481         implementations.
42482
42483 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42484             Bruno Haible <bruno@clisp.org>
42485
42486         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42487
42488 2008-05-18  Bruno Haible  <bruno@clisp.org>
42489
42490         * modules/propername: New file, from GNU gettext.
42491         * lib/propername.h: New file, from GNU gettext.
42492         * lib/propername.c: New file, from GNU gettext.
42493         * MODULES.html.sh (Internationalization functions): Add propername.
42494
42495 2008-05-16  Jim Meyering  <meyering@redhat.com>
42496             Bruno Haible  <bruno@clisp.org>
42497
42498         Avoid some warnings from "gcc -Wshadow".
42499         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42500
42501 2008-05-15  Eric Blake  <ebb9@byu.net>
42502
42503         Extend previous patch to cygwin 1.7.0.
42504         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42505         fast implementation in cygwin >= 1.7.0.
42506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42508
42509 2008-05-15  Bruno Haible  <bruno@clisp.org>
42510
42511         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42512         implementation in glibc >= 2.9.
42513         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42515
42516 2008-05-15  Bruno Haible  <bruno@clisp.org>
42517
42518         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42519         (Unicode string functions): Add unilbrk/*.
42520         Reported by Karl Berry.
42521
42522 2008-05-15  Eric Blake  <ebb9@byu.net>
42523
42524         Fix violation of <stdbool.h> replacement in regex.
42525         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42526         * lib/regexec.c (re_search_internal): Likewise.
42527         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42528
42529 2008-05-15  Jim Meyering  <meyering@redhat.com>
42530
42531         avoid distracting test output when git or cvs is not found
42532         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42533         * tests/test-vc-list-files-git.sh: Likewise.
42534
42535 2008-05-15  Eric Blake  <ebb9@byu.net>
42536
42537         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42538         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42539         glibc version.
42540         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42541         * doc/posix-functions/strstr.texi (strstr): Likewise.
42542         * lib/str-two-way.h (MAX): Sychronize with glibc.
42543
42544 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42545
42546         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42547         opr.ctx_type.
42548         (calc_first): Initialize constraint field.
42549         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42550         Fix grammar.
42551         (duplicate_node): Merge constraint field for all node types.
42552         (calc_eclosure_iter): Look at constraint field for all node types.
42553         * lib/regex_internal.c (create_cd_newstate): Don't look at
42554         opr.ctx_type.
42555
42556 2008-05-14  Bruno Haible  <bruno@clisp.org>
42557
42558         Help GCC to do better code generation.
42559         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42560         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42561         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42562         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42563         Declare with attribute 'malloc' if supported.
42564
42565 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42566
42567         use "echo STR|wc -c" rather than unportable "expr length STR"
42568         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42569         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42570
42571 2008-05-14  Jim Meyering  <meyering@redhat.com>
42572
42573         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42574         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42575         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42576         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42577         via Collin Lasse.
42578
42579 2008-05-14  Eric Blake  <ebb9@byu.net>
42580
42581         Avoid quadratic growth in gl_LIBSOURCES.
42582         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42583         Suggested by Bruno Haible.
42584
42585         Test xmemdup0.
42586         * modules/xmemdup0-tests: New file.
42587         * tests/test-xmemdup0.c: Likewise.
42588
42589 2008-05-13  Eric Blake  <ebb9@byu.net>
42590
42591         Split xmemdup0 into its own module.
42592         * modules/xmemdup0: New file.
42593         * lib/xmemdup0.h: Likewise.
42594         * lib/xmemdup0.c: Likewise.
42595         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42596         * lib/xalloc.h (xmemdup0): Remove.
42597         * lib/xmalloc.c (xmemdup0): Likewise.
42598
42599 2008-05-13  Eric Blake  <ebb9@byu.net>
42600             Bruno Haible  <bruno@clisp.org>
42601
42602         Reduce number of forks required during autoconf.
42603         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42604         and gl_LIBSOURCES_DIR.
42605         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42606         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42607         m4_syscmd per file.
42608         <m4_foreach_w>: Move...
42609         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42610
42611 2008-05-13  Eric Blake  <ebb9@byu.net>
42612
42613         * gnulib-tool: Fix various comment typos.
42614
42615 2008-05-12  Bruno Haible  <bruno@clisp.org>
42616
42617         Tailor the linebreaking algorithm.
42618         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42619
42620 2008-05-12  Bruno Haible  <bruno@clisp.org>
42621
42622         Update to Unicode 5.0.0.
42623         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42624         LBP_JV, LBP_JT. Redistribute values.
42625         (unilbrk_table): Change size.
42626         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42627         Unicode TR#14 rev. 22.
42628         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42629         LBP_JV, LBP_JT. Redistribute values.
42630         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42631         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42632         Update.
42633         * lib/unilbrk/lbrkprop1.h: Regenerated.
42634         * lib/unilbrk/lbrkprop2.h: Regenerated.
42635         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42636         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42637         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42638         Likewise.
42639         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42640         Likewise.
42641         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42642         result.
42643         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42644         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42645         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42646         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42647         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42648         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42649
42650 2008-05-11  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42653
42654 2008-05-11  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42657         * modules/unilbrk/gen-lbrk: New file.
42658
42659 2008-05-11  Bruno Haible  <bruno@clisp.org>
42660
42661         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42662         * m4/sha512.m4 (gl_SHA512): Likewise.
42663
42664 2008-05-11  Jim Meyering  <meyering@redhat.com>
42665
42666         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42667         * modules/crypto/sha256: New file.
42668         * modules/crypto/sha512: Likewise.
42669         * lib/sha256.c: Likewise.
42670         * lib/sha256.h: Likewise.
42671         * lib/sha512.c: Likewise.
42672         * lib/sha512.h: Likewise.
42673         * lib/u64.h: Likewise.
42674         * m4/sha256.m4: Likewise.
42675         * m4/sha512.m4: Likewise.
42676         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42677
42678 2008-05-10  Bruno Haible  <bruno@clisp.org>
42679
42680         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42681         (Input/Output <stdio.h>): Add xprintf.
42682         (Signal handling <signal.h>): Add strsignal.
42683         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42684         (Core language properties): Add func.
42685         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42686         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42687         strings.
42688         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42689         (Input/output): New section.
42690         (File system functions): Add openat-die, stat-macros.
42691         (Networking functions): Add sockets.
42692         (Unicode string functions): Add unictype/*.
42693         (Support for building libraries and executables): Add gperf.
42694         (Support for building documentation): Add agpl-3.0.
42695         (Misc): Add nocrash.
42696
42697 2008-05-10  Bruno Haible  <bruno@clisp.org>
42698
42699         * modules/unictype/gen-ctype: New file.
42700
42701 2008-05-10  Jim Meyering  <meyering@redhat.com>
42702
42703         Make chdir-safer.c more efficient on a system with no symlinks.
42704         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42705         also if ELOOP is zero.  Suggested by Bruno Haible.
42706
42707         Make chdir-safer.c slightly safer.
42708         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42709         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42710
42711         Avoid compile failure on systems without ELOOP (like mingw).
42712         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42713         Reported by Bruno Haible.
42714
42715 2008-05-10  Bruno Haible  <bruno@clisp.org>
42716
42717         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42718         (is_utf8_encoding): Use a case-insensitive comparison.
42719         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42720         streq.
42721
42722 2008-05-10  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42725         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42726         * lib/unilbrk/ulc-common.h (iconv_string_length,
42727         iconv_string_keeping_offsets): Remove declarations.
42728         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42729         Don't include <iconv.h>, streq.h, xsize.h.
42730         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42731         conversion.
42732         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42733         <iconv.h>, streq.h, xsize.h.
42734         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42735         conversion.
42736         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42737         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42738         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42739         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42740
42741 2008-05-10  Bruno Haible  <bruno@clisp.org>
42742
42743         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42744         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42745
42746         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42747         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42748
42749         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42750         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42751
42752         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42753         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42754
42755         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42756         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42757
42758         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42759         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42760
42761         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42762         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42763
42764         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42765         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42766
42767 2008-05-10  Bruno Haible  <bruno@clisp.org>
42768
42769         Split up 'linebreak' module.
42770         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42771         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42772         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42773         modifications.
42774         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42775         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42776         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42777         lib/linebreak.c.
42778         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42779         lib/linebreak.c.
42780         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42781         lib/linebreak.c.
42782         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42783         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42784         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42785         lib/linebreak.c.
42786         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42787         lib/linebreak.c.
42788         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42789         lib/linebreak.c.
42790         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42791         lib/linebreak.c.
42792         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42793         lib/linebreak.c.
42794         * modules/unilbrk/base: New file.
42795         * modules/unilbrk/tables: New file.
42796         * modules/unilbrk/u8-possible-linebreaks: New file.
42797         * modules/unilbrk/u16-possible-linebreaks: New file.
42798         * modules/unilbrk/u32-possible-linebreaks: New file.
42799         * modules/unilbrk/ulc-common: New file.
42800         * modules/unilbrk/ulc-possible-linebreaks: New file.
42801         * modules/unilbrk/u8-width-linebreaks: New file.
42802         * modules/unilbrk/u16-width-linebreaks: New file.
42803         * modules/unilbrk/u32-width-linebreaks: New file.
42804         * modules/unilbrk/ulc-width-linebreaks: New file.
42805         * lib/linebreak.h: Remove file.
42806         * lib/linebreak.c: Remove file.
42807         * m4/linebreak.m4: Remove file.
42808         * modules/linebreak: Remove file.
42809         * NEWS: Mention the changes.
42810
42811 2008-05-09  Eric Blake  <ebb9@byu.net>
42812
42813         Add xmemdup0.
42814         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42815         implementation.
42816         * lib/xmalloc.c (xmemdup0): New C implementation.
42817
42818 2008-05-08  Bruno Haible  <bruno@clisp.org>
42819
42820         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42821
42822 2008-05-07  Eric Blake  <ebb9@byu.net>
42823
42824         Support cross-compilation of <wctype.h>.
42825         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42826         AC_CACHE_CHECK.
42827
42828 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42829
42830         * build-aux/vc-list-files: Add support for bzr.
42831
42832 2008-05-03  Jim Meyering  <meyering@redhat.com>
42833
42834         avoid failed assertion with tight malloc
42835         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42836
42837 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42838
42839         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42840         are needed from arpa/inet.h.
42841         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42842         Reported by Bruno Haible.
42843
42844 2008-05-02  Jim Meyering  <meyering@redhat.com>
42845
42846         avoid compilation error on FreeBSD 6
42847         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42848
42849 2008-05-01  Jim Meyering  <meyering@redhat.com>
42850
42851         useless-if-before-free: correct --help's exit status description
42852         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42853         for one or more matches, etc.  Reported by Bruno Haible.
42854
42855         vc-list-files: make the stand-alone gnulib test work
42856         * modules/vc-list-files-tests (configure.ac):
42857         Define and AC_SUBST abs_aux_dir.
42858         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42859         $(abs_top_srcdir) to each script and having each of them
42860         duplicate the work of setting PATH, set PATH here, using
42861         the new variable, abs_aux_dir instead.
42862         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42863         * tests/test-vc-list-files-git.sh: Likewise.
42864         Reported by Bruno Haible.
42865
42866 2008-05-01  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42869         reallocation. Rename 'done' to 'found_delimiter'.
42870
42871 2008-05-01  Jim Meyering  <meyering@redhat.com>
42872
42873         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42874         * build-aux/vc-list-files: Use `...`, not $(...).
42875
42876 2008-04-30  Jim Meyering  <meyering@redhat.com>
42877
42878         add tests for vc-list-files
42879         * modules/vc-list-files-tests: New module.
42880         * tests/test-vc-list-files-cvs.sh: New file.
42881         * tests/test-vc-list-files-git.sh: New file.
42882
42883         avoid a warning from gcc
42884         * lib/getndelim2.c (IF_LINT): Define.
42885         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42886
42887         vc-list-files: work properly with build-aux/cvsu, too
42888         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42889         to all cvs-based clauses.
42890
42891         vc-list-files: work properly in the CVS+awk case, too
42892         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42893
42894         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42895         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42896         take more than one file argument, so .  Add quotes, just in case $dir
42897         ever contains a shell meta-character.  Prompted by Soren Hansen in
42898         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42899
42900 2008-04-29  Eric Blake  <ebb9@byu.net>
42901
42902         Optimize getndelim2 to use block operations when possible.
42903         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42904         freadseek, and memchr2.
42905         * lib/getndelim2.c (getndelim2): Use them for block reads.
42906
42907 2008-04-29  Bruno Haible  <bruno@clisp.org>
42908
42909         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42910         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42911         * modules/inet_ntop (Depends-on): Add extensions.
42912         * modules/inet_pton (Depends-on): Likewise.
42913         Reported by Simon Josefsson.
42914
42915 2008-04-29  Jim Meyering  <meyering@redhat.com>
42916
42917         When the is more than one match in a block, match all of them.
42918         * build-aux/useless-if-before-free: Iterate through each block
42919         until there are no more matches.
42920
42921         Fix broken useless-if-before-free script.
42922         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42923         the expression to match cast of argument to free-like function.
42924
42925 2008-04-29  Eric Blake  <ebb9@byu.net>
42926
42927         Use new header.
42928         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42929
42930 2008-04-29  Jim Meyering  <meyering@redhat.com>
42931
42932         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42933         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42934         by gnulib to exist and to declare e.g., inet_ntop.
42935         Don't include "inet_ntop.h", now removed.
42936
42937         * m4/arpa_inet_h.m4: Remove trailing blanks.
42938
42939 2008-04-29  Eric Blake  <ebb9@byu.net>
42940
42941         Silence valgrind on safe reads beyond potential array bounds.
42942         * lib/rawmemchr.valgrind: New file.
42943         * lib/strchrnul.valgrind: Likewise.
42944         * modules/rawmemchr (Files): Distribute new file.
42945         * modules/strchrnul (Files): Likewise.
42946         Suggested by Bruno Haible.
42947
42948 2008-04-29  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42951         (inet_ntop, inet_pton): Change portability warning's wording.
42952         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42953         Invoke gl_CHECK_NEXT_HEADERS.
42954         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42955         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42956         set ARPA_INET_H.
42957         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42958         * modules/arpa_inet (Description): No longer only for systems that
42959         lack it.
42960         (Depends-on): Add include_next.
42961         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42962         HAVE_ARPA_INET_H.
42963
42964 2008-04-29  Jim Meyering  <meyering@redhat.com>
42965
42966         * modules/mkdir (License): Re-license as LGPLv2+.
42967
42968 2008-04-29  Bruno Haible  <bruno@clisp.org>
42969
42970         * modules/rawmemchr (Maintainer): Set to Eric.
42971         * modules/strchrnul (Maintainer): Likewise.
42972
42973 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42974
42975         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42976         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42977
42978         * modules/arpa_inet (arpa/inet.h): Use them.
42979
42980 2008-04-28  Eric Blake  <ebb9@byu.net>
42981
42982         Test getndelim2.
42983         * modules/getndelim2-tests: New file.
42984         * tests/test-getndelim2.c: Likewise.
42985         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42986         stream.
42987         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42988
42989         * MODULES.html.sh: Document new module.
42990
42991 2008-04-20  Bruno Haible  <bruno@clisp.org>
42992
42993         * lib/c-stack.c (die): Use raise.
42994         * modules/c-stack (Depends-on): Add raise.
42995
42996 2008-04-28  Bruno Haible  <bruno@clisp.org>
42997
42998         Expect rpmatch to be declared.
42999         * lib/yesno.c (rpmatch): Remove declaration.
43000
43001         Declare rpmatch.
43002         * lib/stdlib.in.h (rpmatch): New declaration.
43003         * lib/rpmatch.c: Include <stdlib.h> first.
43004         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43005         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43007         HAVE_RPMATCH.
43008         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43010         (Include): Set to <stdlib.h>.
43011         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43012         HAVE_RPMATCH.
43013         * NEWS: Document the change.
43014
43015 2008-04-28  Bruno Haible  <bruno@clisp.org>
43016
43017         Change rpmatch to use nl_langinfo when appropriate.
43018         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43019         (N_): New macro.
43020         (localized_pattern): New function/macro.
43021         (try): Remove match, nomatch arguments. Copy the pattern into safe
43022         memory before caching it.
43023         (rpmatch): Use localized_pattern. Add translator comments.
43024         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43025         Suggested by Eric Blake.
43026         * modules/rpmatch (Depends-on): Add stdbool.
43027
43028 2008-04-28  Eric Blake  <ebb9@byu.net>
43029
43030         Add rawmemchr module, matching glibc.
43031         * modules/string (Makefile.am): New indicator.
43032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43033         * lib/string.in.h (rawmemchr): Declare when appropriate.
43034         * modules/rawmemchr: New file.
43035         * m4/rawmemchr.m4: Likewise.
43036         * lib/rawmemchr.c: Likewise.
43037         * modules/rawmemchr-tests: Likewise.
43038         * tests/test-rawmemchr.c: Likewise.
43039         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43040         module.
43041         * modules/strchrnul (Depends-on): Add rawmemchr.
43042         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43043
43044         Whitespace cleanup.
43045         * tests/test-strchrnul.c: Reindent.
43046         * lib/strchrnul.c: Likewise.
43047
43048         Optimize and test strchrnul.
43049         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43050         * modules/strchrnul-tests: New file.
43051         * tests/test-strchrnul.c: Likewise.
43052
43053         Remove intprops dependency.
43054         * modules/memchr (Depends-on): Remove intprops.
43055         * modules/memrchr (Depends-on): Likewise.
43056         * modules/memchr2 (Depends-on): Likewise.
43057         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43058         * lib/memrchr.c (__memrchr): Likewise.
43059         * lib/memrchr2.c (memchr2): Likewise.
43060         Reported by Simon Josefsson.
43061
43062 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43063
43064         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43065         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43066
43067 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43068
43069         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43070
43071         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43072
43073         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43074
43075         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43076         declarations.
43077         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43078
43079         * m4/inet_pton.m4: Don't check for header files.
43080
43081         * m4/inet_ntop.m4: Don't check for header files.
43082
43083 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43084
43085         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43086         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43087         trigger for cygwin).
43088         Reported by Bruno Haible  <bruno@clisp.org>.
43089
43090 2008-04-28  Bruno Haible  <bruno@clisp.org>
43091
43092         * doc/posix-functions/strdup.texi: Mention mingw problem.
43093
43094 2008-04-27  Bruno Haible  <bruno@clisp.org>
43095
43096         * modules/stat-time-tests (Depends-on): Add sleep.
43097         * tests/test-stat-time.c (force_unlink): New function.
43098         (cleanup): Use it.
43099         (test_mtime): Remove the ctime related tests.
43100         (test_ctime): New function, containing the ctime related tests.
43101         (main): Call test_ctime, except on native Windows platforms.
43102
43103 2008-04-27  Bruno Haible  <bruno@clisp.org>
43104
43105         * lib/rpmatch.c (rpmatch): Add some comments.
43106         Reported by James Youngman <jay@gnu.org>.
43107
43108 2008-04-27  Bruno Haible  <bruno@clisp.org>
43109
43110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43111         quiet NaNs.
43112
43113 2008-04-27  Bruno Haible  <bruno@clisp.org>
43114
43115         Make test-yesno.sh work on mingw.
43116         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43117         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43118         (main): Set stdin to binary mode.
43119         * modules/yesno-tests (Depends-on): Add binary-io.
43120
43121 2008-04-27  Bruno Haible  <bruno@clisp.org>
43122
43123         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43124         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43125         argument that lie outside the IEEE 854 domain.
43126         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43127         (gl_ISFINITE): Use it.
43128         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43129
43130 2008-04-27  Bruno Haible  <bruno@clisp.org>
43131
43132         Allow local renaming in config.h.
43133         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43134
43135 2008-04-27  Bruno Haible  <bruno@clisp.org>
43136
43137         * lib/memchr.c (__memchr): Change type of 'i'.
43138         * lib/memchr2.c (memchr2): Likewise.
43139
43140 2008-04-26  Eric Blake  <ebb9@byu.net>
43141         and Bruno Haible  <bruno@clisp.org>
43142
43143         Optimize and test memrchr.
43144         * modules/memrchr (Depends-on): Add intprops.
43145         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43146         * modules/memrchr-tests: New file.
43147         * tests/test-memrchr.c: New file.
43148
43149 2008-04-26  Bruno Haible  <bruno@clisp.org>
43150
43151         Add tentative support for DragonFly BSD.
43152         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43153         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43154         fp.
43155         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43156         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43157         * lib/fpurge.c (fpurge): Likewise.
43158         * lib/freadable.c (freaadable): Likewise.
43159         * lib/freadahead.c (freadahead): Likewise.
43160         * lib/freading.c (freading): Likewise.
43161         * lib/freadptr.c (freadptr): Likewise.
43162         * lib/freadseek.c (freadptrinc): Likewise.
43163         * lib/fseeko.c (fseeko): Likewise.
43164         * lib/fseterr.c (fseterr): Likewise.
43165         * lib/fwritable.c (fwritable): Likewise.
43166         * lib/fwriting.c (fwriting): Likewise.
43167
43168 2008-04-26  Bruno Haible  <bruno@clisp.org>
43169
43170         * lib/stdio-impl.h: New file.
43171         * lib/fbufmode.c: Include stdio-impl.h.
43172         (fbufmode): Use fp_, remove redundant #defines.
43173         * lib/fflush.c: Include stdio-impl.h.
43174         (clear_ungetc_buffer): Remove redundant #defines.
43175         * lib/fpurge.c: Include stdio-impl.h.
43176         (fpurge): Remove redundant #defines.
43177         * lib/freadable.c: Include stdio-impl.h.
43178         (freadable): Remove redundant #defines.
43179         * lib/freadahead.c: Include stdio-impl.h.
43180         (freadahead): Remove redundant #defines.
43181         * lib/freading.c: Include stdio-impl.h.
43182         (freading): Remove redundant #defines.
43183         * lib/freadptr.c: Include stdio-impl.h.
43184         (freadptr): Remove redundant #defines.
43185         * lib/freadseek.c: Include stdio-impl.h.
43186         (freadptrinc): Remove redundant #defines.
43187         * lib/fseeko.c: Include stdio-impl.h.
43188         (rpl_fseeko): Remove redundant #defines.
43189         * lib/fseterr.c: Include stdio-impl.h.
43190         (fseterr): Remove redundant #defines.
43191         * lib/fwritable.c: Include stdio-impl.h.
43192         (fwritable: Remove redundant #defines.
43193         * lib/fwriting.c: Include stdio-impl.h.
43194         (fwriting): Remove redundant #defines.
43195         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43196         * modules/fflush (Files): Likewise.
43197         * modules/fpurge (Files): Likewise.
43198         * modules/freadable (Files): Likewise.
43199         * modules/freadahead (Files): Likewise.
43200         * modules/freading (Files): Likewise.
43201         * modules/freadptr (Files): Likewise.
43202         * modules/freadseek (Files): Likewise.
43203         * modules/fseeko (Files): Likewise.
43204         * modules/fseterr (Files): Likewise.
43205         * modules/fwritable (Files): Likewise.
43206         * modules/fwriting (Files): Likewise.
43207
43208 2008-04-26  Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43211         restore_seek_optimization, update_fpos_cache): New functions, extracted
43212         from rpl_fflush.
43213         (rpl_fflush): Use them.
43214         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43215         (gl_REPLACE_FFLUSH): Use it.
43216
43217 2008-04-26  Bruno Haible  <bruno@clisp.org>
43218
43219         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43220         on Solaris.
43221         * tests/test-xstrtoimax.sh: Likewise.
43222         * tests/test-xstrtoumax.sh: Likewise.
43223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43224
43225 2008-04-26  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/memchr-tests: New file.
43228         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43229
43230 2008-04-26  Eric Blake  <ebb9@byu.net>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/memchr.c: Include intprops.h.
43234         (__memchr): Optimize parallel detection of matching bytes. Rename local
43235         variables. Add explanatory comments.
43236
43237 2008-04-26  Bruno Haible  <bruno@clisp.org>
43238
43239         Fix module 'memchr', broken since 2000-10-28.
43240         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43241
43242 2008-04-26  Bruno Haible  <bruno@clisp.org>
43243
43244         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43245         comments.
43246
43247 2008-04-25  Eric Blake  <ebb9@byu.net>
43248
43249         Use native fstatat on cygwin 1.7.0.
43250         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43251         first.
43252
43253 2008-04-23  Eric Blake  <ebb9@byu.net>
43254
43255         Improve memchr2 performance.
43256         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43257         NUL bytes.
43258         * modules/memchr2 (Depends-on): Use intprops.h.
43259
43260 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43261
43262         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43263         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43264         <blp@cs.stanford.edu>.
43265
43266 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43267
43268         * lib/arpa_inet.in.h: New file.
43269
43270         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43271         (Makefile.am): Sed in substitute header file.
43272
43273         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43274         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43275
43276         * modules/inet_ntop (configure.ac): Use
43277         gl_ARPA_INET_MODULE_INDICATOR.
43278
43279         * modules/inet_pton (configure.ac): Use
43280         gl_ARPA_INET_MODULE_INDICATOR.
43281
43282 2008-04-22  Jim Meyering  <meyering@redhat.com>
43283
43284         * modules/verify (License): Re-license as LGPLv2+.
43285
43286 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43287
43288         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43289         parameter to void* as per POSIX standard (MinGW uses char*).
43290
43291 2008-04-21  Bruno Haible  <bruno@clisp.org>
43292
43293         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43294         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43295         Define to replacements if REPLACE_ISWCNTRL is 1.
43296         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43297         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43298         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43299         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43300         what it fixes.
43301         * doc/posix-functions/iswalpha.texi: Likewise.
43302         * doc/posix-functions/iswblank.texi: Likewise.
43303         * doc/posix-functions/iswcntrl.texi: Likewise.
43304         * doc/posix-functions/iswdigit.texi: Likewise.
43305         * doc/posix-functions/iswgraph.texi: Likewise.
43306         * doc/posix-functions/iswlower.texi: Likewise.
43307         * doc/posix-functions/iswprint.texi: Likewise.
43308         * doc/posix-functions/iswpunct.texi: Likewise.
43309         * doc/posix-functions/iswspace.texi: Likewise.
43310         * doc/posix-functions/iswupper.texi: Likewise.
43311         * doc/posix-functions/iswxdigit.texi: Likewise.
43312         Reported by Alain Guibert.
43313
43314 2008-04-21  Bruno Haible  <bruno@clisp.org>
43315
43316         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43317         Patch by Alain Guibert.
43318
43319 2008-04-21  Bruno Haible  <bruno@clisp.org>
43320
43321         Fix test failures on mingw.
43322         * tests/test-xstrtol.c (print_no_progname): New function.
43323         (main): Install it in error_print_progname hook.
43324         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43325         * tests/test-xstrtoimax.sh: Likewise.
43326         * tests/test-xstrtoumax.sh: Likewise.
43327
43328 2008-04-21  Bruno Haible  <bruno@clisp.org>
43329
43330         Fix test failure on mingw.
43331         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43332
43333 2008-04-21  Bruno Haible  <bruno@clisp.org>
43334
43335         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43336         Actually assign a value.
43337
43338 2008-04-20  Bruno Haible  <bruno@clisp.org>
43339
43340         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43341         take 2.
43342         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43343         'canonicalize-lgpl' module is also used.
43344         * lib/canonicalize-lgpl.c: Undo last change.
43345         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43346
43347 2008-04-20  Bruno Haible  <bruno@clisp.org>
43348
43349         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43350         config.h. Provide _mkdir based fallback for mingw.
43351         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43352         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43353         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43354         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43355         rather than defining mkdir in config.h.
43356         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43357         (gl_SYS_STAT_H_DEFAULTS): New macro.
43358         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43359         HAVE_IO_H any more.
43360         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43361         HAVE_DECL_MKDIR and HAVE_IO_H.
43362
43363 2008-04-20  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/isapipe.c: Port to native Windows platforms.
43366
43367 2008-04-20  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43370
43371 2008-04-21  Eric Blake  <ebb9@byu.net>
43372
43373         Work around preprocessors that don't handle UINTMAX_MAX.
43374         * lib/memchr2.c (memchr2): Avoid embedded #if.
43375         Reported by Alain Guibert, fix suggested by Bruno Haible.
43376
43377 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43378
43379         * doc/posix-functions/strftime.texi (strftime): Explain better
43380         Windows incompatibility.  Suggested by Micah Cowan
43381         <micah@cowan.name>.
43382
43383 2008-04-20  Bruno Haible  <bruno@clisp.org>
43384
43385         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43386         unistr/u8-mblen.
43387
43388 2008-04-20  Bruno Haible  <bruno@clisp.org>
43389
43390         Fix test failure on platforms with non-GNU iconv.
43391         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43392         (U_TO_U8): Use it, rather than u16_to_u8.
43393         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43394         units at the end of the input string.
43395         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43396
43397 2008-04-20  Bruno Haible  <bruno@clisp.org>
43398
43399         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43400         when the resulting length is 0.
43401         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43402
43403 2008-04-20  Bruno Haible  <bruno@clisp.org>
43404
43405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43406         works.
43407         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43408
43409 2008-04-20  Bruno Haible  <bruno@clisp.org>
43410
43411         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43412         * modules/tsearch-tests (configure.ac): Test for initstate function.
43413
43414 2008-04-20  Bruno Haible  <bruno@clisp.org>
43415
43416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43417         for nlink_t if missing.
43418         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43419
43420 2008-04-19  Bruno Haible  <bruno@clisp.org>
43421
43422         Work around snprintf bug on Linux libc5.
43423         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43425         gl_SNPRINTF_SIZE1.
43426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43427         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43428         that test failed.
43429         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43430         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43431         * modules/snprintf (Files): Add m4/printf.m4.
43432         * modules/vsnprintf (Files): Likewise.
43433         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43434         * doc/posix-functions/vsnprintf.texi: Likewise.
43435
43436 2008-04-19  Bruno Haible  <bruno@clisp.org>
43437
43438         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43439         from 0.0058 to less than 10^-7.
43440
43441 2008-04-19  Bruno Haible  <bruno@clisp.org>
43442
43443         Fix rounding when a precision is given.
43444         * lib/vasnprintf.c (is_borderline): New function.
43445         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43446         9...9x.
43447         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43448         %e, %g.
43449         * tests/test-vasprintf-posix.c (test_function): Likewise.
43450         * tests/test-snprintf-posix.h (test_function): Likewise.
43451         * tests/test-sprintf-posix.h (test_function): Likewise.
43452         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43453         * tests/test-printf-posix.h (test_function): Likewise.
43454         * tests/test-printf-posix.output: Update.
43455         Reported by John Darrington <john@darrington.wattle.id.au> via
43456         Ben Pfaff <blp@cs.stanford.edu>.
43457
43458 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43459
43460         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43461         Suggested by Bruno Haible <bruno@clisp.org>.
43462
43463 2008-04-17  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43466         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43467         implementation.
43468         Patch by Bruce Merry <bmerry@gmail.com>.
43469
43470 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43471
43472         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43473         doesn't work under Windows.
43474
43475 2008-04-16  Bruno Haible  <bruno@clisp.org>
43476
43477         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43478         New macros.
43479         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43480         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43481         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43482         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43483         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43484         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43485         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43486         macros.
43487         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43488         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43489         Northern Sotho, Uighur.
43490
43491 2008-04-16  Bruno Haible  <bruno@clisp.org>
43492
43493         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43494         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43495         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43496         Reported by Daniel Bergström <daniel@octocode.com>.
43497
43498 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43499             Bruno Haible  <bruno@clisp.org>
43500
43501         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43502         function.
43503         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43504         New functions, mostly extracted from gl_locale_name_default.
43505         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43506
43507 2008-04-16  Eric Blake  <ebb9@byu.net>
43508
43509         Adjust strtod detection to catch glibc 2.7 bug.
43510         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43511         Reported by John Gatewood Ham.
43512
43513 2008-04-16  Bruno Haible  <bruno@clisp.org>
43514
43515         Add tentative support for Linux libc5.
43516         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43517         * lib/fpurge.c (fpurge): Likewise.
43518         * lib/freadable.c (freadable): Likewise.
43519         * lib/freadahead.c (freadahead): Likewise.
43520         * lib/freading.c (freading): Likewise.
43521         * lib/freadptr.c (freadptr): Likewise.
43522         * lib/freadseek.c (freadptrinc): Likewise.
43523         * lib/fseeko.c (rpl_fseeko): Likewise.
43524         * lib/fseterr.c (fseterr): Likewise.
43525         * lib/fwritable.c (fwritable): Likewise.
43526         * lib/fwriting.c (fwriting): Likewise.
43527         Reported by Alain Guibert <alguibert+bts@free.fr>.
43528
43529 2008-04-15  Bruno Haible  <bruno@clisp.org>
43530
43531         * modules/mathl (configure.ac): Define module indicator.
43532
43533 2008-04-15  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/logl.c (logl): Remove unused variables.
43536
43537 2008-04-15  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43540         fails.
43541
43542 2008-04-15  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/trim.c (trim2): Fix argument of isspace() macro.
43545
43546 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43547
43548         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43549         to 0.
43550         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43551
43552 2008-04-14  Bruno Haible  <bruno@clisp.org>
43553
43554         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43555         AC_LANG_PROGRAM argument.
43556         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43557         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43559         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43560         * m4/math_h.m4 (gl_MATH_H): Likewise.
43561         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43563         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43564         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43565         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43566         * m4/regex.m4 (gl_REGEX): Likewise.
43567         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43568         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43570         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43571         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43572         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43573         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43574         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43575
43576 2008-04-14  Jim Meyering  <meyering@redhat.com>
43577
43578         test-strtod: fix typos: s/abs/fabs/
43579         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43580
43581 2008-04-13  Bruno Haible  <bruno@clisp.org>
43582
43583         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43584         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43585         module is also used and while not building the reloc-wrapper.
43586
43587 2008-04-13  Bruno Haible  <bruno@clisp.org>
43588
43589         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43590
43591 2008-04-13  Bruno Haible  <bruno@clisp.org>
43592
43593         Fix AIX compilation failure introduced on 2008-04-02.
43594         * tests/test-frexp.c (exp): Undefine before redefining.
43595         * tests/test-frexpl.c (exp): Likewise.
43596
43597 2008-04-13  Bruno Haible  <bruno@clisp.org>
43598
43599         Work around a HP-UX stdio bug.
43600         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43601         * tests/test-ftello.c (main): Likewise.
43602         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43603         * doc/posix-functions/ftello.texi: Likewise.
43604
43605 2008-04-13  Bruno Haible  <bruno@clisp.org>
43606
43607         Make test-signbit pass on HP-UX/hppa.
43608         * tests/test-signbit.c (minus_zerol): New variable.
43609         (test_signbitl): Use it.
43610
43611 2008-04-13  Bruno Haible  <bruno@clisp.org>
43612
43613         Make truncl work on OSF/1 4.0.
43614         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43615         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43616         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43618         HAVE_DECL_TRUNCL.
43619         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43620         HAVE_DECL_TRUNCL.
43621         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43622
43623 2008-04-13  Bruno Haible  <bruno@clisp.org>
43624
43625         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43626
43627 2008-04-13  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43630         expression, so as to avoid HP-UX 11 cc compiler bug.
43631
43632 2008-04-13  Bruno Haible  <bruno@clisp.org>
43633
43634         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43635
43636 2008-04-13  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/git-merge-changelog.c: Remove empty declaration outside of
43639         functions.
43640
43641 2008-04-13  Bruno Haible  <bruno@clisp.org>
43642
43643         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43644
43645 2008-04-13  Bruno Haible  <bruno@clisp.org>
43646
43647         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43648         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43650         also if it exists but lacks definitions of the SHUT_* macros.
43651         * modules/sys_socket (Description): Update.
43652         Reported by Elbert Pol <e.pol@chello.nl>.
43653
43654 2008-04-13  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/localcharset.c (OS2): Don't redefine if already defined.
43657         Reported by Elbert Pol <e.pol@chello.nl>.
43658
43659 2008-04-13  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/binary-io.h [__EMX__]: Include <io.h>.
43662         Reported by Elbert Pol <e.pol@chello.nl>.
43663
43664 2008-04-12  Bruno Haible  <bruno@clisp.org>
43665
43666         * lib/fpucw.h: Enable the definitions also for x86_64.
43667         Needed for NetBSD/x86_64.
43668         Reported by Thomas Klausner <tk@giga.or.at>.
43669
43670 2008-04-12  Bruno Haible  <bruno@clisp.org>
43671
43672         * tests/test-strtod.c: Include isnand.h.
43673         (main): Use isnand instead of isnan.
43674         Reported by Jim Meyering.
43675
43676 2008-04-12  Bruno Haible  <bruno@clisp.org>
43677
43678         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43679         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43680
43681 2008-04-12  Jim Meyering  <meyering@redhat.com>
43682
43683         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43684
43685 2008-04-12  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43688         Reported by Elbert Pol <e.pol@chello.nl>.
43689
43690 2008-04-12  Eric Blake  <ebb9@byu.net>
43691
43692         Work around Solaris 10 math.h bug.
43693         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43694         (gl_MATH_H_DEFAULTS): Set up default.
43695         * modules/math (Makefile.am): Replace new indicators.
43696         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43697         * tests/test-math.c (main): Test this.
43698         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43699         * doc/posix-headers/math.texi (math.h): Mention bug.
43700         Reported by Nelson H. F. Beebe and Jim Meyering.
43701
43702 2008-04-11  Bruno Haible  <bruno@clisp.org>
43703
43704         Adapt to future versions of Apple GCC.
43705         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43706         Reported by Peter O'Gorman <peter@pogma.com>.
43707
43708 2008-04-11  Bruno Haible  <bruno@clisp.org>
43709
43710         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43711
43712 2008-04-11  Bruno Haible  <bruno@clisp.org>
43713
43714         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43715
43716         * modules/getaddrinfo-tests (Makefile.am): Define
43717         test_getaddrinfo_LDADD.
43718
43719 2008-04-11  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43722         (init): Fix syntax error.
43723         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43724         is declared.
43725
43726 2008-04-11  Bruno Haible  <bruno@clisp.org>
43727
43728         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43729         * modules/glob (Depends-on): Add stdbool.
43730
43731 2008-04-11  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/trim.c: Include <string.h>.
43734
43735 2008-04-11  Eric Blake  <ebb9@byu.net>
43736
43737         Avoid compile failure on OS/2.
43738         * lib/regex_internal.h (internal_function): Disable optimization
43739         on OS/2 (__EMX__), where it caused compiler error.
43740         Reported by Elbert Pol.
43741
43742 2008-04-11  Bruno Haible  <bruno@clisp.org>
43743
43744         Flush the standard error stream before aborting. Needed on mingw.
43745         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43746         * tests/test-array_list.c (ASSERT): Likewise.
43747         * tests/test-array_oset.c (ASSERT): Likewise.
43748         * tests/test-avltree_list.c (ASSERT): Likewise.
43749         * tests/test-avltree_oset.c (ASSERT): Likewise.
43750         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43751         * tests/test-binary-io.c (ASSERT): Likewise.
43752         * tests/test-byteswap.c (ASSERT): Likewise.
43753         * tests/test-c-ctype.c (ASSERT): Likewise.
43754         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43755         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43756         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43757         * tests/test-c-strstr.c (ASSERT): Likewise.
43758         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43759         * tests/test-canonicalize.c (ASSERT): Likewise.
43760         * tests/test-carray_list.c (ASSERT): Likewise.
43761         * tests/test-ceilf1.c (ASSERT): Likewise.
43762         * tests/test-ceilf2.c (ASSERT): Likewise.
43763         * tests/test-ceill.c (ASSERT): Likewise.
43764         * tests/test-count-one-bits.c (ASSERT): Likewise.
43765         * tests/test-fbufmode.c (ASSERT): Likewise.
43766         * tests/test-fflush2.c (ASSERT): Likewise.
43767         * tests/test-floorf1.c (ASSERT): Likewise.
43768         * tests/test-floorf2.c (ASSERT): Likewise.
43769         * tests/test-floorl.c (ASSERT): Likewise.
43770         * tests/test-fopen.c (ASSERT): Likewise.
43771         * tests/test-fpending.c (ASSERT): Likewise.
43772         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43773         * tests/test-fpurge.c (ASSERT): Likewise.
43774         * tests/test-freadable.c (ASSERT): Likewise.
43775         * tests/test-freadahead.c (ASSERT): Likewise.
43776         * tests/test-freading.c (ASSERT): Likewise.
43777         * tests/test-freadptr.c (ASSERT): Likewise.
43778         * tests/test-freadptr2.c (ASSERT): Likewise.
43779         * tests/test-freadseek.c (ASSERT): Likewise.
43780         * tests/test-freopen.c (ASSERT): Likewise.
43781         * tests/test-frexp.c (ASSERT): Likewise.
43782         * tests/test-frexpl.c (ASSERT): Likewise.
43783         * tests/test-fseek.c (ASSERT): Likewise.
43784         * tests/test-fseeko.c (ASSERT): Likewise.
43785         * tests/test-fstrcmp.c (ASSERT): Likewise.
43786         * tests/test-ftell.c (ASSERT): Likewise.
43787         * tests/test-ftello.c (ASSERT): Likewise.
43788         * tests/test-func.c (ASSERT): Likewise.
43789         * tests/test-fwritable.c (ASSERT): Likewise.
43790         * tests/test-fwriting.c (ASSERT): Likewise.
43791         * tests/test-getdelim.c (ASSERT): Likewise.
43792         * tests/test-getline.c (ASSERT): Likewise.
43793         * tests/test-i-ring.c (ASSERT): Likewise.
43794         * tests/test-iconv-utf.c (ASSERT): Likewise.
43795         * tests/test-iconv.c (ASSERT): Likewise.
43796         * tests/test-isfinite.c (ASSERT): Likewise.
43797         * tests/test-isnand.c (ASSERT): Likewise.
43798         * tests/test-isnanf.c (ASSERT): Likewise.
43799         * tests/test-isnanl.h (ASSERT): Likewise.
43800         * tests/test-ldexpl.c (ASSERT): Likewise.
43801         * tests/test-linked_list.c (ASSERT): Likewise.
43802         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43803         * tests/test-localename.c (ASSERT): Likewise.
43804         * tests/test-lseek.c (ASSERT): Likewise.
43805         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43806         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43807         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43808         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43809         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43810         * tests/test-mbschr.c (ASSERT): Likewise.
43811         * tests/test-mbscspn.c (ASSERT): Likewise.
43812         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43813         * tests/test-mbspbrk.c (ASSERT): Likewise.
43814         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43815         * tests/test-mbsrchr.c (ASSERT): Likewise.
43816         * tests/test-mbsspn.c (ASSERT): Likewise.
43817         * tests/test-mbsstr1.c (ASSERT): Likewise.
43818         * tests/test-mbsstr2.c (ASSERT): Likewise.
43819         * tests/test-mbsstr3.c (ASSERT): Likewise.
43820         * tests/test-memchr2.c (ASSERT): Likewise.
43821         * tests/test-memmem.c (ASSERT): Likewise.
43822         * tests/test-open.c (ASSERT): Likewise.
43823         * tests/test-printf-frexp.c (ASSERT): Likewise.
43824         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43825         * tests/test-printf-posix.c (ASSERT): Likewise.
43826         * tests/test-quotearg.c (ASSERT): Likewise.
43827         * tests/test-rbtree_list.c (ASSERT): Likewise.
43828         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43829         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43830         * tests/test-round1.c (ASSERT): Likewise.
43831         * tests/test-roundf1.c (ASSERT): Likewise.
43832         * tests/test-roundl.c (ASSERT): Likewise.
43833         * tests/test-signbit.c (ASSERT): Likewise.
43834         * tests/test-sleep.c (ASSERT): Likewise.
43835         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43836         * tests/test-snprintf.c (ASSERT): Likewise.
43837         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43838         * tests/test-stat-time.c (ASSERT): Likewise.
43839         * tests/test-strcasestr.c (ASSERT): Likewise.
43840         * tests/test-strerror.c (ASSERT): Likewise.
43841         * tests/test-striconv.c (ASSERT): Likewise.
43842         * tests/test-striconveh.c (ASSERT): Likewise.
43843         * tests/test-striconveha.c (ASSERT): Likewise.
43844         * tests/test-strsignal.c (ASSERT): Likewise.
43845         * tests/test-strstr.c (ASSERT): Likewise.
43846         * tests/test-strtod.c (ASSERT): Likewise.
43847         * tests/test-trunc1.c (ASSERT): Likewise.
43848         * tests/test-trunc2.c (ASSERT): Likewise.
43849         * tests/test-truncf1.c (ASSERT): Likewise.
43850         * tests/test-truncf2.c (ASSERT): Likewise.
43851         * tests/test-truncl.c (ASSERT): Likewise.
43852         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43853         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43854         * tests/test-vasnprintf.c (ASSERT): Likewise.
43855         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43856         * tests/test-vasprintf.c (ASSERT): Likewise.
43857         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43858         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43859         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43860         * tests/test-vsnprintf.c (ASSERT): Likewise.
43861         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43862         * tests/test-wcwidth.c (ASSERT): Likewise.
43863         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43864         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43865         * tests/test-xvasprintf.c (ASSERT): Likewise.
43866         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43867         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43868         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43869         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43870         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43871         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43872         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43873         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43874         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43875         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43876         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43877         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43878         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43879         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43880         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43881         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43882         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43883         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43884         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43885         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43886         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43887         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43888         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43889         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43890         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43891         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43892         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43893         * tests/unictype/test-combining.c (ASSERT): Likewise.
43894         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43895         * tests/unictype/test-digit.c (ASSERT): Likewise.
43896         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43897         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43898         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43899         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43900         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43901         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43902         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43903         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43904         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43905         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43906         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43907         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43908         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43909         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43910         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43911         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43912         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43913         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43914         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43915         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43916         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43917         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43918         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43919         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43920         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43921         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43922         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43923         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43924         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43925         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43926         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43927         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43928         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43929         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43930         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43931         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43932         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43933         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43934         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43935         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43936         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43937         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43938         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43939         Reported by Eric Blake.
43940
43941 2008-04-11  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/wchar.in.h: Tweak comment.
43944
43945 2008-04-11  Bruno Haible  <bruno@clisp.org>
43946
43947         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43948         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43949         gl_COMMON.
43950         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43951
43952 2008-04-11  Bruno Haible  <bruno@clisp.org>
43953
43954         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43955
43956 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43957
43958         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43959         of attempting to use non-existing /dev/*random.  Based on patch
43960         from Adam Strzelecki <ono@java.pl> in
43961         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43962
43963 2008-04-08  Bruno Haible  <bruno@clisp.org>
43964
43965         Add tentative support for emx+gcc.
43966         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43967         * lib/fpurge.c (fpurge): Likewise.
43968         * lib/freadable.c (freadable): Likewise.
43969         * lib/freadahead.c (freadahead): Likewise.
43970         * lib/freading.c (freading): Likewise.
43971         * lib/freadptr.c (freadptr): Likewise.
43972         * lib/freadseek.c (freadptrinc): Likewise.
43973         * lib/fseeko.c (rpl_fseeko): Likewise.
43974         * lib/fseterr.c (fseterr): Likewise.
43975         * lib/fwritable.c (fwritable): Likewise.
43976         * lib/fwriting.c (fwriting): Likewise.
43977         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43978
43979 2008-04-09  Eric Blake  <ebb9@byu.net>
43980
43981         Avoid some autoconf warnings.
43982         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43983         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43984         * m4/afs.m4 (gl_AFS): Likewise.
43985         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43986         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43988         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43989         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43990         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43991         (AC_CHECK_DECLS_ONCE): Likewise.
43992         Rename file...
43993         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43994         gnulib-tool requires autoconf 2.59 or better.
43995         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43996
43997 2008-04-08  Eric Blake  <ebb9@byu.net>
43998
43999         Use 'git describe --match' if present (added in git 1.5.5).
44000         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44001         if possible.
44002
44003 2008-04-08  Bruno Haible  <bruno@clisp.org>
44004
44005         Add tentative support for OpenServer.
44006         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44007         _ptr, _cnt.
44008         * lib/fpurge.c (fpurge): Likewise.
44009         * lib/freadable.c (freadable): Likewise.
44010         * lib/freadahead.c (freadahead): Likewise.
44011         * lib/freading.c (freading): Likewise.
44012         * lib/freadptr.c (freadptr): Likewise.
44013         * lib/freadseek.c (freadptrinc): Likewise.
44014         * lib/fseeko.c (rpl_fseeko): Likewise.
44015         * lib/fseterr.c (fseterr): Likewise.
44016         * lib/fwritable.c (fwritable): Likewise.
44017         * lib/fwriting.c (fwriting): Likewise.
44018         Reported by Roger Cornelius <rac@tenzing.org> and
44019         Brian K. White <brian@aljex.com>.
44020
44021 2008-04-06  Jim Meyering  <meyering@redhat.com>
44022
44023         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44024
44025 2008-04-06  Bruno Haible  <bruno@clisp.org>
44026
44027         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44028         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44029         * tests/test-printf-posix.sh: Likewise.
44030         * tests/test-vfprintf-posix.sh: Likewise.
44031         * tests/test-vprintf-posix.sh: Likewise.
44032         * tests/test-xprintf-posix.sh: Likewise.
44033
44034 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44035
44036         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44037         hide error from 'ls', needed on OS/2.
44038         Report by Elbert Pol <elbert.pol@gmail.com>.
44039
44040 2008-04-04  Eric Blake  <ebb9@byu.net>
44041
44042         Make test-fseeko.c failures meaningful.
44043         * tests/test-fseeko.c: Print line number on failure.
44044         * tests/test-fseek.c: Likewise.
44045         Reported by Nelson H. F. Beebe.
44046
44047         Improve strtod bug detection check.
44048         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44049         required for Solaris 10.
44050         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44051
44052 2008-04-04  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44055         by m4/setenv.m4.
44056
44057 2008-04-03  Eric Blake  <ebb9@byu.net>
44058
44059         Ensure sane .version contents.
44060         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44061         version string.
44062         * build-aux/git-version-gen: Improve documentation.
44063
44064         Make GNU make output nicer.
44065         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44066         MAKECMDGOALS to enforce message for all command line targets.  Set
44067         srcdir for use in maint.mk.
44068
44069         Another maintainer tweak.
44070         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44071         a target that regenerates version.
44072
44073 2008-04-03  Jim Meyering  <meyering@redhat.com>
44074
44075         vc-list-files: don't cause coreutils "make po-check" failure
44076         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44077
44078 2008-04-03  Eric Blake  <ebb9@byu.net>
44079
44080         Allow VPATH usage of vc-list-files.
44081         * build-aux/vc-list-files (scriptversion): Add timestamp.
44082         (options): Add --help, --version, -C.
44083         (CVS): Support installed cvsu.
44084
44085 2008-04-02  Bruno Haible  <bruno@clisp.org>
44086
44087         Avoid some "statement with no effect" warnings from gcc.
44088         * tests/test-wctype.c (main): Explicitly ignore unused values.
44089         Reported by Jim Meyering.
44090
44091 2008-04-02  Jim Meyering  <meyering@redhat.com>
44092
44093         Avoid some warnings from "gcc -Wshadow".
44094         * tests/test-frexp.c (exp): Define to a different identifier.
44095         * tests/test-frexpl.c (exp): Likewise.
44096
44097 2008-04-03  Jim Meyering  <meyering@redhat.com>
44098
44099         bootstrap: remove dangling *.[ch] symlinks from lib
44100         * build-aux/bootstrap [dangling symlink removal]: Move find's
44101         -depth option to precede all others, to avoid a warning.
44102         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44103
44104 2008-04-02  Bruno Haible  <bruno@clisp.org>
44105
44106         Avoid some warnings from "gcc -Wshadow".
44107         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44108         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44109         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44110         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44111         Reported by Jim Meyering.
44112
44113 2008-04-01  Bruno Haible  <bruno@clisp.org>
44114
44115         Fix test to work on IRIX 6.5 with cc.
44116         * tests/test-math.c (numeric_equal): New function.
44117         (main): Use it.
44118
44119 2008-04-01  Bruno Haible  <bruno@clisp.org>
44120
44121         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44122
44123 2008-04-01  Bruno Haible  <bruno@clisp.org>
44124
44125         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44126         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44127         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44128         (Depends-on): Remove math.
44129
44130         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44131         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44132         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44133         (Depends-on): Remove math.
44134
44135         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44136         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44137         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44138         (Depends-on): Remove math.
44139         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44140         (Depends-on): Remove math.
44141
44142         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44143         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44144         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44145         (Depends-on): Remove math.
44146         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44147         (Depends-on): Remove math.
44148
44149         * tests/test-round1.c: Include nan.h.
44150         (main): Use NaNd instead of NAN.
44151         * modules/round-tests (Files): Add tests/nan.h.
44152
44153         * tests/test-trunc1.c: Include nan.h.
44154         (main): Use NaNd instead of NAN.
44155         * modules/trunc-tests (Files): Add tests/nan.h.
44156
44157         * tests/test-roundf1.c: Include nan.h.
44158         (main): Use NaNf instead of NAN.
44159         * modules/roundf-tests (Files): Add tests/nan.h.
44160
44161         * tests/test-truncf1.c: Include nan.h.
44162         (main): Use NaNf instead of NAN.
44163         * modules/truncf-tests (Files): Add tests/nan.h.
44164
44165         * tests/test-ceilf1.c: Include nan.h.
44166         (main): Use NaNf instead of NAN.
44167         * modules/ceilf-tests (Files): Add tests/nan.h.
44168
44169         * tests/test-floorf1.c: Include nan.h.
44170         (main): Use NaNf instead of NAN.
44171         * modules/floorf-tests (Files): Add tests/nan.h.
44172
44173         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44174         (main): Use NaNf instead of NAN.
44175         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44176
44177         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44178         (main): Use NaNd instead of NAN.
44179         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44180
44181         * tests/test-frexp.c: Include nan.h.
44182         (main): Use NaNd instead of NAN.
44183         * modules/frexp-tests (Files): Add tests/nan.h.
44184
44185         * lib/isnan.c: Don't include <math.h>.
44186         (FUNC): Don't use NAN macro.
44187         * modules/isnand-nolibm (Depends-on): Remove math.
44188         * modules/isnanf-nolibm (Depends-on): Remove math.
44189         * modules/isnanl (Depends-on): Remove math.
44190         * modules/isnanl-nolibm (Depends-on): Remove math.
44191
44192         * tests/nan.h: New file.
44193
44194 2008-04-01  Eric Blake  <ebb9@byu.net>
44195
44196         Fix typos.
44197         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44198         values to be the right type.
44199
44200         For now, cater to gnulib strtod inaccuracies.
44201         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44202         fractional results.  While not as nice from a QoI perspective, it
44203         is a quicker patch than correctly implementing decimal to binary
44204         rounding.
44205
44206 2008-03-31  Eric Blake  <ebb9@byu.net>
44207
44208         Guarantee a definition of NAN.
44209         * lib/math.in.h (NAN): Define if missing.
44210         * tests/test-math.c (main): Test it.
44211         * doc/posix-headers/math.texi (math.h): Document this.
44212         * lib/isnan.c (rpl_isnand): Use it.
44213         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44214         * tests/test-floorf1.c (NaN): Likewise.
44215         * tests/test-frexp.c (NaN): Likewise.
44216         * tests/test-isnand.c (NaN): Likewise.
44217         * tests/test-isnanf.c (NaN): Likewise.
44218         * tests/test-round1.c (NaN): Likewise.
44219         * tests/test-roundf1.c (NaN): Likewise.
44220         * tests/test-snprintf-posix.h (NaN): Likewise.
44221         * tests/test-sprintf-posix.h (NaN): Likewise.
44222         * tests/test-trunc1.c (NaN): Likewise.
44223         * tests/test-truncf1.c (NaN): Likewise.
44224         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44225         * tests/test-vasprintf-posix.c (NaN): Likewise.
44226         * modules/isnand-nolibm (Depends-on): Add math.
44227         * modules/isnanf-nolibm (Depends-on): Likewise.
44228         * modules/isnanl (Depends-on): Likewise.
44229         * modules/isnanl-nolibm (Depends-on): Likewise.
44230         * modules/snprintf-posix-tests (Depends-on): Likewise.
44231         * modules/sprintf-posix-tests (Depends-on): Likewise.
44232         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44233         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44234         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44235         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44236
44237 2008-03-31  Bruno Haible  <bruno@clisp.org>
44238
44239         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44240         * doc/posix-functions/strtod.texi: Likewise.
44241
44242 2008-03-31  Bruno Haible  <bruno@clisp.org>
44243
44244         * tests/test-strtod.c (main): Don't use C99 syntax.
44245
44246 2008-03-31  Bruno Haible  <bruno@clisp.org>
44247
44248         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44249         Reported by Eric Blake.
44250
44251 2008-03-31  Jim Meyering  <meyering@redhat.com>
44252
44253         Don't compare actual signbit return values.
44254         * tests/test-strtod.c (main): Rather, compare only their
44255         zero/non-zero nature.
44256
44257 2008-03-31  Eric Blake  <ebb9@byu.net>
44258
44259         More strtod documentation.
44260         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44261         failures as distinct bugs.
44262
44263 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44266         Problem reported by Erik Benada in
44267         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44268
44269 2008-03-30  Bruno Haible  <bruno@clisp.org>
44270
44271         * tests/test-strtod.c: Add comments about which assertion fails on which
44272         platform.
44273         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44274
44275 2008-03-30  Eric Blake  <ebb9@byu.net>
44276
44277         Test signbit behavior on zeros.
44278         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44279         (test_signbitd, test_signbitl): Likewise.
44280
44281         More strtod touchups.
44282         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44283         sign of negative underflow, for now.  Use .5, not .1.
44284         * doc/posix-functions/strtod.texi (strtod): Mention these
44285         limitations.
44286         Reported by Jim Meyering.
44287
44288 2008-03-30  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44291         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44292
44293 2008-03-30  Bruno Haible  <bruno@clisp.org>
44294
44295         Avoid failure when attempting to return empty iconv results on some
44296         platforms.
44297         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44298         allocation, don't report ENOMEM when the resulting string is empty.
44299
44300 2008-03-30  Bruno Haible  <bruno@clisp.org>
44301
44302         Fix buffer overrun.
44303         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44304         Don't consider the width for tmp_length. Check count against tmp_length
44305         before doing the padding. Ensure enough allocation during padding.
44306
44307 2008-03-30  Eric Blake  <ebb9@byu.net>
44308
44309         strtod touchups.
44310         * lib/strtod.c (strtod): Avoid compiler warnings.
44311         Reported by Jim Meyering.
44312
44313 2008-03-30  Bruno Haible  <bruno@clisp.org>
44314
44315         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44316         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44317         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44318         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44319         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44320         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44321         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44322         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44323
44324         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44325         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44326         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44327         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44328         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44329         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44330         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44331         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44332
44333         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44334         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44335         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44336         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44337         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44338         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44339         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44340         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44341
44342         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44343         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44344
44345         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44346         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44347
44348         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44349         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44350
44351         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44352         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44353         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44354
44355         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44357         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44358
44359         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44361         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44362
44363         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44364         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44365         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44366
44367         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44368         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44370         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44371         (Depends-on): Add EOVERFLOW.
44372         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44373         (Depends-on): Add EOVERFLOW.
44374         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44375         (Depends-on): Add EOVERFLOW.
44376         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44377         (Depends-on): Add EOVERFLOW.
44378         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44379         (Depends-on): Add EOVERFLOW.
44380         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44381         (Depends-on): Add EOVERFLOW.
44382         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44383         (Depends-on): Add EOVERFLOW.
44384         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44385         (Depends-on): Add EOVERFLOW.
44386
44387         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44389         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44390
44391         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44393         * modules/snprintf (Depends-on): Add EOVERFLOW.
44394
44395         * lib/poll.c (EOVERFLOW): Remove fallback.
44396         * modules/poll (Depends-on): Add EOVERFLOW.
44397
44398         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44399         * modules/getugroups (Depends-on): Add EOVERFLOW.
44400
44401         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44402         * modules/getdelim (Depends-on): Add EOVERFLOW.
44403
44404         * lib/ftell.c (EOVERFLOW): Remove fallback.
44405         * modules/ftell (Depends-on): Add EOVERFLOW.
44406
44407         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44408         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44409         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44410
44411         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44412
44413         * modules/EOVERFLOW-tests: New file.
44414         * tests/test-EOVERFLOW.c: New file.
44415
44416         * modules/EOVERFLOW: New file.
44417         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44418
44419 2008-03-30  Bruno Haible  <bruno@clisp.org>
44420
44421         Fix bug introduced on 2007-06-10.
44422         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44423         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44424
44425 2008-03-30  Bruno Haible  <bruno@clisp.org>
44426
44427         Improve freadseek's efficiency after ungetc.
44428         * lib/freadseek.c: Include freadahead.h.
44429         (freadptrinc): New function, extracted from freadseek.
44430         (freadseek): Use it in a loop. Use freadahead to determine the number
44431         of loop iterations.
44432         * modules/freadseek (Depends-on): Add freadahead.
44433         (configure.ac): Require AC_C_INLINE.
44434
44435 2008-03-30  Bruno Haible  <bruno@clisp.org>
44436
44437         * lib/freadseek.c (freadseek): Don't ignore the return value of
44438         freadptr.
44439
44440 2008-03-29  Eric Blake  <ebb9@byu.net>
44441
44442         Add hex float support.
44443         * modules/strtod (Depends-on): Add c-ctype.
44444         (Link): Mention POW_LIB.
44445         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44446         whitespace between 'e' and exponent.
44447         * tests/test-strtod.c (main): Enable hex float tests.
44448         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44449         now provides.
44450
44451         Document various strtod bugs, with some fixes.
44452         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44453         "-0x", "inf", "nan", and hex constants.
44454         * doc/posix-functions/atof.texi (atof): Likewise.
44455         * modules/stdlib (Makefile.am): Support strtod.
44456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44457         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44458         detect additional strtod bugs.
44459         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44460         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44461         bool where appropriate.  Parse 'inf' and 'nan'.
44462         * tests/test-strtod.c: New file.
44463         * modules/strtod (Depends-on): Add stdbool, stdlib.
44464         (configure.ac): Turn on module indicator.
44465         * modules/strtod-tests: New module.
44466
44467 2008-03-29  Eric Blake  <ebb9@byu.net>
44468
44469         Fix ftell on mingw.
44470         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44471         * modules/ftell-tests (Depends-on): Add binary-io.
44472         * modules/ftello-tests (Depends-on): Likewise.
44473         * tests/test-ftell.c (main): Enhance test to cover behavior after
44474         ungetc.  Enforce binary mode.
44475         * tests/test-ftello.c (main): Likewise.
44476
44477         Pass test-freadseek on cygwin.
44478         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44479         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44480         ungetc buffer.
44481
44482         * tests/test-fflush2.c (main): Fix typo.
44483
44484 2008-03-29  Bruno Haible  <bruno@clisp.org>
44485
44486         * tests/test-fflush2.c (main): Temporarily disable the contents of
44487         this test.
44488         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44489         Reported by Eric Blake.
44490
44491 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44492
44493         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44494         (GC_SHA224_DIGEST_SIZE): Add.
44495
44496         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44497         (gc_hash_digest_length): Likewise.
44498         (gc_hash_buffer): Likewise.
44499
44500 2008-03-25  Bruno Haible  <bruno@clisp.org>
44501
44502         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44503         detail which gettext release to use.
44504         Reported by Simon Josefsson.
44505
44506 2008-03-26  Jim Meyering  <meyering@redhat.com>
44507
44508         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44509         * modules/gnumakefile (clean-GNUmakefile): Also, use
44510         test ... && ... || : syntax rather than if-then ... fi.
44511
44512         gnumakefile: Don't double-quote-expand $(VPATH) value.
44513         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44514
44515 2008-03-24  Eric Blake  <ebb9@byu.net>
44516
44517         Alter GNUmakefile to install into top directory.
44518         * modules/maintainer-makefile: Split, and add dependency...
44519         * modules/gnumakefile: to this new module.
44520         * build-aux/GNUmakefile: Move...
44521         * top/GNUmakefile: ...here.
44522         * build-aux/maint.mk: Move...
44523         * top/maint.mk: ...here.
44524         * MODULES.html.sh (Support for maintaining...): Document new
44525         module.
44526
44527 2008-03-23  Bruno Haible  <bruno@clisp.org>
44528
44529         * gnulib-tool: New options --vc-files, --no-vc-files.
44530         (func_usage): Document them.
44531         (vc_files): New variable.
44532         (func_import): Consider vc_files.
44533         (func_create_testdir): Set vc_files to empty.
44534         Suggested by Jim Meyering and Karl Berry.
44535
44536 2008-03-23  Bruno Haible  <bruno@clisp.org>
44537
44538         Fix regex compilation error on HP-UX 11.
44539         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44540         * modules/regex (Files): Add m4/mbstate_t.m4.
44541         Reported by Ton Voon <ton.voon@altinity.com>.
44542
44543 2008-03-23  Bruno Haible  <bruno@clisp.org>
44544
44545         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44546
44547 2008-03-23  Eric Blake  <ebb9@byu.net>
44548             Bruno Haible  <bruno@clisp.org>
44549
44550         Install files from top/ in the destination directory.
44551         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44552         augmentation also for the files from top/.
44553         (func_import, func_create_testdir): Rewrite file names:
44554         top/filename -> filename.
44555
44556 2008-03-23  Bruno Haible  <bruno@clisp.org>
44557
44558         Tweak "gnulib --version" output.
44559         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44560
44561 2008-03-23  Bruno Haible  <bruno@clisp.org>
44562
44563         Tweak "gnulib --version" output.
44564         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44565         rather than contents of ChangeLog, when possible.
44566
44567 2008-03-21  Eric Blake  <ebb9@byu.net>
44568
44569         More --version tweaks.
44570         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44571         date of last ChangeLog entry.
44572
44573 2008-03-21  Jim Meyering  <meyering@redhat.com>
44574
44575         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44576
44577 2008-03-20  Eric Blake  <ebb9@byu.net>
44578
44579         VPATH fix.
44580         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44581
44582 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44583
44584         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44585         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44586
44587 2008-03-20  Eric Blake  <ebb9@byu.net>
44588
44589         Sync GNUmakefile with coreutils.
44590         * build-aux/GNUmakefile (have-Makefile): Rename...
44591         (_have-Makefile): ...to this, for namespace consideration.
44592         (GNUmakefile.cfg): Include, if present.
44593         (_autoreconf): Define a default.
44594         (_is-dist-target): New rule for rebuilds to pick up intra-release
44595         version.
44596         (maint-cfg.mk): Rename...
44597         (cfg.mk): ...to this.
44598
44599 2008-03-18  Jim Meyering  <meyering@redhat.com>
44600
44601         New script and module: mktempd
44602         * MODULES.html.sh (maint+release support): Add mktempd.
44603         * build-aux/mktempd: New file.
44604         * modules/mktempd: New file.
44605
44606 2008-03-15  Jim Meyering  <meyering@redhat.com>
44607
44608         Undo last change.
44609         * lib/sha1.c, lib/md5.c: 63 != ~63.
44610         Reported by Andreas Schwab.
44611
44612         sha1.c, md5.c: Hoist a redundant expression.
44613         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44614         "ctx->buflen" only once, before calling *_process_block.
44615         * lib/md5.c (md5_process_bytes): Likewise.
44616
44617 2008-03-14  Eric Blake  <ebb9@byu.net>
44618
44619         Bump copyright year in files generated by gnulib-tool.
44620         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44621         gnulib-tool, rather than hard-coding it.
44622
44623         Fix 'gnulib-tool --version' output to work with git.
44624         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44625         (startup): ...here.
44626         (func_version): Use it to invoke git-version-gen, rather than
44627         relying on CVS keyword expansion.  Modernize wording.
44628         (cvsdatestamp, last_checkin_date, version): Kill unused
44629         variables.
44630
44631 2008-03-12  Jim Meyering  <meyering@redhat.com>
44632
44633         Recognize optional cast of the argument to free.
44634         * build-aux/useless-if-before-free: Update regexps.
44635
44636         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44637
44638 2008-03-11  Bruno Haible  <bruno@clisp.org>
44639
44640         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44641         by a single package.
44642         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44643         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44644         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44645         Reported by Sam Steingold <sds@gnu.org>.
44646
44647 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44648
44649         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44650         repositories.
44651
44652 2008-03-11  Bruno Haible  <bruno@clisp.org>
44653
44654         Avoid conflicts between local macro definitions.
44655         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44656         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44657
44658 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44659             Bruno Haible  <bruno@clisp.org>
44660
44661         Make va_copy work with some version of xlc on AIX 5.1.
44662         * lib/stdarg.in.h: New file.
44663         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44664         On AIX, use a <stdarg.h> file substitute.
44665         * modules/stdarg (Files): Add lib/stdarg.in.h.
44666         (Depends-on): Add include_next.
44667         (Makefile.am): Build a stdarg.h substitute if requested.
44668         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44669
44670 2008-03-10  Bruno Haible  <bruno@clisp.org>
44671
44672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44673         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44674         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44675
44676 2008-03-10  Bruno Haible  <bruno@clisp.org>
44677
44678         * modules/stdlib (Depends-on): Add include_next, remove
44679         absolute-header.
44680
44681 2008-03-09  Bruno Haible  <bruno@clisp.org>
44682
44683         * lib/freadahead.h (freadahead): Document more precisely.
44684         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44685         the sum of both buffer sizes.
44686         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44687         * NEWS: Document the change.
44688
44689 2008-03-09  Bruno Haible  <bruno@clisp.org>
44690
44691         Extend freadptr to return also the buffer size.
44692         * lib/freadptr.h (freadptr): Add sizep argument.
44693         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44694         (freadptr): Add sizep argument. Determine buffer size like freadahead
44695         does.
44696         * tests/test-freadptr.c: Don't include freadahead.h.
44697         (main): Adapt for new calling convention of freadptr.
44698         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44699         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44700         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44701         tests/test-freadptr2.sh.
44702         (Depends): Remove freadahead.
44703         (TESTS): Add test-freadptr2.sh.
44704         (check_PROGRAMS): Add test-freadptr2.
44705
44706 2008-03-09  Bruno Haible  <bruno@clisp.org>
44707
44708         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44709         Report and solution by Simon Josefsson.
44710
44711 2008-03-06  Bruno Haible  <bruno@clisp.org>
44712
44713         Make fflush after ungetc work on BSD platforms.
44714         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44715         * tests/test-fflush2.c: New file.
44716         * tests/test-fflush2.sh: New file.
44717         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44718         tests/test-fflush2.c.
44719         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44720         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44721
44722 2008-03-06  Eric Blake  <ebb9@byu.net>
44723
44724         Likewise for ftello.
44725         * modules/ftello (Dependencies): Add extensions.
44726         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44727
44728 2008-03-06  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/fseeko (Dependencies): Add extensions.
44731         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44732         Needed on glibc systems.
44733
44734 2008-03-06  Bruno Haible  <bruno@clisp.org>
44735
44736         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44737         email address.
44738         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44739
44740 2008-03-06  Bruno Haible  <bruno@clisp.org>
44741
44742         * users.txt: Add libgnupdf.
44743
44744 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44745
44746         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44747         (Header File Substitutes, Function Substitutes,
44748         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44749         (Build robot for gnulib): Fix typo.
44750
44751 2008-03-06  Bruno Haible  <bruno@clisp.org>
44752
44753         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44754         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44755
44756 2008-03-06  Bruno Haible  <bruno@clisp.org>
44757
44758         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44759         * doc/gnulib.texi: Include it.
44760
44761 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44762
44763         * modules/func (License): Change license to unlimited; there was
44764         no LGPL parts in the module anyway.
44765
44766 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44767
44768         * modules/__func__: Renamed to modules/func.
44769         * modules/__func__-tests: Renamed to modules/func-tests.
44770         * tests/test-__func__.c: Renamed to tests/test-func.c.
44771         * m4/__func__.m4: Renamed to m4/func.m4.
44772         * doc/gnulib.texi (__func__): Section renamed to func.
44773         Suggested by Eric Blake <ebb9@byu.net>.
44774
44775 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44776
44777         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44778         about __func__.  Make example self-contained.  Suggested by Eric
44779         Blake <ebb9@byu.net>.
44780
44781         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44782         Suggested by Eric Blake <ebb9@byu.net>.
44783
44784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44785
44786         * modules/__func__: New file.
44787         * modules/__func__-tests: New file.
44788         * tests/test-__func__.c: New file.
44789         * m4/__func__.m4: New file.
44790         * doc/gnulib.texi (__func__): Document __func__ module.
44791
44792 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44793
44794         * modules/byteswap (License): Re-license as LGPLv2+.
44795
44796 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44797
44798         * doc/Makefile: Add pdf target.
44799
44800 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44801
44802         * modules/inline (License): Use 'unlimited', since there are only
44803         *.m4 files in this module.
44804
44805 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44806             Bruno Haible  <bruno@clisp.org>
44807
44808         Add support for HP C 7.1 on OpenVMS 8.3.
44809         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44810
44811 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44812
44813         Update VMS specifics.
44814         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44815
44816 2008-03-02  Jim Meyering  <meyering@redhat.com>
44817
44818         Remove the last dependency on the "free" module.
44819         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44820         Reported by Bob Proulx.
44821
44822         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44823
44824         Remove useless "if" tests before free.  Deprecate "free" module.
44825         * doc/posix-functions/free.texi: Mention that this
44826         module is no longer useful.
44827         * modules/free (Notice): Say this module is obsolete.
44828         * modules/readutmp (Depends-on): Remove free.
44829         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44830         * lib/putenv.c (putenv): Likewise.
44831         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44832         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44833         * tests/test-c-strcasestr.c (main): Likewise.
44834         * tests/test-c-strstr.c (main): Likewise.
44835         * tests/test-mbscasestr1.c (main): Likewise.
44836         * tests/test-mbscasestr2.c (main): Likewise.
44837         * tests/test-mbsstr1.c (main): Likewise.
44838         * tests/test-mbsstr2.c (main): Likewise.
44839         * tests/test-memmem.c (main): Likewise.
44840         * tests/test-strcasestr.c (main): Likewise.
44841         * tests/test-striconv.c (main): Likewise.
44842         * tests/test-striconveh.c (main): Likewise.
44843         * tests/test-striconveha.c (main): Likewise.
44844         * tests/test-strstr.c (main): Likewise.
44845
44846         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44847
44848         bootstrap: sync from coreutils again
44849         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44850
44851 2008-03-01  Jim Meyering  <meyering@redhat.com>
44852
44853         bootstrap: sync from coreutils
44854         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44855         also when the target doesn't exist.
44856
44857 2008-03-01  Eric Blake  <ebb9@byu.net>
44858
44859         Fix bugs in last patch.
44860         * lib/memchr2.c (memchr2): Fix typo.
44861         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44862         extension.
44863         Reported by Bruce Korb.
44864
44865         New module 'memchr2'.
44866         * modules/memchr2: New file.
44867         * modules/memchr2-tests: Likewise.
44868         * lib/memchr2.h: Likewise.
44869         * lib/memchr2.c: Likewise, based on memchr.c.
44870         * tests/test-memchr2.c: New test.
44871         * MODULES.html.sh (String handling): Add memchr2.
44872
44873 2008-02-29  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/freadseek-tests: New file.
44876         * tests/test-freadseek.sh: New file.
44877         * tests/test-freadseek.c: New file.
44878
44879         New module 'freadseek'.
44880         * modules/freadseek: New file.
44881         * lib/freadseek.h: New file.
44882         * lib/freadseek.c: New file.
44883         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44884
44885 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44886
44887         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44888         wydawca.
44889
44890         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44891         program_invocation_name and program_invocation_short_name are
44892         present.
44893
44894 2008-02-28  Bruno Haible  <bruno@clisp.org>
44895
44896         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44897         * tests/test-freadptr.sh: Also test non-seekable stdin.
44898
44899 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44900
44901         * build-aux/bootstrap (source_base, m4_base)
44902         (doc_base, tests_base): New variables.
44903         (gnulib_tool_options): Do not hardcode base directories, use
44904         the above variables instead.
44905
44906 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44907
44908         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44909
44910 2008-02-28  Bruno Haible  <bruno@clisp.org>
44911
44912         * modules/freadptr-tests: New file.
44913         * tests/test-freadptr.sh: New file.
44914         * tests/test-freadptr.c: New file.
44915
44916         New module 'freadptr'.
44917         * modules/freadptr: New file.
44918         * lib/freadptr.h: New file.
44919         * lib/freadptr.c: New file.
44920         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44921
44922 2008-02-26  Karl Berry  <karl@freefriends.org>
44923
44924         Sync from Libtool:
44925         * libltdl/argz.c (argz_add, argz_count): New functions.
44926         * libltdl/argz.in.h: Declare them.
44927         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44928
44929 2008-02-22  Bruno Haible  <bruno@clisp.org>
44930
44931         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44932         is a pointer type.  Needed for HP-UX 10.
44933         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44934         * doc/posix-functions/gmtime_r.texi: Likewise.
44935         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44936
44937 2008-02-24  Bruno Haible  <bruno@clisp.org>
44938
44939         * modules/environ-tests: New file.
44940         * tests/test-environ.c: New file.
44941
44942         New module 'environ'.
44943         * modules/environ: New file.
44944         * lib/unistd.in.h (environ): New declaration.
44945         * m4/environ.m4: New file.
44946         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44947         after use.
44948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44949         HAVE_DECL_ENVIRON.
44950         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44951         HAVE_DECL_ENVIRON.
44952         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44953         wrong claim that 'environ' is missing on some systems.
44954         * modules/execute (Depends-on): Add environ.
44955         * lib/execute.c (environ): Remove fallback declaration.
44956         * modules/pipe (Depends-on): Add environ.
44957         * lib/pipe.c (environ): Remove fallback declaration.
44958         * modules/setenv (Depends-on): Add environ.
44959         * lib/setenv.c (environ): Remove fallback declaration.
44960         * modules/unsetenv (Depends-on): Add environ.
44961         * lib/unsetenv.c (environ): Remove fallback declaration.
44962         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44963         m4/environ.m4.
44964         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44965         (gl_PREREQ_UNSETENV): Likewise.
44966
44967 2008-02-24  Bruno Haible  <bruno@clisp.org>
44968
44969         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44970
44971 2008-02-20  Bob Proulx  <bob@proulx.com>
44972
44973         Enable use of older two part flavor 'git describe'.
44974         * build-aux/git-version-gen: If using the older two part flavor of
44975         git version then recreate the third part now present in the
44976         newer three part flavor of git describe.
44977
44978 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44979
44980         * lib/fts.c (fts_build): Typo correction to comment.
44981
44982 2008-02-17  Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44985         generating no-op conflicts.
44986
44987 2008-02-17  Bruno Haible  <bruno@clisp.org>
44988
44989         Speed up by 10%.
44990         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44991         result_entries, rather than an index-based loop.
44992
44993 2008-02-17  Bruno Haible  <bruno@clisp.org>
44994
44995         Speed up by 25%.
44996         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44997         'hashcode_cached'.
44998         (entry_create): New function.
44999         (entry_hashcode): Use the cached hashcode if possible.
45000         (read_changelog_file, try_split_merged_entry): Use entry_create.
45001
45002 2008-02-17  Bruno Haible  <bruno@clisp.org>
45003
45004         Speed up from O(n^2) to O(n) for long ChangeLog files.
45005         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45006         (read_changelog_file): Change implementation of entries_reversed list
45007         to rbtreehash.
45008         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45009
45010 2008-02-17  Bruno Haible  <bruno@clisp.org>
45011
45012         New option --split-merged-entry.
45013         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45014         (find_paragraph_end, try_split_merged_entry): New functions.
45015         (long_options): Add option --split-merged-entry.
45016         (usage): Document option --split-merged-entry.
45017         (main): Implement option --split-merged-entry.
45018         Reported by Eric Blake.
45019
45020 2008-02-17  Bruno Haible  <bruno@clisp.org>
45021
45022         * lib/git-merge-changelog.c: Include c-strstr.h.
45023         (main): Support the "git pull --rebase" situation.
45024         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45025         Reported by Eric Blake.
45026
45027 2008-02-16  Eric Blake  <ebb9@byu.net>
45028
45029         Avoid doubling \ in common case of "c-maybe" quoting style.
45030         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45031         eliding outer quotes.
45032         * lib/quotearg.h: Document this.
45033         * tests/test-quotearg.c (result_strings, inputs, results_g)
45034         (flag_results, locale_results): Test it by adding a new string to
45035         each test group.
45036         (compare_strings): Test new string.
45037
45038 2008-02-13  Eric Blake  <ebb9@byu.net>
45039
45040         Avoid trigraph quoting in default output.
45041         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45042         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45043         unless explicitly requested.
45044         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45045
45046 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45047
45048         Don't rely on signed integer overflowing to negative value.
45049         * lib/getugroups.c (getugroups): Include <limits.h>.
45050         Instead, compare against INT_MAX, and increment only if the test passes.
45051
45052 2008-02-13  Jim Meyering  <meyering@redhat.com>
45053         and Eric Blake  <ebb9@byu.net>
45054
45055         Avoid shadowing warning and compile errors on Linux.
45056         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45057         forwarding macros on Linux.
45058         (dcgettext): Define a stub, for Linux.
45059         (results_g, main): Avoid warnings.
45060
45061 2008-02-12  Eric Blake  <ebb9@byu.net>
45062
45063         Silence warning in last patch.
45064         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45065
45066         Quotearg part 4: add tests, fix c-maybe colon quoting.
45067         * lib/quotearg.h: Improve documentation.
45068         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45069         escapes when adding outer quotes.  When quoting trigraphs, use
45070         valid C notation.  When quoting NUL, omit extra characters if next
45071         character is not digit.  Alter prototype.
45072         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45073         callers.
45074         * modules/quotearg-tests: New module.
45075         * tests/test-quotearg.c: New test.
45076
45077 2008-02-07  Eric Blake  <ebb9@byu.net>
45078
45079         Quotearg part 3: add flag to control outer quote elision.
45080         * lib/quotearg.h (c_maybe_quoting_style): New style.
45081         (enum quoting_flags): Better documentation of flags.
45082         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45083         c-maybe style.
45084         (quotearg_buffer_restyled): Handle new flag to elide outer
45085         quotes.
45086
45087         Quotearg part 2: add flag that can control NUL elision.
45088         * lib/quotearg.h (set_quoting_flags): New prototype.
45089         * lib/quotearg.c (struct quoting_options): Add flag field.
45090         (set_quoting_flags): New function.
45091         (quotearg_buffer_restyled): Add flags parameter.
45092         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45093         (quotearg_n_options): Set the flag, since length cannot be
45094         returned.
45095         (quoting_options_from_style): Default flags correctly.
45096
45097         Quotearg part 1: more wrappers, restore quotearg_char state.
45098         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45099         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45100         (quotearg_colon_mem): New wrappers.
45101         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45102         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45103         functions.
45104         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45105         (quotearg_colon_mem): New functions.
45106
45107 2008-02-11  Bruno Haible  <bruno@clisp.org>
45108
45109         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45110         library in the current directory: it does not work with parallel make.
45111         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45112
45113 2008-02-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * .gitattributes: New file.
45116
45117 2008-02-11  Jim Meyering  <meyering@redhat.com>
45118
45119         useless-if-before-free: Fix reversed exit values.
45120         * build-aux/useless-if-before-free: Use correct values
45121         for EXIT_MATCH and EXIT_NO_MATCH.
45122
45123         * build-aux/useless-if-before-free: Close stdout carefully.
45124
45125 2008-02-10  Bruno Haible  <bruno@clisp.org>
45126
45127         New module 'git-merge-changelog'.
45128         * modules/git-merge-changelog: New file.
45129         * lib/git-merge-changelog.c: New file.
45130
45131 2008-02-10  Jim Meyering  <meyering@redhat.com>
45132
45133         useless-if-before-free: New option: --list (-l).
45134
45135         useless-if-before-free: Don't exit immediately upon open failure.
45136         * build-aux/useless-if-before-free: Exit 2 for errors.
45137         Upon failure to open a file, don't exit immediately.
45138         Rather, just warn and continue with any remaining files.
45139
45140 2008-02-10  Bruno Haible  <bruno@clisp.org>
45141
45142         New abstract list operation 'node_set_value'.
45143         * lib/gl_list.h (gl_list_node_set_value): New function.
45144         (struct gl_list_implementation): New field node_set_value.
45145         * lib/gl_list.c (gl_list_node_set_value): New function.
45146         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45147         (gl_array_list_implementation): Update.
45148         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45149         (gl_carray_list_implementation): Update.
45150         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45151         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45152         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45153         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45154         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45155         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45156         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45157         Update.
45158         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45159         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45160         (gl_sublist_list_implementation): Update.
45161
45162 2008-02-10  Bruno Haible  <bruno@clisp.org>
45163
45164         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45165         Needed when ELEMENT is #defined to 'some_type *'.
45166
45167 2008-02-10  Jim Meyering  <meyering@redhat.com>
45168
45169         New script and module: useless-if-before-free
45170         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45171         * build-aux/useless-if-before-free: New file.
45172         * modules/useless-if-before-free: New file.
45173
45174         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45175
45176         xstrtol_error: Fix typo.
45177         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45178         s/exit_failure/exit_status/.
45179
45180 2008-02-09  Jim Meyering  <meyering@redhat.com>
45181
45182         New script and module: gitlog-to-changelog
45183         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45184         * modules/gitlog-to-changelog: New file.
45185         * build-aux/gitlog-to-changelog: New file.
45186
45187 2008-02-08  Jim Meyering  <meyering@redhat.com>
45188
45189         Avoid two "parameter unused" warnings.
45190         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45191         Mark "st" as used.
45192
45193         Use "git COMMAND", not "git-COMMAND".
45194         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45195         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45196         * build-aux/git-version-gen: Use "git status", not "git-status".
45197
45198 2008-02-07  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45201         Avoids a crash on Windows Vista.
45202         Reported by Adam Strzelecki <ono@java.pl> via
45203         Simon Josefsson <simon@josefsson.org>.
45204
45205 2008-02-06  Bruno Haible  <bruno@clisp.org>
45206
45207         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45208         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45209         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45211         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45213         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45214         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45222         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45223         left-adjust flag.
45224         * tests/test-snprintf-posix.h (test_function): Likewise.
45225         * tests/test-sprintf-posix.h (test_function): Likewise.
45226         * tests/test-vasprintf-posix.c (test_function): Likewise.
45227         * doc/posix-functions/fprintf.texi: Update.
45228         * doc/posix-functions/printf.texi: Update.
45229         * doc/posix-functions/snprintf.texi: Update.
45230         * doc/posix-functions/sprintf.texi: Update.
45231         * doc/posix-functions/vfprintf.texi: Update.
45232         * doc/posix-functions/vprintf.texi: Update.
45233         * doc/posix-functions/vsnprintf.texi: Update.
45234         * doc/posix-functions/vsprintf.texi: Update.
45235         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45236
45237 2008-02-06  Bruno Haible  <bruno@clisp.org>
45238
45239         Fix bug introduced on 2008-01-26.
45240         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45241
45242 2008-02-06  Bruno Haible  <bruno@clisp.org>
45243
45244         Fix bug introduced on 2007-06-10.
45245         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45246         !NEED_PRINTF_FLAG_ZERO.
45247
45248 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45249
45250         getloadavg: use libperfstat on AIX5
45251         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45252
45253 2008-02-03  Bruno Haible  <bruno@clisp.org>
45254
45255         * lib/diffseq.h: Add comments about required #includes.
45256         Reported by Michael Biggs <gnulib@doubleplum.net>.
45257
45258 2008-02-01  Bruno Haible  <bruno@clisp.org>
45259
45260         * users.txt: Add gnuit.
45261
45262 2008-01-31  Bruno Haible  <bruno@clisp.org>
45263
45264         * lib/md4.c (set_uint32): Mark as inline.
45265         * lib/md5.c (set_uint32): Likewise.
45266         * lib/sha1.c (set_uint32): Likewise.
45267         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45268         * m4/md5.m4 (gl_MD5): Likewise.
45269         * m4/sha1.m4 (gl_SHA1): Likewise.
45270
45271 2008-01-31  Jim Meyering  <meyering@redhat.com>
45272
45273         Use "sizeof VAR", rather than a literal "4".
45274         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45275         * lib/md4.c (md4_read_ctx): Likewise.
45276         * lib/sha1.c (sha1_read_ctx): Likewise.
45277
45278 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45279
45280         * tests/test-sha1.c: New file, based on test-md5.c.
45281
45282         * modules/crypto/sha1-tests: New file.
45283
45284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45285
45286         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45287
45288 2008-01-31  Jim Meyering  <meyering@redhat.com>
45289
45290         Prefer "sizeof v" over the equivalent "4".
45291         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45292         * lib/md5.c (set_uint32): Likewise.
45293         * lib/sha1.c (set_uint32): Likewise.
45294
45295 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45296
45297         * lib/sha1.c (set_uint32): Mark function as static.
45298
45299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45300
45301         md2: clarify comments to say that alignment is not required.
45302         * lib/md2.h: Remove warning about alignment in comment.
45303         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45304         never been required.
45305
45306 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45307
45308         md4: adapt alignment constraint fix from sha1.
45309         * lib/md4.c (set_uint32): New function, from sha1.c
45310         (md4_read_ctx): Use it.
45311         (md4_finish_ctx): Doc fix.
45312         * lib/md4.h: Doc fix.
45313
45314 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45315
45316         md5: adapt alignment constraint fix from sha1.
45317         * lib/md5.c (set_uint32): New function, from sha1.c
45318         (md5_read_ctx): Use it.
45319         (md5_finish_ctx): Doc fix.
45320         * lib/md5.h: Doc fix.
45321
45322 2008-01-30  Peter Palfrader  <weasel@debian.org>
45323
45324         sha1: remove the result buffer alignment constraint
45325         * lib/sha1.c (set_uint32): New function.
45326         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45327         constraint.
45328         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45329         * lib/sha1.h: Likewise.
45330
45331 2008-01-30  Andreas Schwab  <schwab@suse.de>
45332             Bruno Haible  <bruno@clisp.org>
45333
45334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45335         correct definition of LDBL_MIN_EXP.
45336
45337 2008-01-30  Karl Berry  <karl@gnu.org>
45338
45339         * config/srclist-update: try to preserve x bit on updates.
45340         * config/srclistvars.sh: update for karl.
45341
45342 2008-01-29  Jim Meyering  <meyering@redhat.com>
45343
45344         vasnprintf.c: Avoid warning about unused label
45345         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45346         "overflow" label definition and associated code with the
45347         same cpp condition that guards the sole use of that label.
45348
45349 2008-01-26  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45352         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45353         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45354         * lib/isnanl-nolibm.h (isnanl): Likewise.
45355         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45356
45357 2008-01-26  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45360         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45361
45362 2008-01-26  Bruno Haible  <bruno@clisp.org>
45363
45364         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45365         GCC >= 4.0 built-in.
45366         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45367
45368 2008-01-26  Bruno Haible  <bruno@clisp.org>
45369
45370         Rename isnan, applicable to 'double' only, to isnand.
45371         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45372         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45373         (configure.ac): Update.
45374         (Include): Replace "isnan.h" with "isnand.h".
45375         * m4/isnand.m4: Renamed from m4/isnan.m4.
45376         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45377         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45378         instead of isnan.c.
45379         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45380         instead of HAVE_ISNAN_IN_LIBC.
45381         (isnand): Renamed from isnan.
45382         * lib/isnand.c: New file.
45383         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45384         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45385         (Makefile.am): Update.
45386         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45387         Include isnand.h instead of isnan.h.
45388         (main): Test isnand instead of isnan.
45389         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45390         isnan-nolibm.
45391         * modules/frexp (Depends-on): Likewise.
45392         * modules/frexp-tests (Depends-on): Likewise.
45393         * modules/frexp-nolibm (Depends-on): Likewise.
45394         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45395         * modules/isfinite (Depends-on): Likewise.
45396         * modules/round-tests (Depends-on): Likewise.
45397         * modules/signbit (Depends-on): Likewise.
45398         * modules/signbit-tests (Depends-on): Likewise.
45399         * modules/snprintf-posix (Depends-on): Likewise.
45400         * modules/sprintf-posix (Depends-on): Likewise.
45401         * modules/trunc-tests (Depends-on): Likewise.
45402         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45403         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45404         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45406         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45407         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45408         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45409         * modules/vasnprintf-posix (Depends-on): Likewise.
45410         * modules/vasprintf-posix (Depends-on): Likewise.
45411         * modules/vfprintf-posix (Depends-on): Likewise.
45412         * modules/vsnprintf-posix (Depends-on): Likewise.
45413         * modules/vsprintf-posix (Depends-on): Likewise.
45414         * lib/frexp.c: Include isnand.h instead of isnan.h.
45415         (ISNAN): Set to isnand instead of isnan.
45416         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45417         (gl_isfinited): Use isnand instead of isnan.
45418         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45419         (gl_signbitd): Use isnand instead of isnan.
45420         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45421         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45422         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45423         (main): Use isnand instead of isnan.
45424         * tests/test-round1.c: Include isnand.h.
45425         (main): Use isnand instead of isnan.
45426         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45427         (ISNAN): Set to isnand instead of isnan.
45428         * tests/test-trunc1.c: Include isnand.h.
45429         (main): Use isnand instead of isnan.
45430         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45431         (equal): Use isnand instead of isnan.
45432         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45433         isnand-nolibm.
45434         * NEWS: Mention the change.
45435
45436 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45437             Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45440         the GCC builtins for signbits are present and set
45441         REPLACE_SIGNBIT_USING_GCC if so.
45442         * lib/math.in.h (signbit): Define using GCC builtins if
45443         REPLACE_SIGNBIT_USING_GCC is set.
45444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45445         REPLACE_SIGNBIT_USING_GCC.
45446         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45447
45448 2008-01-25  Jim Meyering  <meyering@redhat.com>
45449
45450         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45451         * lib/poll.c: Include <config.h>, not "config.h".
45452         * tests/test-getaddrinfo.c: Likewise.
45453
45454 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45455
45456         * modules/sockets-tests: New file.
45457
45458 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45459
45460         * modules/sockets: New module, can be used to call WSA_Startup and
45461         WSA_Cleanup when needed.
45462
45463         * lib/sockets.h, lib/sockets.c: New files.
45464
45465         * m4/sockets.m4: New file.
45466
45467         * tests/test-sockets.c: New file.
45468
45469 2008-01-19  Bruno Haible  <bruno@clisp.org>
45470
45471         * doc/posix-headers: Renamed from doc/headers.
45472         * doc/posix-functions: Renamed from doc/functions.
45473         * doc/gnulib.texi: Update.
45474
45475 2008-01-19  Bruno Haible  <bruno@clisp.org>
45476
45477         * doc/glibc-functions/strcasestr.texi: Include contents of
45478         doc/functions/strcasestr.texi, fixing the list of platforms.
45479         * doc/functions/strcasestr.texi: Remove file.
45480
45481 2008-01-19  Bruno Haible  <bruno@clisp.org>
45482
45483         * doc/glibc-functions/memmem.texi: Include contents of
45484         doc/functions/memmem.texi.
45485         * doc/functions/memmem.texi: Remove file.
45486
45487 2008-01-18  Bruno Haible  <bruno@clisp.org>
45488
45489         * doc/glibc-functions/*.texi: New files.
45490         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45491         to use the new files.
45492
45493 2008-01-17  Bruno Haible  <bruno@clisp.org>
45494
45495         * tests/test-gethostname.c (main): Fix printf statement.
45496
45497 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45498
45499         * modules/gethostname-tests: New file.
45500
45501         * tests/test-gethostname.c: New file.
45502
45503 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45504
45505         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45506         used by the UNAME case.  Reported by Bruno Haible
45507         <bruno@clisp.org>.
45508
45509 2008-01-17  Eric Blake  <ebb9@byu.net>
45510
45511         Convert c-strcasestr to be more efficient.
45512         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45513         (Depends-on): Add c-strcase, remove malloca, strnlen.
45514         * tests/test-c-strcasestr.c (main): Enhance test.
45515         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45516
45517 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45518
45519         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45520         Use it in creating po/Makevars.
45521
45522 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45523
45524         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45525         Applications that requires it should initialize libgcrypt
45526         manually.
45527
45528 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45529
45530         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45531
45532 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45533
45534         Fix problem with getdate on mingw32 reported by Simon Josefsson
45535         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45536         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45537         tzname", when deciding whether to declare tzname.
45538         * lib/strftime.c (tzname): Likewise.
45539
45540 2008-01-15  Bruno Haible  <bruno@clisp.org>
45541
45542         Work around a MacOS X 10.5 bug in frexpl().
45543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45544         * doc/functions/frexpl.texi: Document the bug.
45545         Reported by Elias Pipping <pipping@gentoo.org>.
45546
45547 2008-01-14  Eric Blake  <ebb9@byu.net>
45548
45549         Touch up previous patch.
45550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45551         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45552
45553         Convert strcasestr module to use Two-Way algorithm.
45554         * modules/strcasestr-simple: New module, based on the old
45555         strcasestr, but with Two-Way rather than KMP.
45556         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45557         * lib/string.in.h (rpl_strcasestr): Declare.
45558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45559         performance.
45560         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45561         * modules/string (Makefile.am): Support strcasestr.
45562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45563         * modules/strcasestr-tests (Depends-on): Check for alarm.
45564         * tests/test-strcasestr.c: Augment test.
45565         * lib/str-two-way.h: Clean up stray macro.
45566         * NEWS: Document new module.
45567         * MODULES.html.sh (string handling): Likewise.
45568         * doc/functions/strcasestr.texi: New file.
45569         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45570         here, since it is not a POSIX function.
45571
45572 2008-01-14  Colin Watson  <cjwatson@debian.org>
45573             Bruno Haible  <bruno@clisp.org>
45574
45575         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45576         works fine; if not, set REPLACE_STRSIGNAL.
45577         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45579         REPLACE_STRSIGNAL.
45580         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45581         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45582         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45583
45584 2008-01-14  Bruno Haible  <bruno@clisp.org>
45585
45586         * modules/strsignal (Include): Change to <string.h>.
45587
45588 2008-01-14  Colin Watson  <cjwatson@debian.org>
45589
45590         * modules/argp (Notice): Add a notice recommending to change
45591         XGETTEXT_OPTIONS.
45592         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45593
45594 2008-01-13  Colin Watson  <cjwatson@debian.org>
45595
45596         * modules/strsignal-tests: New file.
45597         * tests/test-strsignal.c: New file.
45598
45599         * lib/strsignal.c: New file, from glibc with modifications.
45600         * lib/siglist.h: New file, from glibc with modifications.
45601         * lib/string.in.h (strsignal): New declaration.
45602         * m4/strsignal.m4: New file.
45603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45604         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45605         * modules/strsignal: New file.
45606         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45607         HAVE_DECL_STRSIGNAL.
45608
45609 2008-01-13  Bruno Haible  <bruno@clisp.org>
45610
45611         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45612         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45613         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45615
45616 2008-01-13  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45619         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45620         * lib/argp.h (__attribute__): Likewise.
45621         * lib/c-stack.c (__attribute__): Likewise.
45622         * lib/error.h (__attribute__): Likewise.
45623         * lib/fts.c (__attribute__): Likewise.
45624         * lib/openat.h (__attribute__): Likewise.
45625         * lib/stdio.in.h (__attribute__): Likewise.
45626         * lib/string.in.h (__attribute__): Likewise.
45627         * lib/utimens.c (__attribute__): Likewise.
45628         * lib/vasnprintf.h (__attribute__): Likewise.
45629         * lib/xalloc.h (__attribute__): Likewise.
45630         * lib/xprintf.h (__attribute__): Likewise.
45631         * lib/xstrtol.h (__attribute__): Likewise.
45632         * lib/xvasprintf.h (__attribute__): Likewise.
45633
45634 2008-01-12  Bruno Haible  <bruno@clisp.org>
45635
45636         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45637         * doc/glibc-headers/a.out.texi: New file.
45638         * doc/glibc-headers/aliases.texi: New file.
45639         * doc/glibc-headers/alloca.texi: New file.
45640         * doc/glibc-headers/ar.texi: New file.
45641         * doc/glibc-headers/argp.texi: New file.
45642         * doc/glibc-headers/argz.texi: New file.
45643         * doc/glibc-headers/byteswap.texi: New file.
45644         * doc/glibc-headers/crypt.texi: New file.
45645         * doc/glibc-headers/endian.texi: New file.
45646         * doc/glibc-headers/envz.texi: New file.
45647         * doc/glibc-headers/err.texi: New file.
45648         * doc/glibc-headers/error.texi: New file.
45649         * doc/glibc-headers/execinfo.texi: New file.
45650         * doc/glibc-headers/fpu_control.texi: New file.
45651         * doc/glibc-headers/fstab.texi: New file.
45652         * doc/glibc-headers/fts.texi: New file.
45653         * doc/glibc-headers/getopt.texi: New file.
45654         * doc/glibc-headers/ieee754.texi: New file.
45655         * doc/glibc-headers/ifaddrs.texi: New file.
45656         * doc/glibc-headers/libintl.texi: New file.
45657         * doc/glibc-headers/mcheck.texi: New file.
45658         * doc/glibc-headers/mntent.texi: New file.
45659         * doc/glibc-headers/obstack.texi: New file.
45660         * doc/glibc-headers/paths.texi: New file.
45661         * doc/glibc-headers/printf.texi: New file.
45662         * doc/glibc-headers/pty.texi: New file.
45663         * doc/glibc-headers/resolv.texi: New file.
45664         * doc/glibc-headers/shadow.texi: New file.
45665         * doc/glibc-headers/sysexits.texi: New file.
45666         * doc/glibc-headers/ttyent.texi: New file.
45667
45668 2008-01-12  Jim Meyering  <meyering@redhat.com>
45669
45670         announce-gen: emit Gnulib's git-based version string.
45671         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45672         New option --gnulib-version=V, where V is expected to be
45673         the output of running git describe in the gnulib directory.
45674         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45675         not useful, and plan to stop publishing an xdelta file with each
45676         coreutils release.
45677
45678         * build-aux/announce-gen: Also check for lzma-compressed files.
45679
45680 2008-01-11  Bruno Haible  <bruno@clisp.org>
45681
45682         * tests/test-memmem.c (main): Increase maximum allowed time.
45683         * tests/test-strstr.c (main): Likewise.
45684
45685 2008-01-11  Bruno Haible  <bruno@clisp.org>
45686
45687         * doc/functions/memmem.texi: Add more precisions about platforms.
45688         * doc/functions/strstr.texi: Likewise.
45689
45690 2008-01-10  Eric Blake  <ebb9@byu.net>
45691
45692         * m4/strstr.m4: Delete cruft from copy-n-paste.
45693         Reported by Bruno Haible.
45694
45695 2008-01-10  Bruno Haible  <bruno@clisp.org>
45696
45697         Make c-strstr rely on strstr.
45698         * lib/c-strstr.c: Don't include str-kmp.h.
45699         (c_strstr): Define in terms of strstr.
45700         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45701         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45702
45703 2008-01-10  Bruno Haible  <bruno@clisp.org>
45704
45705         * doc/gnulib.texi (String Functions in C Locale): New section.
45706         * doc/c-ctype.texi: New file.
45707         * doc/c-strcase.texi: New file.
45708         * doc/c-strcaseeq.texi: New file.
45709         * doc/c-strcasestr.texi: New file.
45710         * doc/c-strstr.texi: New file.
45711         * doc/c-strtod.texi: New file.
45712         * doc/c-strtold.texi: New file.
45713
45714 2008-01-10  Eric Blake  <ebb9@byu.net>
45715
45716         * lib/relocatable.h: Fix a comment.
45717
45718 2008-01-10  Eric Blake  <ebb9@byu.net>
45719
45720         Share two-way algorithm.
45721         * lib/str-two-way.h: New file, merged from...
45722         * lib/memmem.c: ...here...
45723         * lib/strstr.c: ...and here.
45724         * modules/memmem (Files): Use it.
45725         * modules/strstr (Files): Likewise.
45726
45727         Avoid quadratic strstr implementations.
45728         * lib/strstr.c: New file.
45729         * m4/strstr.m4: Likewise.
45730         * modules/strstr: Likewise.
45731         * modules/strstr-tests: Likewise.
45732         * tests/test-strstr.c: Likewise.
45733         * lib/string.in.h (rpl_strstr): Declare.
45734         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45736         * modules/string (Makefile.am): Likewise.
45737         * MODULES.html.sh (string handling): Mention new module.
45738         * doc/functions/strstr.texi (strstr): Document the bug.
45739
45740 2008-01-10  Bruno Haible  <bruno@clisp.org>
45741
45742         * lib/relocatable.h (relocate): State whether result is freshly
45743         allocated or not.
45744         * lib/relocatable.c (relocate): Return a freshly allocated string
45745         instead of a pointer to a privately held string.
45746         Reported by Sylvain Beucler <beuc@gnu.org>.
45747
45748 2008-01-10  Colin Watson  <cjwatson@debian.org>
45749
45750         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45751         s/S_ISNLK/S_ISLNK/.
45752
45753 2008-01-09  Bruno Haible  <bruno@clisp.org>
45754
45755         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45756         and other files.
45757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45758         if it's only a guess.
45759         * modules/memmem: Simplify by depending on memmem-simple.
45760
45761 2008-01-09  Bruno Haible  <bruno@clisp.org>
45762
45763         Work around OpenBSD 4.0 tdelete() bug.
45764         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45765         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45766         macros and don't redefine the enum values.
45767         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45768         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45769         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45770
45771 2008-01-09  Bruno Haible  <bruno@clisp.org>
45772
45773         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45774         (main): Don't perform the tests if setlocale did not install a UTF-8
45775         locale. Needed on OpenBSD 4.0.
45776         * modules/wcwidth-tests (Depends-on): Add localcharset.
45777
45778 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45779
45780         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45781         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45782         * NEWS: announce this.
45783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45784
45785 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45786         and Eric Blake  <ebb9@byu.net>
45787
45788         Add memmem-simple module.
45789         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45790         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45791         * modules/memmem-simple: New file.
45792         * modules/memmem (Description): Tweak.
45793         * MODULES.html.sh (string handling): Mention new module.
45794         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45795         addressed by memmem-simple.
45796         * NEWS: Document the difference.
45797
45798 2008-01-09  Eric Blake  <ebb9@byu.net>
45799
45800         Give gcc some memmem optimization hints.
45801         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45802         (strcasestr): Declare as pure.
45803         * modules/memmem (Maintainer): Claim my implementation.
45804
45805 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45806
45807         Support AIX 6.1 and higher.
45808         * build-aux/config.libpath: Likewise.
45809         * build-aux/config.rpath: Likewise.
45810
45811 2008-01-08  Jim Meyering  <meyering@redhat.com>
45812             Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45815         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45816         Reported by Peter Fales in
45817         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45818
45819 2008-01-08  Bruno Haible  <bruno@clisp.org>
45820
45821         * modules/unictype/category-of (Depends-on): Add
45822         unictype/category-none.
45823         * modules/unictype/category-and-tests (Depends-on): Add
45824         unictype/category-{L,N,Lu,Nd}.
45825         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45826         * modules/unictype/category-or-tests (Depends-on): Add
45827         unictype/category-{L,N}.
45828         * modules/unictype/category-name-tests (Depends-on): Add
45829         unictype/category-{Z,Nl}.
45830         Reported by Simon Josefsson.
45831
45832 2008-01-08  Bruno Haible  <bruno@clisp.org>
45833
45834         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45835         convention better.
45836         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45837         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45838         Reported by Peter Miller <millerp@canb.auug.org.au>.
45839
45840 2008-01-08  Eric Blake  <ebb9@byu.net>
45841
45842         Rewrite memmem to guarantee linear complexity without malloc.
45843         * lib/memmem.c (memmem): Use Two-Way rather than
45844         Knuth-Morris-Pratt, to allow O(1) space usage.
45845         (critical_factorization, two_way_short_needle)
45846         (two_way_long_needle): New functions.
45847         (knuth_morris_pratt): Delete.
45848         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45849         Add stdint.
45850         * tests/test-memmem.c (main): Add tests for periodic needle and
45851         sublinear performance.
45852         * doc/functions/memmem.texi (memmem): Document other deficiencies
45853         in cygwin and older glibc.
45854
45855 2008-01-08  Bruno Haible  <bruno@clisp.org>
45856
45857         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45858         augmentation.
45859
45860 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45861
45862         Add a configure time option: --disable-acl.
45863         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45864         AC_ARG_ENABLE(acl).
45865
45866 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45867
45868         * tests/test-localename.c: Don't include obsolete "setenv.h".
45869
45870         * modules/localename-tests (Depends-on): Need unsetenv.
45871
45872 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45873
45874         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45875
45876 2008-01-06  Colin Watson  <cjwatson@debian.org>
45877
45878         * users.txt: Add man-db.
45879
45880 2008-01-07  Bruno Haible  <bruno@clisp.org>
45881
45882         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45883         previous section name.
45884
45885 2008-01-07  Bruno Haible  <bruno@clisp.org>
45886
45887         * lib/progname.c (set_program_name): Don't strip off a leading
45888         "lt-" prefix outside a .libs directory.
45889         Suggested by Paul Eggert.
45890
45891 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45892             Bruno Haible  <bruno@clisp.org>
45893
45894         Improve memory cleanup in 'relocatable' module.
45895         * lib/relocatable.h (compute_curr_prefix): Change return type to
45896         'char *'.
45897         * lib/relocatable.c (compute_curr_prefix): Change return type to
45898         'char *'. Free curr_installdir after use.
45899         (relocate): Free curr_prefix_better after use.
45900         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45901
45902 2008-01-01  Bruno Haible  <bruno@clisp.org>
45903
45904         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45905         failure on older glibc systems.
45906         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45907
45908 2008-01-05  Eric Blake  <ebb9@byu.net>
45909
45910         Avoid quadratic system memmem.
45911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45912         Reported by Ralf Wildenhues.
45913
45914         Fix memmem test for mingw.
45915         * modules/memmem-tests (configure.ac): Check for alarm.
45916         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45917         it.
45918         * doc/functions/memmem.texi: New file.
45919         * doc/gnulib.texi (Function Substitutes): Add memmem.
45920         Reported by Bruno Haible.
45921
45922 2008-01-04  Bruno Haible  <bruno@clisp.org>
45923
45924         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45925         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45926         gl_HEADER_STRING_H_DEFAULTS.
45927
45928 2008-01-04  Eric Blake  <ebb9@byu.net>
45929
45930         Shorten duration of memmem test.
45931         * tests/test-memmem.c (main): Use alarm to declare failure if test
45932         is taking too long.
45933         Reported by Ralf Wildenhues.
45934
45935 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45936
45937         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45938         string, needed by strerror.
45939
45940 2008-01-03  Colin Watson  <cjwatson@debian.org>
45941             Bruno Haible  <bruno@clisp.org>
45942
45943         * doc/gnulib-tool.texi (Localization): New section.
45944
45945 2008-01-02  Bruno Haible  <bruno@clisp.org>
45946
45947         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45948         variables to 'unsigned char *' type.
45949         Reported by Paul Eggert.
45950
45951 2008-01-02  Jim Meyering  <jim@meyering.net>
45952
45953         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45954
45955 2007-12-31  Jim Meyering  <jim@meyering.net>
45956
45957         Avoid use of private FTS type name.
45958         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45959
45960 2007-12-30  Karl Berry  <karl@gnu.org>
45961
45962         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45963         work around defect in Texinfo and/or the standalone Info browser.
45964
45965 2007-12-30  Bruno Haible  <bruno@clisp.org>
45966
45967         Unify 5 copies of the KMP code.
45968         * lib/str-kmp.h: New file.
45969         * lib/c-strcasestr.c: Include str-kmp.h.
45970         (knuth_morris_pratt): Remove function.
45971         (c_strcasestr): Update.
45972         * lib/c-strstr.c: Include str-kmp.h.
45973         (knuth_morris_pratt): Remove function.
45974         (c_strcasestr): Update.
45975         * lib/mbscasestr.c: Include str-kmp.h.
45976         (knuth_morris_pratt_unibyte): Remove function.
45977         * lib/mbsstr.c: Include str-kmp.h.
45978         (knuth_morris_pratt_unibyte): Remove function.
45979         * lib/strcasestr.c: Include str-kmp.h.
45980         (knuth_morris_pratt): Remove function.
45981         (strcasestr): Update.
45982         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45983         * modules/c-strstr (Files): Likewise.
45984         * modules/mbscasestr (Files): Likewise.
45985         * modules/mbsstr (Files): Likewise.
45986         * modules/strcasestr (Files): Likewise.
45987         Suggested by Paul Eggert.
45988
45989 2007-12-30  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45992         defined.
45993
45994 2007-12-30  Bruno Haible  <bruno@clisp.org>
45995
45996         * lib/xmalloca.h: Include xalloc.h.
45997         (xnmalloca): New macro.
45998
45999 2007-12-30  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/malloca.h (nmalloca): New macro.
46002         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46003         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46004         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46005         knuth_morris_pratt_multibyte): Likewise.
46006         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46007         knuth_morris_pratt_multibyte): Likewise.
46008         * lib/memmem.c (knuth_morris_pratt): Likewise.
46009         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46010
46011 2007-12-25  Bruno Haible  <bruno@clisp.org>
46012
46013         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46014         * lib/glob.c: Don't include openat.h.
46015         (link_exists2_p): Add back the code that deals with the
46016         !GLOB_ALTDIRFUNC case.
46017         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46018         let it do the filename concatenation.
46019         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46020         * modules/glob (Depends-on): Remove openat.
46021
46022 2007-12-31  Bruno Haible  <bruno@clisp.org>
46023
46024         * modules/dirfd (License): Change to LGPLv2+.
46025         Approved by Jim Meyering.
46026
46027 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46030         when multiplying M by sizeof (size_t).
46031
46032 2007-12-10  Martin Lambers  <marlam@marlam.de>
46033
46034         Override getpagesize on mingw.
46035         * lib/getpagesize.c: New file.
46036         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46037         * modules/getpagesize (Files): Add lib/getpagesize.c.
46038         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46040         REPLACE_GETPAGESIZE.
46041         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46042
46043 2007-12-25  Bruno Haible  <bruno@clisp.org>
46044
46045         * modules/localcharset (Notice): New field.
46046         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46047         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46048
46049 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46050             Bruno Haible  <bruno@clisp.org>
46051
46052         Avoid using the syntax symbol() in formatted documentation.
46053         * MODULES.html.sh (func_module): When replacing symbol() with a
46054         hyperlink, remove the parentheses. Show an error if some remain.
46055         Recognize and render the '...' syntax.
46056         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46057         Rework. Add paragraph about GCC's inlining.
46058         * doc/alloca.texi: Likewise.
46059         * doc/error.texi: Remove parentheses from symbol reference.
46060         * doc/gnulib-intro.texi: Likewise.
46061         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46062         * modules/fnmatch (Description): Reword to say "the ... function".
46063         * modules/full-read (Description): Likewise.
46064         * modules/full-write (Description): Likewise.
46065         * modules/safe-read (Description): Likewise.
46066         * modules/safe-write (Description): Likewise.
46067         * modules/strchrnul (Description): Likewise.
46068         * modules/trim (Description): Likewise.
46069         * modules/error (Description): Remove parentheses from symbol
46070         references.
46071         * modules/verror (Description): Likewise.
46072         Reported by Karl Berry.
46073
46074 2007-12-25  Bruno Haible  <bruno@clisp.org>
46075
46076         Fixup after 2007-10-16 commit.
46077         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46078
46079 2007-12-24  Bruno Haible  <bruno@clisp.org>
46080
46081         Make --enable-relocatable work with DESTDIR.
46082         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46083         to compute installdir from destprog.
46084         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46085         also set the RELOC_DESTDIR variable.
46086         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46087
46088 2007-12-24  Bruno Haible  <bruno@clisp.org>
46089
46090         Fix link error due to xalloc_die().
46091         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46092         of xreadlink.
46093         * lib/relocwrapper.c: Update comments.
46094         * build-aux/install-reloc: Remove xreadlink.c from file list.
46095         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46096         xreadlink.c.
46097         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46098
46099 2007-12-24  Bruno Haible  <bruno@clisp.org>
46100
46101         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46102         * lib/setenv.h: Remove file.
46103         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46104         lib/setenv.h.
46105         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46106         (Depends-on): Add stdlib.
46107         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46108         gl_FUNC_UNSETENV.
46109         (Include): Replace setenv.h with <stdlib.h>.
46110         * modules/unsetenv: New file.
46111         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46112         * lib/unsetenv.c: Include <stdlib.h> first.
46113         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46114         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46115         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46116         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46117         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46118         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46120         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46121         * doc/functions/unsetenv.texi: Update.
46122         * modules/xsetenv (Depends-on): Add unsetenv.
46123         * modules/getdate (Depends-on): Likewise.
46124         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46125         * lib/xsetenv.c: Don't include setenv.h.
46126         * lib/getdate.y: Likewise.
46127         * lib/relocwrapper.c: Likewise.
46128         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46129         (Depends-on): Add stdlib.
46130         * NEWS: Mention the changes.
46131         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46132
46133 2007-12-23  Bruno Haible  <bruno@clisp.org>
46134
46135         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46136         indentation.
46137
46138 2007-12-23  Bruno Haible  <bruno@clisp.org>
46139
46140         * lib/c-strcasestr.c: Add more comments.
46141         * lib/c-strstr.c: Likewise.
46142         * lib/mbscasestr.c: Likewise.
46143         * lib/mbsstr.c: Likewise.
46144         * lib/strcasestr.c: Likewise.
46145         * lib/memmem.c: Likewise.
46146
46147 2007-12-23  Bruno Haible  <bruno@clisp.org>
46148
46149         * tests/test-memmem.c: Include <string.h> first.
46150
46151 2007-12-22  Bruno Haible  <bruno@clisp.org>
46152
46153         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46154         the contents of $testsbase.
46155         Reported by Ralf Wildenhues.
46156
46157 2007-12-22  Bruno Haible  <bruno@clisp.org>
46158
46159         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46160         two variables local_ldadd_before, local_ldadd_last.
46161
46162 2007-12-20  Eric Blake  <ebb9@byu.net>
46163
46164         Work around circular library issue when cross-compiling.
46165         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46166         that progname.o does not need to pull in rpl_memcmp.
46167
46168 2007-12-19  Eric Blake  <ebb9@byu.net>
46169
46170         Fix memmem to avoid O(n^2) worst-case complexity.
46171         * lib/memmem.c (knuth_morris_pratt): New function.
46172         (memmem): Use it if first few naive iterations fail.
46173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46174         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46175         * modules/memchr (License): Likewise.
46176         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46177         malloca.
46178         * tests/test-memmem.c: Rewrite, borrowing ideas from
46179         test-mbsstr1.c; the old version wouldn't even compile!
46180         * modules/memmem-tests: New file.
46181         * lib/string.in.h (rpl_memmem): Add declaration.
46182         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46184         REPLACE_MEMMEM.
46185
46186 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46189         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46190         before any system include files, and undef after them all.  This
46191         should fix a problem on VMS reported by John E. Malmberg in
46192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46193
46194 2007-12-17  Eric Blake  <ebb9@byu.net>
46195
46196         Revert addition of verify, for BSD/OS.
46197         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46198         can't handle large files, for the sake of obsolete platforms.
46199         * modules/fseeko (Depends-on): Remove verify.
46200         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46201         * doc/functions/ftello.texi (ftello): Likewise.
46202         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46203         Reported by Larry Jones.
46204
46205 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46206
46207         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46208         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46209
46210 2007-12-17  Jim Meyering  <meyering@redhat.com>
46211
46212         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46213         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46214         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46215         * modules/getcwd (Depends-on): Add openat.
46216         Reported by Petr Salinger.
46217
46218 2007-12-17  Bruno Haible  <bruno@clisp.org>
46219
46220         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46221         avoid a segmentation fault of the configure test on x86_64 systems.
46222
46223 2007-12-15  Jim Meyering  <meyering@redhat.com>
46224
46225         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46226
46227 2007-12-13  Eric Blake  <ebb9@byu.net>
46228
46229         Another fseek test.
46230         * tests/test-fseek.c (main): Also test ungetc handling.
46231         * tests/test-fseeko.c (main): Likewise.
46232         * modules/fseeko (Depends-on): Add verify.
46233         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46234         large.
46235         Reported by Larry Jones.
46236
46237         Fix fseeko on mingw.
46238         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46239         seek.
46240
46241         Beef up fseek tests.
46242         * tests/test-fseek.c (main): Also test eof handling.
46243         * tests/test-fseeko.c (main): Likewise.
46244         Reported by Larry Jones.
46245
46246 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46247
46248         Fix fseeko on BSD-based platforms.
46249         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46250         successful seek.
46251
46252 2007-12-12  Eric Blake  <ebb9@byu.net>
46253
46254         Allow circular dependency of separate libtests.a
46255         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46256         when use_libtests.
46257
46258 2007-12-11  Eric Blake  <ebb9@byu.net>
46259
46260         Fix bug with -0.0L in previous patch.
46261         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46262         * tests/test-isnan.c (main): Also test on zeroes.
46263         * tests/test-isnanf.c (main): Likewise.
46264         * tests/test-isnanl.h (main): Likewise.
46265
46266         Detect pseudo-denormals on x86 even when cross-compiling.
46267         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46268         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46269         invalid bit patterns that happen to satisfy ==.
46270
46271         Avoid link failures with separate libtests.a.
46272         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46273         last, to satisfy circular dependencies.
46274
46275 2007-12-11  Eric Blake  <ebb9@byu.net>
46276         and Bruno Haible  <bruno@clisp.org>
46277
46278         Fix OpenBSD 4.0 <float.h> handling of long double.
46279         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46280         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46281         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46282
46283 2007-12-11  Jim Meyering  <meyering@redhat.com>
46284
46285         * users.txt: Add libvirt.
46286
46287         Support versions of autoconf prior to 2.59c.
46288         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46289         if it is not already defined.
46290
46291 2007-12-09  Bruno Haible  <bruno@clisp.org>
46292
46293         Let 'gnulib-tool --import' collect sources needed for the tests in
46294         tests/ rather than in lib/.
46295         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46296         argument. If true, add rules to generate libtests.a, and put libtests.a
46297         into $(LDADD). Consider source files in subdirectories and set
46298         uses_subdirs.
46299         (func_emit_initmacro_start, func_emit_initmacro_end,
46300         func_emit_initmacro_done): Pass all arguments explicitly.
46301         (func_import): Determine two module lists main_modules,
46302         testsrelated_modules. Determine use_libtests. Determine two variables
46303         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46304         instead of just sed_transform_lib_file. Determine two variables
46305         main_files and testsrelated_files. Compute 'files' as the union of
46306         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46307         func_add_or_update. In the generated gnulib-comp.m4, collect the
46308         object files for tests/ in different variables than those for lib/.
46309         Substitute LIBTESTS_LIBDEPS.
46310         (func_create_testdir): Combine the uses_subdirs results from
46311         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46312
46313 2007-12-09  Bruno Haible  <bruno@clisp.org>
46314
46315         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46316         the build-aux directory.
46317
46318 2007-12-09  Bruno Haible  <bruno@clisp.org>
46319
46320         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46321         introduced on 2006-09-09.
46322
46323 2007-12-07  Jim Meyering  <meyering@redhat.com>
46324
46325         Let these macros work also with autoconf-2.59.
46326         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46327         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46328         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46329
46330 2007-12-06  Jim Meyering  <meyering@redhat.com>
46331
46332         Avoid a configure-time syntax error in gl_FUNC_ACL.
46333         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46334         function in each branch, before testing the cache variable.
46335
46336 2007-12-04  Eric Blake  <ebb9@byu.net>
46337
46338         Make scripts executable.
46339         * build-aux/config.guess: Add execute permissions.
46340         * build-aux/config.sub: Likewise.
46341         * build-aux/gendocs.sh: Likewise.
46342
46343         Fix frexp on mingw.
46344         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46345         cross-compiling.
46346         * doc/functions/frexp.texi (frexp): Document the bug.
46347
46348         Make cygwin fseeko check more reliable.
46349         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46350         version numbers, rather than unrelated feature check.
46351         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46352         * doc/functions/ftello.texi (ftello): Likewise.
46353         Reported by Bruno Haible.
46354
46355         * m4/strerror.m4: Bump version number.
46356
46357 2007-12-03  Bruno Haible  <bruno@clisp.org>
46358
46359         * doc/functions/mprotect.texi: Mention the mingw problem.
46360
46361 2007-12-03  Eric Blake  <ebb9@byu.net>
46362
46363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46364         REPLACE_STRERROR is initialized before this macro.
46365
46366 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46367
46368         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46369         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46370         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46371         put -lsec in even for programs other than 'ls'.  This fixes a problem
46372         for gettext reported by Bruno Haible in
46373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46374         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46375         Add support for Solaris 10.  This isn't efficient, but should get the
46376         job done for now.
46377
46378 2007-12-03  James Youngman  <jay@gnu.org>
46379
46380         * doc/regexprops-generic.texi: change "an close-group" to "a
46381         close-group" and "illegal" to "not allowed".
46382
46383 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46384
46385         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46386         pr_byname.h. Needed for the rare case when the maintainer has done
46387         "make maintainer-clean" in the source directory and then attempts a
46388         build outside the source directory.
46389         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46390         scripts_byname.h.
46391
46392 2007-12-02  Martin Lambers <marlam@marlam.de>
46393             Bruno Haible  <bruno@clisp.org>
46394
46395         * lib/getpagesize.h: Remove file.
46396         * lib/unistd.in.h: Include declaration of getpagesize here.
46397         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46398         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46399         HAVE_SYS_PARAM_H.
46400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46401         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46402         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46403         (Depends-on): Add unistd.
46404         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46405         (Include): Use <unistd.h> instead of getpagesize.h.
46406         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46407         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46408         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46409         gl_GETPAGESIZE invocation, already handled by module dependency.
46410         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46411
46412 2007-12-02  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/strings-tests: New file.
46415         * tests/test-strings.c: New file.
46416
46417         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46418         * lib/strings.in.h: New file.
46419         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46420         * m4/strings_h.m4: New file.
46421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46422         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46423         * modules/strings: New file.
46424         * modules/string (Makefile.am): Update.
46425         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46426         Reported by Karl Berry.
46427
46428 2007-12-01  Eric Blake  <ebb9@byu.net>
46429
46430         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46431         accomodate fix in cygwin 1.5.25.
46432
46433 2007-12-01  Jim Meyering  <meyering@redhat.com>
46434
46435         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46436         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46437         that would inhibit utf8-optimization of a regexp containing line-
46438         or buffer-anchors, e.g., `^', `$'.
46439
46440 2007-11-30  Bruno Haible  <bruno@clisp.org>
46441
46442         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46443         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46444         glthread_recursive_lock_init.
46445         * lib/lock.c (glthread_recursive_lock_init)
46446         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46447         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46448
46449 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         New function qset_acl, like set_acl but with syscall semantics.
46452         * lib/acl.h (qset_acl): New decl.
46453         * lib/acl.c (qset_acl): New function.
46454         (set_acl): Use new function.  Use more-consistent diagnostics.
46455
46456 2007-11-28  Jim Meyering  <meyering@redhat.com>
46457
46458         * modules/physmem (License): Change from GPL to LGPLv2+.
46459
46460 2007-11-26  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46463         'long double' type has excess precision.
46464         Reported by Jim Meyering in
46465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46466
46467 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46468
46469         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46470         Sync from <http://gnu.org/licenses>.
46471         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46472         with license text from same location.
46473         * doc/maintain.texi, doc/standards.texi:  Sync from
46474         <http://savannah.gnu.org/projects/gnustandards>.
46475
46476 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46477         and Jim Meyering  <meyering@redhat.com>
46478
46479         Adjust getdate' grammar to accept a slightly more regular language.
46480         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46481         Before, the former was rejected.
46482         * lib/getdate.y (digits_to_date_time): New function, factored
46483         out of ...
46484         (number): ...here.  Just call digits_to_date_time.
46485         (hybrid): New non-terminal to handle an <unsigned number,
46486         signed relative offset> sequence consistently.
46487
46488 2007-11-18  Jim Meyering  <meyering@redhat.com>
46489
46490         Pull my changes from coreutils:
46491         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46492         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46493         use of $gnulib_tool_option_extras, so that it's separated from the
46494         preceding argument.
46495
46496         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46497         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46498         parent destination directories before copying a file into place.
46499
46500 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46501
46502         bootstrap: work also with 4-argument variant of AC_INIT
46503         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46504
46505 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46506
46507         Port test-getaddrinfo to Solaris.
46508         Problem reported by Bruno Haible in
46509         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46510         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46511         explanation of setting 'hints'.
46512         Don't reject an implementation merely because it returns EAI_SERVICE.
46513         (EAI_SERVICE): Define to 0 if not defined.
46514
46515 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46516
46517         The license of gnu-make and posix-shell is now "GPLed build tool".
46518         * modules/gnu-make (License): Likewise.
46519         * modules/posix-shell (License): Likewise.
46520
46521         New module posix-shell, for determining a POSIX shell
46522         or perhaps something that is close enough to a POSIX shell.
46523         * m4/posix-shell.m4: New file.
46524         * modules/posix-shell: New file.
46525
46526         * MODULES.html.sh: Mention new module.
46527
46528         New module gnu-make, for determining whether we're using GNU Make.
46529         * m4/gnu-make.m4: New file.
46530         * modules/gnu-make: New file.
46531         * MODULES.html.sh: Mention new module.
46532
46533 2007-11-14  Jim Meyering  <meyering@redhat.com>
46534
46535         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46536         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46537         use this macro to create a function _definition_.
46538         Remove useless "#undef ARGMATCH_DIE".
46539
46540 2007-11-14  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/config.charset: Update for OpenBSD 4.1.
46543         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46544
46545 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46546
46547         Document 64-bit #if problems in stdint.texi.
46548         * doc/headers/stdint.texi (stdint.h): Mention problems with
46549         64-bit-#if, and how to work around them.
46550
46551         Don't insist on 'long long int' support in the preprocessor.  It
46552         breaks too many things.  For example, PRIdMAX still uses a 'long
46553         long int' format with the latest Sun compiler, even though
46554         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46555         preprocessor problem.  This causes the latest coreutils to dump
46556         core on Solaris 10 sparc with the Sun C compiler.
46557         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46558         the troublesome expressions at configure-time, not at #if-time.
46559         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46560         preprocessor.
46561         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46562         compile-time C checks, done at 'configure'-time.
46563         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46564         * modules/inttypes (Makefile): Substitute the new symbols that
46565         gl_INTTYPES_H now generates.
46566         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46567
46568 2007-11-12  Bruno Haible  <bruno@clisp.org>
46569
46570         Tests for Unicode character classification functions.
46571
46572         * modules/unictype/bidicategory-byname-tests: New file.
46573         * modules/unictype/bidicategory-name-tests: New file.
46574         * modules/unictype/bidicategory-of-tests: New file.
46575         * modules/unictype/bidicategory-test-tests: New file.
46576         * modules/unictype/block-list-tests: New file.
46577         * modules/unictype/block-of-tests: New file.
46578         * modules/unictype/block-test-tests: New file.
46579         * modules/unictype/category-C-tests: New file.
46580         * modules/unictype/category-Cc-tests: New file.
46581         * modules/unictype/category-Cf-tests: New file.
46582         * modules/unictype/category-Cn-tests: New file.
46583         * modules/unictype/category-Co-tests: New file.
46584         * modules/unictype/category-Cs-tests: New file.
46585         * modules/unictype/category-L-tests: New file.
46586         * modules/unictype/category-Ll-tests: New file.
46587         * modules/unictype/category-Lm-tests: New file.
46588         * modules/unictype/category-Lo-tests: New file.
46589         * modules/unictype/category-Lt-tests: New file.
46590         * modules/unictype/category-Lu-tests: New file.
46591         * modules/unictype/category-M-tests: New file.
46592         * modules/unictype/category-Mc-tests: New file.
46593         * modules/unictype/category-Me-tests: New file.
46594         * modules/unictype/category-Mn-tests: New file.
46595         * modules/unictype/category-N-tests: New file.
46596         * modules/unictype/category-Nd-tests: New file.
46597         * modules/unictype/category-Nl-tests: New file.
46598         * modules/unictype/category-No-tests: New file.
46599         * modules/unictype/category-P-tests: New file.
46600         * modules/unictype/category-Pc-tests: New file.
46601         * modules/unictype/category-Pd-tests: New file.
46602         * modules/unictype/category-Pe-tests: New file.
46603         * modules/unictype/category-Pf-tests: New file.
46604         * modules/unictype/category-Pi-tests: New file.
46605         * modules/unictype/category-Po-tests: New file.
46606         * modules/unictype/category-Ps-tests: New file.
46607         * modules/unictype/category-S-tests: New file.
46608         * modules/unictype/category-Sc-tests: New file.
46609         * modules/unictype/category-Sk-tests: New file.
46610         * modules/unictype/category-Sm-tests: New file.
46611         * modules/unictype/category-So-tests: New file.
46612         * modules/unictype/category-Z-tests: New file.
46613         * modules/unictype/category-Zl-tests: New file.
46614         * modules/unictype/category-Zp-tests: New file.
46615         * modules/unictype/category-Zs-tests: New file.
46616         * modules/unictype/category-and-not-tests: New file.
46617         * modules/unictype/category-and-tests: New file.
46618         * modules/unictype/category-byname-tests: New file.
46619         * modules/unictype/category-name-tests: New file.
46620         * modules/unictype/category-none-tests: New file.
46621         * modules/unictype/category-of-tests: New file.
46622         * modules/unictype/category-or-tests: New file.
46623         * modules/unictype/category-test-withtable-tests: New file.
46624         * modules/unictype/combining-class-tests: New file.
46625         * modules/unictype/ctype-alnum-tests: New file.
46626         * modules/unictype/ctype-alpha-tests: New file.
46627         * modules/unictype/ctype-blank-tests: New file.
46628         * modules/unictype/ctype-cntrl-tests: New file.
46629         * modules/unictype/ctype-digit-tests: New file.
46630         * modules/unictype/ctype-graph-tests: New file.
46631         * modules/unictype/ctype-lower-tests: New file.
46632         * modules/unictype/ctype-print-tests: New file.
46633         * modules/unictype/ctype-punct-tests: New file.
46634         * modules/unictype/ctype-space-tests: New file.
46635         * modules/unictype/ctype-upper-tests: New file.
46636         * modules/unictype/ctype-xdigit-tests: New file.
46637         * modules/unictype/decimal-digit-tests: New file.
46638         * modules/unictype/digit-tests: New file.
46639         * modules/unictype/mirror-tests: New file.
46640         * modules/unictype/numeric-tests: New file.
46641         * modules/unictype/property-alphabetic-tests: New file.
46642         * modules/unictype/property-ascii-hex-digit-tests: New file.
46643         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46644         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46645         * modules/unictype/property-bidi-block-separator-tests: New file.
46646         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46647         * modules/unictype/property-bidi-common-separator-tests: New file.
46648         * modules/unictype/property-bidi-control-tests: New file.
46649         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46650         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46651         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46652         * modules/unictype/property-bidi-european-digit-tests: New file.
46653         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46654         * modules/unictype/property-bidi-left-to-right-tests: New file.
46655         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46656         * modules/unictype/property-bidi-other-neutral-tests: New file.
46657         * modules/unictype/property-bidi-pdf-tests: New file.
46658         * modules/unictype/property-bidi-segment-separator-tests: New file.
46659         * modules/unictype/property-bidi-whitespace-tests: New file.
46660         * modules/unictype/property-byname-tests: New file.
46661         * modules/unictype/property-combining-tests: New file.
46662         * modules/unictype/property-composite-tests: New file.
46663         * modules/unictype/property-currency-symbol-tests: New file.
46664         * modules/unictype/property-dash-tests: New file.
46665         * modules/unictype/property-decimal-digit-tests: New file.
46666         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46667         * modules/unictype/property-deprecated-tests: New file.
46668         * modules/unictype/property-diacritic-tests: New file.
46669         * modules/unictype/property-extender-tests: New file.
46670         * modules/unictype/property-format-control-tests: New file.
46671         * modules/unictype/property-grapheme-base-tests: New file.
46672         * modules/unictype/property-grapheme-extend-tests: New file.
46673         * modules/unictype/property-grapheme-link-tests: New file.
46674         * modules/unictype/property-hex-digit-tests: New file.
46675         * modules/unictype/property-hyphen-tests: New file.
46676         * modules/unictype/property-id-continue-tests: New file.
46677         * modules/unictype/property-id-start-tests: New file.
46678         * modules/unictype/property-ideographic-tests: New file.
46679         * modules/unictype/property-ids-binary-operator-tests: New file.
46680         * modules/unictype/property-ids-trinary-operator-tests: New file.
46681         * modules/unictype/property-ignorable-control-tests: New file.
46682         * modules/unictype/property-iso-control-tests: New file.
46683         * modules/unictype/property-join-control-tests: New file.
46684         * modules/unictype/property-left-of-pair-tests: New file.
46685         * modules/unictype/property-line-separator-tests: New file.
46686         * modules/unictype/property-logical-order-exception-tests: New file.
46687         * modules/unictype/property-lowercase-tests: New file.
46688         * modules/unictype/property-math-tests: New file.
46689         * modules/unictype/property-non-break-tests: New file.
46690         * modules/unictype/property-not-a-character-tests: New file.
46691         * modules/unictype/property-numeric-tests: New file.
46692         * modules/unictype/property-other-alphabetic-tests: New file.
46693         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46694         * modules/unictype/property-other-grapheme-extend-tests: New file.
46695         * modules/unictype/property-other-id-continue-tests: New file.
46696         * modules/unictype/property-other-id-start-tests: New file.
46697         * modules/unictype/property-other-lowercase-tests: New file.
46698         * modules/unictype/property-other-math-tests: New file.
46699         * modules/unictype/property-other-uppercase-tests: New file.
46700         * modules/unictype/property-paired-punctuation-tests: New file.
46701         * modules/unictype/property-paragraph-separator-tests: New file.
46702         * modules/unictype/property-pattern-syntax-tests: New file.
46703         * modules/unictype/property-pattern-white-space-tests: New file.
46704         * modules/unictype/property-private-use-tests: New file.
46705         * modules/unictype/property-punctuation-tests: New file.
46706         * modules/unictype/property-quotation-mark-tests: New file.
46707         * modules/unictype/property-radical-tests: New file.
46708         * modules/unictype/property-sentence-terminal-tests: New file.
46709         * modules/unictype/property-soft-dotted-tests: New file.
46710         * modules/unictype/property-space-tests: New file.
46711         * modules/unictype/property-terminal-punctuation-tests: New file.
46712         * modules/unictype/property-test-tests: New file.
46713         * modules/unictype/property-titlecase-tests: New file.
46714         * modules/unictype/property-unassigned-code-value-tests: New file.
46715         * modules/unictype/property-unified-ideograph-tests: New file.
46716         * modules/unictype/property-uppercase-tests: New file.
46717         * modules/unictype/property-variation-selector-tests: New file.
46718         * modules/unictype/property-white-space-tests: New file.
46719         * modules/unictype/property-xid-continue-tests: New file.
46720         * modules/unictype/property-xid-start-tests: New file.
46721         * modules/unictype/property-zero-width-tests: New file.
46722         * modules/unictype/scripts-tests: New file.
46723         * modules/unictype/syntax-c-ident-tests: New file.
46724         * modules/unictype/syntax-c-whitespace-tests: New file.
46725         * modules/unictype/syntax-java-ident-tests: New file.
46726         * modules/unictype/syntax-java-whitespace-tests: New file.
46727         * tests/unictype/test-bidi_byname.c: New file.
46728         * tests/unictype/test-bidi_name.c: New file.
46729         * tests/unictype/test-bidi_of.c: New file.
46730         * tests/unictype/test-bidi_test.c: New file.
46731         * tests/unictype/test-block_list.c: New file.
46732         * tests/unictype/test-block_of.c: New file.
46733         * tests/unictype/test-block_test.c: New file.
46734         * tests/unictype/test-categ_and.c: New file.
46735         * tests/unictype/test-categ_and_not.c: New file.
46736         * tests/unictype/test-categ_byname.c: New file.
46737         * tests/unictype/test-categ_name.c: New file.
46738         * tests/unictype/test-categ_none.c: New file.
46739         * tests/unictype/test-categ_of.c: New file.
46740         * tests/unictype/test-categ_or.c: New file.
46741         * tests/unictype/test-categ_test_withtable.c: New file.
46742         * tests/unictype/test-combining.c: New file.
46743         * tests/unictype/test-decdigit.c: New file.
46744         * tests/unictype/test-digit.c: New file.
46745         * tests/unictype/test-mirror.c: New file.
46746         * tests/unictype/test-numeric.c: New file.
46747         * tests/unictype/test-pr_byname.c: New file.
46748         * tests/unictype/test-pr_test.c: New file.
46749         * tests/unictype/test-predicate-part1.h: New file.
46750         * tests/unictype/test-predicate-part2.h: New file.
46751         * tests/unictype/test-scripts.c: New file.
46752         * tests/unictype/test-sy_c_ident.c: New file.
46753         * tests/unictype/test-sy_java_ident.c: New file.
46754
46755         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46756         for Unicode 5.0.0.
46757         * tests/unictype/test-categ_Cc.c: Likewise.
46758         * tests/unictype/test-categ_Cf.c: Likewise.
46759         * tests/unictype/test-categ_Cn.c: Likewise.
46760         * tests/unictype/test-categ_Co.c: Likewise.
46761         * tests/unictype/test-categ_Cs.c: Likewise.
46762         * tests/unictype/test-categ_L.c: Likewise.
46763         * tests/unictype/test-categ_Ll.c: Likewise.
46764         * tests/unictype/test-categ_Lm.c: Likewise.
46765         * tests/unictype/test-categ_Lo.c: Likewise.
46766         * tests/unictype/test-categ_Lt.c: Likewise.
46767         * tests/unictype/test-categ_Lu.c: Likewise.
46768         * tests/unictype/test-categ_M.c: Likewise.
46769         * tests/unictype/test-categ_Mc.c: Likewise.
46770         * tests/unictype/test-categ_Me.c: Likewise.
46771         * tests/unictype/test-categ_Mn.c: Likewise.
46772         * tests/unictype/test-categ_N.c: Likewise.
46773         * tests/unictype/test-categ_Nd.c: Likewise.
46774         * tests/unictype/test-categ_Nl.c: Likewise.
46775         * tests/unictype/test-categ_No.c: Likewise.
46776         * tests/unictype/test-categ_P.c: Likewise.
46777         * tests/unictype/test-categ_Pc.c: Likewise.
46778         * tests/unictype/test-categ_Pd.c: Likewise.
46779         * tests/unictype/test-categ_Pe.c: Likewise.
46780         * tests/unictype/test-categ_Pf.c: Likewise.
46781         * tests/unictype/test-categ_Pi.c: Likewise.
46782         * tests/unictype/test-categ_Po.c: Likewise.
46783         * tests/unictype/test-categ_Ps.c: Likewise.
46784         * tests/unictype/test-categ_S.c: Likewise.
46785         * tests/unictype/test-categ_Sc.c: Likewise.
46786         * tests/unictype/test-categ_Sk.c: Likewise.
46787         * tests/unictype/test-categ_Sm.c: Likewise.
46788         * tests/unictype/test-categ_So.c: Likewise.
46789         * tests/unictype/test-categ_Z.c: Likewise.
46790         * tests/unictype/test-categ_Zl.c: Likewise.
46791         * tests/unictype/test-categ_Zp.c: Likewise.
46792         * tests/unictype/test-categ_Zs.c: Likewise.
46793         * tests/unictype/test-ctype_alnum.c: Likewise.
46794         * tests/unictype/test-ctype_alpha.c: Likewise.
46795         * tests/unictype/test-ctype_blank.c: Likewise.
46796         * tests/unictype/test-ctype_cntrl.c: Likewise.
46797         * tests/unictype/test-ctype_digit.c: Likewise.
46798         * tests/unictype/test-ctype_graph.c: Likewise.
46799         * tests/unictype/test-ctype_lower.c: Likewise.
46800         * tests/unictype/test-ctype_print.c: Likewise.
46801         * tests/unictype/test-ctype_punct.c: Likewise.
46802         * tests/unictype/test-ctype_space.c: Likewise.
46803         * tests/unictype/test-ctype_upper.c: Likewise.
46804         * tests/unictype/test-ctype_xdigit.c: Likewise.
46805         * tests/unictype/test-decdigit.h: Likewise.
46806         * tests/unictype/test-digit.h: Likewise.
46807         * tests/unictype/test-numeric.h: Likewise.
46808         * tests/unictype/test-pr_alphabetic.c: Likewise.
46809         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46810         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46811         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46812         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46813         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46814         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46815         * tests/unictype/test-pr_bidi_control.c: Likewise.
46816         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46817         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46818         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46819         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46820         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46821         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46822         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46823         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46824         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46825         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46826         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46827         * tests/unictype/test-pr_combining.c: Likewise.
46828         * tests/unictype/test-pr_composite.c: Likewise.
46829         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46830         * tests/unictype/test-pr_dash.c: Likewise.
46831         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46832         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46833         * tests/unictype/test-pr_deprecated.c: Likewise.
46834         * tests/unictype/test-pr_diacritic.c: Likewise.
46835         * tests/unictype/test-pr_extender.c: Likewise.
46836         * tests/unictype/test-pr_format_control.c: Likewise.
46837         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46838         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46839         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46840         * tests/unictype/test-pr_hex_digit.c: Likewise.
46841         * tests/unictype/test-pr_hyphen.c: Likewise.
46842         * tests/unictype/test-pr_id_continue.c: Likewise.
46843         * tests/unictype/test-pr_id_start.c: Likewise.
46844         * tests/unictype/test-pr_ideographic.c: Likewise.
46845         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46846         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46847         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46848         * tests/unictype/test-pr_iso_control.c: Likewise.
46849         * tests/unictype/test-pr_join_control.c: Likewise.
46850         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46851         * tests/unictype/test-pr_line_separator.c: Likewise.
46852         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46853         * tests/unictype/test-pr_lowercase.c: Likewise.
46854         * tests/unictype/test-pr_math.c: Likewise.
46855         * tests/unictype/test-pr_non_break.c: Likewise.
46856         * tests/unictype/test-pr_not_a_character.c: Likewise.
46857         * tests/unictype/test-pr_numeric.c: Likewise.
46858         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46859         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46860         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46861         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46862         * tests/unictype/test-pr_other_id_start.c: Likewise.
46863         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46864         * tests/unictype/test-pr_other_math.c: Likewise.
46865         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46866         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46867         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46868         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46869         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46870         * tests/unictype/test-pr_private_use.c: Likewise.
46871         * tests/unictype/test-pr_punctuation.c: Likewise.
46872         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46873         * tests/unictype/test-pr_radical.c: Likewise.
46874         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46875         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46876         * tests/unictype/test-pr_space.c: Likewise.
46877         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46878         * tests/unictype/test-pr_titlecase.c: Likewise.
46879         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46880         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46881         * tests/unictype/test-pr_uppercase.c: Likewise.
46882         * tests/unictype/test-pr_variation_selector.c: Likewise.
46883         * tests/unictype/test-pr_white_space.c: Likewise.
46884         * tests/unictype/test-pr_xid_continue.c: Likewise.
46885         * tests/unictype/test-pr_xid_start.c: Likewise.
46886         * tests/unictype/test-pr_zero_width.c: Likewise.
46887         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46888         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46889
46890 2007-11-12  Bruno Haible  <bruno@clisp.org>
46891
46892         Unicode character classification functions.
46893         * lib/unictype.h: New file.
46894         * modules/unictype/base: New file.
46895         * modules/unictype/category-L: New file.
46896         * modules/unictype/category-Lu: New file.
46897         * modules/unictype/category-Ll: New file.
46898         * modules/unictype/category-Lt: New file.
46899         * modules/unictype/category-Lm: New file.
46900         * modules/unictype/category-Lo: New file.
46901         * modules/unictype/category-M: New file.
46902         * modules/unictype/category-Mn: New file.
46903         * modules/unictype/category-Mc: New file.
46904         * modules/unictype/category-Me: New file.
46905         * modules/unictype/category-N: New file.
46906         * modules/unictype/category-Nd: New file.
46907         * modules/unictype/category-Nl: New file.
46908         * modules/unictype/category-No: New file.
46909         * modules/unictype/category-P: New file.
46910         * modules/unictype/category-Pc: New file.
46911         * modules/unictype/category-Pd: New file.
46912         * modules/unictype/category-Ps: New file.
46913         * modules/unictype/category-Pe: New file.
46914         * modules/unictype/category-Pi: New file.
46915         * modules/unictype/category-Pf: New file.
46916         * modules/unictype/category-Po: New file.
46917         * modules/unictype/category-S: New file.
46918         * modules/unictype/category-Sm: New file.
46919         * modules/unictype/category-Sc: New file.
46920         * modules/unictype/category-Sk: New file.
46921         * modules/unictype/category-So: New file.
46922         * modules/unictype/category-Z: New file.
46923         * modules/unictype/category-Zs: New file.
46924         * modules/unictype/category-Zl: New file.
46925         * modules/unictype/category-Zp: New file.
46926         * modules/unictype/category-C: New file.
46927         * modules/unictype/category-Cc: New file.
46928         * modules/unictype/category-Cf: New file.
46929         * modules/unictype/category-Cs: New file.
46930         * modules/unictype/category-Co: New file.
46931         * modules/unictype/category-Cn: New file.
46932         * modules/unictype/category-or: New file.
46933         * modules/unictype/category-of: New file.
46934         * modules/unictype/category-test: New file.
46935         * modules/unictype/category-test-withtable: New file.
46936         * modules/unictype/category-byname: New file.
46937         * modules/unictype/category-none: New file.
46938         * modules/unictype/category-and: New file.
46939         * modules/unictype/category-and-not: New file.
46940         * modules/unictype/category-name: New file.
46941         * modules/unictype/combining-class: New file.
46942         * modules/unictype/category-all: New file.
46943         * modules/unictype/bidicategory-all: New file.
46944         * modules/unictype/bidicategory-byname: New file.
46945         * modules/unictype/bidicategory-name: New file.
46946         * modules/unictype/bidicategory-of: New file.
46947         * modules/unictype/bidicategory-test: New file.
46948         * modules/unictype/decimal-digit: New file.
46949         * modules/unictype/digit: New file.
46950         * modules/unictype/numeric: New file.
46951         * modules/unictype/mirror: New file.
46952         * modules/unictype/property-white-space: New file.
46953         * modules/unictype/property-alphabetic: New file.
46954         * modules/unictype/property-other-alphabetic: New file.
46955         * modules/unictype/property-not-a-character: New file.
46956         * modules/unictype/property-default-ignorable-code-point: New file.
46957         * modules/unictype/property-other-default-ignorable-code-point: New
46958         file.
46959         * modules/unictype/property-deprecated: New file.
46960         * modules/unictype/property-logical-order-exception: New file.
46961         * modules/unictype/property-variation-selector: New file.
46962         * modules/unictype/property-private-use: New file.
46963         * modules/unictype/property-unassigned-code-value: New file.
46964         * modules/unictype/property-uppercase: New file.
46965         * modules/unictype/property-other-uppercase: New file.
46966         * modules/unictype/property-lowercase: New file.
46967         * modules/unictype/property-other-lowercase: New file.
46968         * modules/unictype/property-titlecase: New file.
46969         * modules/unictype/property-soft-dotted: New file.
46970         * modules/unictype/property-id-start: New file.
46971         * modules/unictype/property-other-id-start: New file.
46972         * modules/unictype/property-id-continue: New file.
46973         * modules/unictype/property-other-id-continue: New file.
46974         * modules/unictype/property-xid-start: New file.
46975         * modules/unictype/property-xid-continue: New file.
46976         * modules/unictype/property-pattern-white-space: New file.
46977         * modules/unictype/property-pattern-syntax: New file.
46978         * modules/unictype/property-join-control: New file.
46979         * modules/unictype/property-grapheme-base: New file.
46980         * modules/unictype/property-grapheme-extend: New file.
46981         * modules/unictype/property-other-grapheme-extend: New file.
46982         * modules/unictype/property-grapheme-link: New file.
46983         * modules/unictype/property-bidi-control: New file.
46984         * modules/unictype/property-bidi-left-to-right: New file.
46985         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46986         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46987         * modules/unictype/property-bidi-european-digit: New file.
46988         * modules/unictype/property-bidi-eur-num-separator: New file.
46989         * modules/unictype/property-bidi-eur-num-terminator: New file.
46990         * modules/unictype/property-bidi-arabic-digit: New file.
46991         * modules/unictype/property-bidi-common-separator: New file.
46992         * modules/unictype/property-bidi-block-separator: New file.
46993         * modules/unictype/property-bidi-segment-separator: New file.
46994         * modules/unictype/property-bidi-whitespace: New file.
46995         * modules/unictype/property-bidi-non-spacing-mark: New file.
46996         * modules/unictype/property-bidi-boundary-neutral: New file.
46997         * modules/unictype/property-bidi-pdf: New file.
46998         * modules/unictype/property-bidi-embedding-or-override: New file.
46999         * modules/unictype/property-bidi-other-neutral: New file.
47000         * modules/unictype/property-hex-digit: New file.
47001         * modules/unictype/property-ascii-hex-digit: New file.
47002         * modules/unictype/property-ideographic: New file.
47003         * modules/unictype/property-unified-ideograph: New file.
47004         * modules/unictype/property-radical: New file.
47005         * modules/unictype/property-ids-binary-operator: New file.
47006         * modules/unictype/property-ids-trinary-operator: New file.
47007         * modules/unictype/property-zero-width: New file.
47008         * modules/unictype/property-space: New file.
47009         * modules/unictype/property-non-break: New file.
47010         * modules/unictype/property-iso-control: New file.
47011         * modules/unictype/property-format-control: New file.
47012         * modules/unictype/property-dash: New file.
47013         * modules/unictype/property-hyphen: New file.
47014         * modules/unictype/property-punctuation: New file.
47015         * modules/unictype/property-line-separator: New file.
47016         * modules/unictype/property-paragraph-separator: New file.
47017         * modules/unictype/property-quotation-mark: New file.
47018         * modules/unictype/property-sentence-terminal: New file.
47019         * modules/unictype/property-terminal-punctuation: New file.
47020         * modules/unictype/property-currency-symbol: New file.
47021         * modules/unictype/property-math: New file.
47022         * modules/unictype/property-other-math: New file.
47023         * modules/unictype/property-paired-punctuation: New file.
47024         * modules/unictype/property-left-of-pair: New file.
47025         * modules/unictype/property-combining: New file.
47026         * modules/unictype/property-composite: New file.
47027         * modules/unictype/property-decimal-digit: New file.
47028         * modules/unictype/property-numeric: New file.
47029         * modules/unictype/property-diacritic: New file.
47030         * modules/unictype/property-extender: New file.
47031         * modules/unictype/property-ignorable-control: New file.
47032         * modules/unictype/property-test: New file.
47033         * modules/unictype/property-byname: New file.
47034         * modules/unictype/property-all: New file.
47035         * modules/unictype/scripts: New file.
47036         * modules/unictype/scripts-all: New file.
47037         * modules/unictype/block-of: New file.
47038         * modules/unictype/block-test: New file.
47039         * modules/unictype/block-list: New file.
47040         * modules/unictype/block-all: New file.
47041         * modules/unictype/syntax-c-whitespace: New file.
47042         * modules/unictype/syntax-java-whitespace: New file.
47043         * modules/unictype/syntax-c-ident: New file.
47044         * modules/unictype/syntax-java-ident: New file.
47045         * modules/unictype/ctype-alnum: New file.
47046         * modules/unictype/ctype-alpha: New file.
47047         * modules/unictype/ctype-cntrl: New file.
47048         * modules/unictype/ctype-digit: New file.
47049         * modules/unictype/ctype-graph: New file.
47050         * modules/unictype/ctype-lower: New file.
47051         * modules/unictype/ctype-print: New file.
47052         * modules/unictype/ctype-punct: New file.
47053         * modules/unictype/ctype-space: New file.
47054         * modules/unictype/ctype-upper: New file.
47055         * modules/unictype/ctype-xdigit: New file.
47056         * modules/unictype/ctype-blank: New file.
47057         * lib/unictype/bidi_byname.c: New file.
47058         * lib/unictype/bidi_name.c: New file.
47059         * lib/unictype/bidi_of.c: New file.
47060         * lib/unictype/bidi_test.c: New file.
47061         * lib/unictype/bitmap.h: New file.
47062         * lib/unictype/block_test.c: New file.
47063         * lib/unictype/blocks.c: New file.
47064         * lib/unictype/categ_C.c: New file.
47065         * lib/unictype/categ_Cc.c: New file.
47066         * lib/unictype/categ_Cf.c: New file.
47067         * lib/unictype/categ_Cn.c: New file.
47068         * lib/unictype/categ_Co.c: New file.
47069         * lib/unictype/categ_Cs.c: New file.
47070         * lib/unictype/categ_L.c: New file.
47071         * lib/unictype/categ_Ll.c: New file.
47072         * lib/unictype/categ_Lm.c: New file.
47073         * lib/unictype/categ_Lo.c: New file.
47074         * lib/unictype/categ_Lt.c: New file.
47075         * lib/unictype/categ_Lu.c: New file.
47076         * lib/unictype/categ_M.c: New file.
47077         * lib/unictype/categ_Mc.c: New file.
47078         * lib/unictype/categ_Me.c: New file.
47079         * lib/unictype/categ_Mn.c: New file.
47080         * lib/unictype/categ_N.c: New file.
47081         * lib/unictype/categ_Nd.c: New file.
47082         * lib/unictype/categ_Nl.c: New file.
47083         * lib/unictype/categ_No.c: New file.
47084         * lib/unictype/categ_P.c: New file.
47085         * lib/unictype/categ_Pc.c: New file.
47086         * lib/unictype/categ_Pd.c: New file.
47087         * lib/unictype/categ_Pe.c: New file.
47088         * lib/unictype/categ_Pf.c: New file.
47089         * lib/unictype/categ_Pi.c: New file.
47090         * lib/unictype/categ_Po.c: New file.
47091         * lib/unictype/categ_Ps.c: New file.
47092         * lib/unictype/categ_S.c: New file.
47093         * lib/unictype/categ_Sc.c: New file.
47094         * lib/unictype/categ_Sk.c: New file.
47095         * lib/unictype/categ_Sm.c: New file.
47096         * lib/unictype/categ_So.c: New file.
47097         * lib/unictype/categ_Z.c: New file.
47098         * lib/unictype/categ_Zl.c: New file.
47099         * lib/unictype/categ_Zp.c: New file.
47100         * lib/unictype/categ_Zs.c: New file.
47101         * lib/unictype/categ_and.c: New file.
47102         * lib/unictype/categ_and_not.c: New file.
47103         * lib/unictype/categ_byname.c: New file.
47104         * lib/unictype/categ_name.c: New file.
47105         * lib/unictype/categ_none.c: New file.
47106         * lib/unictype/categ_of.c: New file.
47107         * lib/unictype/categ_or.c: New file.
47108         * lib/unictype/categ_test.c: New file.
47109         * lib/unictype/combining.c: New file.
47110         * lib/unictype/ctype_alnum.c: New file.
47111         * lib/unictype/ctype_alpha.c: New file.
47112         * lib/unictype/ctype_blank.c: New file.
47113         * lib/unictype/ctype_cntrl.c: New file.
47114         * lib/unictype/ctype_digit.c: New file.
47115         * lib/unictype/ctype_graph.c: New file.
47116         * lib/unictype/ctype_lower.c: New file.
47117         * lib/unictype/ctype_print.c: New file.
47118         * lib/unictype/ctype_punct.c: New file.
47119         * lib/unictype/ctype_space.c: New file.
47120         * lib/unictype/ctype_upper.c: New file.
47121         * lib/unictype/ctype_xdigit.c: New file.
47122         * lib/unictype/decdigit.c: New file.
47123         * lib/unictype/digit.c: New file.
47124         * lib/unictype/identsyntaxmap.h: New file.
47125         * lib/unictype/mirror.c: New file.
47126         * lib/unictype/numeric.c: New file.
47127         * lib/unictype/pr_alphabetic.c: New file.
47128         * lib/unictype/pr_ascii_hex_digit.c: New file.
47129         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47130         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47131         * lib/unictype/pr_bidi_block_separator.c: New file.
47132         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47133         * lib/unictype/pr_bidi_common_separator.c: New file.
47134         * lib/unictype/pr_bidi_control.c: New file.
47135         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47136         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47137         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47138         * lib/unictype/pr_bidi_european_digit.c: New file.
47139         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47140         * lib/unictype/pr_bidi_left_to_right.c: New file.
47141         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47142         * lib/unictype/pr_bidi_other_neutral.c: New file.
47143         * lib/unictype/pr_bidi_pdf.c: New file.
47144         * lib/unictype/pr_bidi_segment_separator.c: New file.
47145         * lib/unictype/pr_bidi_whitespace.c: New file.
47146         * lib/unictype/pr_byname.c: New file.
47147         * lib/unictype/pr_byname.gperf: New file.
47148         * lib/unictype/pr_combining.c: New file.
47149         * lib/unictype/pr_composite.c: New file.
47150         * lib/unictype/pr_currency_symbol.c: New file.
47151         * lib/unictype/pr_dash.c: New file.
47152         * lib/unictype/pr_decimal_digit.c: New file.
47153         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47154         * lib/unictype/pr_deprecated.c: New file.
47155         * lib/unictype/pr_diacritic.c: New file.
47156         * lib/unictype/pr_extender.c: New file.
47157         * lib/unictype/pr_format_control.c: New file.
47158         * lib/unictype/pr_grapheme_base.c: New file.
47159         * lib/unictype/pr_grapheme_extend.c: New file.
47160         * lib/unictype/pr_grapheme_link.c: New file.
47161         * lib/unictype/pr_hex_digit.c: New file.
47162         * lib/unictype/pr_hyphen.c: New file.
47163         * lib/unictype/pr_id_continue.c: New file.
47164         * lib/unictype/pr_id_start.c: New file.
47165         * lib/unictype/pr_ideographic.c: New file.
47166         * lib/unictype/pr_ids_binary_operator.c: New file.
47167         * lib/unictype/pr_ids_trinary_operator.c: New file.
47168         * lib/unictype/pr_ignorable_control.c: New file.
47169         * lib/unictype/pr_iso_control.c: New file.
47170         * lib/unictype/pr_join_control.c: New file.
47171         * lib/unictype/pr_left_of_pair.c: New file.
47172         * lib/unictype/pr_line_separator.c: New file.
47173         * lib/unictype/pr_logical_order_exception.c: New file.
47174         * lib/unictype/pr_lowercase.c: New file.
47175         * lib/unictype/pr_math.c: New file.
47176         * lib/unictype/pr_non_break.c: New file.
47177         * lib/unictype/pr_not_a_character.c: New file.
47178         * lib/unictype/pr_numeric.c: New file.
47179         * lib/unictype/pr_other_alphabetic.c: New file.
47180         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47181         * lib/unictype/pr_other_grapheme_extend.c: New file.
47182         * lib/unictype/pr_other_id_continue.c: New file.
47183         * lib/unictype/pr_other_id_start.c: New file.
47184         * lib/unictype/pr_other_lowercase.c: New file.
47185         * lib/unictype/pr_other_math.c: New file.
47186         * lib/unictype/pr_other_uppercase.c: New file.
47187         * lib/unictype/pr_paired_punctuation.c: New file.
47188         * lib/unictype/pr_paragraph_separator.c: New file.
47189         * lib/unictype/pr_pattern_syntax.c: New file.
47190         * lib/unictype/pr_pattern_white_space.c: New file.
47191         * lib/unictype/pr_private_use.c: New file.
47192         * lib/unictype/pr_punctuation.c: New file.
47193         * lib/unictype/pr_quotation_mark.c: New file.
47194         * lib/unictype/pr_radical.c: New file.
47195         * lib/unictype/pr_sentence_terminal.c: New file.
47196         * lib/unictype/pr_soft_dotted.c: New file.
47197         * lib/unictype/pr_space.c: New file.
47198         * lib/unictype/pr_terminal_punctuation.c: New file.
47199         * lib/unictype/pr_test.c: New file.
47200         * lib/unictype/pr_titlecase.c: New file.
47201         * lib/unictype/pr_unassigned_code_value.c: New file.
47202         * lib/unictype/pr_unified_ideograph.c: New file.
47203         * lib/unictype/pr_uppercase.c: New file.
47204         * lib/unictype/pr_variation_selector.c: New file.
47205         * lib/unictype/pr_white_space.c: New file.
47206         * lib/unictype/pr_xid_continue.c: New file.
47207         * lib/unictype/pr_xid_start.c: New file.
47208         * lib/unictype/pr_zero_width.c: New file.
47209         * lib/unictype/scripts.c: New file.
47210         * lib/unictype/sy_c_ident.c: New file.
47211         * lib/unictype/sy_c_whitespace.c: New file.
47212         * lib/unictype/sy_java_ident.c: New file.
47213         * lib/unictype/sy_java_whitespace.c: New file.
47214
47215         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47216         Unicode 5.0.0.
47217         * lib/unictype/blocks.h: Likewise.
47218         * lib/unictype/categ_C.h: Likewise.
47219         * lib/unictype/categ_Cc.h: Likewise.
47220         * lib/unictype/categ_Cf.h: Likewise.
47221         * lib/unictype/categ_Cn.h: Likewise.
47222         * lib/unictype/categ_Co.h: Likewise.
47223         * lib/unictype/categ_Cs.h: Likewise.
47224         * lib/unictype/categ_L.h: Likewise.
47225         * lib/unictype/categ_Ll.h: Likewise.
47226         * lib/unictype/categ_Lm.h: Likewise.
47227         * lib/unictype/categ_Lo.h: Likewise.
47228         * lib/unictype/categ_Lt.h: Likewise.
47229         * lib/unictype/categ_Lu.h: Likewise.
47230         * lib/unictype/categ_M.h: Likewise.
47231         * lib/unictype/categ_Mc.h: Likewise.
47232         * lib/unictype/categ_Me.h: Likewise.
47233         * lib/unictype/categ_Mn.h: Likewise.
47234         * lib/unictype/categ_N.h: Likewise.
47235         * lib/unictype/categ_Nd.h: Likewise.
47236         * lib/unictype/categ_Nl.h: Likewise.
47237         * lib/unictype/categ_No.h: Likewise.
47238         * lib/unictype/categ_P.h: Likewise.
47239         * lib/unictype/categ_Pc.h: Likewise.
47240         * lib/unictype/categ_Pd.h: Likewise.
47241         * lib/unictype/categ_Pe.h: Likewise.
47242         * lib/unictype/categ_Pf.h: Likewise.
47243         * lib/unictype/categ_Pi.h: Likewise.
47244         * lib/unictype/categ_Po.h: Likewise.
47245         * lib/unictype/categ_Ps.h: Likewise.
47246         * lib/unictype/categ_S.h: Likewise.
47247         * lib/unictype/categ_Sc.h: Likewise.
47248         * lib/unictype/categ_Sk.h: Likewise.
47249         * lib/unictype/categ_Sm.h: Likewise.
47250         * lib/unictype/categ_So.h: Likewise.
47251         * lib/unictype/categ_Z.h: Likewise.
47252         * lib/unictype/categ_Zl.h: Likewise.
47253         * lib/unictype/categ_Zp.h: Likewise.
47254         * lib/unictype/categ_Zs.h: Likewise.
47255         * lib/unictype/categ_of.h: Likewise.
47256         * lib/unictype/combining.h: Likewise.
47257         * lib/unictype/ctype_alnum.h: Likewise.
47258         * lib/unictype/ctype_alpha.h: Likewise.
47259         * lib/unictype/ctype_blank.h: Likewise.
47260         * lib/unictype/ctype_cntrl.h: Likewise.
47261         * lib/unictype/ctype_digit.h: Likewise.
47262         * lib/unictype/ctype_graph.h: Likewise.
47263         * lib/unictype/ctype_lower.h: Likewise.
47264         * lib/unictype/ctype_print.h: Likewise.
47265         * lib/unictype/ctype_punct.h: Likewise.
47266         * lib/unictype/ctype_space.h: Likewise.
47267         * lib/unictype/ctype_upper.h: Likewise.
47268         * lib/unictype/ctype_xdigit.h: Likewise.
47269         * lib/unictype/decdigit.h: Likewise.
47270         * lib/unictype/digit.h: Likewise.
47271         * lib/unictype/mirror.h: Likewise.
47272         * lib/unictype/numeric.h: Likewise.
47273         * lib/unictype/pr_alphabetic.h: Likewise.
47274         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47275         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47276         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47277         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47278         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47279         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47280         * lib/unictype/pr_bidi_control.h: Likewise.
47281         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47282         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47283         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47284         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47285         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47286         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47287         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47288         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47289         * lib/unictype/pr_bidi_pdf.h: Likewise.
47290         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47291         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47292         * lib/unictype/pr_combining.h: Likewise.
47293         * lib/unictype/pr_composite.h: Likewise.
47294         * lib/unictype/pr_currency_symbol.h: Likewise.
47295         * lib/unictype/pr_dash.h: Likewise.
47296         * lib/unictype/pr_decimal_digit.h: Likewise.
47297         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47298         * lib/unictype/pr_deprecated.h: Likewise.
47299         * lib/unictype/pr_diacritic.h: Likewise.
47300         * lib/unictype/pr_extender.h: Likewise.
47301         * lib/unictype/pr_format_control.h: Likewise.
47302         * lib/unictype/pr_grapheme_base.h: Likewise.
47303         * lib/unictype/pr_grapheme_extend.h: Likewise.
47304         * lib/unictype/pr_grapheme_link.h: Likewise.
47305         * lib/unictype/pr_hex_digit.h: Likewise.
47306         * lib/unictype/pr_hyphen.h: Likewise.
47307         * lib/unictype/pr_id_continue.h: Likewise.
47308         * lib/unictype/pr_id_start.h: Likewise.
47309         * lib/unictype/pr_ideographic.h: Likewise.
47310         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47311         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47312         * lib/unictype/pr_ignorable_control.h: Likewise.
47313         * lib/unictype/pr_iso_control.h: Likewise.
47314         * lib/unictype/pr_join_control.h: Likewise.
47315         * lib/unictype/pr_left_of_pair.h: Likewise.
47316         * lib/unictype/pr_line_separator.h: Likewise.
47317         * lib/unictype/pr_logical_order_exception.h: Likewise.
47318         * lib/unictype/pr_lowercase.h: Likewise.
47319         * lib/unictype/pr_math.h: Likewise.
47320         * lib/unictype/pr_non_break.h: Likewise.
47321         * lib/unictype/pr_not_a_character.h: Likewise.
47322         * lib/unictype/pr_numeric.h: Likewise.
47323         * lib/unictype/pr_other_alphabetic.h: Likewise.
47324         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47325         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47326         * lib/unictype/pr_other_id_continue.h: Likewise.
47327         * lib/unictype/pr_other_id_start.h: Likewise.
47328         * lib/unictype/pr_other_lowercase.h: Likewise.
47329         * lib/unictype/pr_other_math.h: Likewise.
47330         * lib/unictype/pr_other_uppercase.h: Likewise.
47331         * lib/unictype/pr_paired_punctuation.h: Likewise.
47332         * lib/unictype/pr_paragraph_separator.h: Likewise.
47333         * lib/unictype/pr_pattern_syntax.h: Likewise.
47334         * lib/unictype/pr_pattern_white_space.h: Likewise.
47335         * lib/unictype/pr_private_use.h: Likewise.
47336         * lib/unictype/pr_punctuation.h: Likewise.
47337         * lib/unictype/pr_quotation_mark.h: Likewise.
47338         * lib/unictype/pr_radical.h: Likewise.
47339         * lib/unictype/pr_sentence_terminal.h: Likewise.
47340         * lib/unictype/pr_soft_dotted.h: Likewise.
47341         * lib/unictype/pr_space.h: Likewise.
47342         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47343         * lib/unictype/pr_titlecase.h: Likewise.
47344         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47345         * lib/unictype/pr_unified_ideograph.h: Likewise.
47346         * lib/unictype/pr_uppercase.h: Likewise.
47347         * lib/unictype/pr_variation_selector.h: Likewise.
47348         * lib/unictype/pr_white_space.h: Likewise.
47349         * lib/unictype/pr_xid_continue.h: Likewise.
47350         * lib/unictype/pr_xid_start.h: Likewise.
47351         * lib/unictype/pr_zero_width.h: Likewise.
47352         * lib/unictype/scripts.h: Likewise.
47353         * lib/unictype/scripts_byname.gperf: Likewise.
47354         * lib/unictype/sy_c_ident.h: Likewise.
47355         * lib/unictype/sy_c_whitespace.h: Likewise.
47356         * lib/unictype/sy_java_ident.h: Likewise.
47357         * lib/unictype/sy_java_whitespace.h: Likewise.
47358
47359         * lib/unictype/Makefile: New file.
47360         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47361         glibc.
47362         * lib/unictype/3level.h: New file, copied from glibc.
47363         * lib/unictype/3levelbit.h: New file.
47364
47365 2007-11-11  Bruno Haible  <bruno@clisp.org>
47366
47367         * modules/gperf: New file.
47368         * modules/iconv_open (Depends-on): Add it.
47369         (Makefile.am): Remove the GPERF definition.
47370
47371 2007-11-11  Bruno Haible  <bruno@clisp.org>
47372
47373         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47374         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47375
47376 2007-11-11  Bruno Haible  <bruno@clisp.org>
47377
47378         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47379         (usage): Remove function.
47380
47381 2007-11-11  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47384         gl_FUNC_CEILF_LIBS.
47385         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47386         gl_FUNC_CEIL_LIBS.
47387         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47388         gl_FUNC_CEILL_LIBS.
47389         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47390         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47391         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47392
47393 2007-11-11  Bruno Haible  <bruno@clisp.org>
47394
47395         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47396         roundf were declared but do not exist on functions.
47397         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47398         roundl were declared but do not exist on functions.
47399         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47400         HAVE_FLOORL_AND_CEILL, respectively.
47401         Needed for Sun C on Solaris 10.
47402
47403 2007-11-11  Bruno Haible  <bruno@clisp.org>
47404
47405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47406         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47407         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47408         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47409         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47410         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47411         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47412         HAVE_DECL_ROUNDF.
47413         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47414         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47416         of HAVE_DECL_ROUND*.
47417         * modules/math (Makefile.am): Update.
47418
47419 2007-11-10  Bruno Haible  <bruno@clisp.org>
47420
47421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47422         ptrdiff_t as m4/intl.m4.
47423
47424 2007-11-10  Jim Meyering  <meyering@redhat.com>
47425
47426         Avoid link failure for the argmatch test.
47427         * tests/test-argmatch.c (usage): Define function to avoid a link
47428         failure: argmatch_die requires a usage function.
47429
47430 2007-11-09  Bruno Haible  <bruno@clisp.org>
47431
47432         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47433         * doc/functions/vsnprintf.texi: Likewise.
47434         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47435         with a size argument < 2.
47436
47437 2007-11-09  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47440         buffer. Fixes an inefficiency introduced on 2007-11-03.
47441
47442 2007-11-09  Bruno Haible  <bruno@clisp.org>
47443
47444         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47445         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47446
47447 2007-11-08  Jim Meyering  <meyering@redhat.com>
47448
47449         Change cache variable name prefix "jm_" to "gl_" everywhere.
47450         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47451         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47452         * m4/uptime.m4: s/gl_/jm_/
47453
47454 2007-11-07  Bruno Haible  <bruno@clisp.org>
47455
47456         Update to GNU gettext 0.17.
47457         * m4/intl.m4: Update to GNU gettext 0.17.
47458         * m4/po.m4: Likewise.
47459         * modules/gettext (Files): Remove m4/ulonglong.m4.
47460         (configure.ac): Require gettext infrastructure from version 0.17.
47461
47462 2007-11-06  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47465         symbolic values are not defined in a public header.
47466         * lib/freadable.c (freadable) [QNX]: Likewise.
47467         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47468         * lib/freading.c (freading) [QNX]: Likewise.
47469         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47470         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47471         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47472         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47473         Reported by Alain Magloire.
47474
47475         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47476
47477 2007-11-05  Bruno Haible  <bruno@clisp.org>
47478
47479         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47480         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47481         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47482         Reported by Eric Blake.
47483
47484 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47485             Bruno Haible  <bruno@clisp.org>
47486
47487         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47488         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47489         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47490         (malloc): Undefine also before including <stdlib.h>.
47491         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47492         Needed on OSF/1 4.0.
47493
47494 2007-11-05  Jim Meyering  <meyering@redhat.com>
47495
47496         git-version-gen: sync from coreutils.
47497         * build-aux/git-version-gen: Add comments.
47498         Change the first '-' to '.' in the snapshot version string,
47499         e.g., 6.9-377-08144 -> 6.9.377-08144
47500         Remove first parameter.
47501         Don't declare a version "-dirty" merely because a time
47502         stamp has changed.
47503
47504 2007-11-04  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/lock.h: Protect all macro definitions containing an 'if'
47507         statement through a "do { ... } while (0)".
47508         * lib/tls.h: Likewise.
47509
47510 2007-11-04  Bruno Haible  <bruno@clisp.org>
47511
47512         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47513
47514 2007-11-04  Bruno Haible  <bruno@clisp.org>
47515
47516         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47517         * modules/fprintf-posix (Depends-on): Add nocrash.
47518         * modules/snprintf-posix (Depends-on): Likewise.
47519         * modules/sprintf-posix (Depends-on): Likewise.
47520         * modules/vasnprintf-posix (Depends-on): Likewise.
47521         * modules/vasprintf-posix (Depends-on): Likewise.
47522         * modules/vfprintf-posix (Depends-on): Likewise.
47523         * modules/vsnprintf-posix (Depends-on): Likewise.
47524         * modules/vsprintf-posix (Depends-on): Likewise.
47525         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47526         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47527         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47528         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47529         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47530         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47531         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47532
47533 2007-11-04  Bruno Haible  <bruno@clisp.org>
47534
47535         * modules/nocrash: New file.
47536         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47537         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47538
47539 2007-11-04  Bruno Haible  <bruno@clisp.org>
47540
47541         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47542         precision handling.
47543         * tests/test-vasprintf-posix.c (test_function): Likewise.
47544         * tests/test-snprintf-posix.h (test_function): Likewise.
47545         * tests/test-sprintf-posix.h (test_function): Likewise.
47546
47547         Fix *printf behaviour for large precisions on mingw and BeOS.
47548         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47549         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47551         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47553         gl_PRINTF_PRECISION and test its result. Invoke
47554         gl_PREREQ_VASNPRINTF_PRECISION.
47555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47556         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47562         * doc/functions/fprintf.texi: Update.
47563         * doc/functions/printf.texi: Update.
47564         * doc/functions/snprintf.texi: Update.
47565         * doc/functions/sprintf.texi: Update.
47566         * doc/functions/vfprintf.texi: Update.
47567         * doc/functions/vprintf.texi: Update.
47568         * doc/functions/vsnprintf.texi: Update.
47569         * doc/functions/vsprintf.texi: Update.
47570
47571 2007-11-04  Bruno Haible  <bruno@clisp.org>
47572
47573         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47574
47575 2007-11-04  Bruno Haible  <bruno@clisp.org>
47576
47577         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47578         Reported by Sylvain Beucler <beuc@gnu.org>.
47579
47580 2007-11-03  Bruno Haible  <bruno@clisp.org>
47581
47582         * tests/test-fprintf-posix2.sh: New file.
47583         * tests/test-fprintf-posix2.c: New file.
47584         * modules/fprintf-posix-tests (Files): Add them.
47585         (TESTS): Add test-fprintf-posix2.sh.
47586         (configure.ac): Check for getrlimit and setrlimit.
47587         (check_PROGRAMS): Add test-fprintf-posix2.
47588
47589         * tests/test-printf-posix2.sh: New file.
47590         * tests/test-printf-posix2.c: New file.
47591         * modules/printf-posix-tests (Files): Add them.
47592         (TESTS): Add test-printf-posix2.sh.
47593         (configure.ac): Check for getrlimit and setrlimit.
47594         (check_PROGRAMS): Add test-printf-posix2.
47595
47596         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47597         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47598         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47599         (decode_double): New function, copied from decode_long_double.
47600         (scale10_round_decimal_decoded): New function, extracted from
47601         scale10_round_decimal_long_double.
47602         (scale10_round_decimal_long_double): Use it.
47603         (scale10_round_decimal_double): New function.
47604         (floorlog10): New function.
47605         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47607         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47608         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47609         gl_PRINTF_ENOMEM and test its result. Invoke
47610         gl_PREREQ_VASNPRINTF_ENOMEM.
47611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47613         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47614         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47618         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47619         * modules/snprintf-posix (Depends-on): Likewise.
47620         * modules/sprintf-posix (Depends-on): Likewise.
47621         * modules/vasnprintf-posix (Depends-on): Likewise.
47622         * modules/vasprintf-posix (Depends-on): Likewise.
47623         * modules/vfprintf-posix (Depends-on): Likewise.
47624         * modules/vsnprintf-posix (Depends-on): Likewise.
47625         * modules/vsprintf-posix (Depends-on): Likewise.
47626         * doc/functions/fprintf.texi: Update.
47627         * doc/functions/printf.texi: Update.
47628         * doc/functions/snprintf.texi: Update.
47629         * doc/functions/sprintf.texi: Update.
47630         * doc/functions/vfprintf.texi: Update.
47631         * doc/functions/vprintf.texi: Update.
47632         * doc/functions/vsnprintf.texi: Update.
47633         * doc/functions/vsprintf.texi: Update.
47634
47635 2007-11-03  Bruno Haible  <bruno@clisp.org>
47636
47637         * modules/frexp-nolibm-tests: New file.
47638
47639         * modules/frexp-nolibm: New file.
47640         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47641
47642 2007-11-03  Bruno Haible  <bruno@clisp.org>
47643
47644         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47645         value is C99 compliant.
47646         Needed for OSF/1 5.1.
47647
47648 2007-11-03  Bruno Haible  <bruno@clisp.org>
47649
47650         Fix out-of-memory handling of vasnprintf.
47651         * lib/printf-parse.c: Include <errno.h>.
47652         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47653         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47654         is already set.
47655
47656 2007-11-02  Eric Blake  <ebb9@byu.net>
47657
47658         Fix tests on cygwin.
47659         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47660
47661 2007-11-01  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47664         warning.
47665         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47666         needed for POSIX compatibility.
47667
47668 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47669
47670         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47671         for compatibility with GNU.
47672
47673 2007-11-01  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47676         (putenv): Renamed from rpl_putenv. Change argument type from
47677         'const char *' to 'char *'.
47678         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47679         of defining putenv in config.h, just set REPLACE_PUTENV.
47680         * modules/putenv (Depends-on): Add stdlib.
47681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47682         (Include): Use <stdlib.h>.
47683         * lib/stdlib.in.h (putenv): New declaration.
47684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47685         REPLACE_PUTENV.
47686         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47687         REPLACE_PUTENV.
47688         Needed for MacOS X 10.5.0.
47689         Reported by Peter O'Gorman <peter@pogma.com>.
47690
47691 2007-11-01  Jim Meyering  <meyering@redhat.com>
47692
47693         Treat an empty date string exactly like "0".
47694         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47695         if the remaining date string (to be parsed) is empty, use "0".
47696         Reported by Mischa Molhoek and discussed in this thread:
47697         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47698
47699 2007-10-31  Bruno Haible  <bruno@clisp.org>
47700
47701         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47702         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47703         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47704         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47705         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47706         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47707
47708 2007-10-31  Bruno Haible  <bruno@clisp.org>
47709
47710         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47711         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47712         (AC_TYPE_LONG_LONG_INT): Use it.
47713         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47714         it as well.
47715         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47716         to m4/longlong.m4.
47717         * modules/stdint (Files): Remove m4/ulonglong.m4.
47718         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47719         m4/ulonglong.m4.
47720         * modules/strtoumax (Files): Likewise.
47721
47722 2007-10-30  Bruno Haible  <bruno@clisp.org>
47723
47724         * modules/xvasprintf-posix: New file.
47725         Suggested by Eric Blake.
47726
47727 2007-10-30  Bruno Haible  <bruno@clisp.org>
47728
47729         * modules/xprintf-posix-tests: New file.
47730         * tests/test-xprintf-posix.sh: New file.
47731         * tests/test-xprintf-posix.c: New file.
47732         * tests/test-xfprintf-posix.c: New file.
47733
47734         * modules/xprintf-posix: New file.
47735
47736 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47737
47738         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47739         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47740         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47741
47742 2007-10-29  Bruno Haible  <bruno@clisp.org>
47743
47744         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47745         contain the special marker '_cv_'.
47746         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47747         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47748         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47749         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47751         Reported by Ralf Wildenhues.
47752
47753 2007-10-29  Bruno Haible  <bruno@clisp.org>
47754
47755         * gnulib-tool (func_import): When --lgpl is not specified, set
47756         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47757         GPLv3.
47758         Reported by Simon Josefsson.
47759
47760 2007-10-28  Bruno Haible  <bruno@clisp.org>
47761
47762         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47763         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47764         HAVE_DECL_ISFINITE.
47765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47766         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47767         HAVE_DECL_ISFINITE.
47768
47769 2007-10-28  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47772         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47773
47774 2007-10-28  Bruno Haible  <bruno@clisp.org>
47775
47776         Fix link errors with Sun C 5.0 on Solaris 10.
47777         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47778         function is declared but not present in the compiler's libm.
47779         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47780         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47781         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47782         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47783         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47784         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47785         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47787         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47788         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47789         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47790         HAVE_DECL_FLOORL.
47791
47792 2007-10-28  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47795         gl_FUNC_FLOORL. Cache the result.
47796         (gl_FUNC_FLOORL): Use it.
47797         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47798         gl_FUNC_CEILL. Cache the result.
47799         (gl_FUNC_CEILL): Use it.
47800
47801         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47802         gl_FUNC_FLOOR. Cache the result.
47803         (gl_FUNC_FLOOR): Use it.
47804         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47805         gl_FUNC_CEIL. Cache the result.
47806         (gl_FUNC_CEIL): Use it.
47807
47808         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47809         gl_FUNC_FLOORF. Cache the result.
47810         (gl_FUNC_FLOORF): Use it.
47811         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47812         gl_FUNC_CEILF. Cache the result.
47813         (gl_FUNC_CEILF): Use it.
47814
47815 2007-10-28  Bruno Haible  <bruno@clisp.org>
47816
47817         * gnulib-tool: Allow specifying the LGPL version number through
47818         --lgpl=2 or --lgpl=3.
47819         (func_usage): Document --lgpl with argument.
47820         Handle --lgpl=... arguments.
47821         (func_import): Recognize also gl_LGPL calls with an argument. When
47822         --lgpl=2 is used and the module's license is just LGPL, report an
47823         error. Set sed_transform_lib_file according to the lgpl variable. In
47824         the generated files, use --lgpl or gl_LGPL invocations with argument,
47825         if necessary.
47826         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47827         an LGPv2+ license.
47828         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47829         gl_LGPL macro.
47830
47831 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47832             Bruno Haible  <bruno@clisp.org>
47833
47834         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47835         (u16_uctomb_aux): Likewise.
47836         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47837         !HAVE_INLINE.
47838         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47839
47840 2007-10-28  Bruno Haible  <bruno@clisp.org>
47841
47842         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47843         Invoke AM_GETTEXT_OPTION if it exists.
47844         * modules/vasprintf: Likewise.
47845         * modules/verror: Likewise.
47846         * modules/xprintf: Likewise.
47847         * modules/xvasprintf: Likewise.
47848
47849 2007-10-27  Ben Pfaff  <blp@gnu.org>
47850
47851         * lib/math.in.h: Define isfinite macro and prototypes for
47852         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47853         implementations.
47854         * m4/math_h.m4: New substitutions for isfinite module.
47855         * lib/isfinite.c: New file.
47856         * m4/isfinite.m4: New file.
47857         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47858         * modules/isfinite: New file.
47859         * modules/isfinite-tests: New file.
47860         * tests/tests-isfinite.c: New file.
47861         * doc/functions/isfinite.texi: Mention isfinite module.
47862         * MODULES.html.sh: Mention new module.
47863
47864 2007-10-27  Ben Pfaff  <blp@gnu.org>
47865
47866         Ralf Wildenhues reported that Tru64 4.0D declares the round
47867         functions but does not have definitions.
47868         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47869         cannot be found in any library, set the output variable to
47870         "missing" instead of "".
47871         * m4/round.m4: Also use our substitute if we cannot find round in
47872         any library, even if it is declared.
47873         * m4/roundf.m4: Likewise for roundf.
47874         * m4/roundl.m4: Likewise for roundl.
47875         * lib/math.in.h: Undefine roundf, round, roundl before defining
47876         their replacements, to allow for hypothetical systems where these
47877         may be defined as macros but not available in libraries.
47878
47879 2007-10-27  Bruno Haible  <bruno@clisp.org>
47880
47881         * doc/gnulib.texi: Invoke @firstparagraphindent.
47882         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47883         changes in gnulib.
47884         (Source changes): New section.
47885
47886 2007-10-26  Bruno Haible  <bruno@clisp.org>
47887
47888         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47889         borrowed from autoconf.
47890
47891 2007-10-26  Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47894         strerror returned the empty string. Needed on HP-UX 11.00.
47895
47896 2007-10-24  Micah Cowan  <micah@cowan.name>
47897
47898         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47899         * build-aux/bootstrap: Remove support for now-unnecessary option,
47900         --cvs-user, and envvars CVS_USER, CVS_RSH.
47901
47902 2007-10-24  Jim Meyering  <meyering@redhat.com>
47903
47904         Avoid diagnostics from sha1sum when there is no cached checksum.
47905         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47906         if the po.s1 file hasn't been created yet.
47907
47908         * build-aux/bootstrap: Sync from coreutils:
47909         2007-10-24  Jim Meyering  <meyering@redhat.com>
47910         Get gnulib from the git repository, not from an obsolete cvs one.
47911         * build-aux/bootstrap: Suggestion from Micah Cowan.
47912         2007-10-04  Jim Meyering  <jim@meyering.net>
47913         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47914         (update_po_files): Work also when there are no .po files in po/.
47915
47916 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47917
47918         * README: Append ".git" to git and cg examples.
47919         Problem reported by Benoit Sigoure.
47920
47921 2007-10-23  Micah Cowan  <micah@cowan.name>
47922
47923         * users.txt: Add wget.
47924
47925 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47926
47927         Fix linking of some unistdio tests on FreeBSD.
47928         * modules/unistdio/u16-vsnprintf-tests
47929         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47930         * modules/unistdio/u16-vsprintf-tests
47931         (test_u16_vsnprintf1_LDADD): Likewise.
47932         * modules/unistdio/u32-vsnprintf-tests
47933         (test_u32_vsnprintf1_LDADD): Likewise.
47934         * modules/unistdio/u32-vsprintf-tests
47935         (test_u32_vsprintf1_LDADD): Likewise.
47936         * modules/unistdio/u8-vsnprintf-tests
47937         (test_u8_vsnprintf1_LDADD): Likewise.
47938         * modules/unistdio/u8-vsprintf-tests
47939         (test_u8_vsprintf1_LDADD): Likewise.
47940         * modules/unistdio/ulc-vsnprintf-tests
47941         (test_ulc_vsnprintf1_LDADD): Likewise.
47942         * modules/unistdio/ulc-vsprintf-tests
47943         (test_ulc_vsprintf1_LDADD): Likewise.
47944
47945         Fix linking of some uniconv tests on FreeBSD.
47946         * modules/uniconv/u16-conv-from-enc-tests
47947         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47948         * modules/uniconv/u16-conv-to-enc-tests
47949         (test_u16_conv_to_enc_LDADD): Likewise.
47950         * modules/uniconv/u16-strconv-from-enc-tests
47951         (test_u16_strconv_from_enc_LDADD): Likewise.
47952         * modules/uniconv/u16-strconv-to-enc-tests
47953         (test_u16_strconv_to_enc_LDADD): Likewise.
47954         * modules/uniconv/u32-conv-from-enc-tests
47955         (test_u32_conv_from_enc_LDADD): Likewise.
47956         * modules/uniconv/u32-conv-to-enc-tests
47957         (test_u32_conv_to_enc_LDADD): Likewise.
47958         * modules/uniconv/u32-strconv-from-enc-tests
47959         (test_u32_strconv_from_enc_LDADD): Likewise.
47960         * modules/uniconv/u32-strconv-to-enc-tests
47961         (test_u32_strconv_to_enc_LDADD): Likewise.
47962         * modules/uniconv/u8-conv-from-enc-tests
47963         (test_u8_conv_from_enc_LDADD): Likewise.
47964         * modules/uniconv/u8-conv-to-enc-tests
47965         (test_u8_conv_to_enc_LDADD): Likewise.
47966         * modules/uniconv/u8-strconv-from-enc-tests
47967         (test_u8_strconv_from_enc_LDADD): Likewise.
47968         * modules/uniconv/u8-strconv-to-enc-tests
47969         (test_u8_strconv_to_enc_LDADD): Likewise.
47970
47971 2007-10-22  Bruno Haible  <bruno@clisp.org>
47972
47973         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47974         size.
47975
47976 2007-10-22  Eric Blake  <ebb9@byu.net>
47977
47978         Tweak x*printf documentation.
47979         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47980         variable name and comments.
47981         Suggested by Bruno Haible.
47982
47983 2007-10-22  Bruno Haible  <bruno@clisp.org>
47984
47985         * lib/acl.c (copy_acl): Fix file name in comment.
47986
47987 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         Fix Tru64 problem with stdbool.h.
47990         * lib/stdbool.in.h (false, true):
47991         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47992         Don't declare as an enum in this situation; it runs afoul of Tru64.
47993         Problem reported by Steven M. Schweda in
47994         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47995
47996 2007-10-22  Eric Blake  <ebb9@byu.net>
47997
47998         Also wrap vf?printf.
47999         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48000         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48001         (xvprintf, xvfprintf): New functions.
48002
48003 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48004
48005         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48006         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48007
48008         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48009         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48010
48011 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48014         by Bruno Haible.
48015
48016 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48017
48018         * lib/getloadavg.c
48019         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48020         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48021
48022         * tests/test-i-ring.c: Work for C89.
48023
48024 2007-10-22  Bruno Haible  <bruno@clisp.org>
48025
48026         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48027         -1u, in preprocessor expression, so that we don't test for the bug
48028         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48030
48031 2007-10-22  Eric Blake  <ebb9@byu.net>
48032
48033         * tests/test-yesno.sh: Silence stderr during test.
48034
48035 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48036
48037         * modules/crypto/gc-camellia: New file.
48038
48039         * m4/gc-camellia.m4: New file.
48040
48041         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48042
48043         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48044
48045 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48046
48047         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48048         --help to stdout.  Reported by sms@antinode.org (Steven
48049         M. Schweda).
48050
48051 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48052
48053         * users.txt: Fix link to libksba.
48054
48055 2007-10-21  Ben Pfaff  <blp@gnu.org>
48056
48057         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48058         round.c roundf implementation that depends on floorf and ceilf to
48059         be tested unconditionally.
48060
48061 2007-10-21  Ben Pfaff  <blp@gnu.org>
48062
48063         * m4/check-libm-func.m4: Removed.
48064         * m4/check-math-lib.m4: New file.
48065         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48066         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48067         definition and lack of AC_LIBOBJ([roundf]).
48068         * m4/roundl.m4: Ditto, and similarly for roundl.
48069         * modules/round: Reference new m4 file.
48070         * modules/roundf: Ditto.
48071         * modules/roundl: Ditto.
48072         * tests/test-round2.c (main): Use ROUND instead of round.
48073         Bug report from Bruno Haible.
48074
48075 2007-10-21  Bruno Haible  <bruno@clisp.org>
48076
48077         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48078         context.
48079
48080 2007-10-21  Bruno Haible  <bruno@clisp.org>
48081
48082         * tests/test-wcwidth.c (main): Allow negative result for some control
48083         characters.
48084
48085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48086         Needed on OSF/1 5.1.
48087
48088 2007-10-21  Bruno Haible  <bruno@clisp.org>
48089
48090         * tests/test-floorf1.c: Include isnanf.h.
48091         (main): Use isnanf() instead of isnan().
48092         * tests/test-ceilf1.c: Include isnanf.h.
48093         (main): Use isnanf() instead of isnan().
48094         * tests/test-truncf1.c: Include isnanf.h.
48095         (main): Use isnanf() instead of isnan().
48096         * tests/test-roundf1.c: Include isnanf.h.
48097         (main): Use isnanf() instead of isnan().
48098
48099 2007-10-21  Eric Blake  <ebb9@byu.net>
48100
48101         * users.txt: Update URL for m4.
48102
48103 2007-10-21  Bruno Haible  <bruno@clisp.org>
48104
48105         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48106
48107 2007-10-21  Bruno Haible  <bruno@clisp.org>
48108
48109         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48110         Git's management files if the CVS files are not present.
48111
48112 2007-10-20  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48115         gcc-3.4.x.
48116
48117 2007-10-20  Ben Pfaff  <blp@gnu.org>
48118
48119         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48120         implementations.
48121         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48122         * lib/round.c: New file.
48123         * lib/roundf.c: New file.
48124         * lib/roundl.c: New file.
48125         * m4/round.m4: New file.
48126         * m4/roundf.m4: New file.
48127         * m4/roundl.m4: New file.
48128         * m4/check-libm-func-m4: New file.
48129         * modules/math: Replace round, roundf, roundl related @VARS@ in
48130         math.in.h.
48131         * modules/round: New file.
48132         * modules/round-tests: New file.
48133         * modules/roundf: New file.
48134         * modules/roundf-tests: New file.
48135         * modules/roundl: New file.
48136         * modules/roundl-tests: New file.
48137         * tests/test-round1.c: New file.
48138         * tests/test-round2.c: New file.
48139         * tests/test-roundf1.c: New file.
48140         * tests/test-roundf2.c: New file.
48141         * tests/test-roundl.c: New file.
48142         * doc/functions/round.texi: Mention round module.
48143         * doc/functions/roundf.texi: Mention roundf module.
48144         * doc/functions/roundl.texi: Mention roundl module.
48145         * MODULES.html.sh: Mention new modules.
48146         Thanks to Bruno Haible for suggestions.
48147
48148 2007-10-20  Jim Meyering  <meyering@redhat.com>
48149
48150         * lib/xprintf.c: Include <config.h> unconditionally.
48151
48152         Change xprintf's license to GPL.
48153         * modules/xprintf (License): s/LGPL/GPL/, since this module
48154         depends on modules (exit and exitfail) which are GPL.
48155         Suggestion from Bruno Haible.
48156
48157         xprintf fixes.
48158         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48159         Use a clearer diagnostic.
48160         Patch from Bruno Haible.
48161
48162 2007-10-20  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48165         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48167
48168 2007-10-20  Bruno Haible  <bruno@clisp.org>
48169
48170         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48171         precision in the comparison result > x - 1 or similar.
48172         * tests/test-ceilf2.c (correct_result_p): Likewise.
48173         * tests/test-truncf2.c (correct_result_p): Likewise.
48174         * tests/test-trunc2.c (correct_result_p): Likewise.
48175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48176
48177 2007-10-20  Bruno Haible  <bruno@clisp.org>
48178
48179         * modules/ceil: New file.
48180         * m4/ceil.m4: New file.
48181         * doc/functions/ceil.texi: Mention the 'ceil' module.
48182
48183 2007-10-20  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/floor: New file.
48186         * m4/floor.m4: New file.
48187         * doc/functions/floor.texi: Mention the 'floor' module.
48188
48189 2007-10-20  Bruno Haible  <bruno@clisp.org>
48190
48191         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48192         of %a.
48193         * modules/floorf-tests (Depends-on): Likewise.
48194         * modules/truncf-tests (Depends-on): Likewise.
48195         * modules/trunc-tests (Depends-on): Likewise.
48196         Reported by Ben Pfaff.
48197
48198 2007-10-19  Jim Meyering  <meyering@redhat.com>
48199
48200         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48201         Don't bother testing specific errno values.  Just test ferror.
48202
48203         New module: xprintf
48204         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48205
48206 2007-10-19  Bruno Haible  <bruno@clisp.org>
48207
48208         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48209         syntax.
48210         * modules/javaexec (Makefile.am): Likewise.
48211         * modules/relocatable-prog (Makefile.am): Likewise.
48212         Suggested by Jim Meyering.
48213
48214 2007-10-18  Bruno Haible  <bruno@clisp.org>
48215
48216         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48217         Reported by Jim Meyering.
48218
48219 2007-10-18  Eric Blake  <ebb9@byu.net>
48220
48221         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48222
48223 2007-10-18  Bruno Haible  <bruno@clisp.org>
48224
48225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48226         the format string into writable memory. Needed in Fortify conditions.
48227
48228 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48229             Bruno Haible  <bruno@clisp.org>
48230
48231         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48232         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48233         * modules/trim (Depends-on): Add mbchar.
48234         (configure.ac): Add gl_FUNC_MBRTOWC.
48235         (Makefile.am): Augment lib_SOURCES.
48236
48237 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48238
48239         Modify glob.c to use fstatat and dirfd, to simplify it.
48240         Suggested by Eric Blake.
48241         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48242         Don't include <stdbool.h>; not used.
48243         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48244         (link_exists_p): Simplify implementation, since we can now assume
48245         dirfd and fstatat.
48246         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48247
48248 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48249
48250         * gnulib-tool (func_get_dependencies): Fix sed script to
48251         match only tests.
48252
48253 2007-10-17  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48256         allow locale names without encoding suffix.
48257         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48258         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48259
48260 2007-10-16  Bruno Haible  <bruno@clisp.org>
48261
48262         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48263         * lib/getgroups.c (getgroups): Likewise.
48264         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48265
48266 2007-10-16  Bruno Haible  <bruno@clisp.org>
48267
48268         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48269         * modules/malloc-posix (License): Likewise.
48270         * modules/realloc-posix (License): Likewise.
48271         * modules/calloc-posix (License): Likewise.
48272         * modules/intprops (License): Change from GPL to LGPL, with
48273         Paul Eggert's approval.
48274
48275 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48276
48277         Merge glibc changes into lib/glob.c.
48278
48279         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48280         2007-10-15 04:59:03 UTC.  Here are the changes:
48281
48282         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48283
48284         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48285
48286         * lib/glob.c: Add some branch prediction throughout.
48287
48288         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48289
48290         [BZ #5103]
48291         * lib/glob.c (glob): Recognize patterns starting \/.
48292
48293         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48294
48295         [BZ #3996]
48296         * lib/glob.c (attribute_hidden): Define if not defined.
48297         (glob): Unescape dirname, filename or username when needed and not
48298         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48299         is NULL.  Handle unescaped [ in pattern without closing ].
48300         Don't pass GLOB_CHECK down to recursive glob for directories.
48301         (__glob_pattern_type): New function.
48302         (__glob_pattern_p): Implement using __glob_pattern_type.
48303         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48304         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48305         Remove unreachable code.
48306
48307         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48308
48309         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48310         explain why there are no leaks.
48311
48312         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48313
48314         [BZ #3253]
48315         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48316         time, rather allocate increasingly bigger arrays of pointers, if
48317         possible with alloca, if too large with malloc.
48318
48319 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48320
48321         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48322         Problem reported by H.Merijn Brand in
48323         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48324         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48325         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48326
48327 2007-10-15  Bruno Haible  <bruno@clisp.org>
48328
48329         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48330         with explicit rpl_ prefix.
48331         * lib/fopen.c (fopen): Likewise.
48332         * lib/freopen.c (freopen): Likewise.
48333         * lib/iconv.c (iconv): Likewise.
48334         * lib/iconv_close.c (iconv_close): Likewise.
48335
48336 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48337
48338         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48339
48340 2007-10-15  Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48343         <stddef.h> instead of <stdlib.h> since we only need NULL.
48344         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48345
48346 2007-10-15  Bruno Haible  <bruno@clisp.org>
48347
48348         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48349         Replace paragraph talking about LIBOBJS.
48350         Reported by Colin Watson <cjwatson@debian.org>.
48351
48352 2007-10-15  Bruno Haible  <bruno@clisp.org>
48353
48354         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48355         <stdlib.h> before using NULL.
48356
48357 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48358
48359         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48360         Reported by Albert Chin <china@thewrittenword.com>.
48361
48362 2007-10-14  Bruno Haible  <bruno@clisp.org>
48363
48364         * modules/iconv_open-utf-tests: New file.
48365         * tests/test-iconv-utf.c: New file.
48366
48367         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48368         * modules/iconv_open-utf: New file.
48369         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48370         (iconv, iconv_close): New declarations.
48371         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48372         be defined.
48373         (iconv_open): Add special handling of conversion between UTF-8 and
48374         UTF-{16,32}{BE,LE}.
48375         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48376         * lib/iconv_close.c: New file.
48377         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48378         gl_FUNC_ICONV_OPEN.
48379         (gl_FUNC_ICONV_OPEN): Use it.
48380         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48381         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48382         and REPLACE_ICONV_UTF.
48383         * modules/iconv_open (Depends-on): Add c-strcase.
48384         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48385         ICONV_CONST.
48386         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48387
48388 2007-10-13  Albert Chin  <china@thewrittenword.com>
48389             Bruno Haible  <bruno@clisp.org>
48390
48391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48392         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48393
48394 2007-10-13  Bruno Haible  <bruno@clisp.org>
48395
48396         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48397         defined, use the ISO C99 inline semantics.
48398         * lib/argp.h (ARGP_EI): Likewise.
48399
48400 2007-10-13  Bruno Haible  <bruno@clisp.org>
48401
48402         Handle 'inline' change in gcc 4.3.0.
48403         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48404         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48405         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48406         argp_fmtstream_point): Disable 'extern' declaration if the function
48407         definition is going to be provided inline.
48408         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48409         semantics, not the ISO C99 inline semantics.
48410         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48411         'extern' declaration if the function definition is going to be provided
48412         inline.
48413         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48414         the GNU C inline semantics, not the ISO C99 inline semantics. With
48415         GCC 4.2, avoid a warning.
48416
48417 2007-10-13  Bruno Haible  <bruno@clisp.org>
48418
48419         * lib/freading.h (freading): Enable the use of __freading for
48420         glibc >= 2.7.
48421         * lib/freading.c (freading): Likewise.
48422
48423 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48424
48425         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48426         "warning: C99 inline functions are not supported; using GNU89".
48427
48428 2007-10-12  Bruno Haible  <bruno@clisp.org>
48429
48430         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48431         of 2.
48432         * tests/test-ceilf2.c: New file.
48433         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48434
48435         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48436         * modules/ceilf-tests: Update.
48437
48438 2007-10-12  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48441         of 2.
48442         * tests/test-floorf2.c: New file.
48443         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48444
48445         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48446         * modules/floorf-tests: Update.
48447
48448 2007-10-12  Bruno Haible  <bruno@clisp.org>
48449
48450         * tests/test-trunc2.c: New file.
48451         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48452
48453         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48454         * modules/trunc-tests: Update.
48455
48456 2007-10-12  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48459         of 2.
48460         * tests/test-truncf2.c: New file.
48461         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48462
48463         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48464         * modules/truncf-tests: Update.
48465
48466 2007-10-11  Eric Blake  <ebb9@byu.net>
48467
48468         Don't claim strerror is broken on Interix.
48469         * doc/functions/strerror.texi (strerror): Known broken systems are
48470         now Solaris 8, and not Interix.
48471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48472         Interix on cross-compile.
48473         Reported by Martin Koeppe in
48474         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48475
48476 2007-10-11  Bruno Haible  <bruno@clisp.org>
48477
48478         * modules/i-ring-tests: New file.
48479         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48480         instead of assert.
48481
48482 2007-10-11  Bruno Haible  <bruno@clisp.org>
48483
48484         * modules/filenamecat-tests: New file.
48485         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48486         * lib/filenamecat.c: Remove test code.
48487
48488 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48489
48490         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48491
48492         * lib/strerror.c: Include <string.h> always, to test interface,
48493         and to remove the need for the dummy.
48494         Include intprops.h to compute width instead of doing it ourselves
48495         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48496         (strerror): Define it to return NULL if there's no system strerror.
48497         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48498         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48499         ancient pre-strerror Unix systems well any more.  Saying "unknown
48500         system error" is enough.
48501         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48502         simpler strerror.c implementation.
48503         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48504         Simplify the tests to reflect the simpler strerror implementation.
48505         * modules/strerror (Depends-on): Add intprops.
48506
48507 2007-10-09  Eric Blake  <ebb9@byu.net>
48508
48509         Silence test-fpending.
48510         * modules/fpending-tests (Files): Add wrapper script.
48511         * tests/test-fpending.sh: New file.
48512
48513 2007-10-09  Bruno Haible  <bruno@clisp.org>
48514
48515         * MODULES.html.sh (func_module): Don't create a hyperlink for
48516         function names like 'printf_frexp'.
48517         (Misc): Add crc, memxor.
48518         (Characteristics of floating types): New section.
48519         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48520         isnanf-nolibm, signbit, trunc, truncf, truncl.
48521         (Enhancements for ISO C 99 functions): New subsection Input/output.
48522         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48523         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48524         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48525         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48526         (Enhancements for POSIX:2001 functions): Add chdir-long.
48527         (File system functions): Add areadlink, chdir-safer, read-file.
48528         Remove cycle-check.
48529         (File system as inode set): New section.
48530         (Date and time): Add gethrxtime.
48531         (Multithreading): Add openmp.
48532         (Internationalization functions): Add localename.
48533         (Unicode string functions): Add unistr/u*-mbsnlen.
48534         (Support for maintaining and releasing projects): Add git-version-gen.
48535         (Lone files): Remove directories.
48536
48537 2007-10-08  Ben Pfaff  <blp@gnu.org>
48538
48539         * lib/xmalloca.h: Fix typo in comment.
48540
48541 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48542
48543         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48544         when avoiding problems with integer overflow.  Use a portable test
48545         instead.
48546
48547 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48548
48549         * modules/dummy (License): Change to LGPLv2+.
48550         * modules/float (License): Likewise
48551         * modules/realloc (License): Likewise
48552         * modules/stdlib (License): Likewise
48553
48554 2007-10-07  Bruno Haible  <bruno@clisp.org>
48555
48556         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48557         * floor.c (TWO_MANT_DIG): Likewise.
48558         * ceil.c (TWO_MANT_DIG): Likewise.
48559         Reported by Ben Pfaff.
48560
48561 2007-10-07  Bruno Haible  <bruno@clisp.org>
48562
48563         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48564         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48565         * lib/frexp.c (FUNC): Likewise.
48566         * lib/printf-frexp.h (printf_frexp): Likewise.
48567         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48568         * lib/printf-frexp.c (FUNC): Likewise.
48569         Suggested by Jim Meyering.
48570
48571 2007-10-07  Jim Meyering  <meyering@redhat.com>
48572
48573         Make xnanosleep's integer overflow test more robust.
48574         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48575         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48576
48577 2007-10-07  Bruno Haible  <bruno@clisp.org>
48578
48579         * NEWS: Mention the license change.
48580
48581         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48582         abbreviations in the modules files.
48583
48584         Change copyright notice from GPLv2+ to GPLv3+.
48585         * README: Change copyright notice.
48586         * MODULES.html.sh: Likewise.
48587         * build-aux/bootstrap.conf: Likewise.
48588         * build-aux/config.libpath: Likewise.
48589         * build-aux/csharpcomp.sh.in: Likewise.
48590         * build-aux/csharpexec.sh.in: Likewise.
48591         * build-aux/install-reloc: Likewise.
48592         * build-aux/javacomp.sh.in: Likewise.
48593         * build-aux/javaexec.sh.in: Likewise.
48594         * build-aux/ldd.sh.in: Likewise.
48595         * build-aux/reloc-ldflags: Likewise.
48596         * build-aux/relocatable.sh.in: Likewise.
48597         * build-aux/x-to-1.in: Likewise.
48598         * check-module: Likewise.
48599         * config/srclistvars.sh: Likewise.
48600         * gnulib-tool: Likewise.
48601         * lib/acl-internal.h: Likewise.
48602         * lib/acl.c: Likewise.
48603         * lib/acl.h: Likewise.
48604         * lib/acl_entries.c: Likewise.
48605         * lib/areadlink-with-size.c: Likewise.
48606         * lib/areadlink.c: Likewise.
48607         * lib/areadlink.h: Likewise.
48608         * lib/argmatch.c: Likewise.
48609         * lib/argmatch.h: Likewise.
48610         * lib/argp-ba.c: Likewise.
48611         * lib/argp-eexst.c: Likewise.
48612         * lib/argp-fmtstream.c: Likewise.
48613         * lib/argp-fmtstream.h: Likewise.
48614         * lib/argp-fs-xinl.c: Likewise.
48615         * lib/argp-help.c: Likewise.
48616         * lib/argp-namefrob.h: Likewise.
48617         * lib/argp-parse.c: Likewise.
48618         * lib/argp-pin.c: Likewise.
48619         * lib/argp-pv.c: Likewise.
48620         * lib/argp-pvh.c: Likewise.
48621         * lib/argp-xinl.c: Likewise.
48622         * lib/argp.h: Likewise.
48623         * lib/at-func.c: Likewise.
48624         * lib/atanl.c: Likewise.
48625         * lib/backupfile.c: Likewise.
48626         * lib/backupfile.h: Likewise.
48627         * lib/basename.c: Likewise.
48628         * lib/binary-io.h: Likewise.
48629         * lib/byteswap.in.h: Likewise.
48630         * lib/c-stack.c: Likewise.
48631         * lib/c-stack.h: Likewise.
48632         * lib/c-strcasestr.c: Likewise.
48633         * lib/c-strcasestr.h: Likewise.
48634         * lib/c-strstr.c: Likewise.
48635         * lib/c-strstr.h: Likewise.
48636         * lib/c-strtod.c: Likewise.
48637         * lib/calloc.c: Likewise.
48638         * lib/canon-host.c: Likewise.
48639         * lib/canon-host.h: Likewise.
48640         * lib/canonicalize-lgpl.c: Likewise.
48641         * lib/canonicalize.c: Likewise.
48642         * lib/canonicalize.h: Likewise.
48643         * lib/ceil.c: Likewise.
48644         * lib/ceilf.c: Likewise.
48645         * lib/ceill.c: Likewise.
48646         * lib/chdir-long.c: Likewise.
48647         * lib/chdir-long.h: Likewise.
48648         * lib/chdir-safer.c: Likewise.
48649         * lib/chdir-safer.h: Likewise.
48650         * lib/chown.c: Likewise.
48651         * lib/classpath.c: Likewise.
48652         * lib/classpath.h: Likewise.
48653         * lib/clean-temp.c: Likewise.
48654         * lib/clean-temp.h: Likewise.
48655         * lib/cloexec.c: Likewise.
48656         * lib/close-stream.c: Likewise.
48657         * lib/closein.c: Likewise.
48658         * lib/closein.h: Likewise.
48659         * lib/closeout.c: Likewise.
48660         * lib/closeout.h: Likewise.
48661         * lib/concat-filename.c: Likewise.
48662         * lib/copy-file.c: Likewise.
48663         * lib/copy-file.h: Likewise.
48664         * lib/count-one-bits.h: Likewise.
48665         * lib/crc.c: Likewise.
48666         * lib/crc.h: Likewise.
48667         * lib/creat-safer.c: Likewise.
48668         * lib/csharpcomp.c: Likewise.
48669         * lib/csharpcomp.h: Likewise.
48670         * lib/csharpexec.c: Likewise.
48671         * lib/csharpexec.h: Likewise.
48672         * lib/cycle-check.c: Likewise.
48673         * lib/cycle-check.h: Likewise.
48674         * lib/diacrit.c: Likewise.
48675         * lib/diacrit.h: Likewise.
48676         * lib/diffseq.h: Likewise.
48677         * lib/dirchownmod.c: Likewise.
48678         * lib/dirent.in.h: Likewise.
48679         * lib/dirfd.c: Likewise.
48680         * lib/dirfd.h: Likewise.
48681         * lib/dirname.c: Likewise.
48682         * lib/dirname.h: Likewise.
48683         * lib/dummy.c: Likewise.
48684         * lib/dup-safer.c: Likewise.
48685         * lib/dup2.c: Likewise.
48686         * lib/eealloc.h: Likewise.
48687         * lib/error.c: Likewise.
48688         * lib/error.h: Likewise.
48689         * lib/euidaccess.c: Likewise.
48690         * lib/exclude.c: Likewise.
48691         * lib/exclude.h: Likewise.
48692         * lib/execute.c: Likewise.
48693         * lib/execute.h: Likewise.
48694         * lib/exitfail.c: Likewise.
48695         * lib/exitfail.h: Likewise.
48696         * lib/expl.c: Likewise.
48697         * lib/fatal-signal.c: Likewise.
48698         * lib/fatal-signal.h: Likewise.
48699         * lib/fbufmode.c: Likewise.
48700         * lib/fbufmode.h: Likewise.
48701         * lib/fchdir.c: Likewise.
48702         * lib/fchmodat.c: Likewise.
48703         * lib/fchownat.c: Likewise.
48704         * lib/fcntl--.h: Likewise.
48705         * lib/fcntl-safer.h: Likewise.
48706         * lib/fcntl.in.h: Likewise.
48707         * lib/fd-safer.c: Likewise.
48708         * lib/fflush.c: Likewise.
48709         * lib/file-has-acl.c: Likewise.
48710         * lib/file-set.c: Likewise.
48711         * lib/file-type.c: Likewise.
48712         * lib/file-type.h: Likewise.
48713         * lib/fileblocks.c: Likewise.
48714         * lib/filemode.c: Likewise.
48715         * lib/filemode.h: Likewise.
48716         * lib/filename.h: Likewise.
48717         * lib/filenamecat.c: Likewise.
48718         * lib/filenamecat.h: Likewise.
48719         * lib/findprog.c: Likewise.
48720         * lib/findprog.h: Likewise.
48721         * lib/float.in.h: Likewise.
48722         * lib/floor.c: Likewise.
48723         * lib/floorf.c: Likewise.
48724         * lib/floorl.c: Likewise.
48725         * lib/fopen-safer.c: Likewise.
48726         * lib/fopen.c: Likewise.
48727         * lib/fpending.c: Likewise.
48728         * lib/fpending.h: Likewise.
48729         * lib/fprintf.c: Likewise.
48730         * lib/fprintftime.h: Likewise.
48731         * lib/fpucw.h: Likewise.
48732         * lib/fpurge.c: Likewise.
48733         * lib/fpurge.h: Likewise.
48734         * lib/freadable.c: Likewise.
48735         * lib/freadable.h: Likewise.
48736         * lib/freadahead.c: Likewise.
48737         * lib/freadahead.h: Likewise.
48738         * lib/freading.c: Likewise.
48739         * lib/freading.h: Likewise.
48740         * lib/free.c: Likewise.
48741         * lib/freopen.c: Likewise.
48742         * lib/frexp.c: Likewise.
48743         * lib/frexpl.c: Likewise.
48744         * lib/fseek.c: Likewise.
48745         * lib/fseterr.c: Likewise.
48746         * lib/fseterr.h: Likewise.
48747         * lib/fstatat.c: Likewise.
48748         * lib/fstrcmp.c: Likewise.
48749         * lib/fstrcmp.h: Likewise.
48750         * lib/fsusage.c: Likewise.
48751         * lib/fsusage.h: Likewise.
48752         * lib/ftell.c: Likewise.
48753         * lib/ftello.c: Likewise.
48754         * lib/fts-cycle.c: Likewise.
48755         * lib/fts.c: Likewise.
48756         * lib/fts_.h: Likewise.
48757         * lib/full-read.c: Likewise.
48758         * lib/full-read.h: Likewise.
48759         * lib/full-write.c: Likewise.
48760         * lib/full-write.h: Likewise.
48761         * lib/fwritable.c: Likewise.
48762         * lib/fwritable.h: Likewise.
48763         * lib/fwriteerror.c: Likewise.
48764         * lib/fwriteerror.h: Likewise.
48765         * lib/fwriting.c: Likewise.
48766         * lib/fwriting.h: Likewise.
48767         * lib/gcd.c: Likewise.
48768         * lib/gcd.h: Likewise.
48769         * lib/getcwd.c: Likewise.
48770         * lib/getdate.h: Likewise.
48771         * lib/getdate.y: Likewise.
48772         * lib/getdomainname.c: Likewise.
48773         * lib/getdomainname.h: Likewise.
48774         * lib/getgroups.c: Likewise.
48775         * lib/gethostname.c: Likewise.
48776         * lib/gethrxtime.c: Likewise.
48777         * lib/gethrxtime.h: Likewise.
48778         * lib/getloadavg.c: Likewise.
48779         * lib/getndelim2.c: Likewise.
48780         * lib/getndelim2.h: Likewise.
48781         * lib/getnline.c: Likewise.
48782         * lib/getnline.h: Likewise.
48783         * lib/getopt.c: Likewise.
48784         * lib/getopt.in.h: Likewise.
48785         * lib/getopt1.c: Likewise.
48786         * lib/getopt_int.h: Likewise.
48787         * lib/getpagesize.h: Likewise.
48788         * lib/getsubopt.c: Likewise.
48789         * lib/gettime.c: Likewise.
48790         * lib/getugroups.c: Likewise.
48791         * lib/getugroups.h: Likewise.
48792         * lib/getusershell.c: Likewise.
48793         * lib/gl_anyavltree_list1.h: Likewise.
48794         * lib/gl_anyavltree_list2.h: Likewise.
48795         * lib/gl_anyhash_list1.h: Likewise.
48796         * lib/gl_anyhash_list2.h: Likewise.
48797         * lib/gl_anylinked_list1.h: Likewise.
48798         * lib/gl_anylinked_list2.h: Likewise.
48799         * lib/gl_anyrbtree_list1.h: Likewise.
48800         * lib/gl_anyrbtree_list2.h: Likewise.
48801         * lib/gl_anytree_list1.h: Likewise.
48802         * lib/gl_anytree_list2.h: Likewise.
48803         * lib/gl_anytree_oset.h: Likewise.
48804         * lib/gl_anytreehash_list1.h: Likewise.
48805         * lib/gl_anytreehash_list2.h: Likewise.
48806         * lib/gl_array_list.c: Likewise.
48807         * lib/gl_array_list.h: Likewise.
48808         * lib/gl_array_oset.c: Likewise.
48809         * lib/gl_array_oset.h: Likewise.
48810         * lib/gl_avltree_list.c: Likewise.
48811         * lib/gl_avltree_list.h: Likewise.
48812         * lib/gl_avltree_oset.c: Likewise.
48813         * lib/gl_avltree_oset.h: Likewise.
48814         * lib/gl_avltreehash_list.c: Likewise.
48815         * lib/gl_avltreehash_list.h: Likewise.
48816         * lib/gl_carray_list.c: Likewise.
48817         * lib/gl_carray_list.h: Likewise.
48818         * lib/gl_linked_list.c: Likewise.
48819         * lib/gl_linked_list.h: Likewise.
48820         * lib/gl_linkedhash_list.c: Likewise.
48821         * lib/gl_linkedhash_list.h: Likewise.
48822         * lib/gl_list.c: Likewise.
48823         * lib/gl_list.h: Likewise.
48824         * lib/gl_oset.c: Likewise.
48825         * lib/gl_oset.h: Likewise.
48826         * lib/gl_rbtree_list.c: Likewise.
48827         * lib/gl_rbtree_list.h: Likewise.
48828         * lib/gl_rbtree_oset.c: Likewise.
48829         * lib/gl_rbtree_oset.h: Likewise.
48830         * lib/gl_rbtreehash_list.c: Likewise.
48831         * lib/gl_rbtreehash_list.h: Likewise.
48832         * lib/gl_sublist.c: Likewise.
48833         * lib/gl_sublist.h: Likewise.
48834         * lib/group-member.c: Likewise.
48835         * lib/group-member.h: Likewise.
48836         * lib/hard-locale.c: Likewise.
48837         * lib/hard-locale.h: Likewise.
48838         * lib/hash-pjw.c: Likewise.
48839         * lib/hash-pjw.h: Likewise.
48840         * lib/hash-triple.c: Likewise.
48841         * lib/hash.c: Likewise.
48842         * lib/hash.h: Likewise.
48843         * lib/human.c: Likewise.
48844         * lib/human.h: Likewise.
48845         * lib/i-ring.c: Likewise.
48846         * lib/i-ring.h: Likewise.
48847         * lib/idcache.c: Likewise.
48848         * lib/imaxabs.c: Likewise.
48849         * lib/imaxdiv.c: Likewise.
48850         * lib/inet_pton.c: Likewise.
48851         * lib/inet_pton.h: Likewise.
48852         * lib/intprops.h: Likewise.
48853         * lib/inttostr.c: Likewise.
48854         * lib/inttostr.h: Likewise.
48855         * lib/inttypes.in.h: Likewise.
48856         * lib/isapipe.c: Likewise.
48857         * lib/isdir.c: Likewise.
48858         * lib/isnan.c: Likewise.
48859         * lib/isnan.h: Likewise.
48860         * lib/isnanf.c: Likewise.
48861         * lib/isnanf.h: Likewise.
48862         * lib/isnanl-nolibm.h: Likewise.
48863         * lib/isnanl.c: Likewise.
48864         * lib/isnanl.h: Likewise.
48865         * lib/javacomp.c: Likewise.
48866         * lib/javacomp.h: Likewise.
48867         * lib/javaexec.c: Likewise.
48868         * lib/javaexec.h: Likewise.
48869         * lib/javaversion.c: Likewise.
48870         * lib/javaversion.h: Likewise.
48871         * lib/javaversion.java: Likewise.
48872         * lib/lbrkprop.h: Likewise.
48873         * lib/lchmod.h: Likewise.
48874         * lib/lchown.c: Likewise.
48875         * lib/ldexpl.c: Likewise.
48876         * lib/linebreak.c: Likewise.
48877         * lib/linebreak.h: Likewise.
48878         * lib/linebuffer.c: Likewise.
48879         * lib/linebuffer.h: Likewise.
48880         * lib/locale.in.h: Likewise.
48881         * lib/logl.c: Likewise.
48882         * lib/long-options.c: Likewise.
48883         * lib/long-options.h: Likewise.
48884         * lib/lstat.c: Likewise.
48885         * lib/lstat.h: Likewise.
48886         * lib/math.in.h: Likewise.
48887         * lib/mbchar.c: Likewise.
48888         * lib/mbchar.h: Likewise.
48889         * lib/mbfile.h: Likewise.
48890         * lib/mbiter.h: Likewise.
48891         * lib/mbscasecmp.c: Likewise.
48892         * lib/mbscasestr.c: Likewise.
48893         * lib/mbschr.c: Likewise.
48894         * lib/mbscspn.c: Likewise.
48895         * lib/mbslen.c: Likewise.
48896         * lib/mbsncasecmp.c: Likewise.
48897         * lib/mbsnlen.c: Likewise.
48898         * lib/mbspbrk.c: Likewise.
48899         * lib/mbspcasecmp.c: Likewise.
48900         * lib/mbsrchr.c: Likewise.
48901         * lib/mbssep.c: Likewise.
48902         * lib/mbsspn.c: Likewise.
48903         * lib/mbsstr.c: Likewise.
48904         * lib/mbstok_r.c: Likewise.
48905         * lib/mbswidth.c: Likewise.
48906         * lib/mbswidth.h: Likewise.
48907         * lib/mbuiter.h: Likewise.
48908         * lib/memcasecmp.c: Likewise.
48909         * lib/memcasecmp.h: Likewise.
48910         * lib/memchr.c: Likewise.
48911         * lib/memcmp.c: Likewise.
48912         * lib/memcoll.c: Likewise.
48913         * lib/memcoll.h: Likewise.
48914         * lib/memcpy.c: Likewise.
48915         * lib/memrchr.c: Likewise.
48916         * lib/mkancesdirs.c: Likewise.
48917         * lib/mkdir-p.c: Likewise.
48918         * lib/mkdir-p.h: Likewise.
48919         * lib/mkdir.c: Likewise.
48920         * lib/mkdirat.c: Likewise.
48921         * lib/mkdtemp.c: Likewise.
48922         * lib/mkstemp-safer.c: Likewise.
48923         * lib/mkstemp.c: Likewise.
48924         * lib/modechange.c: Likewise.
48925         * lib/modechange.h: Likewise.
48926         * lib/mountlist.c: Likewise.
48927         * lib/mountlist.h: Likewise.
48928         * lib/mpsort.c: Likewise.
48929         * lib/nanosleep.c: Likewise.
48930         * lib/obstack.c: Likewise.
48931         * lib/obstack.h: Likewise.
48932         * lib/open-safer.c: Likewise.
48933         * lib/open.c: Likewise.
48934         * lib/openat-die.c: Likewise.
48935         * lib/openat-priv.h: Likewise.
48936         * lib/openat-proc.c: Likewise.
48937         * lib/openat.c: Likewise.
48938         * lib/openat.h: Likewise.
48939         * lib/pagealign_alloc.c: Likewise.
48940         * lib/pagealign_alloc.h: Likewise.
48941         * lib/physmem.c: Likewise.
48942         * lib/physmem.h: Likewise.
48943         * lib/pipe-safer.c: Likewise.
48944         * lib/pipe.c: Likewise.
48945         * lib/pipe.h: Likewise.
48946         * lib/posixtm.c: Likewise.
48947         * lib/posixtm.h: Likewise.
48948         * lib/posixver.c: Likewise.
48949         * lib/printf-frexp.c: Likewise.
48950         * lib/printf-frexp.h: Likewise.
48951         * lib/printf-frexpl.c: Likewise.
48952         * lib/printf-frexpl.h: Likewise.
48953         * lib/printf.c: Likewise.
48954         * lib/progname.c: Likewise.
48955         * lib/progname.h: Likewise.
48956         * lib/progreloc.c: Likewise.
48957         * lib/putenv.c: Likewise.
48958         * lib/quote.c: Likewise.
48959         * lib/quote.h: Likewise.
48960         * lib/quotearg.c: Likewise.
48961         * lib/quotearg.h: Likewise.
48962         * lib/raise.c: Likewise.
48963         * lib/readline.c: Likewise.
48964         * lib/readline.h: Likewise.
48965         * lib/readlink.c: Likewise.
48966         * lib/readtokens.c: Likewise.
48967         * lib/readtokens.h: Likewise.
48968         * lib/readtokens0.c: Likewise.
48969         * lib/readtokens0.h: Likewise.
48970         * lib/readutmp.c: Likewise.
48971         * lib/readutmp.h: Likewise.
48972         * lib/realloc.c: Likewise.
48973         * lib/relocwrapper.c: Likewise.
48974         * lib/rename-dest-slash.c: Likewise.
48975         * lib/rename.c: Likewise.
48976         * lib/rmdir.c: Likewise.
48977         * lib/rpmatch.c: Likewise.
48978         * lib/safe-read.c: Likewise.
48979         * lib/safe-read.h: Likewise.
48980         * lib/safe-write.c: Likewise.
48981         * lib/safe-write.h: Likewise.
48982         * lib/same-inode.h: Likewise.
48983         * lib/same.c: Likewise.
48984         * lib/same.h: Likewise.
48985         * lib/save-cwd.c: Likewise.
48986         * lib/save-cwd.h: Likewise.
48987         * lib/savedir.c: Likewise.
48988         * lib/savedir.h: Likewise.
48989         * lib/savewd.c: Likewise.
48990         * lib/savewd.h: Likewise.
48991         * lib/search.in.h: Likewise.
48992         * lib/setenv.c: Likewise.
48993         * lib/setenv.h: Likewise.
48994         * lib/settime.c: Likewise.
48995         * lib/sh-quote.c: Likewise.
48996         * lib/sh-quote.h: Likewise.
48997         * lib/sig2str.c: Likewise.
48998         * lib/sig2str.h: Likewise.
48999         * lib/signal.in.h: Likewise.
49000         * lib/signbitd.c: Likewise.
49001         * lib/signbitf.c: Likewise.
49002         * lib/signbitl.c: Likewise.
49003         * lib/sigprocmask.c: Likewise.
49004         * lib/sincosl.c: Likewise.
49005         * lib/sleep.c: Likewise.
49006         * lib/sprintf.c: Likewise.
49007         * lib/sqrtl.c: Likewise.
49008         * lib/stat-time.h: Likewise.
49009         * lib/stdio--.h: Likewise.
49010         * lib/stdio-safer.h: Likewise.
49011         * lib/stdlib--.h: Likewise.
49012         * lib/stdlib-safer.h: Likewise.
49013         * lib/stdlib.in.h: Likewise.
49014         * lib/stpcpy.c: Likewise.
49015         * lib/stpncpy.c: Likewise.
49016         * lib/strchrnul.c: Likewise.
49017         * lib/strcspn.c: Likewise.
49018         * lib/strerror.c: Likewise.
49019         * lib/strftime.c: Likewise.
49020         * lib/strftime.h: Likewise.
49021         * lib/striconveh.c: Likewise.
49022         * lib/striconveh.h: Likewise.
49023         * lib/striconveha.c: Likewise.
49024         * lib/striconveha.h: Likewise.
49025         * lib/stripslash.c: Likewise.
49026         * lib/strnlen1.c: Likewise.
49027         * lib/strnlen1.h: Likewise.
49028         * lib/strtod.c: Likewise.
49029         * lib/strtoimax.c: Likewise.
49030         * lib/strtok_r.c: Likewise.
49031         * lib/strtol.c: Likewise.
49032         * lib/strtoll.c: Likewise.
49033         * lib/strtoul.c: Likewise.
49034         * lib/strtoull.c: Likewise.
49035         * lib/sysexits.in.h: Likewise.
49036         * lib/tempname.c: Likewise.
49037         * lib/tempname.h: Likewise.
49038         * lib/timespec.h: Likewise.
49039         * lib/tls.c: Likewise.
49040         * lib/tls.h: Likewise.
49041         * lib/tmpdir.c: Likewise.
49042         * lib/tmpdir.h: Likewise.
49043         * lib/tmpfile-safer.c: Likewise.
49044         * lib/tmpfile.c: Likewise.
49045         * lib/trigl.c: Likewise.
49046         * lib/trigl.h: Likewise.
49047         * lib/trim.c: Likewise.
49048         * lib/trim.h: Likewise.
49049         * lib/trunc.c: Likewise.
49050         * lib/truncf.c: Likewise.
49051         * lib/truncl.c: Likewise.
49052         * lib/tsearch.c: Likewise.
49053         * lib/unicodeio.c: Likewise.
49054         * lib/unicodeio.h: Likewise.
49055         * lib/unistd--.h: Likewise.
49056         * lib/unistd-safer.h: Likewise.
49057         * lib/unistdio/ulc-fprintf.c: Likewise.
49058         * lib/unistdio/ulc-vfprintf.c: Likewise.
49059         * lib/unlinkdir.c: Likewise.
49060         * lib/unlinkdir.h: Likewise.
49061         * lib/unlocked-io.h: Likewise.
49062         * lib/unsetenv.c: Likewise.
49063         * lib/userspec.c: Likewise.
49064         * lib/utime.c: Likewise.
49065         * lib/utimecmp.c: Likewise.
49066         * lib/utimecmp.h: Likewise.
49067         * lib/utimens.c: Likewise.
49068         * lib/verify.h: Likewise.
49069         * lib/verror.c: Likewise.
49070         * lib/verror.h: Likewise.
49071         * lib/version-etc-fsf.c: Likewise.
49072         * lib/version-etc.c: Likewise.
49073         * lib/version-etc.h: Likewise.
49074         * lib/vfprintf.c: Likewise.
49075         * lib/vprintf.c: Likewise.
49076         * lib/vsprintf.c: Likewise.
49077         * lib/w32spawn.h: Likewise.
49078         * lib/wait-process.c: Likewise.
49079         * lib/wait-process.h: Likewise.
49080         * lib/wcwidth.c: Likewise.
49081         * lib/write-any-file.c: Likewise.
49082         * lib/xalloc-die.c: Likewise.
49083         * lib/xalloc.h: Likewise.
49084         * lib/xasprintf.c: Likewise.
49085         * lib/xgetcwd.c: Likewise.
49086         * lib/xgetcwd.h: Likewise.
49087         * lib/xgetdomainname.c: Likewise.
49088         * lib/xgetdomainname.h: Likewise.
49089         * lib/xgethostname.c: Likewise.
49090         * lib/xmalloc.c: Likewise.
49091         * lib/xmalloca.c: Likewise.
49092         * lib/xmalloca.h: Likewise.
49093         * lib/xmemcoll.c: Likewise.
49094         * lib/xnanosleep.c: Likewise.
49095         * lib/xreadlink.c: Likewise.
49096         * lib/xreadlink.h: Likewise.
49097         * lib/xsetenv.c: Likewise.
49098         * lib/xsetenv.h: Likewise.
49099         * lib/xstriconv.c: Likewise.
49100         * lib/xstriconv.h: Likewise.
49101         * lib/xstrndup.c: Likewise.
49102         * lib/xstrndup.h: Likewise.
49103         * lib/xstrtod.c: Likewise.
49104         * lib/xstrtod.h: Likewise.
49105         * lib/xstrtol-error.c: Likewise.
49106         * lib/xstrtol.c: Likewise.
49107         * lib/xstrtol.h: Likewise.
49108         * lib/xtime.h: Likewise.
49109         * lib/xvasprintf.c: Likewise.
49110         * lib/xvasprintf.h: Likewise.
49111         * lib/yesno.c: Likewise.
49112         * lib/yesno.h: Likewise.
49113         * posix-modules: Likewise.
49114         * tests/test-alloca-opt.c: Likewise.
49115         * tests/test-arcfour.c: Likewise.
49116         * tests/test-arctwo.c: Likewise.
49117         * tests/test-argmatch.c: Likewise.
49118         * tests/test-argp-2.sh: Likewise.
49119         * tests/test-argp.c: Likewise.
49120         * tests/test-arpa_inet.c: Likewise.
49121         * tests/test-array_list.c: Likewise.
49122         * tests/test-array_oset.c: Likewise.
49123         * tests/test-atexit.c: Likewise.
49124         * tests/test-avltree_list.c: Likewise.
49125         * tests/test-avltree_oset.c: Likewise.
49126         * tests/test-avltreehash_list.c: Likewise.
49127         * tests/test-base64.c: Likewise.
49128         * tests/test-binary-io.c: Likewise.
49129         * tests/test-byteswap.c: Likewise.
49130         * tests/test-c-ctype.c: Likewise.
49131         * tests/test-c-strcasecmp.c: Likewise.
49132         * tests/test-c-strcasestr.c: Likewise.
49133         * tests/test-c-strncasecmp.c: Likewise.
49134         * tests/test-c-strstr.c: Likewise.
49135         * tests/test-canonicalize-lgpl.c: Likewise.
49136         * tests/test-canonicalize.c: Likewise.
49137         * tests/test-carray_list.c: Likewise.
49138         * tests/test-ceilf.c: Likewise.
49139         * tests/test-ceill.c: Likewise.
49140         * tests/test-count-one-bits.c: Likewise.
49141         * tests/test-crc.c: Likewise.
49142         * tests/test-dirname.c: Likewise.
49143         * tests/test-fbufmode.c: Likewise.
49144         * tests/test-fcntl.c: Likewise.
49145         * tests/test-fflush.c: Likewise.
49146         * tests/test-floorf.c: Likewise.
49147         * tests/test-floorl.c: Likewise.
49148         * tests/test-fopen.c: Likewise.
49149         * tests/test-fprintf-posix.c: Likewise.
49150         * tests/test-fprintf-posix.h: Likewise.
49151         * tests/test-fpurge.c: Likewise.
49152         * tests/test-freadable.c: Likewise.
49153         * tests/test-freadahead.c: Likewise.
49154         * tests/test-freading.c: Likewise.
49155         * tests/test-freopen.c: Likewise.
49156         * tests/test-frexp.c: Likewise.
49157         * tests/test-frexpl.c: Likewise.
49158         * tests/test-fseek.c: Likewise.
49159         * tests/test-fseeko.c: Likewise.
49160         * tests/test-fseterr.c: Likewise.
49161         * tests/test-fstrcmp.c: Likewise.
49162         * tests/test-ftell.c: Likewise.
49163         * tests/test-ftello.c: Likewise.
49164         * tests/test-fwritable.c: Likewise.
49165         * tests/test-fwriting.c: Likewise.
49166         * tests/test-getaddrinfo.c: Likewise.
49167         * tests/test-getpass.c: Likewise.
49168         * tests/test-gettimeofday.c: Likewise.
49169         * tests/test-hmac-md5.c: Likewise.
49170         * tests/test-hmac-sha1.c: Likewise.
49171         * tests/test-iconv.c: Likewise.
49172         * tests/test-iconvme.c: Likewise.
49173         * tests/test-inttypes.c: Likewise.
49174         * tests/test-isnan.c: Likewise.
49175         * tests/test-isnanf.c: Likewise.
49176         * tests/test-isnanl-nolibm.c: Likewise.
49177         * tests/test-isnanl.c: Likewise.
49178         * tests/test-isnanl.h: Likewise.
49179         * tests/test-ldexpl.c: Likewise.
49180         * tests/test-linked_list.c: Likewise.
49181         * tests/test-linkedhash_list.c: Likewise.
49182         * tests/test-locale.c: Likewise.
49183         * tests/test-localename.c: Likewise.
49184         * tests/test-lock.c: Likewise.
49185         * tests/test-lseek.c: Likewise.
49186         * tests/test-malloca.c: Likewise.
49187         * tests/test-math.c: Likewise.
49188         * tests/test-mbscasecmp.c: Likewise.
49189         * tests/test-mbscasestr1.c: Likewise.
49190         * tests/test-mbscasestr2.c: Likewise.
49191         * tests/test-mbscasestr3.c: Likewise.
49192         * tests/test-mbscasestr4.c: Likewise.
49193         * tests/test-mbschr.c: Likewise.
49194         * tests/test-mbscspn.c: Likewise.
49195         * tests/test-mbsncasecmp.c: Likewise.
49196         * tests/test-mbspbrk.c: Likewise.
49197         * tests/test-mbspcasecmp.c: Likewise.
49198         * tests/test-mbsrchr.c: Likewise.
49199         * tests/test-mbsspn.c: Likewise.
49200         * tests/test-mbsstr1.c: Likewise.
49201         * tests/test-mbsstr2.c: Likewise.
49202         * tests/test-mbsstr3.c: Likewise.
49203         * tests/test-md5.c: Likewise.
49204         * tests/test-memmem.c: Likewise.
49205         * tests/test-netinet_in.c: Likewise.
49206         * tests/test-open.c: Likewise.
49207         * tests/test-printf-frexp.c: Likewise.
49208         * tests/test-printf-frexpl.c: Likewise.
49209         * tests/test-printf-posix.c: Likewise.
49210         * tests/test-printf-posix.h: Likewise.
49211         * tests/test-rbtree_list.c: Likewise.
49212         * tests/test-rbtree_oset.c: Likewise.
49213         * tests/test-rbtreehash_list.c: Likewise.
49214         * tests/test-read-file.c: Likewise.
49215         * tests/test-rijndael.c: Likewise.
49216         * tests/test-search.c: Likewise.
49217         * tests/test-signbit.c: Likewise.
49218         * tests/test-sleep.c: Likewise.
49219         * tests/test-snprintf-posix.c: Likewise.
49220         * tests/test-snprintf-posix.h: Likewise.
49221         * tests/test-snprintf.c: Likewise.
49222         * tests/test-sprintf-posix.c: Likewise.
49223         * tests/test-sprintf-posix.h: Likewise.
49224         * tests/test-stat-time.c: Likewise.
49225         * tests/test-stdbool.c: Likewise.
49226         * tests/test-stdint.c: Likewise.
49227         * tests/test-stdio.c: Likewise.
49228         * tests/test-stdlib.c: Likewise.
49229         * tests/test-stpncpy.c: Likewise.
49230         * tests/test-strcasestr.c: Likewise.
49231         * tests/test-striconv.c: Likewise.
49232         * tests/test-striconveh.c: Likewise.
49233         * tests/test-striconveha.c: Likewise.
49234         * tests/test-string.c: Likewise.
49235         * tests/test-sys_select.c: Likewise.
49236         * tests/test-sys_socket.c: Likewise.
49237         * tests/test-sys_stat.c: Likewise.
49238         * tests/test-sys_time.c: Likewise.
49239         * tests/test-sysexits.c: Likewise.
49240         * tests/test-time.c: Likewise.
49241         * tests/test-tls.c: Likewise.
49242         * tests/test-trunc.c: Likewise.
49243         * tests/test-truncf.c: Likewise.
49244         * tests/test-truncl.c: Likewise.
49245         * tests/test-unistd.c: Likewise.
49246         * tests/test-vasnprintf-posix.c: Likewise.
49247         * tests/test-vasnprintf-posix2.c: Likewise.
49248         * tests/test-vasnprintf.c: Likewise.
49249         * tests/test-vasprintf-posix.c: Likewise.
49250         * tests/test-vasprintf.c: Likewise.
49251         * tests/test-verify.c: Likewise.
49252         * tests/test-vfprintf-posix.c: Likewise.
49253         * tests/test-vprintf-posix.c: Likewise.
49254         * tests/test-vsnprintf-posix.c: Likewise.
49255         * tests/test-vsnprintf.c: Likewise.
49256         * tests/test-vsprintf-posix.c: Likewise.
49257         * tests/test-wchar.c: Likewise.
49258         * tests/test-wctype.c: Likewise.
49259         * tests/test-wcwidth.c: Likewise.
49260         * tests/test-xstrtol.c: Likewise.
49261         * tests/test-xvasprintf.c: Likewise.
49262         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49263         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49264         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49265         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49266         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49267         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49268         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49269         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49270         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49271         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49272         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49273         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49274         * tests/uniname/test-uninames.c: Likewise.
49275         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49276         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49277         * tests/unistdio/test-u16-printf1.h: Likewise.
49278         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49279         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49280         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49281         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49282         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49283         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49284         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49285         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49286         * tests/unistdio/test-u32-printf1.h: Likewise.
49287         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49288         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49289         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49290         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49291         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49292         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49293         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49294         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49295         * tests/unistdio/test-u8-printf1.h: Likewise.
49296         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49297         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49298         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49299         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49300         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49301         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49302         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49303         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49304         * tests/unistdio/test-ulc-printf1.h: Likewise.
49305         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49306         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49307         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49308         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49309         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49310         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49311         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49312         * tests/uniwidth/test-u16-width.c: Likewise.
49313         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49314         * tests/uniwidth/test-u32-width.c: Likewise.
49315         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49316         * tests/uniwidth/test-u8-width.c: Likewise.
49317         * tests/uniwidth/test-uc_width.c: Likewise.
49318         * config/srclist-update: Likewise.
49319         (fixlicense): Update to GPLv3+.
49320
49321         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49322         * tests/test-tsearch.c: Change copyright notice.
49323
49324         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49325         * lib/c-strcaseeq.h: Change copyright notice.
49326         * lib/streq.h: Likewise.
49327         * lib/uniconv.h: Likewise.
49328         * lib/uniconv/u-conv-from-enc.h: Likewise.
49329         * lib/uniconv/u-conv-to-enc.h: Likewise.
49330         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49331         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49332         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49333         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49334         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49335         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49336         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49337         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49338         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49339         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49340         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49341         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49342         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49343         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49344         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49345         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49346         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49347         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49348         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49349         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49350         * lib/uniname.h: Likewise.
49351         * lib/uniname/uniname.c: Likewise.
49352         * lib/unistdio.h: Likewise.
49353         * lib/unistdio/u-asnprintf.h: Likewise.
49354         * lib/unistdio/u-asprintf.h: Likewise.
49355         * lib/unistdio/u-printf-args.c: Likewise.
49356         * lib/unistdio/u-printf-args.h: Likewise.
49357         * lib/unistdio/u-printf-parse.h: Likewise.
49358         * lib/unistdio/u-snprintf.h: Likewise.
49359         * lib/unistdio/u-sprintf.h: Likewise.
49360         * lib/unistdio/u-vasprintf.h: Likewise.
49361         * lib/unistdio/u-vsnprintf.h: Likewise.
49362         * lib/unistdio/u-vsprintf.h: Likewise.
49363         * lib/unistdio/u16-asnprintf.c: Likewise.
49364         * lib/unistdio/u16-asprintf.c: Likewise.
49365         * lib/unistdio/u16-printf-parse.c: Likewise.
49366         * lib/unistdio/u16-snprintf.c: Likewise.
49367         * lib/unistdio/u16-sprintf.c: Likewise.
49368         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49369         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49370         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49371         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49372         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49373         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49374         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49375         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49376         * lib/unistdio/u16-vasnprintf.c: Likewise.
49377         * lib/unistdio/u16-vasprintf.c: Likewise.
49378         * lib/unistdio/u16-vsnprintf.c: Likewise.
49379         * lib/unistdio/u16-vsprintf.c: Likewise.
49380         * lib/unistdio/u32-asnprintf.c: Likewise.
49381         * lib/unistdio/u32-asprintf.c: Likewise.
49382         * lib/unistdio/u32-printf-parse.c: Likewise.
49383         * lib/unistdio/u32-snprintf.c: Likewise.
49384         * lib/unistdio/u32-sprintf.c: Likewise.
49385         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49386         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49387         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49388         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49389         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49390         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49391         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49392         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49393         * lib/unistdio/u32-vasnprintf.c: Likewise.
49394         * lib/unistdio/u32-vasprintf.c: Likewise.
49395         * lib/unistdio/u32-vsnprintf.c: Likewise.
49396         * lib/unistdio/u32-vsprintf.c: Likewise.
49397         * lib/unistdio/u8-asnprintf.c: Likewise.
49398         * lib/unistdio/u8-asprintf.c: Likewise.
49399         * lib/unistdio/u8-printf-parse.c: Likewise.
49400         * lib/unistdio/u8-snprintf.c: Likewise.
49401         * lib/unistdio/u8-sprintf.c: Likewise.
49402         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49403         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49404         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49405         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49406         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49407         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49408         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49409         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49410         * lib/unistdio/u8-vasnprintf.c: Likewise.
49411         * lib/unistdio/u8-vasprintf.c: Likewise.
49412         * lib/unistdio/u8-vsnprintf.c: Likewise.
49413         * lib/unistdio/u8-vsprintf.c: Likewise.
49414         * lib/unistdio/ulc-asnprintf.c: Likewise.
49415         * lib/unistdio/ulc-asprintf.c: Likewise.
49416         * lib/unistdio/ulc-printf-parse.c: Likewise.
49417         * lib/unistdio/ulc-snprintf.c: Likewise.
49418         * lib/unistdio/ulc-sprintf.c: Likewise.
49419         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49420         * lib/unistdio/ulc-vasprintf.c: Likewise.
49421         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49422         * lib/unistdio/ulc-vsprintf.c: Likewise.
49423         * lib/unistr.h: Likewise.
49424         * lib/unistr/u-cpy-alloc.h: Likewise.
49425         * lib/unistr/u-cpy.h: Likewise.
49426         * lib/unistr/u-endswith.h: Likewise.
49427         * lib/unistr/u-move.h: Likewise.
49428         * lib/unistr/u-set.h: Likewise.
49429         * lib/unistr/u-startswith.h: Likewise.
49430         * lib/unistr/u-stpcpy.h: Likewise.
49431         * lib/unistr/u-stpncpy.h: Likewise.
49432         * lib/unistr/u-strcat.h: Likewise.
49433         * lib/unistr/u-strcpy.h: Likewise.
49434         * lib/unistr/u-strcspn.h: Likewise.
49435         * lib/unistr/u-strdup.h: Likewise.
49436         * lib/unistr/u-strlen.h: Likewise.
49437         * lib/unistr/u-strncat.h: Likewise.
49438         * lib/unistr/u-strncpy.h: Likewise.
49439         * lib/unistr/u-strnlen.h: Likewise.
49440         * lib/unistr/u-strpbrk.h: Likewise.
49441         * lib/unistr/u-strspn.h: Likewise.
49442         * lib/unistr/u-strstr.h: Likewise.
49443         * lib/unistr/u-strtok.h: Likewise.
49444         * lib/unistr/u16-check.c: Likewise.
49445         * lib/unistr/u16-chr.c: Likewise.
49446         * lib/unistr/u16-cmp.c: Likewise.
49447         * lib/unistr/u16-cpy-alloc.c: Likewise.
49448         * lib/unistr/u16-cpy.c: Likewise.
49449         * lib/unistr/u16-endswith.c: Likewise.
49450         * lib/unistr/u16-mblen.c: Likewise.
49451         * lib/unistr/u16-mbsnlen.c: Likewise.
49452         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49453         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49454         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49455         * lib/unistr/u16-mbtouc.c: Likewise.
49456         * lib/unistr/u16-mbtoucr.c: Likewise.
49457         * lib/unistr/u16-move.c: Likewise.
49458         * lib/unistr/u16-next.c: Likewise.
49459         * lib/unistr/u16-prev.c: Likewise.
49460         * lib/unistr/u16-set.c: Likewise.
49461         * lib/unistr/u16-startswith.c: Likewise.
49462         * lib/unistr/u16-stpcpy.c: Likewise.
49463         * lib/unistr/u16-stpncpy.c: Likewise.
49464         * lib/unistr/u16-strcat.c: Likewise.
49465         * lib/unistr/u16-strchr.c: Likewise.
49466         * lib/unistr/u16-strcmp.c: Likewise.
49467         * lib/unistr/u16-strcpy.c: Likewise.
49468         * lib/unistr/u16-strcspn.c: Likewise.
49469         * lib/unistr/u16-strdup.c: Likewise.
49470         * lib/unistr/u16-strlen.c: Likewise.
49471         * lib/unistr/u16-strmblen.c: Likewise.
49472         * lib/unistr/u16-strmbtouc.c: Likewise.
49473         * lib/unistr/u16-strncat.c: Likewise.
49474         * lib/unistr/u16-strncmp.c: Likewise.
49475         * lib/unistr/u16-strncpy.c: Likewise.
49476         * lib/unistr/u16-strnlen.c: Likewise.
49477         * lib/unistr/u16-strpbrk.c: Likewise.
49478         * lib/unistr/u16-strrchr.c: Likewise.
49479         * lib/unistr/u16-strspn.c: Likewise.
49480         * lib/unistr/u16-strstr.c: Likewise.
49481         * lib/unistr/u16-strtok.c: Likewise.
49482         * lib/unistr/u16-to-u32.c: Likewise.
49483         * lib/unistr/u16-to-u8.c: Likewise.
49484         * lib/unistr/u16-uctomb-aux.c: Likewise.
49485         * lib/unistr/u16-uctomb.c: Likewise.
49486         * lib/unistr/u32-check.c: Likewise.
49487         * lib/unistr/u32-chr.c: Likewise.
49488         * lib/unistr/u32-cmp.c: Likewise.
49489         * lib/unistr/u32-cpy-alloc.c: Likewise.
49490         * lib/unistr/u32-cpy.c: Likewise.
49491         * lib/unistr/u32-endswith.c: Likewise.
49492         * lib/unistr/u32-mblen.c: Likewise.
49493         * lib/unistr/u32-mbsnlen.c: Likewise.
49494         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49495         * lib/unistr/u32-mbtouc.c: Likewise.
49496         * lib/unistr/u32-mbtoucr.c: Likewise.
49497         * lib/unistr/u32-move.c: Likewise.
49498         * lib/unistr/u32-next.c: Likewise.
49499         * lib/unistr/u32-prev.c: Likewise.
49500         * lib/unistr/u32-set.c: Likewise.
49501         * lib/unistr/u32-startswith.c: Likewise.
49502         * lib/unistr/u32-stpcpy.c: Likewise.
49503         * lib/unistr/u32-stpncpy.c: Likewise.
49504         * lib/unistr/u32-strcat.c: Likewise.
49505         * lib/unistr/u32-strchr.c: Likewise.
49506         * lib/unistr/u32-strcmp.c: Likewise.
49507         * lib/unistr/u32-strcpy.c: Likewise.
49508         * lib/unistr/u32-strcspn.c: Likewise.
49509         * lib/unistr/u32-strdup.c: Likewise.
49510         * lib/unistr/u32-strlen.c: Likewise.
49511         * lib/unistr/u32-strmblen.c: Likewise.
49512         * lib/unistr/u32-strmbtouc.c: Likewise.
49513         * lib/unistr/u32-strncat.c: Likewise.
49514         * lib/unistr/u32-strncmp.c: Likewise.
49515         * lib/unistr/u32-strncpy.c: Likewise.
49516         * lib/unistr/u32-strnlen.c: Likewise.
49517         * lib/unistr/u32-strpbrk.c: Likewise.
49518         * lib/unistr/u32-strrchr.c: Likewise.
49519         * lib/unistr/u32-strspn.c: Likewise.
49520         * lib/unistr/u32-strstr.c: Likewise.
49521         * lib/unistr/u32-strtok.c: Likewise.
49522         * lib/unistr/u32-to-u16.c: Likewise.
49523         * lib/unistr/u32-to-u8.c: Likewise.
49524         * lib/unistr/u32-uctomb.c: Likewise.
49525         * lib/unistr/u8-check.c: Likewise.
49526         * lib/unistr/u8-chr.c: Likewise.
49527         * lib/unistr/u8-cmp.c: Likewise.
49528         * lib/unistr/u8-cpy-alloc.c: Likewise.
49529         * lib/unistr/u8-cpy.c: Likewise.
49530         * lib/unistr/u8-endswith.c: Likewise.
49531         * lib/unistr/u8-mblen.c: Likewise.
49532         * lib/unistr/u8-mbsnlen.c: Likewise.
49533         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49534         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49535         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49536         * lib/unistr/u8-mbtouc.c: Likewise.
49537         * lib/unistr/u8-mbtoucr.c: Likewise.
49538         * lib/unistr/u8-move.c: Likewise.
49539         * lib/unistr/u8-next.c: Likewise.
49540         * lib/unistr/u8-prev.c: Likewise.
49541         * lib/unistr/u8-set.c: Likewise.
49542         * lib/unistr/u8-startswith.c: Likewise.
49543         * lib/unistr/u8-stpcpy.c: Likewise.
49544         * lib/unistr/u8-stpncpy.c: Likewise.
49545         * lib/unistr/u8-strcat.c: Likewise.
49546         * lib/unistr/u8-strchr.c: Likewise.
49547         * lib/unistr/u8-strcmp.c: Likewise.
49548         * lib/unistr/u8-strcpy.c: Likewise.
49549         * lib/unistr/u8-strcspn.c: Likewise.
49550         * lib/unistr/u8-strdup.c: Likewise.
49551         * lib/unistr/u8-strlen.c: Likewise.
49552         * lib/unistr/u8-strmblen.c: Likewise.
49553         * lib/unistr/u8-strmbtouc.c: Likewise.
49554         * lib/unistr/u8-strncat.c: Likewise.
49555         * lib/unistr/u8-strncmp.c: Likewise.
49556         * lib/unistr/u8-strncpy.c: Likewise.
49557         * lib/unistr/u8-strnlen.c: Likewise.
49558         * lib/unistr/u8-strpbrk.c: Likewise.
49559         * lib/unistr/u8-strrchr.c: Likewise.
49560         * lib/unistr/u8-strspn.c: Likewise.
49561         * lib/unistr/u8-strstr.c: Likewise.
49562         * lib/unistr/u8-strtok.c: Likewise.
49563         * lib/unistr/u8-to-u16.c: Likewise.
49564         * lib/unistr/u8-to-u32.c: Likewise.
49565         * lib/unistr/u8-uctomb-aux.c: Likewise.
49566         * lib/unistr/u8-uctomb.c: Likewise.
49567         * lib/unitypes.h: Likewise.
49568         * lib/uniwidth.h: Likewise.
49569         * lib/uniwidth/cjk.h: Likewise.
49570         * lib/uniwidth/u16-strwidth.c: Likewise.
49571         * lib/uniwidth/u16-width.c: Likewise.
49572         * lib/uniwidth/u32-strwidth.c: Likewise.
49573         * lib/uniwidth/u32-width.c: Likewise.
49574         * lib/uniwidth/u8-strwidth.c: Likewise.
49575         * lib/uniwidth/u8-width.c: Likewise.
49576         * lib/uniwidth/width.c: Likewise.
49577
49578 2007-10-07  Bruno Haible  <bruno@clisp.org>
49579
49580         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49581         The file is still under LGPL (see modules/inttypes).
49582
49583 2007-10-06  Bruno Haible  <bruno@clisp.org>
49584
49585         * modules/trunc (Dependencies): Add 'extensions'.
49586         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49587         Reported by Ben Pfaff <blp@gnu.org>.
49588
49589 2007-10-06  Bruno Haible  <bruno@clisp.org>
49590
49591         * modules/freopen-tests: New file.
49592         * tests/test-freopen.c: New file.
49593
49594         * modules/fopen-tests: New file.
49595         * tests/test-fopen.c: New file.
49596
49597         * modules/fopen: New file.
49598         * lib/fopen.c: New file.
49599         * m4/fopen.m4: New file.
49600         * modules/freopen: New file.
49601         * lib/freopen.c: New file.
49602         * m4/freopen.m4: New file.
49603         * lib/stdio.in.h (fopen, freopen): New declarations.
49604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49605         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49606         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49607         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49608         * doc/functions/fopen.texi: Mention the 'fopen' module.
49609         * doc/functions/freopen.texi: Mention the 'freopen' module.
49610
49611 2007-10-06  Bruno Haible  <bruno@clisp.org>
49612
49613         * modules/open-tests: New file.
49614         * tests/test-open.c: New file.
49615
49616         * modules/open: New file.
49617         * lib/open.c: New file.
49618         * m4/open.m4: New file.
49619         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49620         lib/open.c does.
49621         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49622         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49623         macros.
49624         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49625         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49626         REPLACE_OPEN.
49627         * doc/functions/open.texi: Mention the 'open' module.
49628
49629 2007-10-04  Bruno Haible  <bruno@clisp.org>
49630
49631         * modules/ceill-tests: New file.
49632         * tests/test-ceill.c: New file.
49633
49634         * modules/ceill: New file.
49635         * lib/ceill.c: Replace entire file.
49636         * m4/ceill.m4: New file.
49637         * lib/math.in.h (ceill): Replace declaration.
49638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49639         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49640         * doc/functions/ceill.texi: Mention the 'ceill' module.
49641         * modules/mathl (Files): Remove lib/ceill.c.
49642         (Depends-on): Add ceill.
49643
49644 2007-10-04  Bruno Haible  <bruno@clisp.org>
49645
49646         * modules/ceilf-tests: New file.
49647         * tests/test-ceilf.c: New file.
49648
49649         * modules/ceilf: New file.
49650         * lib/ceil.c: New file.
49651         * lib/ceilf.c: New file.
49652         * m4/ceilf.m4: New file.
49653         * lib/math.in.h (ceilf): New declaration.
49654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49655         HAVE_DECL_CEILF.
49656         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49657         HAVE_DECL_CEILF.
49658         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49659
49660 2007-10-04  Bruno Haible  <bruno@clisp.org>
49661
49662         * modules/floorl-tests: New file.
49663         * tests/test-floorl.c: New file.
49664
49665         * modules/floorl: New file.
49666         * lib/floorl.c: Replace entire file.
49667         * m4/floorl.m4: New file.
49668         * lib/math.in.h (floorl): Replace declaration.
49669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49670         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49671         * doc/functions/floorl.texi: Mention the 'floorl' module.
49672         * modules/mathl (Files): Remove lib/floorl.c.
49673         (Depends-on): Add floorl.
49674
49675 2007-10-04  Bruno Haible  <bruno@clisp.org>
49676
49677         * modules/floorf-tests: New file.
49678         * tests/test-floorf.c: New file.
49679
49680         * modules/floorf: New file.
49681         * lib/floor.c: New file.
49682         * lib/floorf.c: New file.
49683         * m4/floorf.m4: New file.
49684         * lib/math.in.h (floorf): New declaration.
49685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49686         HAVE_DECL_FLOORF.
49687         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49688         HAVE_DECL_FLOORF.
49689         * doc/functions/floorf.texi: Mention the 'floorf' module.
49690
49691 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49692             Bruno Haible  <bruno@clisp.org>
49693
49694         Advertise for the Git server instead of the CVS server.
49695         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49696         repository instead of the CVS one.
49697         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49698         about all VCS systems generically.
49699         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49700
49701 2007-10-04  Bruno Haible  <bruno@clisp.org>
49702
49703         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49704         means.
49705         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49706
49707 2007-10-04  Bruno Haible  <bruno@clisp.org>
49708
49709         * modules/truncl-tests: New file.
49710         * tests/test-truncl.c: New file.
49711
49712         * modules/truncl: New file.
49713         * lib/truncl.c: New file.
49714         * m4/truncl.m4: New file.
49715         * lib/math.in.h (truncl): New declaration.
49716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49717         HAVE_DECL_TRUNCL.
49718         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49719         HAVE_DECL_TRUNCL.
49720         * doc/functions/truncl.texi: Mention the 'truncl' module.
49721
49722 2007-10-04  Bruno Haible  <bruno@clisp.org>
49723
49724         * modules/truncf-tests: New file.
49725         * tests/test-truncf.c: New file.
49726
49727         * modules/truncf: New file.
49728         * lib/trunc.c: Make paramerizable through USE_* macros.
49729         * lib/truncf.c: New file.
49730         * m4/truncf.m4: New file.
49731         * lib/math.in.h (truncf): New declaration.
49732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49733         HAVE_DECL_TRUNCF.
49734         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49735         HAVE_DECL_TRUNCF.
49736         * doc/functions/truncf.texi: Mention the 'truncf' module.
49737
49738 2007-10-03  Bruno Haible  <bruno@clisp.org>
49739
49740         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49741         augmentation also for tests modules.
49742         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49743         * modules/atexit-tests (Makefile.am): Likewise.
49744         * modules/binary-io-tests (Makefile.am): Likewise.
49745         * modules/c-strcase-tests (Makefile.am): Likewise.
49746         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49747         * modules/canonicalize-tests (Makefile.am): Likewise.
49748         * modules/closein-tests (Makefile.am): Likewise.
49749         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49750         * modules/freadahead-tests (Makefile.am): Likewise.
49751         * modules/fseek-tests (Makefile.am): Likewise.
49752         * modules/fseeko-tests (Makefile.am): Likewise.
49753         * modules/ftell-tests (Makefile.am): Likewise.
49754         * modules/ftello-tests (Makefile.am): Likewise.
49755         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49756         * modules/isnanl-tests (Makefile.am): Likewise.
49757         * modules/lseek-tests (Makefile.am): Likewise.
49758         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49759         * modules/mbscasestr-tests (Makefile.am): Likewise.
49760         * modules/mbschr-tests (Makefile.am): Likewise.
49761         * modules/mbscspn-tests (Makefile.am): Likewise.
49762         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49763         * modules/mbspbrk-tests (Makefile.am): Likewise.
49764         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49765         * modules/mbsrchr-tests (Makefile.am): Likewise.
49766         * modules/mbsspn-tests (Makefile.am): Likewise.
49767         * modules/mbsstr-tests (Makefile.am): Likewise.
49768         * modules/printf-posix-tests (Makefile.am): Likewise.
49769         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49770         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49771         * modules/tsearch-tests (Makefile.am): Likewise.
49772         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49773         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49774         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49775         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49776         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49777         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49778         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49779         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49780         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49781         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49782         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49783         * modules/xstrtol-tests (Makefile.am): Likewise.
49784         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49785         * modules/yesno-tests (Makefile.am): Likewise.
49786
49787 2007-10-03  Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/trunc-tests: New file.
49790         * tests/test-trunc.c: New file.
49791
49792         * modules/trunc: New file.
49793         * lib/trunc.c: New file.
49794         * m4/trunc.m4: New file.
49795         * lib/math.in.h (trunc): New declaration.
49796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49797         HAVE_DECL_TRUNC.
49798         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49799         HAVE_DECL_TRUNC.
49800         * doc/functions/trunc.texi: Mention the 'trunc' module.
49801
49802 2007-10-03  Bruno Haible  <bruno@clisp.org>
49803
49804         * tests/test-fpending.c: New file, mostly copied
49805         from coreutils/lib/t-fpending.c.
49806         * modules/fpending-tests: New file.
49807
49808 2007-10-03  Bruno Haible  <bruno@clisp.org>
49809
49810         Port the stdio extensions to QNX (untested).
49811         * lib/fseterr.c (fseterr): Add support for QNX.
49812         * lib/fbufmode.c (fbufmode): Likewise.
49813         * lib/freadable.c (freadable): Likewise.
49814         * lib/fwritable.c (fwritable): Likewise.
49815         * lib/freading.c (freading): Likewise.
49816         * lib/fwriting.c (fwriting): Likewise.
49817         * lib/freadahead.c (freadahed): Likewise.
49818         * lib/fpurge.c (fpurge): Likewise.
49819         * lib/fseeko.c (rpl_fseeko): Likewise.
49820
49821 2007-10-03  Bruno Haible  <bruno@clisp.org>
49822             Jim Meyering  <jim@meyering.net>
49823             Eric Blake  <ebb9@byu.net>
49824
49825         * doc/relocatable.texi: Use @command instead of @program.
49826
49827 2007-10-02  Jim Meyering  <jim@meyering.net>
49828
49829         Perform one more "_.h" -> ".in.h" substitution.
49830         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49831         instead of unistd_.h here, too.
49832
49833 2007-10-01  Bruno Haible  <bruno@clisp.org>
49834
49835         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49836         Needed for the alloca-opt module.
49837
49838 2007-09-30  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49841         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49842         alloca_.h.
49843         * lib/argz.in.h: Renamed from lib/argz_.h.
49844         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49845         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49846         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49847         byteswap_.h.
49848         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49849         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49850         dirent_.h.
49851         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49852         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49853         fcntl_.h.
49854         * lib/float.in.h: Renamed from lib/float_.h.
49855         * modules/float (Files, Makefile.am): Use float.in.h instead of
49856         float_.h.
49857         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49858         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49859         fnmatch_.h.
49860         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49861         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49862         getopt_.h.
49863         * lib/glob.in.h: Renamed from lib/glob_.h.
49864         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49865         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49866         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49867         iconv_.h.
49868         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49869         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49870         inttypes_.h.
49871         * lib/locale.in.h: Renamed from lib/locale_.h.
49872         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49873         locale_.h.
49874         * lib/math.in.h: Renamed from lib/math_.h.
49875         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49876         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49877         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49878         of netinet_in_.h. Add dependency.
49879         * lib/poll.in.h: Renamed from lib/poll_.h.
49880         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49881         * lib/search.in.h: Renamed from lib/search_.h.
49882         * modules/search (Files, Makefile.am): Use search.in.h instead of
49883         search_.h.
49884         * lib/signal.in.h: Renamed from lib/signal_.h.
49885         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49886         _signal.h.
49887         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49888         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49889         stdbool_.h.
49890         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49891         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49892         stdint_.h.
49893         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49894         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49895         stdio_.h.
49896         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49897         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49898         stdlib_.h.
49899         * lib/string.in.h: Renamed from lib/string_.h.
49900         * modules/string (Files, Makefile.am): Use string.in.h instead of
49901         string_.h.
49902         * doc/gnulib-tool.texi (Initial import): Update.
49903         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49904         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49905         of sys_select_.h. Add dependency.
49906         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49907         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49908         of sys_socket_.h.
49909         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49910         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49911         sys_stat_.h.
49912         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49913         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49914         sys_time_.h.
49915         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49916         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49917         sysexits_.h.
49918         * lib/time.in.h: Renamed from lib/time_.h.
49919         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49920         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49921         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49922         unistd_.h.
49923         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49924         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49925         wchar_.h.
49926         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49927         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49928         wctype_.h.
49929         * build-aux/bootstrap (slurp): Update.
49930         * lib/.cppi-disable: Update.
49931
49932 2007-09-30  Bruno Haible  <bruno@clisp.org>
49933
49934         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49935         Needed on BeOS.
49936
49937 2007-09-30  Bruno Haible  <bruno@clisp.org>
49938
49939         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49940
49941 2007-09-29  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49944
49945 2007-09-29  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49948         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49949         * build-aux/install-reloc: Compile also areadlink.c.
49950         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49951
49952 2007-09-29  Bruno Haible  <bruno@clisp.org>
49953
49954         * gnulib-tool (func_emit_initmacro_done): Indentation.
49955
49956 2007-09-29  Bruno Haible  <bruno@clisp.org>
49957
49958         * README: Add CVS checkout update instructions.
49959         Info from Bob Proulx <bob@proulx.com>.
49960
49961 2007-09-28  Eric Blake  <ebb9@byu.net>
49962
49963         Provide move-if-change.
49964         * build-aux/move-if-change: New file, based on best practice
49965         rather than any canonical upstream location.
49966
49967 2007-09-28  Jim Meyering  <jim@meyering.net>
49968
49969         Fix canonicalize loop-detection corner case.
49970         Do not attempt to stat the symlink values stored via seen_triple.
49971         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49972         on linux-2.6.18, (but not 2.6.22).
49973         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49974         triple_compare.  The former compares dev,ino,filename, while the latter
49975         would actually stat dirname(filename) when dev and ino were equal.
49976         * lib/hash-triple.c: Install <string.h>.
49977         (STREQ): Define.
49978         (triple_compare_ino_str): New function.
49979         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49980
49981 2007-09-28  Eric Blake  <ebb9@byu.net>
49982
49983         Enforce that AC_REPLACE_FUNCS files exist.
49984         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49985         override check for typos.
49986
49987         Fix test-closein on Solaris 10.
49988         * tests/test-closein.c (main): Don't assume stdin can be inherited
49989         closed on all systems.
49990         * tests/test-closein.sh: Likewise.
49991         Reported by Piotr Tarnowski.
49992
49993 2007-09-28  Jim Meyering  <jim@meyering.net>
49994
49995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49996
49997 2007-09-27  Jim Meyering  <jim@meyering.net>
49998
49999         canonicalize: Avoid a false-positive cycle failure.
50000         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50001         Sort.  Remove cycle-check.
50002         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50003         not cycle-check.h.
50004         (seen_triple): New function.
50005         (canonicalize_filename_mode): Use it instead of cycle-check.
50006         * tests/test-canonicalize.c: Add a test for this bug.
50007         * tests/test-canonicalize.sh: Set up and run the test.
50008
50009         New module, file-set, from coreutils.
50010         * modules/file-set: Define it.
50011         * lib/file-set.c, lib/file-set.h: Implement.
50012
50013         New module, hash-triple, from coreutils.
50014         * modules/hash-triple: Define it.
50015         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50016
50017 2007-09-25  Eric Blake  <ebb9@byu.net>
50018
50019         Fix strerror on Interix.
50020         * lib/string_.h (strerror): Declare replacement.
50021         * doc/functions/strerror.texi (strerror): Document the Interix
50022         shortcoming.
50023         * modules/string (Makefile.am): Support new hooks.
50024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50025         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50026         gl_FUNC_STRERROR_SEPARATE.
50027         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50028         * lib/strerror.c (rpl_strerror): Provide replacement.
50029         * modules/strerror (Depends-on): Add string.
50030         (configure.ac): Detect use of module.
50031         * tests/test-strerror.c: New file.
50032         * modules/strerror-tests: New test module.
50033         * modules/argp (Depends-on): Add strerror.
50034         * modules/error (Depends-on): Likewise.
50035         Reported by Martin Koeppe.
50036
50037 2007-09-24  Bruno Haible  <bruno@clisp.org>
50038
50039         * README: Update git instructions.
50040
50041 2007-09-24  Eric Blake  <ebb9@byu.net>
50042
50043         Revert fpending breakage from 2007-09-08.
50044         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50045         __fpending.c.
50046
50047 2007-09-24  Jim Meyering  <jim@meyering.net>
50048
50049         filenamecat.c: Add a test.
50050         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50051         showing how the function works when DIR is the empty string.
50052
50053 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50054
50055         * tests/test-canonicalize.sh: Turn on executable bit.
50056
50057 2007-09-19  Eric Blake  <ebb9@byu.net>
50058
50059         * README: Update CVS instructions.
50060
50061 2007-09-18  Bruno Haible  <bruno@clisp.org>
50062
50063         * modules/areadlink: New file.
50064         * lib/areadlink.h (areadlink): New declaration.
50065         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50066
50067 2007-09-17  Jim Meyering  <jim@meyering.net>
50068
50069         * lib/savewd.c (ESTALE) [!defined]: Define.
50070         Reported to be required on Interix by Martin Koeppe.
50071
50072 2007-09-17  Bruno Haible  <bruno@clisp.org>
50073
50074         * gnulib-tool (func_version): Use $version.
50075
50076 2007-09-16  Bruno Haible  <bruno@clisp.org>
50077
50078         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50079         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50080         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50081         Reported by Greg Schafer <gschafer@zip.com.au>.
50082
50083 2007-09-15  Bruno Haible  <bruno@clisp.org>
50084
50085         * gnulib-tool (sed): Try a little harder to make bash understand the
50086         alias.
50087         Reported by Bruce Korb <bruce.korb@gmail.com>.
50088
50089 2007-09-13  Eric Blake  <ebb9@byu.net>
50090
50091         * ChangeLog: Remove conflict markers.
50092
50093 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50094
50095         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50096         Reported by Bruno Haible <bruno@clisp.org>.
50097
50098 2007-09-12  Bruno Haible  <bruno@clisp.org>
50099
50100         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50101         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50102         is not defined.
50103
50104 2007-09-12  Eric Blake  <ebb9@byu.net>
50105
50106         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50107         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50108         Autoconf definition.
50109         * modules/euidaccess (Depends-on): Add extensions, for
50110         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50111         * modules/fnmatch (Depends-on): Likewise.
50112         * modules/getaddrinfo (Depends-on): Likewise.
50113         * modules/getdelim (Depends-on): Likewise.
50114         * modules/getline (Depends-on): Likewise.
50115         * modules/getsubopt (Depends-on): Likewise.
50116         * modules/gettext (Depends-on): Likewise.
50117         * modules/group-member (Depends-on): Likewise.
50118         * modules/mbchar (Depends-on): Likewise.
50119         * modules/memmem (Depends-on): Likewise.
50120         * modules/mempcpy (Depends-on): Likewise.
50121         * modules/memrchr (Depends-on): Likewise.
50122         * modules/pagealign_alloc (Depends-on): Likewise.
50123         * modules/readutmp (Depends-on): Likewise.
50124         * modules/stpcpy (Depends-on): Likewise.
50125         * modules/stpncpy (Depends-on): Likewise.
50126         * modules/strchrnul (Depends-on): Likewise.
50127         * modules/strndup (Depends-on): Likewise.
50128         * modules/strsep (Depends-on): Likewise.
50129         * modules/strverscmp (Depends-on): Likewise.
50130         * modules/vasprintf (Depends-on): Likewise.
50131         * modules/wcwidth (Depends-on): Likewise.
50132         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50133         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50134         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50136         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50137         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50138         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50139         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50140         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50141         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50142         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50143         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50145         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50146         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50147         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50148         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50149         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50151         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50152         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50153         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50154         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50155         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50156         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50158         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50159         so that lock.m4 can be used in gettext without extensions module.
50160
50161 2007-09-11  Bruno Haible  <bruno@clisp.org>
50162
50163         * m4/isc-posix.m4: Remove file.
50164         Suggested by Eric Blake.
50165
50166 2007-09-11  Eric Blake  <ebb9@byu.net>
50167
50168         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50169
50170 2007-09-10  Bruno Haible  <bruno@clisp.org>
50171
50172         * posix-modules: Fix typo in error message.
50173         Reported by Matt <mkraai@beckman.com>.
50174
50175 2007-09-09  Bruno Haible  <bruno@clisp.org>
50176
50177         * doc/functions/getdelim.texi: Update list of platforms lacking the
50178         function.
50179         * doc/functions/getline.texi: Likewise.
50180
50181 2007-09-09  Jim Meyering  <jim@meyering.net>
50182
50183         * lib/hash.c (hash_initialize): Detect calloc failure.
50184         Reported by Bruno Haible.
50185
50186 2007-09-09  Bruno Haible  <bruno@clisp.org>
50187
50188         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50189         malloc or realloc fails.
50190
50191 2007-09-09  Bruno Haible  <bruno@clisp.org>
50192
50193         * modules/getcwd (Depends-on): Add malloc-posix.
50194         * modules/glob (Depends-on): Likewise.
50195         * modules/putenv (Depends-on): Likewise.
50196         * modules/strdup (Depends-on): Likewise.
50197         * modules/getdelim (Depends-on): Add realloc-posix.
50198         * modules/read-file (Depends-on): Likewise.
50199
50200 2007-09-09  Bruno Haible  <bruno@clisp.org>
50201
50202         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50203         (gl_FUNC_MALLOC_POSIX): Require it.
50204         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50205         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50206         * modules/realloc (Files): Add m4/malloc.m4.
50207         * modules/calloc (Files): Likewise.
50208
50209 2007-09-09  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/malloc-posix: New file.
50212         * modules/malloc (Depends-on): Add malloc-posix.
50213         * lib/malloc.c: Include errno.h.
50214         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50215         and a POSIX-compatible malloc into a single function. Set ENOMEM
50216         when returning NULL.
50217         * m4/malloc.m4: New file.
50218         * doc/functions/malloc.texi: Mention the malloc-posix module.
50219         * lib/stdlib_.h (malloc): New declaration.
50220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50221         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50222         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50223         and HAVE_MALLOC_POSIX.
50224
50225 2007-09-09  Bruno Haible  <bruno@clisp.org>
50226
50227         * modules/realloc-posix: New file.
50228         * modules/realloc (Depends-on): Add realloc-posix.
50229         * lib/realloc.c: Include errno.h.
50230         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50231         and a POSIX-compatible realloc into a single function. Set ENOMEM
50232         when returning NULL.
50233         * m4/realloc.m4: New file.
50234         * doc/functions/realloc.texi: Mention the realloc-posix module.
50235         * lib/stdlib_.h (realloc): New declaration.
50236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50237         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50238         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50239         and HAVE_REALLOC_POSIX.
50240
50241 2007-09-09  Bruno Haible  <bruno@clisp.org>
50242
50243         * modules/calloc-posix: New file.
50244         * modules/calloc (Depends-on): Add calloc-posix.
50245         * lib/calloc.c: Include errno.h.
50246         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50247         and a POSIX-compatible calloc into a single function. Set ENOMEM
50248         when returning NULL.
50249         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50250         * doc/functions/calloc.texi: Mention the calloc-posix module.
50251         * lib/stdlib_.h (calloc): New declaration.
50252         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50253         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50254         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50255         and HAVE_CALLOC_POSIX.
50256
50257 2007-09-09  Bruno Haible  <bruno@clisp.org>
50258
50259         Allow for modules to show an arbitrary notice.
50260         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50261         * gnulib-tool: New option --extract-notice.
50262         (func_usage): Document it.
50263         (sed_extract_prog): Update.
50264         (func_get_notice): New function.
50265         (func_modules_notice): New function.
50266         (func_import, func_create_testdir): Invoke it.
50267         Suggested by Jim Meyering.
50268
50269 2007-09-09  Bruno Haible  <bruno@clisp.org>
50270
50271         * gnulib-tool: New options --verbose, --quiet.
50272         (func_usage): Document them.
50273         (verbose): New variable.
50274         (func_execute_command): New function.
50275         (func_import): Don't show the module list and the file list if
50276         $verbose < 0.
50277         (func_create_testdir): Likewise. Use func_execute_command.
50278         (func_create_megatestdir): Use func_execute_command.
50279
50280 2007-09-08  Bruno Haible  <bruno@clisp.org>
50281
50282         * gnulib-tool (func_import): Prefer rsync over wget when available,
50283         for fetching the PO files.
50284
50285 2007-09-08  Bruno Haible  <bruno@clisp.org>
50286
50287         * posix-modules: New file. Portions copied from gnulib-tool.
50288         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50289
50290 2007-09-08  Jim Meyering  <jim@meyering.net>
50291
50292         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50293         * lib/fpending.h: Rename from __fpending.h.
50294         * lib/fpending.c: Rename from __fpending.c.
50295         Include "fpending.h", not "__fpending.h".
50296         * lib/__fpending.h, lib/__fpending.c: Remove files.
50297         * modules/fpending (Files): Reflect new file names.
50298         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50299
50300 2007-09-08  Bruno Haible  <bruno@clisp.org>
50301
50302         * m4/inttypes-h.m4: Remove stub file.
50303
50304 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50305
50306         * doc/headers/stdint.texi: Discuss #include_next issue.
50307
50308 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50309
50310         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50311
50312 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50313
50314         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50315         in variable name.
50316
50317 2007-09-03  Jim Meyering  <jim@meyering.net>
50318
50319         New module: git-version-gen.
50320         * modules/git-version-gen: New file.
50321
50322         Import changes from coreutils for bootstrap script.
50323
50324         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50325
50326         bootstrap: uses rsync to download the .po files
50327         * build-aux/bootstrap (po_download_command_format): New global.
50328         (download_po_files): Use rsync.
50329         (update_po_files): Don't remove .po files after download,
50330         so future rsync runs can take advantage of the copies.
50331
50332         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50333
50334         Solve the unnecessary-.po-file-regeneration problem once and for all.
50335         * build-aux/bootstrap (download_po_files): New function, renamed from
50336         get_translations.  Now, downloads, but doesn't update LINGUAS.
50337         (update_po_files): New function.
50338
50339         bootstrap: Ignore more.
50340         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50341         uniwidth to e.g., lib/.gitignore.
50342         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50343
50344         * build-aux/bootstrap: New setting: vc_ignore.
50345         (insert_sorted_if_absent): Create $file if absent.
50346         Adapt to new, possibly empty, list: $vc_ignore.
50347
50348         bootstrap: generate more ignorable names
50349         * build-aux/bootstrap (slurp): When generating ignorable names,
50350         also map .sin to .sed, .gperf to .c, and .y to .c.
50351
50352 2007-09-03  Jim Meyering  <jim@meyering.net>
50353
50354         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50355         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50356
50357 2007-09-02  Bruno Haible  <bruno@clisp.org>
50358
50359         Fix mis-recognition of 'mcs' on QNX 6.
50360         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50361         output contains the string "Mono".
50362         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50363         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50364
50365 2007-09-01  Bruno Haible  <bruno@clisp.org>
50366
50367         Fix collision between uniwidth/* and linebreak modules.
50368         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50369         u32_width): Remove declarations.
50370         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50371         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50372         streq3, streq2, streq1, streq0): Remove functions.
50373         (STREQ): Remove macro.
50374         (is_cjk_encoding): Remove function.
50375         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50376         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50377         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50378         * NEWS: Document the change.
50379
50380 2007-09-01  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/streq.h: Add double-inclusion guard.
50383
50384 2007-09-01  Karl Berry  <karl@gnu.org>
50385
50386         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50387
50388 2007-08-28  Jim Meyering  <jim@meyering.net>
50389
50390         Rename mreadlink_with_size to areadlink_with_size.
50391         * NEWS: Document the change.
50392         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50393         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50394         * lib/mreadlink.h: Rename this to...
50395         * lib/areadlink.h: ...this.
50396         * modules/mreadlink-with-size: Rename this to...
50397         * modules/areadlink-with-size: ...this.
50398         * lib/canonicalize.c: Reflect the renaming.
50399         * modules/canonicalize: Likewise.
50400
50401 2007-08-26  Bruno Haible  <bruno@clisp.org>
50402
50403         * gnulib-tool (func_import): When deciding which files to remove,
50404         consider also dangling symbolic links.
50405         Reported by Eric Blake.
50406
50407 2007-08-26  Bruno Haible  <bruno@clisp.org>
50408
50409         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50410
50411 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50412
50413         * lib/readline.c: Don't include getline.h, the prototype is now
50414         found in stdio.h.
50415
50416 2007-08-23  Jim Meyering  <jim@meyering.net>
50417
50418         Getdelim touchup.
50419         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50420         around the funlockfile call, since funlockfile never sets errno.
50421         Don't set errno upon failed realloc.
50422
50423 2007-08-22  Eric Blake  <ebb9@byu.net>
50424
50425         Getline touchups.
50426         * lib/getdelim.c (getdelim): Revert regression that required *n to
50427         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50429         getdelim, rather than whether implementation is missing.
50430         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50431         * lib/stdio_.h (getline): Also declare if replacement is
50432         required.
50433         * doc/functions/getdelim.texi: New file.
50434         * doc/functions/getline.texi: Likewise.
50435         * doc/gnulib.texi (Function Substitutes): Add new files.
50436         Reported by Bruno Haible.
50437
50438 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50439
50440         * users.txt: Add Guile.
50441
50442 2007-08-22  Eric Blake  <ebb9@byu.net>
50443
50444         * tests/test-getdelim.c (main): Use remove, not unlink.
50445         * tests/test-getline.c (main): Likewise.
50446
50447         Move getline and getdelim into stdio.h, per POSIX 200x.
50448         * modules/getline (Files): Remove getline.h.
50449         (Depends-on): Add stdio.
50450         (configure.ac): Add module indicator.
50451         * modules/getdelim (Files): Remove getdelim.h.
50452         (Depends-on): Add stdio.
50453         (configure.ac): Add module indicator.
50454         * modules/stdio (Makefile.am): Work with new indicators.
50455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50456         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50457         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50458         * lib/getdelim.h: Delete.
50459         * lib/getline.h: Delete.
50460         * lib/stdio_.h (getdelim, getline): Declare.
50461         * modules/getdelim-tests: New module.
50462         * modules/getline-tests: Likewise.
50463         * tests/test-getdelim.c: New file.
50464         * tests/test-getline.c: Likewise.
50465         * NEWS: Document the change.
50466         * lib/getline.c: Update choice of header.
50467         * lib/csharpcomp.c: Likewise.
50468         * lib/getpass.c: Likewise.
50469         * lib/javacomp.c: Likewise.
50470         * lib/javaversion.c: Likewise.
50471         * lib/yesno.c: Likewise.
50472         * lib/getdelim.c: Likewise.
50473         (getdelim): Set errno on failure, and avoid memory leak.
50474
50475 2007-08-19  Bruno Haible  <bruno@clisp.org>
50476
50477         * modules/closein (Depends-on): Add freadahead.
50478         * lib/closein.c: Include freadahead.h.
50479         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50480         is zero.
50481
50482 2007-08-19  Bruno Haible  <bruno@clisp.org>
50483
50484         * modules/freadahead-tests: New file.
50485         * tests/test-freadahead.sh: New file.
50486         * tests/test-freadahead.c: New file.
50487
50488         * modules/freadahead: New file.
50489         * lib/freadahead.h: New file.
50490         * lib/freadahead.c: New file.
50491         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50492         fbufmode, fpurge, freadable, fwritable.
50493
50494 2007-08-19  Eric Blake  <ebb9@byu.net>
50495
50496         Test yesno in combination with closein.
50497         * lib/yesno.c (yesno): Document use of stdin.
50498         * modules/yesno-tests (Files): New module.
50499         * tests/test-yesno.c (main): New file.
50500         * tests/test-yesno.sh: Likewise.
50501
50502 2007-08-19  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50505         * lib/fseeko.c (rpl_fseeko): Likewise.
50506         * lib/fseterr.c (fseterr): Likewise.
50507
50508 2007-08-19  Bruno Haible  <bruno@clisp.org>
50509
50510         * tests/test-lseek.c (main): Disable a test for BeOS.
50511         * doc/functions/lseek.texi: Document the BeOS bug.
50512
50513 2007-08-19  Bruno Haible  <bruno@clisp.org>
50514             Eric Blake  <ebb9@byu.net>
50515
50516         * lib/lseek.c: Include <sys/stat.h>.
50517         (rpl_lseek): Add workaround code also for Unix platforms.
50518         Needed for BeOS.
50519         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50520         * doc/functions/lseek.texi: Document BeOS definiency.
50521
50522 2007-08-18  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/fstrcmp-tests: New file.
50525         * tests/test-fstrcmp.c: New file.
50526
50527 2007-08-18  Bruno Haible  <bruno@clisp.org>
50528
50529         * modules/fstrcmp: New file, from GNU gettext with modifications.
50530         * lib/fstrcmp.h: New file, from GNU gettext.
50531         * lib/fstrcmp.c: New file, from GNU gettext.
50532         * MODULES.html.sh (String handling): Add fstrcmp.
50533
50534 2007-08-18  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50537         'bool'.
50538         (diag, compareseq): Remove const from the ctxt argument.
50539         (USE_HEURISTIC): Undefine at the end.
50540
50541 2007-08-18  Jim Meyering  <jim@meyering.net>
50542
50543         New file: lib/idcache.h
50544         * NEWS: Mention the addition.
50545         * modules/idcache (Files): Add lib/idcache.h
50546         * lib/idcache.c: Include "idcache.h".
50547         Don't include <sys/types.h>.
50548         Add a FIXME comment.
50549         Move file-scoped "static" declarations to the top.
50550         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50551
50552 2007-08-17  Bruno Haible  <bruno@clisp.org>
50553         and Paul Eggert  <eggert@cs.ucla.edu>
50554
50555         * MODULES.html.sh: Add diffseq.
50556         * modules/diffseq: New file.
50557         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50558         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50559
50560 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         Import changes from coreutils for bootstrap script.
50563
50564         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50565
50566         * build-aux/bootstrap (slurp): Work even in environments where
50567         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50568         current code does not slurp files whose names start with ".", and
50569         this looks like it might be a troublesome area.
50570
50571         2007-07-11  Jim Meyering  <jim@meyering.net>
50572
50573         If there's a GPL vN copyright comment, require that N == 3.
50574
50575         2007-07-08  Jim Meyering  <jim@meyering.net>
50576
50577         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50578         * build-aux/bootstrap (mam_template): Move definition out of loop.
50579
50580         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50581
50582         * build-aux/bootstrap (symlink_to_dir): Rename function from
50583         symlink_to_gnulib.  Add a directory parameter.  Update all
50584         callers.
50585         (cp_mark_as_generated): Also check for -- and link to -- files in
50586         gl/.
50587
50588         2007-07-08  Jim Meyering  <jim@meyering.net>
50589
50590         Adapt to deeper hierarchy in gnulib.
50591         * build-aux/bootstrap (symlink_to_dir): If the destination
50592         directory doesn't exist, create it. This is required at least for
50593         "lib/uniwidth/cjk.h".
50594
50595         2007-05-15  Jim Meyering  <jim@meyering.net>
50596
50597         * build-aux/bootstrap: Now that generated Makefile.am files
50598         are no longer under version control, they must be created at
50599         bootstrap time.
50600
50601 2007-08-14  Ben Pfaff  <blp@gnu.org>
50602
50603         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50604
50605 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50606
50607         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50608         given the changes below.
50609         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50610         even on hosts that have padding bits beyond the supported 64.
50611
50612 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50615         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50616         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50617         depends on it.
50618         (xstrtol_error): Remove.
50619         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50620         but with a different signature.
50621         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50622         * lib/xstrtol-error.c: Include exitfail.h.
50623         (xstrtol_fatal): New function, with a different signature from the
50624         old xstrtol_error, so that the caller need not worry about passing
50625         in an exit status, or about storage management of the option argument.
50626         (xstrtol_error): Now a static function.  Redo signature to
50627         implement xstrtol_fatal.  Output the correct number of hyphens in
50628         front of the option so that the caller need not worry about
50629         storage management.
50630         (N_): New macro.
50631         (_): Remove; not used now.
50632         * modules/xstrtol: Depend on getopt.
50633         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50634         of old STRTOL_FATAL_ERROR macro.
50635         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50636         of test program.
50637         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50638         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50639
50640 2007-08-08  Eric Blake  <ebb9@byu.net>
50641
50642         * lib/xstrtol-error.c: Add missing include.
50643
50644         Move xstrtol messages into gnulib domain, when --pobase is used.
50645         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50646         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50647         * modules/xstrtol (Files): Distribute new file.
50648         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50649         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50650         * tests/test-xstrtol.c: ...into new file.
50651         * tests/test-xstrtoul.c: Also test xstrtoul.
50652         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50653         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50654         * tests/test-xstrtol.sh: Drive the tests.
50655         * tests/test-xstrtoimax.sh: Likewise.
50656         * tests/test-xstrtoumax.sh: Likewise.
50657         * modules/xstrtol-tests: New module.
50658         * modules/xstrtoimax-tests: Likewise.
50659         * modules/xstrtoumax-tests: Likewise.
50660
50661 2007-08-08  Jim Meyering  <jim@meyering.net>
50662
50663         New function: mfile_name_concat.
50664         * lib/filenamecat.c (mfile_name_concat): New function, just like
50665         file_name_concat, but return NULL upon failure rather than exiting
50666         with a diagnostic.
50667         * lib/filenamecat.h: Declare it.
50668
50669 2007-08-07  Bruno Haible  <bruno@clisp.org>
50670
50671         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50672         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50673         warning from gcc.
50674         Reported by Eric Blake.
50675
50676 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50677
50678         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50679         * modules/crypto/arcfour (License): Likewise.
50680         * modules/crypto/des-tests (License): Likewise.
50681         * modules/crypto/gc-arctwo-tests (License): Likewise.
50682         * modules/crypto/gc-des-tests (License): Likewise.
50683         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50684         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50685         * modules/crypto/gc-md2-tests (License): Likewise.
50686         * modules/crypto/gc-md4-tests (License): Likewise.
50687         * modules/crypto/gc-md5-tests (License): Likewise.
50688         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50689         * modules/crypto/gc-rijndael-tests (License): Likewise.
50690         * modules/crypto/gc-sha1-tests (License): Likewise.
50691         * modules/crypto/gc-tests (License): Likewise.
50692         * modules/crypto/hmac-md5 (License): Likewise.
50693         * modules/crypto/hmac-sha1 (License): Likewise.
50694         * modules/crypto/md2-tests (License): Likewise.
50695         * modules/crypto/md4-tests (License): Likewise.
50696         * modules/crypto/md5 (License): Likewise.
50697         * modules/crypto/rijndael (License): Likewise.
50698         * modules/crypto/sha1 (License): Likewise.
50699         * modules/memxor (License): Likewise.
50700
50701 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50702         and Bruno Haible  <bruno@clisp.org>
50703
50704         * NEWS: Describe interface changes to human, xstrtol.
50705         * lib/human.h: Include <xstrtol.h>.
50706         (human_options): Return enum strtol_error, not int.  Remove
50707         bool arg; take int * instead.
50708         * lib/human.c: Don't include "gettext.h".
50709         (_): Remove; no longer used.
50710         Don't include <xstrtol.h>, since human.h does it.
50711         (human_options): Adjust to abovementioned interface changes.
50712         Do not report error to stderr; that's now the caller's
50713         responsibility.
50714         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50715         interface change.
50716         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50717         Str, Argument_type_string.  All uses changed.  Put " argument"
50718         in diagnostics to make them clearer.  Change wording of suffix
50719         message for clarity.
50720         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50721         Argument_type_string.
50722         (STRTOL_FATAL_WARN): Remove; no longer used.
50723         * modules/human (Depends-on): Remove gettext-h.
50724
50725 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50726
50727         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50728
50729 2007-07-31  Bruno Haible  <bruno@clisp.org>
50730
50731         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50732         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50733         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50734
50735 2007-07-31  Bruno Haible  <bruno@clisp.org>
50736
50737         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50738         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50739
50740 2007-07-30  Bruno Haible  <bruno@clisp.org>
50741
50742         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50743         * modules/c-ctype (License): Likewise.
50744         * modules/c-strcase (License): Likewise.
50745         * modules/check-version (License): Likewise.
50746         * modules/iconv (License): Likewise.
50747         * modules/iconv_open (License): Likewise.
50748         * modules/read-file (License): Likewise.
50749         * modules/striconv (License): Likewise.
50750         * modules/strverscmp (License): Likewise.
50751         * modules/vasprintf (License): Likewise.
50752         * modules/crypto/des (License): Likewise.
50753         * modules/crypto/gc (License): Likewise.
50754         * modules/crypto/gc-arcfour (License): Likewise.
50755         * modules/crypto/gc-arctwo (License): Likewise.
50756         * modules/crypto/gc-des (License): Likewise.
50757         * modules/crypto/gc-hmac-md5 (License): Likewise.
50758         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50759         * modules/crypto/gc-md2 (License): Likewise.
50760         * modules/crypto/gc-md4 (License): Likewise.
50761         * modules/crypto/gc-md5 (License): Likewise.
50762         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50763         * modules/crypto/gc-random (License): Likewise.
50764         * modules/crypto/gc-rijndael (License): Likewise.
50765         * modules/crypto/gc-sha1 (License): Likewise.
50766         * modules/crypto/md2 (License): Likewise.
50767         * modules/crypto/md4 (License): Likewise.
50768
50769 2007-07-30  Jim Meyering  <jim@meyering.net>
50770
50771         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50772         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50773         it has valid stat data.  This bug would cause du not to count the
50774         sizes of inaccessible directories.
50775         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50776         in <http://bugzilla.redhat.com/250077>.
50777
50778 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50779             Bruno Haible  <bruno@clisp.org>
50780
50781         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50782         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50783         #include_next, gives a diagnostic about it, but reports no error in
50784         the exit code.
50785         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50786
50787 2007-07-24  Ben Pfaff  <blp@gnu.org>
50788
50789         Improve name: "count-one-bits" is better than "popcount".
50790         * MODULES.html.sh: Update name.
50791         * lib/popcount.h: Renamed lib/count-one-bits.h.
50792         (popcount): Renamed count_one_bits.
50793         (popcountl): Renamed count_one_bits_l.
50794         (popcountll): Renamed count_one_bits_ll.
50795         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50796         * modules/popcount: Renamed module/count-one-bits.
50797         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50798         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50799
50800 2007-07-23  Ben Pfaff  <blp@gnu.org>
50801
50802         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50803         better code generation, and add U to large constants to avoid
50804         warnings, in non-GCC case.
50805         Suggested by Bruno Haible.
50806
50807 2007-07-23  Ben Pfaff  <blp@gnu.org>
50808
50809         * lib/popcount.h: Use verify_true instead of if...abort.
50810         * modules/popcount: Depend on verify module.
50811         Suggested by Jim Meyering.
50812
50813 2007-07-23  Bruno Haible  <bruno@clisp.org>
50814
50815         * gnulib-tool (func_import): Create a .cvsignore file also when the
50816         directory is not yet in CVS but the toplevel directory is. When
50817         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50818         Reported by Karl Berry.
50819
50820 2007-07-22  Ben Pfaff  <blp@gnu.org>
50821
50822         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50823         case.
50824         Suggested by Eric Blake.
50825
50826 2007-07-22  Ben Pfaff  <blp@gnu.org>
50827
50828         New module: popcount.
50829         * MODULES.html.sh: Add popcount.
50830         * modules/popcount: New file.
50831         * modules/popcount-tests: New file.
50832         * tests/test-popcount.c: New file.
50833         * lib/popcount.h: New file.
50834         * m4/popcount.m4: New file.
50835
50836 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50837
50838         * build-aux/announce-gen: Update to GPLv3.
50839
50840         * build-aux/config.guess: Update from config.
50841
50842 2007-07-21  Bruno Haible  <bruno@clisp.org>
50843
50844         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50845         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50846
50847 2007-07-20  Jim Meyering  <jim@meyering.net>
50848
50849         * check-module: Diagnose a self-dependency.
50850
50851 2007-07-19  Bruno Haible  <bruno@clisp.org>
50852
50853         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50854         empty.
50855         Reported by Eric Blake.
50856
50857 2007-07-18  Bruno Haible  <bruno@clisp.org>
50858
50859         * gnulib-tool: New options --po-base, --po-domain.
50860         (func_usage): Document them.
50861         (pobase, po_domain): New variables.
50862         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50863         DEFAULT_TEXT_DOMAIN.
50864         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50865         (func_import): Consider pobase and po_domain. Create a po/ directory.
50866         (func_create_testdir): Set pobase and po_domain to empty.
50867         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50868         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50869
50870 2007-07-18  Bruno Haible  <bruno@clisp.org>
50871
50872         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50873         EXTRA_DIST augmentation for files in build-aux/.
50874
50875 2007-07-16  Bruno Haible  <bruno@clisp.org>
50876
50877         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50878         * modules/getdelim (License): Likewise.
50879
50880 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50881
50882         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50883         * modules/d-type (License): Likewise.
50884         * modules/extensions (License): Likewise.
50885         * modules/fnmatch (License): Likewise.
50886         * modules/fseeko (License): Likewise.
50887         * modules/getaddrinfo (License): Likewise.
50888         * modules/getline (License): Likewise.
50889         * modules/getlogin_r (License): Likewise.
50890         * modules/getpass (License): Likewise.
50891         * modules/gettimeofday (License): Likewise.
50892         * modules/glob (License): Likewise.
50893         * modules/inet_ntop (License): Likewise.
50894         * modules/malloc (License): Likewise.
50895         * modules/malloca (License): Likewise.
50896         * modules/memmem (License): Likewise.
50897         * modules/mempcpy (License): Likewise.
50898         * modules/memset (License): Likewise.
50899         * modules/minmax (License): Likewise.
50900         * modules/mktime (License): Likewise.
50901         * modules/netinet_in (License): Likewise.
50902         * modules/pathmax (License): Likewise.
50903         * modules/poll (License): Likewise.
50904         * modules/regex (License): Likewise.
50905         * modules/snprintf (License): Likewise.
50906         * modules/stdbool (License): Likewise.
50907         * modules/stdint (License): Likewise.
50908         * modules/stdio (License): Likewise.
50909         * modules/strcase (License): Likewise.
50910         * modules/strcasestr (License): Likewise.
50911         * modules/strdup (License): Likewise.
50912         * modules/string (License): Likewise.
50913         * modules/strndup (License): Likewise.
50914         * modules/strnlen (License): Likewise.
50915         * modules/strpbrk (License): Likewise.
50916         * modules/strptime (License): Likewise.
50917         * modules/strsep (License): Likewise.
50918         * modules/sys_select (License): Likewise.
50919         * modules/sys_socket (License): Likewise.
50920         * modules/sys_stat (License): Likewise.
50921         * modules/sys_time (License): Likewise.
50922         * modules/time (License): Likewise.
50923         * modules/time_r (License): Likewise.
50924         * modules/timegm (License): Likewise.
50925         * modules/unistd (License): Likewise.
50926         * modules/vsnprintf (License): Likewise.
50927         * modules/wctype (License): Likewise.
50928
50929 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50930
50931         * modules/argz (License): LGPLv2+.
50932
50933 2007-07-15  Karl Berry  <karl@gnu.org>
50934
50935         * doc/gnulib.texi: revise node structure per new fdl.texi.
50936
50937 2007-07-14  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50940         the output file.
50941         * lib/uniname/uninames.h: Regenerated.
50942
50943 2007-07-14  Karl Berry  <karl@gnu.org>
50944
50945         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50946         omitting sectioning and index commands.
50947
50948 2007-07-13  Bruno Haible  <bruno@clisp.org>
50949
50950         New gnulib-tool option --more-symlinks.
50951         * gnulib-tool (func_usage): Document --more-symlinks.
50952         (do_copyrights): New variable.
50953         Recognize option --more-symlinks.
50954         (func_import): Don't add a copyright notice transform to
50955         sed_transform_lib_file if do_copyrights is empty.
50956
50957 2007-07-13  Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/vasnprintf.c (decimal_point_char): Define also if
50960         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50961         && !NEED_PRINTF_DIRECTIVE_A.
50962         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50963         Gary V. Vaughan <gary@gnu.org>.
50964
50965 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * lib/inttypes_.h: Undo previous change, since it was fixed
50968         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50969
50970 2007-07-13  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50973         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50974
50975 2007-07-13  Jim Meyering  <jim@meyering.net>
50976
50977         df: Don't fail for Tru64's "file-on-file mount".
50978         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50979         so we fall through and use statfs instead.  Details here:
50980         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50981         Reported by Albert Chin.
50982
50983 2007-07-13  Bruno Haible  <bruno@clisp.org>
50984
50985         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50986         * modules/configmake (License): Likewise.
50987         * modules/gettext (License): Likewise.
50988         * modules/gettext-h (License): Likewise.
50989         * modules/include_next (License): Likewise.
50990         * modules/link-warning (License): Likewise.
50991         * modules/localcharset (License): Likewise.
50992         * modules/localename (License): Likewise.
50993         * modules/lock (License): Likewise.
50994         * modules/relocatable-lib-lgpl (License): Likewise.
50995         * modules/size_max (License): Likewise.
50996         * modules/vasnprintf (License): Likewise.
50997         * modules/wchar (License): Likewise.
50998         * modules/xsize (License): Likewise.
50999
51000 2007-07-13  Bruno Haible  <bruno@clisp.org>
51001
51002         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51003         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51004
51005 2007-07-12  Bruno Haible  <bruno@clisp.org>
51006
51007         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51008         in the modules files.
51009
51010 2007-07-11  Karl Berry  <karl@gnu.org>
51011
51012         * MODULES.html.sh (func_module): use
51013          sed -e '\|^'"${includefile}"'$|d'
51014          instead of /.../d, to avoid errors on $includefile's containing /.
51015
51016 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51017
51018         * gnulib-tool (func_import): Avoid duplication of --avoid
51019         statements
51020         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51021         names to `_' in variable names.
51022
51023 2007-07-10  Eric Blake  <ebb9@byu.net>
51024
51025         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51026         * NEWS: Document this change.
51027
51028 2007-07-08  Bruno Haible  <bruno@clisp.org>
51029
51030         Update to Unicode 5.0.
51031         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51032         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51033         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51034         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51035         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51036         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51037         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51038         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51039         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51040         U+10A3F, U+1D242..U+1D244.
51041         (nonspacing_table_ind): Update.
51042         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51043         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51044
51045 2007-07-08  Bruno Haible  <bruno@clisp.org>
51046
51047         Update to Unicode 5.0.
51048         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51049         code transform. Extend the name index field of unicode_name_to_code and
51050         unicode_code_to_name from 16 to 24 bits.
51051         * lib/uniname/uniname.c (unicode_character_name,
51052         unicode_name_character): Add the range 0x12xxx to the code transform.
51053         * lib/uniname/uninames.h: Regenerated.
51054         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51055
51056 2007-07-07  Bruno Haible  <bruno@clisp.org>
51057
51058         * modules/wcwidth-tests: New file.
51059         * tests/test-wcwidth.c: New file.
51060
51061         Work around MacOS X wcwidth() bug.
51062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51063         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51064         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51065         original wcwidth in non-UTF-8 locales.
51066         * modules/wcwidth (Depends-on): Add localcharset, streq,
51067         uniwidth/width.
51068         * doc/functions/wcwidth.texi: Update.
51069
51070 2007-07-07  Bruno Haible  <bruno@clisp.org>
51071
51072         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51073         (wcwidth): New declaration.
51074         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51075         macros.
51076         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51077         here. Prepare for creating <wchar.h> unconditionally.
51078         * modules/wchar (Depends-on): Add link-warning.
51079         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51080         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51081         * lib/wcwidth.h: Remove file.
51082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51083         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51084         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51085         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51086         (Include): Replace wcwidth.h with <wchar.h>.
51087         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51088         * lib/mbchar.h: Don't include wcwidth.h.
51089         * lib/mbswidth.c: Likewise.
51090         * NEWS: Mention the change.
51091
51092 2007-07-07  Bruno Haible  <bruno@clisp.org>
51093
51094         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51095         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51096         definition with an external declaration.
51097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51098         defined as a function. Remove AC_C_INLINE requirement.
51099         * modules/wcwidth (Files): Add lib/wcwidth.c.
51100         (Makefile.am): Remove redundant statement.
51101
51102 2007-07-07  Bruno Haible  <bruno@clisp.org>
51103
51104         * MODULES.html.sh (Unicode string functions): Add the new modules.
51105
51106         * tests/uniwidth/test-u32-strwidth.c: New file.
51107         * modules/uniwidth/u32-strwidth-tests: New file.
51108
51109         * lib/uniwidth/u32-strwidth.c: New file.
51110         * modules/uniwidth/u32-strwidth: New file.
51111
51112         * tests/uniwidth/test-u16-strwidth.c: New file.
51113         * modules/uniwidth/u16-strwidth-tests: New file.
51114
51115         * lib/uniwidth/u16-strwidth.c: New file.
51116         * modules/uniwidth/u16-strwidth: New file.
51117
51118         * tests/uniwidth/test-u8-strwidth.c: New file.
51119         * modules/uniwidth/u8-strwidth-tests: New file.
51120
51121         * lib/uniwidth/u8-strwidth.c: New file.
51122         * modules/uniwidth/u8-strwidth: New file.
51123
51124         * tests/uniwidth/test-u32-width.c: New file.
51125         * modules/uniwidth/u32-width-tests: New file.
51126
51127         * lib/uniwidth/u32-width.c: New file.
51128         * modules/uniwidth/u32-width: New file.
51129
51130         * tests/uniwidth/test-u16-width.c: New file.
51131         * modules/uniwidth/u16-width-tests: New file.
51132
51133         * lib/uniwidth/u16-width.c: New file.
51134         * modules/uniwidth/u16-width: New file.
51135
51136         * tests/uniwidth/test-u8-width.c: New file.
51137         * modules/uniwidth/u8-width-tests: New file.
51138
51139         * lib/uniwidth/u8-width.c: New file.
51140         * modules/uniwidth/u8-width: New file.
51141
51142         * tests/uniwidth/test-uc_width.c: New file.
51143         * modules/uniwidth/width-tests: New file.
51144
51145         * lib/uniwidth/width.c: New file, from GNU libiconv.
51146         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51147         * modules/uniwidth/width: New file.
51148
51149         * lib/uniwidth.h: New file, from GNU libiconv.
51150         * modules/uniwidth/base: New file.
51151
51152 2007-07-07  Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/uniname.h: New file, from GNU gettext.
51155         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51156         * lib/uniname/uninames.h: New file, from GNU gettext.
51157         * lib/uniname/uniname.c: New file, from GNU gettext.
51158         * tests/uniname/test-uninames.sh: New file.
51159         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51160         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51161         * modules/uniname/base: New file.
51162         * modules/uniname/uniname: New file.
51163         * modules/uniname/uniname-tests: New file.
51164         * MODULES.html.sh (Unicode string functions): Add the new modules.
51165
51166 2007-07-06  Bruno Haible  <bruno@clisp.org>
51167
51168         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51169
51170 2007-07-06  Bruno Haible  <bruno@clisp.org>
51171
51172         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51173         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51174         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51175         include <sys/time.h>.
51176         Reported by Eric Blake.
51177
51178 2007-07-06  Eric Blake  <ebb9@byu.net>
51179
51180         Fix testing canonicalize on cygwin.
51181         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51182         Revert patch from 2007-06-19.
51183         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51184         canonicalize module is also in use.
51185         * tests/test-canonicalize.c: New file.
51186         * tests/test-canonicalize.sh: Likewise.
51187         * modules/canonicalize-tests: Likewise.
51188
51189 2007-07-06  Jim Meyering  <jim@meyering.net>
51190
51191         * lib/getugroups.c (getugroups): Detect getgrent failure.
51192         Adjust comment to reflect reality: this function may return -1.
51193
51194 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51195
51196         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51197         the new TP address.
51198         (usage): Fix typo
51199         (gnulib_mk): New variable.
51200
51201 2007-07-05  Jim Meyering  <jim@meyering.net>
51202
51203         Don't let endgrent clobber errno, no matter how improbable.
51204         * lib/getugroups.c (getugroups): Save and restore errno around
51205         endgrent call.
51206
51207         Close the group DB even when failing with 2^31 or more members.
51208         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51209
51210 2007-07-04  Jim Meyering  <jim@meyering.net>
51211
51212         * lib/getugroups.h: New file.
51213         * lib/getugroups.c: Include "getugroups.h".
51214         Remove uses of "register" keyword.
51215         Move local variable, "cp", down into scope where used.
51216         Give "username" parameter the "const" attribute.
51217         * modules/getugroups (Files): Add lib/getugroups.h
51218
51219 2007-07-04  Karl Berry  <karl@gnu.org>
51220
51221         * MODULES.html.sh (func_all_modules): Complete rename of
51222         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51223
51224 2007-07-02  Bruno Haible  <bruno@clisp.org>
51225
51226         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51227         mode, when inttypes.h comes from gnulib.
51228         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51229
51230 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51231
51232         * NEWS: Mention lgpl module name change.
51233
51234         * modules/lgpl-2.1: Renamed from lgpl.
51235
51236         * NEWS: Mention gpl module name change.
51237
51238         * modules/gpl-3.0: New file, based on gpl-2.0.
51239
51240         * modules/gpl-2.0: Renamed from gpl.
51241
51242         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51243         doc/gpl-2.0.texi.
51244
51245 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51248         #define __STDC_LIMIT_MACROS temporarily while including
51249         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51250         Problem reported by Joel E. Denny in
51251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51252
51253 2007-07-01  Bruno Haible  <bruno@clisp.org>
51254
51255         * lib/unistdio.h: New file.
51256         * lib/unistdio/u-asnprintf.h: New file.
51257         * lib/unistdio/u-asprintf.h: New file.
51258         * lib/unistdio/u-printf-args.c: New file.
51259         * lib/unistdio/u-printf-args.h: New file.
51260         * lib/unistdio/u-printf-parse.h: New file.
51261         * lib/unistdio/u-snprintf.h: New file.
51262         * lib/unistdio/u-sprintf.h: New file.
51263         * lib/unistdio/u-vasprintf.h: New file.
51264         * lib/unistdio/u-vsnprintf.h: New file.
51265         * lib/unistdio/u-vsprintf.h: New file.
51266         * lib/unistdio/ulc-asnprintf.c: New file.
51267         * lib/unistdio/ulc-asprintf.c: New file.
51268         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51269         * lib/unistdio/ulc-printf-parse.c: New file.
51270         * lib/unistdio/ulc-snprintf.c: New file.
51271         * lib/unistdio/ulc-sprintf.c: New file.
51272         * lib/unistdio/ulc-vasnprintf.c: New file.
51273         * lib/unistdio/ulc-vasprintf.c: New file.
51274         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51275         * lib/unistdio/ulc-vsnprintf.c: New file.
51276         * lib/unistdio/ulc-vsprintf.c: New file.
51277         * lib/unistdio/u8-asnprintf.c: New file.
51278         * lib/unistdio/u8-asprintf.c: New file.
51279         * lib/unistdio/u8-printf-parse.c: New file.
51280         * lib/unistdio/u8-snprintf.c: New file.
51281         * lib/unistdio/u8-sprintf.c: New file.
51282         * lib/unistdio/u8-vasnprintf.c: New file.
51283         * lib/unistdio/u8-vasprintf.c: New file.
51284         * lib/unistdio/u8-vsnprintf.c: New file.
51285         * lib/unistdio/u8-vsprintf.c: New file.
51286         * lib/unistdio/u8-u8-asnprintf.c: New file.
51287         * lib/unistdio/u8-u8-asprintf.c: New file.
51288         * lib/unistdio/u8-u8-snprintf.c: New file.
51289         * lib/unistdio/u8-u8-sprintf.c: New file.
51290         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51291         * lib/unistdio/u8-u8-vasprintf.c: New file.
51292         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51293         * lib/unistdio/u8-u8-vsprintf.c: New file.
51294         * lib/unistdio/u16-asnprintf.c: New file.
51295         * lib/unistdio/u16-asprintf.c: New file.
51296         * lib/unistdio/u16-printf-parse.c: New file.
51297         * lib/unistdio/u16-snprintf.c: New file.
51298         * lib/unistdio/u16-sprintf.c: New file.
51299         * lib/unistdio/u16-vasnprintf.c: New file.
51300         * lib/unistdio/u16-vasprintf.c: New file.
51301         * lib/unistdio/u16-vsnprintf.c: New file.
51302         * lib/unistdio/u16-vsprintf.c: New file.
51303         * lib/unistdio/u16-u16-asnprintf.c: New file.
51304         * lib/unistdio/u16-u16-asprintf.c: New file.
51305         * lib/unistdio/u16-u16-snprintf.c: New file.
51306         * lib/unistdio/u16-u16-sprintf.c: New file.
51307         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51308         * lib/unistdio/u16-u16-vasprintf.c: New file.
51309         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51310         * lib/unistdio/u16-u16-vsprintf.c: New file.
51311         * lib/unistdio/u32-asnprintf.c: New file.
51312         * lib/unistdio/u32-asprintf.c: New file.
51313         * lib/unistdio/u32-printf-parse.c: New file.
51314         * lib/unistdio/u32-snprintf.c: New file.
51315         * lib/unistdio/u32-sprintf.c: New file.
51316         * lib/unistdio/u32-vasnprintf.c: New file.
51317         * lib/unistdio/u32-vasprintf.c: New file.
51318         * lib/unistdio/u32-vsnprintf.c: New file.
51319         * lib/unistdio/u32-vsprintf.c: New file.
51320         * lib/unistdio/u32-u32-asnprintf.c: New file.
51321         * lib/unistdio/u32-u32-asprintf.c: New file.
51322         * lib/unistdio/u32-u32-snprintf.c: New file.
51323         * lib/unistdio/u32-u32-sprintf.c: New file.
51324         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51325         * lib/unistdio/u32-u32-vasprintf.c: New file.
51326         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51327         * lib/unistdio/u32-u32-vsprintf.c: New file.
51328         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51329         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51330         * tests/unistdio/test-ulc-printf1.h: New file.
51331         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51332         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51333         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51334         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51335         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51336         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51337         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51338         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51339         * tests/unistdio/test-u8-asnprintf1.c: New file.
51340         * tests/unistdio/test-u8-asnprintf1.h: New file.
51341         * tests/unistdio/test-u8-printf1.h: New file.
51342         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51343         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51344         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51345         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51346         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51347         * tests/unistdio/test-u8-vasprintf1.c: New file.
51348         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51349         * tests/unistdio/test-u8-vsprintf1.c: New file.
51350         * tests/unistdio/test-u16-asnprintf1.c: New file.
51351         * tests/unistdio/test-u16-asnprintf1.h: New file.
51352         * tests/unistdio/test-u16-printf1.h: New file.
51353         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51354         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51355         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51356         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51357         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51358         * tests/unistdio/test-u16-vasprintf1.c: New file.
51359         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51360         * tests/unistdio/test-u16-vsprintf1.c: New file.
51361         * tests/unistdio/test-u32-asnprintf1.c: New file.
51362         * tests/unistdio/test-u32-asnprintf1.h: New file.
51363         * tests/unistdio/test-u32-printf1.h: New file.
51364         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51365         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51366         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51367         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51368         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51369         * tests/unistdio/test-u32-vasprintf1.c: New file.
51370         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51371         * tests/unistdio/test-u32-vsprintf1.c: New file.
51372         * modules/unistdio/base: New file.
51373         * modules/unistdio/u-printf-args: New file.
51374         * modules/unistdio/ulc-asnprintf: New file.
51375         * modules/unistdio/ulc-asprintf: New file.
51376         * modules/unistdio/ulc-fprintf: New file.
51377         * modules/unistdio/ulc-printf-parse: New file.
51378         * modules/unistdio/ulc-snprintf: New file.
51379         * modules/unistdio/ulc-sprintf: New file.
51380         * modules/unistdio/ulc-vasnprintf: New file.
51381         * modules/unistdio/ulc-vasprintf: New file.
51382         * modules/unistdio/ulc-vfprintf: New file.
51383         * modules/unistdio/ulc-vsnprintf: New file.
51384         * modules/unistdio/ulc-vsprintf: New file.
51385         * modules/unistdio/u8-asnprintf: New file.
51386         * modules/unistdio/u8-asprintf: New file.
51387         * modules/unistdio/u8-printf-parse: New file.
51388         * modules/unistdio/u8-snprintf: New file.
51389         * modules/unistdio/u8-sprintf: New file.
51390         * modules/unistdio/u8-vasnprintf: New file.
51391         * modules/unistdio/u8-vasprintf: New file.
51392         * modules/unistdio/u8-vsnprintf: New file.
51393         * modules/unistdio/u8-vsprintf: New file.
51394         * modules/unistdio/u8-u8-asnprintf: New file.
51395         * modules/unistdio/u8-u8-asprintf: New file.
51396         * modules/unistdio/u8-u8-snprintf: New file.
51397         * modules/unistdio/u8-u8-sprintf: New file.
51398         * modules/unistdio/u8-u8-vasnprintf: New file.
51399         * modules/unistdio/u8-u8-vasprintf: New file.
51400         * modules/unistdio/u8-u8-vsnprintf: New file.
51401         * modules/unistdio/u8-u8-vsprintf: New file.
51402         * modules/unistdio/u16-asnprintf: New file.
51403         * modules/unistdio/u16-asprintf: New file.
51404         * modules/unistdio/u16-printf-parse: New file.
51405         * modules/unistdio/u16-snprintf: New file.
51406         * modules/unistdio/u16-sprintf: New file.
51407         * modules/unistdio/u16-vasnprintf: New file.
51408         * modules/unistdio/u16-vasprintf: New file.
51409         * modules/unistdio/u16-vsnprintf: New file.
51410         * modules/unistdio/u16-vsprintf: New file.
51411         * modules/unistdio/u16-u16-asnprintf: New file.
51412         * modules/unistdio/u16-u16-asprintf: New file.
51413         * modules/unistdio/u16-u16-snprintf: New file.
51414         * modules/unistdio/u16-u16-sprintf: New file.
51415         * modules/unistdio/u16-u16-vasnprintf: New file.
51416         * modules/unistdio/u16-u16-vasprintf: New file.
51417         * modules/unistdio/u16-u16-vsnprintf: New file.
51418         * modules/unistdio/u16-u16-vsprintf: New file.
51419         * modules/unistdio/u32-asnprintf: New file.
51420         * modules/unistdio/u32-asprintf: New file.
51421         * modules/unistdio/u32-printf-parse: New file.
51422         * modules/unistdio/u32-snprintf: New file.
51423         * modules/unistdio/u32-sprintf: New file.
51424         * modules/unistdio/u32-vasnprintf: New file.
51425         * modules/unistdio/u32-vasprintf: New file.
51426         * modules/unistdio/u32-vsnprintf: New file.
51427         * modules/unistdio/u32-vsprintf: New file.
51428         * modules/unistdio/u32-u32-asnprintf: New file.
51429         * modules/unistdio/u32-u32-asprintf: New file.
51430         * modules/unistdio/u32-u32-snprintf: New file.
51431         * modules/unistdio/u32-u32-sprintf: New file.
51432         * modules/unistdio/u32-u32-vasnprintf: New file.
51433         * modules/unistdio/u32-u32-vasprintf: New file.
51434         * modules/unistdio/u32-u32-vsnprintf: New file.
51435         * modules/unistdio/u32-u32-vsprintf: New file.
51436         * modules/unistdio/ulc-asnprintf-tests: New file.
51437         * modules/unistdio/ulc-vasnprintf-tests: New file.
51438         * modules/unistdio/ulc-vasprintf-tests: New file.
51439         * modules/unistdio/ulc-vsnprintf-tests: New file.
51440         * modules/unistdio/ulc-vsprintf-tests: New file.
51441         * modules/unistdio/u8-asnprintf-tests: New file.
51442         * modules/unistdio/u8-vasnprintf-tests: New file.
51443         * modules/unistdio/u8-vasprintf-tests: New file.
51444         * modules/unistdio/u8-vsnprintf-tests: New file.
51445         * modules/unistdio/u8-vsprintf-tests: New file.
51446         * modules/unistdio/u16-asnprintf-tests: New file.
51447         * modules/unistdio/u16-vasnprintf-tests: New file.
51448         * modules/unistdio/u16-vasprintf-tests: New file.
51449         * modules/unistdio/u16-vsnprintf-tests: New file.
51450         * modules/unistdio/u16-vsprintf-tests: New file.
51451         * modules/unistdio/u32-asnprintf-tests: New file.
51452         * modules/unistdio/u32-vasnprintf-tests: New file.
51453         * modules/unistdio/u32-vasprintf-tests: New file.
51454         * modules/unistdio/u32-vsnprintf-tests: New file.
51455         * modules/unistdio/u32-vsprintf-tests: New file.
51456         * MODULES.html.sh (Unicode string functions): Add the new modules.
51457
51458 2007-07-01  Bruno Haible  <bruno@clisp.org>
51459
51460         * lib/sprintf.c (sprintf): Limit the available length estimation,
51461         to avoid address wraparound.
51462         * lib/vsprintf.c (vsprintf): Likewise.
51463         * modules/sprintf-posix (Dependencies): Add stdint.
51464         * modules/vsprintf-posix (Dependencies): Likewise.
51465
51466 2007-07-01  Bruno Haible  <bruno@clisp.org>
51467
51468         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51469         Windows PATH as well. Conservative double-quoting. Comments.
51470
51471 2007-07-01  Bruno Haible  <bruno@clisp.org>
51472             Eric Blake  <ebb9@byu.net>
51473             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51474
51475         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51476         empty components in $PATH, denoting '.'.
51477
51478 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51479
51480         * gnulib-tool: Fix indentation.
51481         (func_create_megatestdir): Likewise.
51482         Report by Bruno Haible.
51483
51484 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51485
51486         Sync from Automake.
51487         * build-aux/gnupload: Fix shell portability issues with for loops.
51488         Report by Karl Berry.
51489
51490 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51491
51492         * build-aux/maint.mk (POURL): Use translationproject.org.
51493
51494 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51495             Bruno Haible  <bruno@clisp.org>
51496
51497         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51498         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51499         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51500         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51501         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51502
51503 2007-06-27  Bruno Haible  <bruno@clisp.org>
51504
51505         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51506         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51507
51508 2007-06-26  Karl Berry  <karl@gnu.org>
51509
51510         * MODULES.html.sh: remove xreadlink-with-size.
51511
51512 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51513
51514         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51515         method that I hope also handles the double-include problem noted
51516         by Bruno Haible in
51517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51518
51519 2007-06-23  Bruno Haible  <bruno@clisp.org>
51520
51521         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51522         Don't let the 'mostlyclean' target fail if the last subdirectory could
51523         not be removed.
51524         Reported by Karl Berry.
51525
51526 2007-06-23  Bruno Haible  <bruno@clisp.org>
51527
51528         * gnulib-tool (echo): Add a speedier workaround for ksh.
51529         * tests/test-echo.sh: Likewise.
51530
51531 2007-06-23  Bruno Haible  <bruno@clisp.org>
51532
51533         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51534         * tests/test-echo.sh: Likewise.
51535
51536 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51537
51538         * gnulib-tool (IFS): Initialize early, so we don't set it to
51539         empty later.
51540         (self_abspathname): Rewrite algorithm to set it, reindent.
51541         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51542         (func_create_megatestdir): Merge some sed scripts.
51543
51544 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51545
51546         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51547         exposed by Sun Studio 11 cc on Solaris 8.
51548
51549 2007-06-22  Bruno Haible  <bruno@clisp.org>
51550
51551         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51552         backslashes.
51553         * tests/test-echo.sh: New file.
51554
51555 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51556
51557         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51558         simplify `sed_replace_build_aux' scripts, they are portable but
51559         echoing them with `echo' is not.
51560         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51561
51562 2007-06-21  Karl Berry  <karl@gnu.org>
51563
51564         * config/srclist.txt: guess we can't handle the licenses via
51565         srclist at the moment.
51566
51567 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         * MODULES.html.sh: Add include_next.
51570         * modules/include_next: New file.
51571
51572 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51573
51574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51575         INCLUDE_NEXT.
51576         (gl_CHECK_NEXT_HEADERS): New macro.
51577         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51578         the obsolescent gl_ABSOLUTE_HEADER.
51579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51580         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51581         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51582         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51583         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51584         * m4/math_h.m4 (gl_MATH_H): Likewise.
51585         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51586         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51587         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51588         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51589         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51590         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51591         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51595         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51596         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51597         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51598         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51599         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51600         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51601         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51602         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51603         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51604         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51605         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51606         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51607         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51608         * lib/float_.h: Likewise.
51609         * lib/inttypes_.h: Likewise.
51610         * lib/math_.h: Likewise.
51611         * lib/search_.h: Likewise.
51612         * lib/signal_.h: Likewise.
51613         * lib/stdint_.h: Likewise.
51614         * lib/stdio_.h: Likewise.
51615         * lib/stdlib_.h: Likewise.
51616         * lib/string_.h: Likewise.
51617         * lib/sys_stat_.h: Likewise.
51618         * lib/sys_time_.h: Likewise.
51619         * lib/time_.h: Likewise.
51620         * lib/unistd_.h: Likewise.
51621         * lib/wchar_.h: Likewise.
51622         * lib/wctype_.h: Likewise.
51623         * lib/dirent_.h: Likewise.
51624         * lib/iconv_.h: Likewise.
51625         * lib/locale_.h: Likewise.
51626         * lib/netinet_in_.h: Likewise.
51627         * lib/sys_select_.h: Likewise.
51628         * lib/sys_socket_.h: Likewise.
51629         * lib/sysexits_.h: Likewise.
51630         * modules/fcntl (Depends-on): Depend on include_next, not
51631         absolute_header.
51632         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51633         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51634         * modules/fchdir: Likewise.
51635         * modules/float: Likewise.
51636         * modules/iconv_open: Likewise.
51637         * modules/inttypes: Likewise.
51638         * modules/locale: Likewise.
51639         * modules/math: Likewise.
51640         * modules/netinet_in: Likewise.
51641         * modules/search: Likewise.
51642         * modules/signal: Likewise.
51643         * modules/stdint: Likewise.
51644         * modules/stdio: Likewise.
51645         * modules/stdlib: Likewise.
51646         * modules/string: Likewise.
51647         * modules/sys_select: Likewise.
51648         * modules/sys_socket: Likewise.
51649         * modules/sys_stat: Likewise.
51650         * modules/sys_time: Likewise.
51651         * modules/sysexits: Likewise.
51652         * modules/time: Likewise.
51653         * modules/unistd: Likewise.
51654         * modules/wchar: Likewise.
51655         * modules/wctype: Likewise.
51656         * modules/sys_stat: Change maintainer to "all".
51657         * modules/unistd: Likewise.
51658
51659 2007-06-20  Karl Berry  <karl@gnu.org>
51660
51661         * config/srclist.txt: track www changes in license files.
51662
51663 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51664
51665         * build-aux/bootstrap: Remove stray dot.
51666         Make sure build_aux settings are honored when linking
51667         gnulib_extra_files.
51668
51669 2007-06-19  Eric Blake  <ebb9@byu.net>
51670
51671         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51672         Allow compilation on cygwin.
51673
51674 2007-06-19  Jim Meyering  <jim@meyering.net>
51675
51676         xreadlink-with-size: Remove module.  No longer used.
51677         Ex-callers now use xreadlink or mreadlink-with-size.
51678         * modules/xreadlink-with-size: Remove module.
51679         * lib/xreadlink-with-size.c: Remove file.
51680         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51681         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51682         just before the function definition *is* accurate.
51683
51684         Eliminate one way canonicalize_filename_mode could exit.
51685         * lib/canonicalize.c (canonicalize_filename_mode):
51686         Use mreadlink_with_size, not xreadlink_with_size.
51687
51688 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51689
51690         Detect porting problems to FreeBSD/arm, which has time_t wider than
51691         long int.  Original problem reported for GNU diff by Xin Li in
51692         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51693         * modules/getdate (Depends-on): Add intprops, verify.
51694         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51695         is an integer type no wider than long int.
51696
51697 2007-06-18  Jim Meyering  <jim@meyering.net>
51698
51699         New module: mreadlink-with-size.
51700         * MODULES.html.sh: Add mreadlink-with-size.
51701         * modules/mreadlink-with-size: New module
51702         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51703         not xreadlink-with-size.
51704         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51705
51706 2007-06-16  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51709         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51710         Reported by Gary V. Vaughan <gary@gnu.org>.
51711
51712 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51713
51714         Revamp lchown so that it lives in unistd.h where it belongs.
51715         * lib/lchown.h: Remove.
51716         * lib/dirchownmod.c: Don't include lib/lchown.h.
51717         * lib/fchownat.c: Likewise.
51718         * lib/openat.c: Likewise.
51719         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51720         does not follow symlinks.
51721         (EOPNOTSUPP): Define if not defined.
51722         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51723         is defined to 0.
51724         (lchown): New decl.
51725         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51726         Do not check for lchown decl.
51727         Set REPLACE_LCHOWN.
51728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51729         REPLACE_LCHOWN.
51730         * modules/chown: Make it clear it follows symlinks.
51731         * modules/lchown: Make it clear it doesn't follow symlinks.
51732         (Files): Remove lib/lchown.h
51733         (Depends-on): Add unistd.
51734         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51735         (Include): Include <unistd.h>, not "lchown.h".
51736         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51737         REPLACE_LCHOWN.
51738
51739 2007-06-15  Jim Meyering  <jim@meyering.net>
51740
51741         Change license (GPL to LGPL) of fsusage and dependents.
51742         * modules/fsusage (License): Change to LGPL.
51743         * modules/full-read (License): Likewise.
51744         * modules/full-write (License): Likewise.
51745         * modules/safe-read (License): Likewise.
51746         * modules/safe-write (License): Likewise.
51747
51748 2007-06-14  Ben Pfaff  <blp@gnu.org>
51749
51750         Missing part of allocsa -> malloca transition.
51751         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51752         gl_MALLOCA.
51753
51754 2007-06-12  Bruno Haible  <bruno@clisp.org>
51755
51756         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51757         to ia64, x86_64, i386.
51758         Reported by Eric Blake.
51759
51760 2007-06-12  Bruno Haible  <bruno@clisp.org>
51761
51762         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51763         cross-compiling to x86_64.
51764
51765 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51766
51767         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51768         glitch reported by Ralf Wildenhues in
51769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51770
51771         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51772         Vin Shelton.
51773
51774 2007-06-11  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51777         replacement string.
51778         Reported by Eric Blake.
51779
51780 2007-06-10  Bruno Haible  <bruno@clisp.org>
51781
51782         Prepare vasnprintf code for use with Unicode strings.
51783         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51784         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51785         TYPE_U32_STRING.
51786         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51787         a_u32_string variants.
51788         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51789         * lib/printf-args.c: Don't include config.h and the specification
51790         header if PRINTF_FETCHARGS is already defined.
51791         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51792         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51793         TYPE_U16_STRING, TYPE_U32_STRING.
51794         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51795         u16_directive, u16_directives, u32_directive, u32_directives): New
51796         types.
51797         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51798         New declarations.
51799         * lib/printf-parse.c: Don't include config.h and the specification
51800         header if PRINTF_PARSE is already defined. Eliminate the set of
51801         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51802         them now. Include c-ctype.h.
51803         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51804         directive and CHAR_T_ONLY_ASCII.
51805         * lib/vasnprintf.c: Don't include config.h and the specification header
51806         if VASNPRINTF is already defined.
51807         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51808         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51809         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51810         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51811         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51812         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51813         code accordingly.
51814         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51815         pad_ourselves also in this case, with the 'c' and 's' directives, and
51816         with a different notion of "width".
51817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51818
51819 2007-06-10  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/unistr/u32-mbsnlen: New file.
51822         * lib/unistr/u32-mbsnlen.c: New file.
51823
51824         * modules/unistr/u16-mbsnlen: New file.
51825         * lib/unistr/u16-mbsnlen.c: New file.
51826
51827         * modules/unistr/u8-mbsnlen: New file.
51828         * lib/unistr/u8-mbsnlen.c: New file.
51829
51830         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51831         declarations.
51832
51833 2007-06-10  Bruno Haible  <bruno@clisp.org>
51834
51835         * lib/string_.h (mbsnlen): New declaration.
51836         * lib/mbsnlen.c: New file.
51837         * m4/mbsnlen.m4: New file.
51838         * modules/mbsnlen: New file.
51839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51840         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51841         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51842
51843 2007-06-10  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51846
51847 2007-06-10  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51850         * lib/mbuiter.h: Likewise.
51851
51852 2007-06-10  Bruno Haible  <bruno@clisp.org>
51853
51854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51855         declaration.
51856
51857 2007-06-10  Karl Berry  <karl@gnu.org>
51858
51859         * config/srclist.txt: remove gettext entries, Bruno prefers
51860         to update individually.
51861
51862 2007-06-10  Bruno Haible  <bruno@clisp.org>
51863
51864         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51865         'maxlen'. Ensure only length + width bytes are allocated, not
51866         length + 1 + width.
51867
51868 2007-06-09  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51871         (CHAR_T): Remove macro.
51872         (VASNPRINTF): Update.
51873
51874 2007-06-09  Bruno Haible  <bruno@clisp.org>
51875
51876         * MODULES.html.sh (Unicode string functions): Add the new modules.
51877
51878         * modules/uniconv/u32-conv-to-enc: New file.
51879         * lib/uniconv/u32-conv-to-enc.c: New file.
51880         * modules/uniconv/u32-conv-to-enc-tests: New file.
51881         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51882
51883         * modules/uniconv/u16-conv-to-enc: New file.
51884         * lib/uniconv/u16-conv-to-enc.c: New file.
51885         * lib/uniconv/u-conv-to-enc.h: New file.
51886         * modules/uniconv/u16-conv-to-enc-tests: New file.
51887         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51888
51889         * modules/uniconv/u8-conv-to-enc: New file.
51890         * lib/uniconv/u8-conv-to-enc.c: New file.
51891         * modules/uniconv/u8-conv-to-enc-tests: New file.
51892         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51893
51894         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51895         u32_conv_to_encoding): New declarations.
51896
51897 2007-06-09  Bruno Haible  <bruno@clisp.org>
51898
51899         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51900
51901 2007-06-09  Bruno Haible  <bruno@clisp.org>
51902
51903         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51904         * modules/malloca: Renamed from modules/allocsa, updated.
51905         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51906         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51907         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51908         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51909         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51910         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51911         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51912         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51913         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51914         * modules/c-strcasestr (Depends-on): Update.
51915         * lib/c-strcasestr.c: Update.
51916         * modules/c-strstr (Depends-on): Update.
51917         * lib/c-strstr.c: Update.
51918         * modules/canonicalize-lgpl (Depends-on): Update.
51919         * lib/canonicalize-lgpl.c: Update.
51920         * modules/clean-temp (Depends-on): Update.
51921         * lib/clean-temp.c: Update.
51922         * modules/csharpcomp (Depends-on): Update.
51923         * lib/csharpcomp.c: Update.
51924         * modules/csharpexec (Depends-on): Update.
51925         * lib/csharpexec.c: Update.
51926         * modules/javacomp (Depends-on): Update.
51927         * lib/javacomp.c: Update.
51928         * modules/javaexec (Depends-on): Update.
51929         * lib/javaexec.c: Update.
51930         * modules/mbscasestr (Depends-on): Update.
51931         * lib/mbscasestr.c: Update.
51932         * modules/mbsstr (Depends-on): Update.
51933         * lib/mbsstr.c: Update.
51934         * modules/setenv (Depends-on): Update.
51935         * lib/setenv.c: Update.
51936         * modules/strcasestr (Depends-on): Update.
51937         * lib/strcasestr.c: Update.
51938         * modules/striconveha (Depends-on): Update.
51939         * lib/striconveha.c: Update.
51940         * modules/relocatable-prog-wrapper (Files): Update.
51941         * lib/relocwrapper.c: Update.
51942         * build-aux/install-reloc: Update.
51943         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51944
51945 2007-06-08  Bruno Haible  <bruno@clisp.org>
51946
51947         Port to uClibc.
51948         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51949         * lib/fpurge.c (fpurge): Likewise.
51950         * lib/freading.c (freading): Likewise.
51951         * lib/fseeko.c (rpl_fseeko): Likewise.
51952         * lib/fseterr.c (fseterr): Likewise.
51953         * lib/fwriting.c (fwriting): Likewise.
51954         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51955
51956 2007-06-08  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51959         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51960         * modules/gettext (Files): Add m4/intlmacosx.m4.
51961
51962 2007-06-07  Bruno Haible  <bruno@clisp.org>
51963
51964         * modules/localename-tests: New file.
51965         * tests/test-localename.c: New file.
51966
51967         New module 'localename'.
51968         * lib/localename.h: New file.
51969         * lib/localename.c: New file, from GNU gettext.
51970         * m4/localename.m4: New file.
51971         * modules/localename: New file.
51972
51973 2007-06-07  Bruno Haible  <bruno@clisp.org>
51974
51975         Work around the lack of <wchar.h> on some builds of uClibc.
51976         * doc/headers/wchar.texi: Update.
51977         * lib/wchar_.h: Include <wchar.h> only if it exists.
51978         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51979         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51980         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51981         doesn't exist.
51982         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51983         * modules/mbfile (Depends-on): Add wchar.
51984         * modules/mbiter (Depends-on): Likewise.
51985         * modules/mbuiter (Depends-on): Likewise.
51986         Reported by Simon Josefsson.
51987
51988 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51989
51990         Work around problem reported by Steven M. Schweda in
51991         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51992         Tru64 5.1B with the Compaq compiler environment installed declares
51993         an 'isblank' function but does not define it in the C library.
51994         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51995         * lib/regex_internal.h (isblank): Likewise.
51996         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51997         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51998
51999 2007-06-05  Bruno Haible  <bruno@clisp.org>
52000
52001         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52002         ia64.
52003         * modules/printf-safe: New file.
52004         * modules/fprintf-posix (Depends-on): Add printf-safe.
52005         * modules/printf-posix (Depends-on): Likewise.
52006         * modules/snprintf-posix (Depends-on): Likewise.
52007         * modules/sprintf-posix (Depends-on): Likewise.
52008         * modules/vasnprintf-posix (Depends-on): Likewise.
52009         * modules/vasprintf-posix (Depends-on): Likewise.
52010         * modules/vfprintf-posix (Depends-on): Likewise.
52011         * modules/vprintf-posix (Depends-on): Likewise.
52012         * modules/vsnprintf-posix (Depends-on): Likewise.
52013         * modules/vsprintf-posix (Depends-on): Likewise.
52014         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52015         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52016         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52017         "no" on i386, x86_64, ia64.
52018         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52019         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52020         on i386, x86_64, ia64.
52021         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52022         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52023         on i386, x86_64, ia64.
52024         * tests/test-vasnprintf-posix.c: Include float.h.
52025         (LDBL80_WORDS): New macro.
52026         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52027         on i386, x86_64, ia64.
52028         * tests/test-vasprintf-posix.c: Include float.h.
52029         (LDBL80_WORDS): New macro.
52030         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52031         on i386, x86_64, ia64.
52032         * tests/test-snprintf-posix.c: Include float.h.
52033         * tests/test-sprintf-posix.c: Likewise.
52034         * tests/test-vsnprintf-posix.c: Likewise.
52035         * tests/test-vsprintf-posix.c: Likewise.
52036
52037 2007-06-05  Bruno Haible  <bruno@clisp.org>
52038
52039         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52040         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52041         non-IEEE numbers on i386, x86_64, ia64.
52042         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52043         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52044         * tests/test-isnanl.h: Include float.h.
52045         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52046
52047 2007-06-05  Bruno Haible  <bruno@clisp.org>
52048
52049         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52050         also the %a / %A. Handle the %a / %A code before this extra handling.
52051
52052 2007-06-05  Bruno Haible  <bruno@clisp.org>
52053
52054         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52055         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52056
52057 2007-06-05  Bruno Haible  <bruno@clisp.org>
52058
52059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52060         typo in variable name.
52061
52062 2007-06-05  Eric Blake  <ebb9@byu.net>
52063
52064         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52065         Reported by Simon Josefsson.
52066
52067 2007-06-04  Bruno Haible  <bruno@clisp.org>
52068
52069         Avoid test failures on some PowerPC platforms.
52070         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52071         Define differently for PowerPC.
52072         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52073         Reported by Gary V. Vaughan <gary@gnu.org>.
52074
52075 2007-06-02  Bruno Haible  <bruno@clisp.org>
52076
52077         Fix test-stdint failure on FreeBSD/ia64.
52078         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52079         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52080         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52081         * doc/headers/stdint.texi: Update.
52082
52083 2007-06-01  Bruno Haible  <bruno@clisp.org>
52084
52085         * tests/test-binary-io.c (main): Pass a third argument to open().
52086         Reported by Gary V. Vaughan <gary@gnu.org>.
52087
52088 2007-06-01  Bruno Haible  <bruno@clisp.org>
52089
52090         * doc/functions/frexpl.texi: Update for mingw.
52091
52092 2007-06-01  Bruno Haible  <bruno@clisp.org>
52093
52094         * tests/test-lseek.c (main): Disable test of errno for invalid third
52095         argument.
52096         * doc/functions/lseek.texi: Update.
52097         Reported by Gary V. Vaughan <gary@gnu.org>.
52098
52099 2007-05-28  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52102
52103 2007-05-31  Eric Blake  <ebb9@byu.net>
52104
52105         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52106         cross compiling.
52107
52108 2007-05-30  Eric Blake  <ebb9@byu.net>
52109         and Bruno Haible  <bruno@clisp.org>
52110
52111         Work around mingw test failures exposed by m4-1.4.9b.
52112         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52113         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52114         moment.
52115
52116 2007-05-30  Bruno Haible  <bruno@clisp.org>
52117
52118         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52119         assuming that they are closed. Needed on HP-UX 11.
52120
52121 2007-05-29  Bruno Haible  <bruno@clisp.org>
52122
52123         Fix a problem with #include_next.
52124         * lib/dirent_.h: Split the double-inclusion guard.
52125         * lib/fcntl_.h: Likewise.
52126         * lib/float_.h: Likewise.
52127         * lib/iconv_.h: Likewise.
52128         * lib/inttypes_.h: Likewise.
52129         * lib/locale_.h: Likewise.
52130         * lib/math_.h: Likewise.
52131         * lib/netinet_in_.h: Likewise.
52132         * lib/search_.h: Likewise.
52133         * lib/signal_.h: Likewise.
52134         * lib/stdint_.h: Likewise.
52135         * lib/stdio_.h: Likewise.
52136         * lib/stdlib_.h: Likewise.
52137         * lib/string_.h: Likewise.
52138         * lib/sys_select_.h: Likewise.
52139         * lib/sys_socket_.h: Likewise.
52140         * lib/sys_stat_.h: Likewise.
52141         * lib/sys_time_.h: Likewise.
52142         * lib/sysexits_.h: Likewise.
52143         * lib/time_.h: Likewise.
52144         * lib/unistd_.h: Likewise.
52145         * lib/wchar_.h: Likewise.
52146         * lib/wctype_.h: Likewise.
52147
52148 2007-05-29  Bruno Haible  <bruno@clisp.org>
52149
52150         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52151         for the moment.
52152
52153 2007-05-29  Bruno Haible  <bruno@clisp.org>
52154
52155         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52156         invocation.
52157         Reported by Eric Blake.
52158
52159 2007-05-29  Bruno Haible  <bruno@clisp.org>
52160
52161         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52162         compiling case.
52163
52164 2007-05-29  Eric Blake  <ebb9@byu.net>
52165             Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52168         cross compiles.
52169
52170 2007-05-28  Eric Blake  <ebb9@byu.net>
52171
52172         * modules/closein-tests (test_closein_LDADD): Support test on
52173         cygwin with libtool.
52174
52175 2007-05-28  Bruno Haible  <bruno@clisp.org>
52176
52177         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52178         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52179         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52180         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52181         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52182         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52183         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52184         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52185         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52186
52187 2007-05-28  Eric Blake  <ebb9@byu.net>
52188
52189         Unconditionally include <config.h> in unit tests.
52190         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52191         * tests/test-allocsa.c, tests/test-arcfour.c,
52192         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52193         tests/test-array_list.c, tests/test-array_oset.c,
52194         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52195         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52196         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52197         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52198         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52199         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52200         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52201         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52202         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52203         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52204         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52205         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52206         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52207         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52208         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52209         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52210         test-md5.c, test-memmem.c, test-printf-posix.c,
52211         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52212         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52213         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52214         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52215         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52216         test-vasnprintf-posix2.c, test-vasnprintf.c,
52217         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52218         test-vfprintf-posix.c, test-vprintf-posix.c,
52219         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52220         test-xvasprintf.c: Likewise.
52221
52222 2007-05-28  Bruno Haible  <bruno@clisp.org>
52223
52224         * gnulib-tool (func_import): Remember the --with-tests command-line
52225         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52226         Reported by Eric Blake.
52227
52228 2007-05-28  Bruno Haible  <bruno@clisp.org>
52229
52230         * modules/ftell-tests: New file.
52231         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52232         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52233
52234         * lib/ftell.c: New file.
52235         * modules/ftell: New file.
52236         * m4/ftell.m4: New file.
52237         * doc/functions/ftell.texi: Update.
52238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52239         REPLACE_FTELL.
52240         * lib/stdio_.h (rpl_ftell): New declaration.
52241         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52242         REPLACE_FTELL.
52243
52244 2007-05-28  Eric Blake  <ebb9@byu.net>
52245
52246         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52247
52248 2007-05-28  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/fseek-tests: New file.
52251         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52252         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52253
52254         * lib/fseek.c: New file.
52255         * modules/fseek: New file.
52256         * m4/fseek.m4: New file.
52257         * doc/functions/fseek.texi: Update.
52258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52259         REPLACE_FSEEK.
52260         * lib/stdio_.h (rpl_fseek): New declaration.
52261         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52262         REPLACE_FSEEK.
52263
52264 2007-05-28  Bruno Haible  <bruno@clisp.org>
52265
52266         * lib/stdio_.h (fflush): More comments.
52267
52268 2007-05-28  Bruno Haible  <bruno@clisp.org>
52269
52270         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52271         runtime test.
52272
52273 2007-05-28  Eric Blake  <ebb9@byu.net>
52274
52275         Improve lseek module.
52276         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52277         * lib/unistd_.h (lseek): Scale back link warning message.
52278         * tests/test-lseek.c: Beef up test.
52279         * tests/test-lseek.sh: Exercise more facets of lseek.
52280         Reported by Bruno Haible.
52281
52282 2007-05-28  Bruno Haible  <bruno@clisp.org>
52283
52284         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52285         to define.
52286
52287 2007-05-27  Bruno Haible  <bruno@clisp.org>
52288
52289         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52290
52291 2007-05-27  Bruno Haible  <bruno@clisp.org>
52292
52293         * modules/openmp: New file.
52294         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52295         Noah Misch.
52296
52297 2007-05-26  Bruno Haible  <bruno@clisp.org>
52298
52299         * modules/chdir-long (Depends-on): Add fchdir.
52300         * modules/chdir-safer (Depends-on): Likewise.
52301         * modules/fts (Depends-on): Likewise.
52302         * modules/fts-lgpl (Depends-on): Likewise.
52303         * modules/openat (Depends-on): Likewise.
52304         * modules/savewd (Depends-on): Likewise.
52305
52306 2007-05-24  Eric Blake  <ebb9@byu.net>
52307
52308         Fix lseek on mingw.
52309         * modules/lseek: New module.
52310         * m4/lseek.m4: New file.
52311         * lib/lseek.c: New file.
52312         * modules/lseek-tests: New file.
52313         * tests/test-lseek.c: New file.
52314         * tests/test-lseek.sh: New file.
52315         * MODULES.html.sh: Document lseek module.
52316         * modules/fflush (Depends-on): Add lseek, fseeko.
52317         * modules/fseeko (Depends-on): Likewise.
52318         * modules/ftello (Depends-on): Likewise.
52319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52320         broken.
52321         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52322         broken.
52323         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52324         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52325         * lib/ftello.c (rpl_ftello): Likewise.
52326         * tests/test-fseeko.c (main): Test this.
52327         * tests/test-fseeko.sh: Likewise.
52328         * tests/test-ftello.c (main): Likewise.
52329         * tests/test-ftello.sh: Likewise.
52330         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52331         implies replacing fseek.
52332         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52333         HAVE_FTELLO.
52334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52335         * modules/unistd (Makefile.am): Likewise.
52336         * lib/unistd_.h (lseek): Declare a replacement.
52337         * doc/functions/lseek.texi (lseek): Document this fix.
52338         * doc/functions/fseek.texi (fseek): Likewise.
52339         * doc/functions/ftell.texi (ftell): Likewise.
52340
52341 2007-05-24  Bruno Haible  <bruno@clisp.org>
52342
52343         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52344         in the printed representation of a NaN.
52345         * tests/test-vasprintf-posix.c (test_function): Likewise.
52346         * tests/test-snprintf-posix.h (test_function): Likewise.
52347         * tests/test-sprintf-posix.h (test_function): Likewise.
52348         Reported by Eric Blake.
52349
52350 2007-05-23  Eric Blake  <ebb9@byu.net>
52351
52352         Fix fseeko/ftello on cygwin 1.5.24.
52353         * doc/functions/fseeko.texi (fseeko): Document the fix.
52354         * doc/functions/ftello.texi (ftello): Document the fix.
52355         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52356         * doc/functions/stdout.text (stdout): New file.
52357         * doc/functions/stderr.text (stderr): New file.
52358         * doc/gnulib.texi (Function Substitutes): Use new files.
52359         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52360         prior to 1.7.0.
52361         * tests/test-ftello.c (main): Likewise for ftello.
52362         * tests/test-fseeko.sh: New file.
52363         * tests/test-ftello.sh: New file.
52364         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52365         with seekable stdin.
52366         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52367         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52368         (gl_REPLACE_FSEEKO): New macro.
52369         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52370         * modules/fseeko (Files): Distribute fseeko.c.
52371         * modules/ftello (Files): Distribute ftello.c.
52372         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52373         mode.
52374         * lib/ftello.c (rpl_ftello): New file.
52375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52376         fseeko, ftello.
52377         (gl_STDIN_LARGE_OFFSET): New macro.
52378         * modules/stdio (Makefile.am): Perform the replacement.
52379         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52380
52381 2007-05-23  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52384         GNULIB_POSIXCHECK is defined.
52385
52386 2007-05-21  Bruno Haible  <bruno@clisp.org>
52387
52388         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52389         Check also the output for NaN arguments. When cross-compiling, guess
52390         no on IRIX.
52391         * lib/vasnprintf.c: Update comments.
52392         * tests/test-vasnprintf-posix.c (strisnan): New function.
52393         (test_function): Use it.
52394         * tests/test-vasprintf-posix.c (strisnan): New function.
52395         (test_function): Use it.
52396         * tests/test-snprintf-posix.h (strisnan): New function.
52397         (test_function): Use it.
52398         * tests/test-sprintf-posix.h (strisnan): New function.
52399         (test_function): Use it.
52400         Reported by Eric Blake.
52401
52402 2007-05-20  Bruno Haible  <bruno@clisp.org>
52403
52404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52405         numbers that fails on BeOS.
52406         * doc/functions/frexpl.texi: Update.
52407
52408 2007-05-20  Jim Meyering  <jim@meyering.net>
52409
52410         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52411         forced upon us by glibc-2.6.
52412
52413 2007-05-20  Bruno Haible  <bruno@clisp.org>
52414
52415         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52416         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52417         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52418         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52419         NEED_PRINTF_INFINITE.
52420         (is_infinitel): New function.
52421         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52422         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52423         gl_PREREQ_VASNPRINTF_INFINITE.
52424         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52425         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52426         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52427         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52428         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52429         gl_PREREQ_VASNPRINTF_INFINITE.
52430         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52431         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52432         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52433         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52434         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52436         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52437         * doc/functions/fprintf.texi: Update.
52438         * doc/functions/printf.texi: Update.
52439         * doc/functions/snprintf.texi: Update.
52440         * doc/functions/sprintf.texi: Update.
52441         * doc/functions/vfprintf.texi: Update.
52442         * doc/functions/vprintf.texi: Update.
52443         * doc/functions/vsnprintf.texi: Update.
52444         * doc/functions/vsprintf.texi: Update.
52445
52446 2007-05-20  Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52449         was not found in libc.
52450         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52451
52452 2007-05-20  Bruno Haible  <bruno@clisp.org>
52453
52454         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52455         printed as "-nan" instead of "nan".
52456         * tests/test-vasprintf-posix.c (test_function): Likewise.
52457         * tests/test-snprintf-posix.h (test_function): Likewise.
52458         * tests/test-sprintf-posix.h (test_function): Likewise.
52459         Needed for HP-UX 11.
52460
52461 2007-05-20  Jim Meyering  <jim@meyering.net>
52462
52463         Fix buggy test for the fchownat-deref bug.
52464         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52465         symlink required for the run-test.  Without it, this test would
52466         always declare that fchownat doesn't work, and client code would
52467         unnecessarily use the replacement function with fixed libc.
52468         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52469         Reported by Greg Schafer.
52470
52471 2007-05-19  Bruno Haible  <bruno@clisp.org>
52472
52473         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52474         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52475         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52476         Needed for IRIX 6.5 and Solaris 2.5.1.
52477
52478 2007-05-19  Bruno Haible  <bruno@clisp.org>
52479
52480         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52481         (test_function): Skip tests involving -0.0 on platforms where
52482         -0.0 = 0.0.
52483         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52484         (test_function): Skip tests involving -0.0 on platforms where
52485         -0.0 = 0.0.
52486         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52487         (test_function): Skip tests involving -0.0 on platforms where
52488         -0.0 = 0.0.
52489         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52490         (test_function): Skip tests involving -0.0 on platforms where
52491         -0.0 = 0.0.
52492         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52493         tests.
52494         * tests/test-printf-posix.h (test_function): Likewise.
52495         * tests/test-printf-posix.output: Remove all -0.0 related results.
52496         Needed for IRIX 6.5.
52497
52498 2007-05-19  Bruno Haible  <bruno@clisp.org>
52499
52500         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52501         printed as "nan0x7fffffff" instead of "nan".
52502         * tests/test-vasprintf-posix.c (test_function): Likewise.
52503         * tests/test-snprintf-posix.h (test_function): Likewise.
52504         * tests/test-sprintf-posix.h (test_function): Likewise.
52505         * tests/test-fprintf-posix.h (NaN): Remove macro.
52506         (test_function): Remove all NaN related tests.
52507         * tests/test-printf-posix.h (NaN): Remove macro.
52508         (test_function): Remove all NaN related tests.
52509         * tests/test-printf-posix.output: Remove all NaN related results.
52510         Needed for IRIX 6.5.
52511
52512 2007-05-19  Bruno Haible  <bruno@clisp.org>
52513
52514         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52516
52517 2007-05-19  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/float_.h: New file.
52520         * m4/float_h.m4: New file.
52521         * modules/float: New file.
52522         * modules/isnanl (Dependencies): Add float.
52523         * modules/isnanl-nolibm (Dependencies): Likewise.
52524         * modules/mathl (Dependencies): Likewise.
52525         * modules/printf-frexpl (Dependencies): Likewise.
52526         * modules/signbit (Dependencies): Likewise.
52527         * modules/vasnprintf (Dependencies): Likewise.
52528         * doc/headers/float.texi: Update.
52529
52530 2007-05-19  Jim Meyering  <jim@meyering.net>
52531
52532         * lib/utimens.c (gl_futimens): Rename from futimens,
52533         now that glibc-2.6 declares futimens.
52534         * lib/utimens.h: Likewise.
52535
52536 2007-05-19  Bruno Haible  <bruno@clisp.org>
52537
52538         Avoid test failures on mingw.
52539         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52540         * tests/test-printf-posix.sh: Likewise.
52541         * tests/test-vfprintf-posix.sh: Likewise.
52542         * tests/test-vprintf-posix.sh: Likewise.
52543
52544 2007-05-19  Bruno Haible  <bruno@clisp.org>
52545
52546         Fix *printf result for NaN, Inf, -0.0 on mingw.
52547         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52548         * lib/vasnprintf.c: Include math.h and isnan.h.
52549         (is_infinite_or_zero): New function.
52550         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52551         values in the %f, %F, %e, %E, %g, %G directives.
52552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52554         gl_PRINTF_INFINITE and test its result. Invoke
52555         gl_PREREQ_VASNPRINTF_INFINITE.
52556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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         * doc/functions/fprintf.texi: Update.
52564         * doc/functions/printf.texi: Update.
52565         * doc/functions/snprintf.texi: Update.
52566         * doc/functions/sprintf.texi: Update.
52567         * doc/functions/vfprintf.texi: Update.
52568         * doc/functions/vprintf.texi: Update.
52569         * doc/functions/vsnprintf.texi: Update.
52570         * doc/functions/vsprintf.texi: Update.
52571
52572 2007-05-19  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52575         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52576         Instead of multiplying with 10^k, set extra_zeroes to k.
52577         (scale10_round_long_double): Remove function.
52578
52579 2007-05-18  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52582         introduced on 2007-05-06.
52583
52584 2007-05-18  Bruno Haible  <bruno@clisp.org>
52585
52586         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52587         %g directives.
52588         * tests/test-vasprintf-posix.c (test_function): Likewise.
52589         * tests/test-snprintf-posix.h (test_function): Likewise.
52590         * tests/test-sprintf-posix.h (test_function): Likewise.
52591
52592 2007-05-18  Bruno Haible  <bruno@clisp.org>
52593
52594         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52595         (strmatch): New function.
52596         (test_function): Test the %f directive on numbers of various exponents.
52597         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52598         (strmatch): New function.
52599         (test_function): Test the %f directive on numbers of various exponents.
52600         * tests/test-snprintf-posix.h (strmatch): New function.
52601         (test_function): Test the %f directive on numbers of various exponents.
52602         * tests/test-sprintf-posix.h (strmatch): New function.
52603         (test_function): Test the %f directive on numbers of various exponents.
52604         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52605         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52606         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52607         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52608
52609 2007-05-18  Bruno Haible  <bruno@clisp.org>
52610
52611         Add support for 'long double' number output.
52612         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52613         * lib/vasnprintf.c: Include math.h and float+.h.
52614         (mp_limb_t): New type.
52615         (GMP_LIMB_BITS): New macro.
52616         (mp_twolimb_t): New type.
52617         (GMP_TWOLIMB_BITS): New macro.
52618         (mpn_t): New type.
52619         (multiply, divide, convert_to_decimal, decode_long_double,
52620         scale10_round_long_double, scale10_round_decimal_long_double,
52621         floorlog10l): New functions.
52622         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52623         for the %f, %F, %e, %E, %g, %G directives.
52624         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52625         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52626         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52627         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52628         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52630         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52631         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52632         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52633         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52634         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52635         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52636         * modules/snprintf-posix (Depends-on): Likewise.
52637         * modules/sprintf-posix (Depends-on): Likewise.
52638         * modules/vasnprintf-posix (Depends-on): Likewise.
52639         * modules/vasprintf-posix (Depends-on): Likewise.
52640         * modules/vfprintf-posix (Depends-on): Likewise.
52641         * modules/vsnprintf-posix (Depends-on): Likewise.
52642         * modules/vsprintf-posix (Depends-on): Likewise.
52643         * modules/vasnprintf (Files): Add lib/float+.h.
52644         * doc/functions/fprintf.texi: Update.
52645         * doc/functions/printf.texi: Update.
52646         * doc/functions/snprintf.texi: Update.
52647         * doc/functions/sprintf.texi: Update.
52648         * doc/functions/vfprintf.texi: Update.
52649         * doc/functions/vprintf.texi: Update.
52650         * doc/functions/vsnprintf.texi: Update.
52651         * doc/functions/vsprintf.texi: Update.
52652
52653 2007-05-18  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52656
52657 2007-05-18  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52660         for printing 64-bit integers. Needed for mingw.
52661
52662 2007-05-18  Bruno Haible  <bruno@clisp.org>
52663
52664         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52665         gl_FUNC_FREXPL_WORKS.
52666         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52667
52668 2007-05-18  Bruno Haible  <bruno@clisp.org>
52669
52670         * modules/frexpl-nolibm-tests: New file.
52671
52672         * modules/frexpl-nolibm: New file.
52673         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52674
52675 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52678         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52679         GCC 4.2, which otherwise issues a lot of warnings.
52680         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52681         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52682         Likewise.
52683         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52684         * modules/iconv_open (iconv.h): Likewise.
52685         * modules/locale (locale.h): Likewise.
52686         * modules/netinet_in (netinet/in.h): Likewise.
52687         * modules/sys_select (sys_select.h): Likewise.
52688         * modules/sys_socket (sys/socket.h): Likewise.
52689         * modules/sys_stat (sys/stat.h): Likewise.
52690         * modules/sysexits (sysexits.h): Likewise.
52691         * modules/unistd (unistd.h): Likewise.
52692
52693 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52694
52695         * modules/closein-tests (Makefile.am): Distribute
52696         `test-closein.sh'.
52697
52698 2007-05-17  Bruno Haible  <bruno@clisp.org>
52699
52700         * tests/test-printf-posix.output: Renamed from
52701         tests/test-fprintf-posix.out.
52702         * modules/fprintf-posix-tests: Update.
52703         * modules/printf-posix-tests: Update.
52704         * modules/vfprintf-posix-tests: Update.
52705         * modules/vprintf-posix-tests: Update.
52706         * tests/test-fprintf-posix.sh: Update.
52707         * tests/test-printf-posix.sh: Update.
52708         * tests/test-vfprintf-posix.sh: Update.
52709         * tests/test-vprintf-posix.sh: Update.
52710         Reported by Ralf Wildenhues.
52711
52712 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52713
52714         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52715         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52716         GCC 4.2, which otherwise issues a lot of warnings.
52717         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52718         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52719         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52720         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52721         it should no longer be needed.
52722         * lib/string_.h: Likewise.
52723         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52724         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52725         * modules/inttypes (inttypes.h): Likewise.
52726         * modules/math (math.h): Likewise.
52727         * modules/search (search.h): Likewise.
52728         * modules/signal (signal.h): Likewise.
52729         * modules/stdint (stdint.h): Likewise.
52730         * modules/stdio (stdio.h): Likewise.
52731         * modules/stdlib (stdlib.h): Likewise.
52732         * modules/string (string.h): Likewise.
52733         * modules/sys_time (sys/time.h): Likewise.
52734         * modules/time (time.h): Likewise.
52735         * modules/wchar (wchar.h): Likewise.
52736         * modules/wctype (wtype.h): Likewise.
52737
52738 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52739
52740         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52741
52742 2007-05-13  Bruno Haible  <bruno@clisp.org>
52743
52744         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52745         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52746         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52747         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52748         (gl_PREREQ_STRTOK_R): Don't require it here.
52749
52750 2007-05-13  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52753         when used in C++ mode.
52754
52755 2007-05-12  Bruno Haible  <bruno@clisp.org>
52756
52757         * lib/linebuffer.h: Tweak doc.
52758         * lib/linebuffer.c: Likewise.
52759
52760 2007-05-12  James Youngman  <jay@gnu.org>
52761
52762         * lib/linebuffer.c (readlinebuffer_delim): New function,
52763         like readlinebuffer, but use a caller-specified delimiter.
52764         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52765         as the delimiter.
52766         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52767
52768 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52769
52770         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52771         * modules/openat (Files): Remove openat-die.c.
52772         (Depends-on): Add openat-die.
52773         * modules/openat-die: New module.
52774
52775 2007-05-06  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52778         Update with info about Cygwin.
52779         * doc/functions/fprintf.texi: Update.
52780         * doc/functions/printf.texi: Update.
52781         * doc/functions/snprintf.texi: Update.
52782         * doc/functions/sprintf.texi: Update.
52783         * doc/functions/vfprintf.texi: Update.
52784         * doc/functions/vprintf.texi: Update.
52785         * doc/functions/vsnprintf.texi: Update.
52786         * doc/functions/vsprintf.texi: Update.
52787         Reported by Eric Blake.
52788
52789 2007-05-06  Bruno Haible  <bruno@clisp.org>
52790
52791         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52792         padding ourselves for the floating-point directives.
52793         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52796         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52797         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52800         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52801         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52802         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52803         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52804         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52805         * tests/test-snprintf-posix.h (test_function): Also check the width
52806         and some flags in the %f directive.
52807         * tests/test-sprintf-posix.h (test_function): Likewise.
52808         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52809         * tests/test-vasprintf-posix.c (test_function): Likewise.
52810         * doc/functions/fprintf.texi: Update.
52811         * doc/functions/printf.texi: Update.
52812         * doc/functions/snprintf.texi: Update.
52813         * doc/functions/sprintf.texi: Update.
52814         * doc/functions/vfprintf.texi: Update.
52815         * doc/functions/vprintf.texi: Update.
52816         * doc/functions/vsnprintf.texi: Update.
52817         * doc/functions/vsprintf.texi: Update.
52818
52819 2007-05-06  Bruno Haible  <bruno@clisp.org>
52820
52821         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52822         pass the ' flag character to sprintf or snprintf.
52823         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52826         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52827         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52829         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52835         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52836         flag.
52837         * tests/test-sprintf-posix.h (test_function): Likewise.
52838         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52839         * tests/test-vasprintf-posix.c (test_function): Likewise.
52840         * doc/functions/fprintf.texi: Update.
52841         * doc/functions/printf.texi: Update.
52842         * doc/functions/snprintf.texi: Update.
52843         * doc/functions/sprintf.texi: Update.
52844         * doc/functions/vfprintf.texi: Update.
52845         * doc/functions/vprintf.texi: Update.
52846         * doc/functions/vsnprintf.texi: Update.
52847         * doc/functions/vsprintf.texi: Update.
52848
52849 2007-05-01  Bruno Haible  <bruno@clisp.org>
52850
52851         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52852
52853 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52854
52855         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52856         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52857
52858 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52861         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52863
52864 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52865
52866         * lib/argp-help.c (struct hol_entry): New member `ord'.
52867         (HOL_ENTRY_PTRCMP): Use ord for comparison
52868         (hol_sort): Initialize ord.
52869
52870 2007-05-01  Bruno Haible  <bruno@clisp.org>
52871
52872         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52873         Reported by Eric Blake.
52874         * doc/gnulib.texi (Function Substitutes): Update.
52875
52876 2007-05-01  Bruno Haible  <bruno@clisp.org>
52877
52878         * doc/functions.texi: Remove file, now redundant through
52879         doc/functions/*.texi.
52880
52881 2007-05-01  Bruno Haible  <bruno@clisp.org>
52882
52883         * modules/argp (Depends-on): Add sleep.
52884
52885 2007-05-01  Bruno Haible  <bruno@clisp.org>
52886
52887         * modules/sleep-tests: New file.
52888         * tests/test-sleep.c: New file.
52889
52890         * modules/sleep: New file.
52891         * lib/sleep.c: New file.
52892         * m4/sleep.m4: New file.
52893         * lib/unistd_.h (sleep): New declaration.
52894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52895         HAVE_SLEEP.
52896         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52897         * doc/functions/sleep.texi: Document the sleep module.
52898
52899 2007-05-01  Bruno Haible  <bruno@clisp.org>
52900
52901         * lib/sigprocmask.h: Remove file.
52902         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52903         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52904         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52905         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52906         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52907         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52908         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52909         HAVE_SIGSET_T as a shell variable.
52910         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52911         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52912         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52913         (Depends-on): Add signal. Remove verify.
52914         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52915         (Include): Mention <signal.h> instead of sigprocmask.h.
52916         * NEWS: Mention the change.
52917         * lib/fatal-signal.c: Don't include sigprocmask.h.
52918
52919 2007-05-01  Bruno Haible  <bruno@clisp.org>
52920
52921         * modules/signal: New file.
52922         * lib/signal_.h: New file.
52923         * m4/signal_h.m4: New file.
52924
52925 2007-05-01  Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52928         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52929         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52930         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52931
52932 2007-05-01  Bruno Haible  <bruno@clisp.org>
52933
52934         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52935         configure time.
52936         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52937         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52938         * modules/sys_stat (Makefile.am): Substitute their values into
52939         sys/stat.h.
52940
52941 2007-05-01  Bruno Haible  <bruno@clisp.org>
52942
52943         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52944         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52945         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52946
52947 2007-05-01  Bruno Haible  <bruno@clisp.org>
52948
52949         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52950         'assert' module here.
52951
52952 2007-05-01  Bruno Haible  <bruno@clisp.org>
52953
52954         * doc/functions/*.texi: New files.
52955         * doc/functions/google-ranking.txt: New file.
52956         * doc/gnulib.texi (Function Substitutes): New chapter.
52957         (ctime, inet_ntoa): Remove sections.
52958         * doc/ctime.texi: Remove file.
52959         * doc/inet_ntoa.texi: Remove file.
52960         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52961         dependencies.
52962         (%.info): New rule, specifying a --reference-limit.
52963
52964 2007-05-01  Bruno Haible  <bruno@clisp.org>
52965
52966         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52967
52968 2007-05-01  Bruno Haible  <bruno@clisp.org>
52969
52970         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52971         the portability of 'mkdir' to mingw systems.
52972
52973 2007-05-01  Bruno Haible  <bruno@clisp.org>
52974
52975         * doc/headers/google-ranking.txt: New file.
52976
52977 2007-04-30  Eric Blake  <ebb9@byu.net>
52978
52979         Prefer fseeko to fseek.
52980         * modules/getpass (Depends-on): Add fseeko.
52981         * lib/getpass.c (getpass): Use fseeko, not fseek.
52982
52983 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52984
52985         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52986         assumes the sorting is stable, while most qsort implementations
52987         are not.  Use argument addresses to ensure they never compare as
52988         equal.
52989
52990         * tests/test-argp-2.sh (usage-indent test): Fix output
52991         (func_compare): Restore diff options
52992         * tests/test-argp.c: Restore #include "progname.h"
52993
52994 2007-04-29  Bruno Haible  <bruno@clisp.org>
52995
52996         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52998         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53000         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53001         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53002         (TESTS, check_PROGRAMS): Add test-snprintf.
53003         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53004         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53005         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53006         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53007         assertions that fail on HP-UX, OSF/1, or IRIX.
53008         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53009
53010 2007-04-29  Bruno Haible  <bruno@clisp.org>
53011
53012         * MODULES.html.sh (posix_functions): Remove 'contents'.
53013
53014 2007-04-29  Karl Berry  <karl@gnu.org>
53015
53016         * config/srclist.txt (gendocs_template_min): new entry.
53017
53018 2007-04-29  Bruno Haible  <bruno@clisp.org>
53019
53020         Work around fpurge bug on BSD systems.
53021         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53022         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53023         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53024         fpurge to rpl_fpurge if the system already has this function.
53025         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53026         the case where the system already has this function. Correct invariants
53027         on BSD systems.
53028         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53029         BSD systems.
53030
53031 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53032
53033         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53034         proposed by Sven Verdoolaege.
53035
53036         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53037         options.
53038         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53039         (usage and help tests): Update
53040
53041 2007-04-29  Bruno Haible  <bruno@clisp.org>
53042
53043         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53044         Print more information in case of failure. Disable a test on BeOS.
53045
53046 2007-04-29  Bruno Haible  <bruno@clisp.org>
53047
53048         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53049         This helps debugging on systems on which no gdb is available.
53050
53051 2007-04-29  Bruno Haible  <bruno@clisp.org>
53052
53053         * lib/freading.h: Improve comments.
53054         * lib/fwriting.h: Likewise.
53055         * tests/test-freading.c (main): Don't check freading immediately after
53056         repositioning. Needed for glibc.
53057
53058 2007-04-29  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/freading.c (freading): Trivial simplification.
53061
53062 2007-04-28  Bruno Haible  <bruno@clisp.org>
53063
53064         * tests/test-fwriting.c (main): Also test the interaction between
53065         fflush and fwriting.
53066         * modules/fwriting-tests (Depends-on): Add fflush.
53067
53068         * tests/test-freading.c (main): Also test the interaction between
53069         fflush and freading.
53070         * modules/freading-tests (Depends-on): Add fflush.
53071
53072 2007-04-28  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53075         fseeko and ftello.
53076         Suggested by Eric Blake.
53077
53078 2007-04-28  Jim Meyering  <jim@meyering.net>
53079
53080         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53081         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53082         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53083
53084 2007-04-27  Eric Blake  <ebb9@byu.net>
53085
53086         * doc/headers/assert.texi (assert.h): Document assert module use.
53087
53088 2007-04-27  Bruno Haible  <bruno@clisp.org>
53089
53090         * doc/headers/*.texi: New files.
53091         * doc/gnulib.texi (Header File Substitutes): New chapter.
53092         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53093         dependencies.
53094         (standards.info ,standards.html, standards.dvi): Update dependencies.
53095         (mostlyclean, clean): New targets.
53096
53097 2007-04-27  Bruno Haible  <bruno@clisp.org>
53098
53099         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53100         * modules/sysexits (Files, Makefile.am): Update.
53101
53102         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53103         * modules/sys_socket (Files, Makefile.am): Update.
53104
53105         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53106         * modules/sys_stat (Files, Makefile.am): Update.
53107
53108 2007-04-27  Eric Blake  <ebb9@byu.net>
53109
53110         * lib/freading.h: Improve comments.
53111         * lib/fwriting.h: Likewise.
53112         * lib/fflush.c: Likewise.
53113
53114         Fix closein for mingw.
53115         * modules/closein-tests: Add tests for closein.
53116         * tests/test-closein.c: New file.
53117         * tests/test-closein.sh: Likewise.
53118         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53119         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53120
53121 2007-04-27  Bruno Haible  <bruno@clisp.org>
53122
53123         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53124         version is < 6.
53125         * lib/math_.h [__DECC]: Likewise.
53126         * lib/stdio_.h [__DECC]: Likewise.
53127         * lib/stdlib_.h [__DECC]: Likewise.
53128         * lib/string_.h [__DECC]: Likewise.
53129         * lib/time_.h [__DECC]: Likewise.
53130         * lib/wchar_.h [__DECC]: Likewise.
53131         * lib/wctype_.h [__DECC]: Likewise.
53132
53133 2007-04-27  Bruno Haible  <bruno@clisp.org>
53134
53135         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53136
53137 2007-04-27  Bruno Haible  <bruno@clisp.org>
53138
53139         * lib/fflush.c: Add comments.
53140         * modules/fpurge-tests (Depends-on): Add fflush.
53141         * modules/freadable-tests (Depends-on): Likewise.
53142         * modules/fwritable-tests (Depends-on): Likewise.
53143
53144 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53145
53146         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53147         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53148         Report by Bruno Haible <bruno@clisp.org>.
53149
53150 2007-04-26  Eric Blake  <ebb9@byu.net>
53151
53152         Fix fflush on mingw.
53153         * modules/fflush (Depends-on): Add freading.
53154         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53155         but unread data.
53156
53157 2007-04-26  Eric Blake  <ebb9@byu.net>
53158         and Bruno Haible  <bruno@clisp.org>
53159
53160         Implement freading and fwriting.
53161         * lib/freading.c: New file.
53162         * lib/freading.h: Likewise.
53163         * m4/freading.m4: Likewise.
53164         * modules/freading: Likewise.
53165         * modules/freading-tests: Likewise.
53166         * tests/test-freading.c: Likewise.
53167         * lib/fwriting.c: New file.
53168         * lib/fwriting.h: Likewise.
53169         * m4/fwriting.m4: Likewise.
53170         * modules/fwriting: Likewise.
53171         * modules/fwriting-tests: Likewise.
53172         * tests/test-fwriting.c: Likewise.
53173         * MODULES.html.sh (File stream based Input/Output): Mention them.
53174
53175 2007-04-26  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53178         'long' when we assume it.
53179         Suggested by Eric Blake.
53180
53181 2007-04-26  Bruno Haible  <bruno@clisp.org>
53182
53183         Ensure fseeko, ftello are declared on glibc systems.
53184         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53185         * modules/fseeko (configure.ac-early): Likewise.
53186         * modules/ftello (configure.ac-early): Likewise.
53187         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53188         AC_FUNC_FSEEKO for this.
53189         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53190         (gl_CHECK_FSEEKO): Remove macro.
53191
53192 2007-04-26  Bruno Haible  <bruno@clisp.org>
53193
53194         * tests/test-fflush.c (main): Also check the ftell result after
53195         fflush and fseek/fseeko.
53196         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53197         file descriptor position cache in the stream.
53198         * lib/fseeko.c (rpl_fseeko): Likewise.
53199
53200 2007-04-26  Bruno Haible  <bruno@clisp.org>
53201
53202         * modules/fflush-tests (Depends-on): Add fseeko.
53203
53204 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53205             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53206
53207         * lib/argz_.h: ensure error_t definition is obtained in same
53208         mechanism system argz.h would have.
53209         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53210         argz facilities are known bad.  Err on the side of caution if
53211         cross-compiling.
53212
53213 2007-04-25  Eric Blake  <ebb9@byu.net>
53214
53215         * lib/fpurge.c (includes): Use stdlib.h for free.
53216         * tests/test-fflush.c (main): Also test fflush-fseeko.
53217
53218 2007-04-25  Bruno Haible  <bruno@clisp.org>
53219
53220         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53221         * lib/fseeko.c: New file.
53222         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53223         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53224         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53225         gl_FUNC_FSEEKO.
53226         (gl_FUNC_FSEEKO): Invoke it.
53227         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53228         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53229         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53230
53231 2007-04-25  Bruno Haible  <bruno@clisp.org>
53232
53233         * modules/fflush (Depends-on): Add ftello.
53234
53235 2007-04-25  Bruno Haible  <bruno@clisp.org>
53236
53237         * modules/ftello-tests: New file.
53238         * tests/test-ftello.c: New file.
53239
53240         * modules/ftello: New file.
53241         * m4/ftello.m4: New file.
53242         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53243         HAVE_FTELLO.
53244         * lib/stdio_.h (ftello): New declaration.
53245         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53246         HAVE_FTELLO.
53247
53248 2007-04-25  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/fseeko-tests: New file.
53251         * tests/test-fseeko.c: New file.
53252
53253         * modules/fseeko: New file.
53254         * m4/fseeko.m4: New file.
53255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53256         HAVE_FSEEKO.
53257         * lib/stdio_.h (fseeko): New declaration.
53258         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53259         HAVE_FSEEKO.
53260
53261 2007-04-25  Bruno Haible  <bruno@clisp.org>
53262
53263         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53264
53265 2007-04-25  Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53268         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53269         * tests/test-unistd.c: Likewise.
53270         * tests/test-fcntl.c: Likewise.
53271
53272 2007-04-23  Eric Blake  <ebb9@byu.net>
53273
53274         * lib/fflush.c: Fix missing include.
53275         Reported by Bruno Haible.
53276
53277 2007-04-23  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53280         Reported by Eric Blake.
53281
53282 2007-04-23  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53285
53286 2007-04-23  Bruno Haible  <bruno@clisp.org>
53287
53288         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53289
53290 2007-04-23  Bruno Haible  <bruno@clisp.org>
53291
53292         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53293         Needed on HP-UX 11.
53294
53295 2007-04-16  Eric Blake  <ebb9@byu.net>
53296
53297         Make fflush rely on fpurge.
53298         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53299         open coding all variants.
53300         * modules/fflush (Depends-on): Add fpurge and unistd.
53301         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53302         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53303
53304         Fix --with-tests compilation on cygwin.
53305         * modules/argmatch-tests (Makefile.am): List gnulib library first
53306         in LDADD.
53307         * modules/argp-tests (Makefile.am): Likewise.
53308         * modules/array-list-tests (Makefile.am): Likewise.
53309         * modules/array-oset-tests (Makefile.am): Likewise.
53310         * modules/avltree-list-tests (Makefile.am): Likewise.
53311         * modules/avltree-oset-tests (Makefile.am): Likewise.
53312         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53313         * modules/carray-list-tests (Makefile.am): Likewise.
53314         * modules/dirname-tests (Makefile.am): Likewise.
53315         * modules/frexp-tests (Makefile.am): Likewise.
53316         * modules/isnanl-tests (Makefile.am): Likewise.
53317         * modules/linked-list-tests (Makefile.am): Likewise.
53318         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53319         * modules/lock-tests (Makefile.am): Likewise.
53320         * modules/rbtree-list-tests (Makefile.am): Likewise.
53321         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53322         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53323         * modules/tls-tests (Makefile.am): Likewise.
53324         * modules/tsearch-tests (Makefile.am): Likewise.
53325         * modules/xvasprintf-tests (Makefile.am): Likewise.
53326
53327         Fix fpurge for cygwin.
53328         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53329         value.
53330         * modules/fpurge-tests (Depends-on): Clean up trash.
53331
53332 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53333
53334         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53335
53336         * m4/autobuild.m4: Re-indent.
53337
53338 2007-04-13  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/fpurge-tests: New file.
53341         * tests/test-fpurge.c: New file.
53342
53343         * modules/fpurge: New file.
53344         * lib/fpurge.h: New file.
53345         * lib/fpurge.c: New file.
53346         * m4/fpurge.m4: New file.
53347
53348 2007-04-13  Bruno Haible  <bruno@clisp.org>
53349
53350         * modules/fbufmode-tests: New file.
53351         * tests/test-fbufmode.c: New file.
53352
53353         * modules/fbufmode: New file.
53354         * lib/fbufmode.h: New file.
53355         * lib/fbufmode.c: New file.
53356         * m4/fbufmode.m4: New file.
53357
53358 2007-04-13  Bruno Haible  <bruno@clisp.org>
53359
53360         * modules/fwritable-tests: New file.
53361         * tests/test-fwritable.c: New file.
53362
53363         * modules/fwritable: New file.
53364         * lib/fwritable.h: New file.
53365         * lib/fwritable.c: New file.
53366         * m4/fwritable.m4: New file.
53367
53368 2007-04-13  Bruno Haible  <bruno@clisp.org>
53369
53370         * modules/freadable-tests: New file.
53371         * tests/test-freadable.c: New file.
53372
53373         * modules/freadable: New file.
53374         * lib/freadable.h: New file.
53375         * lib/freadable.c: New file.
53376         * m4/freadable.m4: New file.
53377
53378 2007-04-13  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53381         MOSTLYCLEANFILES.
53382
53383 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53386         gzip bootstrap.conf to avoid dragging in i18n machinery.
53387         (gnulib_tool_option): Use it.
53388
53389 2007-04-13  Bruno Haible  <bruno@clisp.org>
53390
53391         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53392         %F directives.
53393         * tests/test-vasprintf-posix.c (test_function): Likewise.
53394         * tests/test-snprintf-posix.h (test_function): Likewise.
53395         * tests/test-sprintf-posix.h (test_function): Likewise.
53396         * tests/test-fprintf-posix.h (test_function): Likewise.
53397         * tests/test-printf-posix.h (test_function): Likewise.
53398         * tests/test-fprintf-posix.out: Likewise.
53399
53400 2007-04-13  Bruno Haible  <bruno@clisp.org>
53401
53402         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53403         * modules/tls-tests (configure.ac): Likewise.
53404         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53405
53406 2007-04-13  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/tls.c (glthread_tls_get): Fix return type.
53409         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53410
53411 2007-04-12  Eric Blake  <ebb9@byu.net>
53412
53413         * modules/gettime (Depends-on): Remove gettime.
53414         Reported by Dmitry V. Levin.
53415
53416 2007-04-12  Bruno Haible  <bruno@clisp.org>
53417
53418         * modules/fflush (Include): Mention <stdio.h>.
53419         * modules/strtoimax (Include): Mention <inttypes.h>.
53420         * modules/strtoumax (Include): Likewise.
53421
53422 2007-04-12  Eric Blake  <ebb9@byu.net>
53423
53424         * .cvsignore: New file.
53425         * .gitignore: Likewise.
53426
53427 2007-04-12  Bruno Haible  <bruno@clisp.org>
53428
53429         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53430         not before, since $(LDADD) often contains libgnu.a.
53431         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53432         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53433         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53434         Needed on Cygwin.
53435
53436 2007-04-12  Eric Blake  <ebb9@byu.net>
53437
53438         Work around glibc's failure to flush stdin on fclose.
53439         * lib/closein.c (close_stdin): Flush stdin before closing.
53440
53441         Work around glibc's failure to reset seekable stdin on exit.
53442         * modules/closein: New module.
53443         * lib/closein.c: New file.
53444         * lib/closein.h: Likewise.
53445         * m4/closein.m4: Likewise.
53446         * MODULES.html.sh (File stream based Input/Output): Document it.
53447
53448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53449
53450         * gnulib-tool: Rename generated 'autobuild' script to
53451         'do-autobuild' in --create-megatestdir output.
53452
53453         * doc/gnulib.texi (Build robot for gnulib): Fix.
53454
53455 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53456
53457         * modules/sysexits (Depends-on): Add absolute-header.
53458
53459 2007-04-12  Eric Blake  <ebb9@byu.net>
53460
53461         No need to preserve errno on success.
53462         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53463         Reported by Bruno Haible.
53464
53465 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53466
53467         * MODULES.html.sh (Support for maintaining and releasing
53468         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53469
53470 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53471
53472         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53473
53474 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53475
53476         * modules/autobuild: New module.
53477
53478         * m4/autobuild.m4: New file.
53479
53480 2007-04-11  Bruno Haible  <bruno@clisp.org>
53481
53482         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53483         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53486         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53487         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53488         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53489         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53490         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53491         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53493         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53494         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53496         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53497         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53499         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53500         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53504         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53507         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53510         Reported by Eric Blake.
53511
53512 2007-04-11  Bruno Haible  <bruno@clisp.org>
53513
53514         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53515
53516 2007-04-10  Bruno Haible  <bruno@clisp.org>
53517
53518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53519         for NaN and Infinity. Needed on FreeBSD 6.1.
53520         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53521         regarding results for "%010a" of Infinity and NaN.
53522         * tests/test-vasprintf-posix.c (test_function): Likewise.
53523         * tests/test-snprintf-posix.h (test_function): Likewise.
53524         * tests/test-sprintf-posix.h (test_function): Likewise.
53525         * tests/test-fprintf-posix.h (test_function): Likewise.
53526         * tests/test-printf-posix.h (test_function): Likewise.
53527         * tests/test-fprintf-posix.out: Likewise.
53528
53529 2007-04-10  Bruno Haible  <bruno@clisp.org>
53530
53531         * modules/locale-tests: New file.
53532         * tests/test-locale.c: New file.
53533
53534         * modules/locale: New file.
53535         * lib/locale_.h: New file.
53536         * m4/locale_h.m4: New file.
53537
53538 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53539             Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53542         be determined, test for availability of the copysignf, copysign,
53543         copysignl functions.
53544         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53545         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53546         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53547
53548 2007-04-09  Eric Blake  <ebb9@byu.net>
53549
53550         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53551         * modules/stdio (Makefile.am): Support fflush.
53552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53553         * modules/fflush: New file.
53554         * lib/fflush.c: Likewise.
53555         * m4/fflush.m4: Likewise.
53556         * modules/fflush-tests: New test.
53557         * tests/test-fflush.c: Likewise.
53558         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53559
53560 2007-04-06  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53563         (VASNPRINTF): Use signbit for faster determination whether to print a
53564         minus sign.
53565         * modules/vasnprintf (Files): Remove lib/float+.h.
53566         * modules/fprintf-posix (Depends-on): Add signbit.
53567         * modules/snprintf-posix (Depends-on): Likewise.
53568         * modules/sprintf-posix (Depends-on): Likewise.
53569         * modules/vasnprintf-posix (Depends-on): Likewise.
53570         * modules/vasprintf-posix (Depends-on): Likewise.
53571         * modules/vfprintf-posix (Depends-on): Likewise.
53572         * modules/vsnprintf-posix (Depends-on): Likewise.
53573         * modules/vsprintf-posix (Depends-on): Likewise.
53574
53575 2007-04-06  Bruno Haible  <bruno@clisp.org>
53576
53577         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53578         * tests/test-frexpl.c (main): Likewise.
53579         * tests/test-ldexpl.c (main): Likewise.
53580         * modules/frexp-tests (Depends-on): Add signbit.
53581         * modules/frexpl-tests (Depdends-on): Likewise.
53582         * modules/ldexpl-tests (Depdends-on): Likewise.
53583
53584 2007-04-06  Bruno Haible  <bruno@clisp.org>
53585
53586         * modules/signbit-tests: New file.
53587         * tests/test-signbit.c: New file.
53588
53589         * modules/signbit: New file.
53590         * lib/signbitf.c: New file.
53591         * lib/signbitd.c: New file.
53592         * lib/signbitl.c: New file.
53593         * m4/signbit.m4: New file.
53594         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53595         (signbit): New macro.
53596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53597         REPLACE_SIGNBIT.
53598         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53599         REPLACE_FREXPL into math.h.
53600
53601 2007-04-06  Bruno Haible  <bruno@clisp.org>
53602
53603         * modules/isnanf-nolibm-tests: New file.
53604         * tests/test-isnanf.c: New file.
53605
53606         * modules/isnanf-nolibm: New file.
53607         * lib/isnanf.h: New file.
53608         * lib/isnanf.c: New file.
53609         * lib/isnan.c: Consider the USE_FLOAT macro.
53610         * m4/isnanf.m4: New file.
53611
53612 2007-04-06  Bruno Haible  <bruno@clisp.org>
53613
53614         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53615         (Link): New section.
53616
53617         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53618
53619 2007-04-06  Bruno Haible  <bruno@clisp.org>
53620
53621         Assume the 'long double' type.
53622         * m4/longdouble.m4: Remove file.
53623         * config/srclist.txt: Don't mention longdouble.m4.
53624         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53625         * lib/float+.h: Likewise.
53626         * lib/frexp.c: Likewise.
53627         * lib/printf-args.h: Likewise.
53628         * lib/printf-args.c: Likewise.
53629         * lib/printf-frexp.c: Likewise.
53630         * lib/printf-parse.c: Likewise.
53631         * lib/vasnprintf.c: Likewise.
53632         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53633         * m4/intl.m4: Likewise.
53634         * m4/isnanl.m4: Likewise.
53635         * m4/printf.m4: Likewise.
53636         * m4/printf-frexpl.m4: Likewise.
53637         * m4/vasnprintf.m4: Likewise.
53638         * modules/allocsa (Files): Remove m4/longdouble.m4.
53639         * modules/gettext (Files): Likewise.
53640         * modules/relocatable-prog-wrapper (Files): Likewise.
53641         * modules/vasnprintf (Files): Likewise.
53642         * modules/isnanl (Files): Likewise.
53643         (Include): Simplify.
53644         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53645         (Include): Simplify.
53646         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53647         (Include): Simplify.
53648         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53649         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53650         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53651         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53652         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53653         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53654         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53655         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53656         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53657         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53658         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53659         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53660         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53661         * tests/test-isnanl.c: Likewise.
53662         * tests/test-snprintf-posix.h: Likewise.
53663         * tests/test-sprintf-posix.h: Likewise.
53664         * tests/test-vasnprintf-posix.c: Likewise.
53665         * tests/test-vasnprintf-posix2.c: Likewise.
53666         * tests/test-vasprintf-posix.c: Likewise.
53667
53668 2007-04-06  Bruno Haible  <bruno@clisp.org>
53669
53670         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53671         * lib/math_.h [__DECC]: Include the overridden include file through
53672         #include_next, outside the double-inclusion guard.
53673         * lib/stdio_.h [__DECC]: Likewise.
53674         * lib/stdlib_.h [__DECC]: Likewise.
53675         * lib/string_.h [__DECC]: Likewise.
53676         * lib/time_.h [__DECC]: Likewise.
53677         * lib/wchar_.h [__DECC]: Likewise.
53678         * lib/wctype_.h [__DECC]: Likewise.
53679         * lib/inttypes_.h [__DECC]: Likewise.
53680         Reported by Albert Chin <china@thewrittenword.com> in
53681         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53682
53683 2007-04-04  Eric Blake  <ebb9@byu.net>
53684
53685         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53686         1.5.x.
53687
53688 2007-04-04  Bruno Haible  <bruno@clisp.org>
53689
53690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53691         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53692
53693 2007-04-04  Bruno Haible  <bruno@clisp.org>
53694
53695         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53696         results for "%010a" of Infinity and NaN.
53697         * tests/test-vasprintf-posix.c (test_function): Likewise.
53698         * tests/test-snprintf-posix.h (test_function): Likewise.
53699         * tests/test-sprintf-posix.h (test_function): Likewise.
53700         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53701         * tests/test-printf-posix.h (test_function): Likewise.
53702         * tests/test-fprintf-posix.out: Update.
53703         Needed for FreeBSD 6.1.
53704
53705 2007-04-04  Bruno Haible  <bruno@clisp.org>
53706
53707         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53708         directly used by the gnulib modules nor by gnulib-tool.
53709
53710 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53711
53712         * DEPENDENCIES: Give overall description of version dependency
53713         desirability.  Use more-typical names for apps.
53714         Add shell, coreutils, diffutils, grep, tar, gzip.
53715
53716 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53717
53718         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53719
53720 2007-04-04  Karl Berry  <karl@gnu.org>
53721
53722         * MODULES.html.sh (func_module): missing '.
53723
53724 2007-04-03  Bruno Haible  <bruno@clisp.org>
53725
53726         * modules/argmatch-tests (Makefile.am): New variable
53727         test_argmatch_LDADD.
53728         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53729         * modules/array-list-tests (Makefile.am): New variable
53730         test_array_list_LDADD.
53731         * modules/array-oset-tests (Makefile.am): New variable
53732         test_array_oset_LDADD.
53733         * modules/avltree-list-tests (Makefile.am): New variable
53734         test_avltree_list_LDADD.
53735         * modules/avltree-oset-tests (Makefile.am): New variable
53736         test_avltree_oset_LDADD.
53737         * modules/avltreehash-list-tests (Makefile.am): New variable
53738         test_avltreehash_list_LDADD.
53739         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53740         test_canonicalize_lgpl_LDADD.
53741         * modules/carray-list-tests (Makefile.am): New variable
53742         test_carray_list_LDADD.
53743         * modules/dirname-tests (Makefile.am): New variable
53744         test_dirname_LDADD.
53745         * modules/linked-list-tests (Makefile.am): New variable
53746         test_linked_list_LDADD.
53747         * modules/linkedhash-list-tests (Makefile.am): New variable
53748         test_linkedhash_list_LDADD.
53749         * modules/rbtree-list-tests (Makefile.am): New variable
53750         test_rbtree_list_LDADD.
53751         * modules/rbtree-oset-tests (Makefile.am): New variable
53752         test_rbtree_oset_LDADD.
53753         * modules/rbtreehash-list-tests (Makefile.am): New variable
53754         test_rbtreehash_list_LDADD.
53755         * modules/xvasprintf-tests (Makefile.am): New variable
53756         test_xvasprintf_LDADD.
53757         Reported by Eric Blake.
53758
53759 2007-04-03  Eric Blake  <ebb9@byu.net>
53760
53761         * DEPENDENCIES: Weaken m4 requirements.
53762
53763 2007-04-03  Bruno Haible  <bruno@clisp.org>
53764
53765         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53766         * modules/isnanl-tests (configure.ac): Likewise.
53767
53768 2007-04-03  Ben Pfaff  <blp@gnu.org>
53769
53770         * modules/iconv_open: Add $(srcdir)/ to source directory
53771         references in Makefile fragments that call gperf, to fix VPATH
53772         builds.
53773
53774 2007-04-03  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53777         * lib/ldexpl.c: Undo last change.
53778
53779 2007-04-03  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/printf-frexpl (Depends-on): Undo last change.
53782         (Files): Add m4/ldexpl.m4.
53783
53784 2007-04-03  Bruno Haible  <bruno@clisp.org>
53785
53786         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53787         * modules/isnanl (Link): New section.
53788
53789         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53790         * modules/frexp (Link): New section.
53791
53792         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53793         * modules/frexpl (Link): New section.
53794
53795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53796         * modules/ldexpl (Link): New section.
53797
53798 2007-04-03  Bruno Haible  <bruno@clisp.org>
53799
53800         * modules/TEMPLATE-EXTENDED: New file.
53801         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53802
53803 2007-04-03  Bruno Haible  <bruno@clisp.org>
53804
53805         * DEPENDENCIES: New file.
53806         Suggested by Simon Josefsson.
53807
53808 2007-04-03  Bruno Haible  <bruno@clisp.org>
53809
53810         * doc/gnulib.texi: Escape @.
53811
53812 2007-04-03  James Youngman  <jay@gnu.org>
53813         and Paul Eggert  <eggert@cs.ucla.edu>
53814
53815         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53816         birthtime on all systems that have birthtime, not just those which
53817         use st_birthtimensec rather than st_birthtim.  Putting zero in
53818         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53819         that the birth time is not available for files on an NFS mount.
53820
53821 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53822
53823         * modules/memxor: Move back from crypto/, suggested by Bruno.
53824         * modules/crypto/hmac-sha1: Fix memxor dependency.
53825
53826         * modules/crypto/gc: Moved from ../.
53827
53828 2007-04-02  Eric Blake  <ebb9@byu.net>
53829
53830         * lib/ldexpl.c (includes): Avoid libm.
53831
53832         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53833
53834 2007-04-02  Bruno Haible  <bruno@clisp.org>
53835
53836         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53837         on IRIX.
53838
53839 2007-04-02  Bruno Haible  <bruno@clisp.org>
53840
53841         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53842         x86 or x86_64 platforms running MacOS X.
53843         Reported by Ryan Schmidt <@ryandesign.com>.
53844
53845 2007-04-02  Bruno Haible  <bruno@clisp.org>
53846
53847         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53848         i386.
53849
53850 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53851
53852         * modules/crypto/arcfour: Moved from ../.
53853         * modules/crypto/arcfour-tests: Moved from ../.
53854         * modules/crypto/arctwo: Moved from ../.
53855         * modules/crypto/arctwo-tests: Moved from ../.
53856         * modules/crypto/des: Moved from ../.
53857         * modules/crypto/des-tests: Moved from ../.
53858         * modules/crypto/gc-arcfour: Moved from ../.
53859         * modules/crypto/gc-arcfour-tests: Moved from ../.
53860         * modules/crypto/gc-arctwo: Moved from ../.
53861         * modules/crypto/gc-arctwo-tests: Moved from ../.
53862         * modules/crypto/gc-des: Moved from ../.
53863         * modules/crypto/gc-des-tests: Moved from ../.
53864         * modules/crypto/gc-hmac-md5: Moved from ../.
53865         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53866         * modules/crypto/gc-hmac-sha1: Moved from ../.
53867         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53868         * modules/crypto/gc-md2: Moved from ../.
53869         * modules/crypto/gc-md2-tests: Moved from ../.
53870         * modules/crypto/gc-md4: Moved from ../.
53871         * modules/crypto/gc-md4-tests: Moved from ../.
53872         * modules/crypto/gc-md5: Moved from ../.
53873         * modules/crypto/gc-md5-tests: Moved from ../.
53874         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53875         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53876         * modules/crypto/gc-random: Moved from ../.
53877         * modules/crypto/gc-rijndael: Moved from ../.
53878         * modules/crypto/gc-rijndael-tests: Moved from ../.
53879         * modules/crypto/gc-sha1: Moved from ../.
53880         * modules/crypto/gc-sha1-tests: Moved from ../.
53881         * modules/crypto/gc-tests: Moved from ../.
53882         * modules/crypto/hmac-md5: Moved from ../.
53883         * modules/crypto/hmac-md5-tests: Moved from ../.
53884         * modules/crypto/hmac-sha1: Moved from ../.
53885         * modules/crypto/hmac-sha1-tests: Moved from ../.
53886         * modules/crypto/md2: Moved from ../.
53887         * modules/crypto/md2-tests: Moved from ../.
53888         * modules/crypto/md4: Moved from ../.
53889         * modules/crypto/md4-tests: Moved from ../.
53890         * modules/crypto/md5: Moved from ../.
53891         * modules/crypto/md5-tests: Moved from ../.
53892         * modules/crypto/memxor: Moved from ../.
53893         * modules/crypto/rijndael: Moved from ../.
53894         * modules/crypto/rijndael-tests: Moved from ../.
53895         * modules/crypto/sha1: Moved from ../.
53896
53897 2007-03-30  James Youngman  <jay@gnu.org>
53898
53899         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53900         rename() to change the ctime of a file (because ctime is unaffected
53901         by rename on jfs2 on AIX 5.1).
53902         (main): Start by doing cleanup, in case a previous run failed leaving
53903         test files behind.
53904
53905 2007-03-31  Bruno Haible  <bruno@clisp.org>
53906
53907         Support old proprietary implementations of iconv.
53908         * modules/iconv_open: New file.
53909         * lib/iconv_.h: New file.
53910         * m4/iconv_h.m4: New file.
53911         * lib/iconv_open.c: New file.
53912         * lib/iconv_open-aix.gperf: New file.
53913         * lib/iconv_open-hpux.gperf: New file.
53914         * lib/iconv_open-irix.gperf: New file.
53915         * lib/iconv_open-osf.gperf: New file.
53916         * m4/iconv_open.m4: New file.
53917         * modules/linebreak (Depends-on): Add iconv_open.
53918         * modules/striconv (Depends-on): Likewise.
53919         * modules/striconveh (Depends-on): Likewise.
53920         * modules/unicodeio (Depends-on): Likewise.
53921         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53922         (iconv_t)(-1).
53923         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53924         conversion if cd is (iconv_t)(-1).
53925         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53926         is not possible.
53927
53928 2007-03-31  Bruno Haible  <bruno@clisp.org>
53929
53930         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53931         work on Solaris either. Protect also second use of "autodetect_jp".
53932
53933 2007-03-31  Bruno Haible  <bruno@clisp.org>
53934
53935         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53936         the function is not present.
53937
53938 2007-03-31  Bruno Haible  <bruno@clisp.org>
53939
53940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53941         the function is not present.
53942
53943 2007-03-31  Bruno Haible  <bruno@clisp.org>
53944
53945         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53946         a bug in HP-UX iconv_open().
53947
53948 2007-03-31  Bruno Haible  <bruno@clisp.org>
53949
53950         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53951         (Mathematics <math.h>): New section, add fpieee.
53952         (Input/output <stdio.h>): Add fseterr.
53953         (Mathematics <math.h>): New section, add printf-frexp.
53954         (Container data structures): Add sublist.
53955         (Core language properties): Add fpucw, inline.
53956         (Functions for greatest-width integer types <inttypes.h>): Add
53957         imaxabs, imaxdiv, inttypes.
53958         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53959         isnanl-nolibm, ldexp.
53960         (Mathematics <math.h>): New section, add printf-frexpl.
53961         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53962         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53963         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53964         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53965         (Unicode string functions): Add unistr/u*-mbtoucr.
53966         (Java): Add javacomp-script, javaexec-script.
53967         (C#): Add csharpcomp-script, csharpexec-script.
53968         (Support for building libraries and executables): Add havelib,
53969         relocatable-*.
53970         (Support for maintaining and releasing projects): Renamed from
53971         'Support for maintaining and release projects'. Add announce-gen.
53972
53973 2007-03-31  Bruno Haible  <bruno@clisp.org>
53974
53975         * README: Talk primarily about git.
53976         (git and CVS): Renamed from CVS.
53977         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53978         gnulib is available through git.
53979         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53980
53981 2007-03-30  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53984         * lib/poll_.h: Likewise.
53985         * lib/stat_.h: Likewise.
53986         * lib/sys_time_.h: Likewise.
53987         * lib/sysexit_.h: Likewise.
53988         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53989         * lib/stdbool_.h: Likewise.
53990         * lib/byteswap_.h: Add double-inclusion guard.
53991
53992 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53993
53994         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53995
53996 2007-03-30  Karl Berry  <karl@gnu.org>
53997
53998         * config/srclist-update: double space after USA in the license
53999         substitution, since that's how it's usually (?) written.
54000
54001 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54004         reported by Bruno Haible.
54005
54006 2007-03-29  Bruno Haible  <bruno@clisp.org>
54007
54008         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54009         a bug in AIX iconv().
54010
54011 2007-03-29  Bruno Haible  <bruno@clisp.org>
54012
54013         * modules/ldexpl-tests: New file.
54014         * tests/test-ldexpl.c: New file.
54015
54016 2007-03-29  Bruno Haible  <bruno@clisp.org>
54017
54018         * lib/ldexpl.c: Include fpucw.h.
54019         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54020         multiplication.
54021         * modules/ldexpl (Depends-on): Add fpucw.
54022
54023 2007-03-29  Bruno Haible  <bruno@clisp.org>
54024
54025         * modules/ldexpl: New file.
54026         * m4/ldexpl.m4: New file.
54027         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54028         set.
54029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54030         REPLACE_LDEXPL.
54031         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54032         REPLACE_LDEXPL.
54033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54034         gl_FUNC_LDEXPL_WORKS.
54035         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54036         * modules/mathl (Files): Remove lib/ldexpl.c.
54037         (Depends-on): Add ldexpl.
54038
54039 2007-03-29  Bruno Haible  <bruno@clisp.org>
54040
54041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54042
54043 2007-03-29  Bruno Haible  <bruno@clisp.org>
54044
54045         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54046         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54047         and possibly also HP-UX.
54048         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54049         work on AIX, IRIX, HP-UX, OSF/1.
54050         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54051         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54052         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54053         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54054         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54055         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54056
54057 2007-03-29  Bruno Haible  <bruno@clisp.org>
54058
54059         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54060
54061 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54064         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54065
54066 2007-03-29  Eric Blake  <ebb9@byu.net>
54067
54068         * lib/acl-internal.h: Remove redundant include.
54069         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54070         Cygwin when a file is locked.
54071
54072 2007-03-29  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54075         file.
54076         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54077
54078 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54079
54080         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54081         try to remove a parent directory if the child couldn't be removed
54082         (except for the first rmdir, which could fail because the child
54083         doesn't exist).  Problem reported by Jeff Blaine in
54084         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54085
54086 2007-03-28  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/striconveh.c (utf8conv_carefully): New function.
54089         (mem_cd_iconveh_internal): Invoke it.
54090
54091 2007-03-28  Bruno Haible  <bruno@clisp.org>
54092
54093         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54094         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54095         input.
54096         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54097         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54098         unistr/u8-uctomb.
54099
54100 2007-03-28  Bruno Haible  <bruno@clisp.org>
54101
54102         * modules/unistr/u8-mbtoucr: New file.
54103         * lib/unistr/u8-mbtoucr.c: New file.
54104         * modules/unistr/u16-mbtoucr: New file.
54105         * lib/unistr/u16-mbtoucr.c: New file.
54106         * modules/unistr/u16-mbtoucr: New file.
54107         * lib/unistr/u16-mbtoucr.c: New file.
54108         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54109
54110 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54111             Bruno Haible  <bruno@clisp.org>
54112
54113         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54114         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54115         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54116
54117         * m4/stdio_h.m4: Add stubs for vasprintf too.
54118
54119         * modules/stdio: Support vasprintf in sed command.
54120
54121         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54122         vasprintf.h.  Add stdio module indicator.
54123
54124         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54125         vasprintf.h.
54126
54127         * lib/vasprintf.h: File removed.
54128
54129         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54130         * lib/vasprintf.c: Ditto.
54131         * lib/xvasprintf.c: Ditto.
54132         * tests/test-vasprintf-posix.c: Ditto.
54133         * tests/test-vasprintf.c: Ditto.
54134
54135 2007-03-27  Bruno Haible  <bruno@clisp.org>
54136
54137         Make vasnprintf multithread-safe.
54138         * lib/vasnprintf.c (decimal_point_char): New function.
54139         (VASNPRINTF): Use it.
54140         Suggested by Simon Josefsson.
54141
54142 2007-03-27  Eric Blake  <ebb9@byu.net>
54143
54144         Support sub-second birthtime on cygwin.
54145         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54146         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54147         (get_stat_birthtime): Also work with st_birthtim.
54148
54149 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54152         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54153         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54154         (get_stat_birthtime_ns): Simplify compile-time tests.
54155         (get_stat_birthtime): Change the API to look like
54156         get_stat_mtime etc., except return a negative tv_nsec on error.
54157         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54158         Don't check for "spare" fields.
54159         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54160         or for struct stat.st_birthtime, as these tests aren't used.
54161         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54162
54163 2007-03-27  Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/stat-time.h: Include <sys/stat.h>.
54166
54167 2007-03-27  James Youngman  <jay@gnu.org>
54168
54169         * lib/stat-time.h (get_stat_birthtime): New function for
54170           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54171         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54172           and its variants.
54173         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54174         * modules/stat-time-test: New file.
54175         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54176
54177 2007-03-26  Bruno Haible  <bruno@clisp.org>
54178
54179         Better support of signalling NaNs.
54180         * lib/atanl.c: Include isnanl.h.
54181         (atanl): Perform test for NaN at the beginning of the function and
54182         through a call to isnanl.
54183         * lib/cosl.c: Include isnanl.h.
54184         (cosl): Perform test for NaN at the beginning of the function and
54185         through a call to isnanl.
54186         * lib/ldexpl.c: Include isnanl.h.
54187         (ldexpl): Perform test for NaN through a call to isnanl.
54188         * lib/logl.c: Include isnanl.h.
54189         (logl): Perform test for NaN at the beginning of the function and
54190         through a call to isnanl.
54191         * lib/sinl.c: Include isnanl.h.
54192         (sinl): Perform test for NaN at the beginning of the function and
54193         through a call to isnanl.
54194         * lib/sqrtl.c: Include isnanl.h.
54195         (sqrtl): Perform test for NaN at the beginning of the function and
54196         through a call to isnanl.
54197         * lib/tanl.c: Include isnanl.h.
54198         (tanl): Perform test for NaN at the beginning of the function and
54199         through a call to isnanl.
54200         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54201         * modules/mathl (Depends-on): Add isnanl.
54202
54203 2007-03-26  Eric Blake  <ebb9@byu.net>
54204
54205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54206         regression in logic sense of previous patch.
54207
54208 2007-03-26  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54211         unportable shell command "if ! ...".
54212         Reported by Ralf Wildenhues.
54213
54214 2007-03-25  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54217         <sysexits.h> file, and only add EX_CONFIG.
54218         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54219         absolute file name and whether it is sufficient. Substitute also
54220         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54221         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54222         ABSOLUTE_SYSEXITS_H into sysexits.h.
54223
54224 2007-03-25  Bruno Haible  <bruno@clisp.org>
54225
54226         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54227         hints is NULL.
54228
54229 2007-03-25  Bruno Haible  <bruno@clisp.org>
54230
54231         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54232         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54233
54234 2007-03-25  Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/vasnprintf.c: Include langinfo.h.
54237         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54238         multithread-safe.
54239         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54248         Reported by Simon Josefsson.
54249
54250 2007-03-25  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54253         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54254         * modules/vasnprintf (Depends-on): Add stdint.
54255
54256 2007-03-25  Bruno Haible  <bruno@clisp.org>
54257
54258         * modules/fpieee: New file.
54259         * m4/fpieee.m4: New file.
54260         * modules/isnan-nolibm (Depends-on): Add fpieee.
54261         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54262         * modules/isnanl (Depends-on): Add fpieee.
54263
54264 2007-03-25  Bruno Haible  <bruno@clisp.org>
54265
54266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54267
54268 2007-03-25  Bruno Haible  <bruno@clisp.org>
54269
54270         Avoid test failures on IRIX 6.5.
54271         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54272         (main): Use it.
54273         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54274         macros.
54275         (main): Use them.
54276
54277 2007-03-25  Bruno Haible  <bruno@clisp.org>
54278
54279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54280         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54281         exists but doesn't work.
54282         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54283         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54285         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54286         math.h.
54287
54288 2007-03-25  Bruno Haible  <bruno@clisp.org>
54289
54290         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54291         returns inf. Needed on IRIX 6.5.
54292
54293 2007-03-25  Bruno Haible  <bruno@clisp.org>
54294
54295         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54296         (main): Use isnanl instead of x != x idiom.
54297         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54298
54299         * tests/test-frexp.c: Include isnan.h.
54300         (main): Use isnan instead of x != x idiom.
54301         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54302
54303 2007-03-25  Bruno Haible  <bruno@clisp.org>
54304
54305         * tests/test-frexp.c (NaN): New function/macro.
54306         (main): Use it instead of 0.0 / 0.0.
54307         * tests/test-isnan.c (NaN): New function/macro.
54308         (main): Use it instead of 0.0 / 0.0.
54309         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54310         (test_function): Use it instead of 0.0 / 0.0.
54311         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54312         (test_function): Use it instead of 0.0 / 0.0.
54313         * tests/test-snprintf-posix.h (NaN): New function/macro.
54314         (test_function): Use it instead of 0.0 / 0.0.
54315         * tests/test-sprintf-posix.h (NaN): New function/macro.
54316         (test_function): Use it instead of 0.0 / 0.0.
54317         * tests/test-fprintf-posix.h (NaN): New function/macro.
54318         (test_function): Use it instead of 0.0 / 0.0.
54319         * tests/test-printf-posix.h (NaN): New function/macro.
54320         (test_function): Use it instead of 0.0 / 0.0.
54321
54322         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54323
54324 2007-03-25  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54327
54328 2007-03-25  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/regexec.c (merge_state_with_log): Make static.
54331
54332 2007-03-25  Bruno Haible  <bruno@clisp.org>
54333
54334         * lib/trigl.c (kernel_rem_pio2): Make static.
54335
54336 2007-03-25  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/sincosl.c (sincosl_table): Make static.
54339
54340 2007-03-25  Bruno Haible  <bruno@clisp.org>
54341
54342         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54343         if the compiler does not support C99.
54344
54345 2007-03-25  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/time (Makefile.am): Ensure all rule action lines start with a
54348         tab.
54349
54350 2007-03-24  Bruno Haible  <bruno@clisp.org>
54351
54352         * modules/tsearch-tests: New file.
54353         * tests/test-tsearch.sh: New file.
54354         * tests/test-tsearch.c: New file, mostly copied from glibc.
54355
54356         * modules/search-tests: New file.
54357         * tests/test-search.c: New file.
54358
54359         * modules/search: New file.
54360         * lib/search_.h: New file, incorporating lib/tsearch.h.
54361         * m4/search_h.m4: New file.
54362         * lib/tsearch.h: Remove file.
54363         * lib/tsearch.c: Include search.h instead of tsearch.h.
54364         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54365         HAVE_TSEARCH.
54366         * modules/tsearch (Files): Remove lib/tsearch.h.
54367         (Depends-on): Add search.
54368         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54369         (Include): Change tsearch.h into search.h.
54370
54371 2007-03-24  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/fpucw: New file.
54374         * lib/fpucw.h: New file.
54375         * lib/frexp.c: Include fpucw.h.
54376         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54377         (FUNC): Use them.
54378         * lib/printf-frexp.c: Include fpucw.h.
54379         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54380         (FUNC): Use them.
54381         * lib/vasnprintf.c: Include fpucw.h.
54382         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54383         'long double' calculations.
54384         * tests/test-frexpl.c: Include fpucw.h.
54385         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54386         * tests/test-printf-frexpl.c: Include fpucw.h.
54387         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54388         * modules/frexpl (Depends-on): Add fpucw.
54389         * modules/printf-frexpl (Depends-on): Likewise.
54390         * modules/fprintf-posix (Depends-on): Likewise.
54391         * modules/snprintf-posix (Depends-on): Likewise.
54392         * modules/sprintf-posix (Depends-on): Likewise.
54393         * modules/vasnprintf-posix (Depends-on): Likewise.
54394         * modules/vasprintf-posix (Depends-on): Likewise.
54395         * modules/vfprintf-posix (Depends-on): Likewise.
54396         * modules/vsnprintf-posix (Depends-on): Likewise.
54397         * modules/vsprintf-posix (Depends-on): Likewise.
54398         * modules/frexpl-tests (Depends-on): Likewise.
54399         * modules/printf-frexpl-tests (Depends-on): Likewise.
54400
54401 2007-03-24  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/float+.h: New file.
54404         * lib/isnan.c: Include float+.h.
54405         (SIZE): New macro.
54406         (FUNC): Compare only SIZE bytes of the value.
54407         * lib/vasnprintf.c: Include float+.h.
54408         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54409         SIZEOF_LDBL or SIZEOF_DBL bytes.
54410         * modules/isnan-nolibm (Files): Add lib/float+.h.
54411         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54412         * modules/isnanl (Files): Add lib/float+.h.
54413         * modules/vasnprintf (Files): Add lib/float+.h.
54414
54415 2007-03-24  Bruno Haible  <bruno@clisp.org>
54416
54417         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54418         include isnanl-nolibm.h.
54419
54420 2007-03-24  Bruno Haible  <bruno@clisp.org>
54421
54422         * tests/test-read-file.c (main): Don't produce spurious output for
54423         expected situations. Make the test fail if it encountered unexpected
54424         results.
54425
54426 2007-03-24  Bruno Haible  <bruno@clisp.org>
54427
54428         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54429         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54430
54431 2007-03-24  Bruno Haible  <bruno@clisp.org>
54432
54433         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54434
54435 2007-03-24  Bruno Haible  <bruno@clisp.org>
54436
54437         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54438         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54439
54440         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54441         * modules/utf8-ucs4: Turn into a symbolic link to module
54442         unistr/u8-mbtouc.
54443
54444         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54445         utf8-ucs4-unsafe.
54446         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54447         unistr/u8-mbtouc-unsafe.
54448
54449         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54450         * modules/utf16-ucs4: Turn into a symbolic link to module
54451         unistr/u16-mbtouc.
54452
54453         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54454         utf16-ucs4-unsafe.
54455         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54456         unistr/u16-mbtouc-unsafe.
54457
54458         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54459         * modules/ucs4-utf8: Turn into a symbolic link to module
54460         unistr/u8-ubtomb.
54461
54462         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54463         * modules/ucs4-utf16: Turn into a symbolic link to module
54464         unistr/u16-ubtomb.
54465
54466 2007-03-24  Bruno Haible  <bruno@clisp.org>
54467
54468         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54469         Enable the function only if HAVE_INLINE.
54470         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54471         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54472         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54473         Enable the function only if HAVE_INLINE.
54474         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54475         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54476         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54477         Enable the function only if HAVE_INLINE.
54478         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54479         Enable the function only if HAVE_INLINE.
54480         * modules/utf8-ucs4: Update.
54481         * modules/utf8-ucs4-unsafe: Update.
54482         * modules/utf16-ucs4: Update.
54483         * modules/utf16-ucs4-unsafe: Update.
54484         * modules/ucs4-utf8: Update.
54485         * modules/ucs4-utf16: Update.
54486
54487 2007-03-24  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/utf8-ucs4.h: Remove file.
54490         * lib/utf8-ucs4-unsafe.h: Remove file.
54491         * lib/utf16-ucs4.h: Remove file.
54492         * lib/utf16-ucs4-unsafe.h: Remove file.
54493         * lib/ucs4-utf8.h: Remove file.
54494         * lib/ucs4-utf16.h: Remove file.
54495         * lib/unistr.h: Include their previous contents.
54496         * m4/utf-ucs4.m4: Remove file.
54497         * m4/ucs4-utf.m4: Remove file.
54498         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54499         (Depends-on): Add unistr/base.
54500         (configure.ac): Remove gl_UTF_UCS4.
54501         (Makefile.am): Update.
54502         (Include): Change to unistr.h.
54503         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54504         (Depends-on): Add unistr/base.
54505         (configure.ac): Remove gl_UTF_UCS4.
54506         (Makefile.am): Update.
54507         (Include): Change to unistr.h.
54508         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54509         (Depends-on): Add unistr/base.
54510         (configure.ac): Remove gl_UTF_UCS4.
54511         (Makefile.am): Update.
54512         (Include): Change to unistr.h.
54513         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54514         (Depends-on): Add unistr/base.
54515         (configure.ac): Remove gl_UTF_UCS4.
54516         (Makefile.am): Update.
54517         (Include): Change to unistr.h.
54518         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54519         (Depends-on): Add unistr/base.
54520         (configure.ac): Remove gl_UCS4_UTF.
54521         (Makefile.am): Update.
54522         (Include): Change to unistr.h.
54523         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54524         (Depends-on): Add unistr/base.
54525         (configure.ac): Remove gl_UCS4_UTF.
54526         (Makefile.am): Update.
54527         (Include): Change to unistr.h.
54528         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54529         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54530         utf8-ucs4-unsafe.h.
54531         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54532         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54533         utf16-ucs4-unsafe.h.
54534         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54535         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54536         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54537         * lib/unistr/u8-strchr.c: Likewise.
54538         * lib/unistr/u8-strrchr.c: Likewise.
54539         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54540         * lib/unistr/u16-strchr.c: Likewise.
54541         * lib/unistr/u16-strrchr.c: Likewise.
54542         * lib/striconveh.c: Update.
54543         * lib/linebreak.c: Update.
54544
54545 2007-03-24  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54548         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54549
54550 2007-03-22  Bruno Haible  <bruno@clisp.org>
54551
54552         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54553
54554 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54555
54556         * MODULES.html.sh (File system functions): New module write-any-file.
54557         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54558         * m4/write-any-file.m4: New files.
54559
54560 2007-03-23  Eric Blake  <ebb9@byu.net>
54561
54562         * gnulib-tool: Rearrange space-tab sequences, since some editors
54563         like to eat them.
54564
54565 2007-03-23  Eric Blake  <ebb9@byu.net>
54566
54567         * lib/version-etc.c (version_etc_va): Update license wording to
54568         be more concise.  Recommended by Richard Stallman.
54569
54570 2007-03-22  Bruno Haible  <bruno@clisp.org>
54571
54572         * lib/poll.c (MSG_PEEK): New fallback definition.
54573
54574 2007-03-22  Bruno Haible  <bruno@clisp.org>
54575
54576         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54577         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54578         (main): Update.
54579         Fixes a compilation error on BeOS.
54580
54581 2007-03-22  Bruno Haible  <bruno@clisp.org>
54582
54583         * modules/frexpl-tests: New file.
54584         * tests/test-frexpl.c: New file.
54585
54586         * modules/frexpl: New file.
54587         * m4/frexpl.m4: New file.
54588         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54589         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54591         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54592         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54593         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54594
54595 2007-03-22  Bruno Haible  <bruno@clisp.org>
54596
54597         * lib/frexpl.c: Share code with lib/frexp.c.
54598         * modules/mathl (Files): Add lib/frexp.c.
54599         (Depends-on): Add isnanl-nolibm.
54600
54601 2007-03-22  Bruno Haible  <bruno@clisp.org>
54602
54603         * modules/printf-frexp (Files): Add m4/frexp.m4.
54604         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54605         only if the found frexp function actually works.
54606
54607 2007-03-22  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/frexp.c: Remove older implementation that uses divisions.
54610
54611 2007-03-21  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/frexp-tests: New file.
54614         * tests/test-frexp.c: New file.
54615
54616         * modules/frexp: New file.
54617         * lib/frexp.c: New file.
54618         * m4/frexp.m4: New file.
54619         * lib/math_.h (frexp): New declaration.
54620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54621         REPLACE_FREXP.
54622         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54623
54624 2007-03-21  Bruno Haible  <bruno@clisp.org>
54625
54626         * modules/isnanl-tests: New file.
54627         * tests/test-isnanl.c: New file.
54628
54629         * modules/isnanl: New file.
54630         * lib/isnanl.h: New file.
54631         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54632         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54633         gl_FUNC_ISNANL_WORKS.
54634         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54635         New macros.
54636
54637 2007-03-21  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54640         lib/isnanl.h.
54641         (Include): Update.
54642         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54643         * lib/vasnprintf.c: Update.
54644         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54645         tests/test-isnanl.h, remove tests/test-isnanl.c.
54646         (Makefile.am): Update.
54647         * tests/test-isnanl-nolibm.c: New file.
54648         * tests/test-isnanl.h: New file.
54649         * tests/test-isnanl.c: Remove file.
54650
54651 2007-03-21  Jim Meyering  <jim@meyering.net>
54652
54653         When trying to open ".", treat ESTALE like EACCES.
54654         * lib/savewd.c (savewd_save): Resort to forking not just upon
54655         failure with EACCES, but also when errno is ESTALE.
54656
54657 2007-03-20  Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54660         Needed on AIX 5.1. Reported by Matthew Woehlke.
54661
54662 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         Suggestions by Bruno Haible:
54665         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54666         our own.
54667         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54668         * modules/acl (Depends-on): Add gettext.
54669
54670 2007-03-19  Bruno Haible  <bruno@clisp.org>
54671
54672         * modules/iconvme: Remove file.
54673         * lib/iconvme.h: Remove file.
54674         * lib/iconvme.c: Remove file.
54675         * m4/iconvme.m4: Remove file.
54676
54677 2007-03-19  Bruno Haible  <bruno@clisp.org>
54678
54679         * doc/relocatable-maint.texi: Break long shell script line.
54680         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54681
54682 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54685         handle file_has_acl.
54686         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54687         * lib/acl.c: Move header inclusions and related macro defns into
54688         lib/acl-internal.h.
54689         (S_ISLNK): Remove defn, since that's now done for us.
54690         (file_has_acl): Move to lib/file-has-acl.c.
54691         Call acl_trivial if available.  This is the crucial part of the fix.
54692         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54693         shared within the library.  Rewrite a bit, partly to make it compatible
54694         with the GNU coding style.
54695         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54696         Remove unnecessary double-quotes.
54697         Don't test for acl_to_text; the build will catch that.
54698         Replace acl_entries if it doesn't exist and it is needed.
54699         Check for -lsec and acl_trivial (as used on Solaris 10).
54700         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54701         lib/file-has-acl.c.
54702         (Depends-on): Add sys_stat, for S_ISLNK.
54703
54704 2007-03-19  Ben Pfaff  <blp@gnu.org>
54705
54706         * doc/gnulib.texi: Fix typos.
54707         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54708
54709 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54710
54711         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54712         If size is zero here, buf must be zero.
54713
54714 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54715
54716         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54717         <bruno@clisp.org>.
54718
54719 2007-03-18  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54722         Suggested by Eric Blake.
54723
54724 2007-03-18  Ben Pfaff  <blp@gnu.org>
54725
54726         * doc/relocatable.texi: Recommend using as prefix a directory
54727         that does not exist and will never be created.  Based on
54728         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54729         and others.
54730
54731 2007-03-17  Bruno Haible  <bruno@clisp.org>
54732
54733         * lib/fchownat.c: Include lchown.h.
54734
54735 2007-03-17  Bruno Haible  <bruno@clisp.org>
54736
54737         Fix endless loop when the given allocated size was > INT_MAX.
54738         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54739         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54740         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54741         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54742         * lib/sprintf.c (sprintf): Likewise.
54743
54744 2007-03-17  Bruno Haible  <bruno@clisp.org>
54745
54746         * tests/test-argp-2.sh (func_compare): Output a context diff.
54747
54748 2007-03-17  Bruno Haible  <bruno@clisp.org>
54749
54750         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54751         locale's decimal-point character.
54752
54753 2007-03-17  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54756         before comparing it. Needed because on some platforms (e.g. x86) a
54757         'long double' occupies less bytes than sizeof (long double).
54758
54759 2007-03-17  Bruno Haible  <bruno@clisp.org>
54760
54761         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54762         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54763         * tests/test-getaddrinfo.c (simple): Likewise.
54764         * tests/test-read-file.c (main): Likewise.
54765
54766 2007-03-17  Bruno Haible  <bruno@clisp.org>
54767
54768         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54769
54770 2007-03-17  Bruno Haible  <bruno@clisp.org>
54771
54772         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54773         unused variable.
54774
54775 2007-03-17  Bruno Haible  <bruno@clisp.org>
54776
54777         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54778         * tests/test-c-strncasecmp.c: Likewise.
54779
54780 2007-03-17  Bruno Haible  <bruno@clisp.org>
54781
54782         * modules/stdlib (Depends-on): Add unistd.
54783         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54784         Needed for MacOS X 10.3.
54785
54786 2007-03-17  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54789
54790 2007-03-17  Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54793
54794 2007-03-17  Bruno Haible  <bruno@clisp.org>
54795
54796         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54797         to reflect files copied from gnulib (with or without modifications).
54798         Suggested by Jim Meyering.
54799
54800 2007-03-17  Eric Blake  <ebb9@byu.net>
54801
54802         * NEWS: Document stdlib change from 2007-02-18.
54803
54804 2007-03-17  Jim Meyering  <jim@meyering.net>
54805
54806         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54807         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54808         someone uses a name containing shell meta-characters.
54809         Reported by Alfred M. Szmidt.
54810
54811         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54812
54813 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54814
54815         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54816         and copy gettext configuration files only if configure.ac contains
54817         a use of AM_GNU_GETTEXT_VERSION.
54818
54819 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54820
54821         * build-aux/bootstrap (gnulib_name): New variable.
54822         (gnulib_tool_options): Use it.
54823
54824 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54825
54826         * tests/test-des.c: Use new namespace.
54827
54828 2007-03-15  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54831         Reported by James Youngman <jay@gnu.org>.
54832
54833 2007-03-15  Bruno Haible  <bruno@clisp.org>
54834
54835         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54836         declared prototype. Needed with cc on OSF/1 5.1.
54837
54838 2007-03-15  Bruno Haible  <bruno@clisp.org>
54839
54840         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54841         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54842         (struct gl_list_implementation): Add dispose_fn argument to the
54843         'create_empty', 'create' methods.
54844         (struct gl_list_impl_base): Add field 'dispose_fn'.
54845         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54846         argument.
54847         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54848         dispose_fn argument.
54849         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54850         dispose_fn on the dropped values.
54851         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54852         dispose_fn argument.
54853         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54854         dropped values.
54855         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54856         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54857         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54858         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54859         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54860         argument.
54861         (gl_tree_list_free): Call dispose_fn on the dropped values.
54862         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54863         the dropped values.
54864         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54865         Add dispose_fn argument.
54866         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54867         Call dispose_fn on the dropped values.
54868         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54869         Add dispose_fn argument.
54870         (gl_sublist_create): Initialize the 'dispose_fn' field.
54871         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54872         * tests/test-array_list.c (main): Update.
54873         * tests/test-carray_list.c (main): Update.
54874         * tests/test-avltree_list.c (main): Update.
54875         * tests/test-rbtree_list.c (main): Update.
54876         * tests/test-avltreehash_list.c (main): Update.
54877         * tests/test-rbtreehash_list.c (main): Update.
54878         * tests/test-linked_list.c (main): Update.
54879         * tests/test-linkedhash_list.c (main): Update.
54880         * tests/test-array_oset.c (main): Update.
54881
54882 2007-03-15  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54885         (gl_oset_create_empty): Add dispose_fn argument.
54886         (struct gl_oset_implementation): Add dispose_fn argument to
54887         'create_empty' method.
54888         (struct gl_oset_impl_base): Add dispose_fn field.
54889         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54890         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54891         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54892         values.
54893         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54894         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54895         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54896         dropped value.
54897         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54898         dropped value.
54899         * tests/test-array_oset.c (main): Update.
54900         * tests/test-avltree_oset.c (main): Update.
54901         * tests/test-rbtree_oset.c (main): Update.
54902         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54903
54904 2007-03-13  Bruno Haible  <bruno@clisp.org>
54905
54906         * tests/test-stdbool.c (i): Update after last patch.
54907
54908 2007-03-12  Bruno Haible  <bruno@clisp.org>
54909
54910         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54911         the iswprint macro. Needed on Solaris 2.5.1.
54912
54913 2007-03-12  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-printf-frexp.c (main): Declare x as volatile.
54916
54917 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54918
54919         * doc/gnulib.texi (Build robot for gnulib): New section.
54920
54921 2007-03-12  Jim Meyering  <jim@meyering.net>
54922
54923         * build-aux/bootstrap: New file.
54924         * build-aux/bootstrap.conf: New file, from coreutils.
54925
54926 2007-03-11  Bruno Haible  <bruno@clisp.org>
54927
54928         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54929
54930 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54931
54932         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54933         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54934         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54935
54936 2007-03-11  Bruno Haible  <bruno@clisp.org>
54937
54938         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54939         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54940
54941 2007-03-11  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54944         formula. Needed for SunPRO C 5.0.
54945
54946 2007-03-11  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/long-options (Depends-on): Add getopt.
54949
54950 2007-03-11  Bruno Haible  <bruno@clisp.org>
54951
54952         * modules/modechange (Depends-on): Add stdbool.
54953
54954 2007-03-11  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/i-ring (Depends-on): Add stdbool.
54957
54958 2007-03-11  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/gc-des (Depends-on): Add stdbool.
54961
54962 2007-03-11  Bruno Haible  <bruno@clisp.org>
54963
54964         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54965
54966 2007-03-11  Bruno Haible  <bruno@clisp.org>
54967
54968         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54969
54970 2007-03-11  Bruno Haible  <bruno@clisp.org>
54971
54972         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54973
54974 2007-03-11  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/vasnprintf.c (sprintf): Undefine.
54977
54978 2007-03-11  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54981         initializers in SunPRO C and Compaq C compilers.
54982
54983 2007-03-11  Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54986         decrementing code ANSI C compliant.
54987
54988 2007-03-11  Bruno Haible  <bruno@clisp.org>
54989
54990         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54991         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54992
54993 2007-03-11  Bruno Haible  <bruno@clisp.org>
54994
54995         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54996         <stdbool.h> substitute doesn't pass.
54997
54998 2007-03-11  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55001
55002 2007-03-11  Bruno Haible  <bruno@clisp.org>
55003
55004         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55005         script, for submission to autobuild.josefsson.org.
55006
55007 2007-03-10  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/canonicalize-lgpl-tests: New file.
55010         * tests/test-canonicalize-lgpl.sh: New file.
55011         * tests/test-canonicalize-lgpl.c: New file.
55012
55013         * modules/c-strcase-tests: New file.
55014         * tests/test-c-strcase.sh: New file.
55015         * tests/test-c-strcasecmp.c: New file.
55016         * tests/test-c-strncasecmp.c: New file.
55017
55018         * modules/atexit-tests: New file.
55019         * tests/test-atexit.sh: New file.
55020         * tests/test-atexit.c: New file.
55021
55022 2007-03-10  Bruno Haible  <bruno@clisp.org>
55023
55024         * tests/test-binary-io.sh: Use temporary filenames that are not so
55025         likely to clash with those of other tests (in a parallel make).
55026         * tests/test-binary-io.c: Likewise.
55027
55028 2007-03-10  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55031         fallback; use #error instead.
55032         Suggested by Simon Josefsson.
55033
55034 2007-03-10  Bruno Haible  <bruno@clisp.org>
55035
55036         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55037         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55038         first and the last.
55039
55040 2007-03-10  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55043
55044 2007-03-10  Bruno Haible  <bruno@clisp.org>
55045
55046         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55047         "make distcheck".
55048         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55049         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55050         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55051
55052 2007-03-10  Bruno Haible  <bruno@clisp.org>
55053
55054         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55055         variable.
55056         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55057         variable.
55058
55059 2007-03-09  Eric Blake  <ebb9@byu.net>
55060         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55061
55062         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55063         types are not being provided by gnulib.
55064         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55065         types are supported.
55066
55067 2007-03-10  Bruno Haible  <bruno@clisp.org>
55068
55069         * lib/stdio_.h (__attribute__): New macro.
55070         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55071         vsprintf): Specify __attribute__ __format__ for GCC.
55072         Suggested by Eric Blake.
55073
55074 2007-03-09  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/printf-posix-tests: New file.
55077         * tests/test-printf-posix.sh: New file.
55078         * tests/test-printf-posix.c: New file.
55079
55080         * modules/printf-posix: New file.
55081         * lib/printf.c: New file.
55082         * m4/printf-posix-rpl.m4: New file.
55083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55084         REPLACE_PRINTF.
55085         * lib/stdio_.h (printf): New declaration.
55086         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55087         ____strfmon____): New macros.
55088         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55089         REPLACE_PRINTF.
55090
55091 2007-03-09  Bruno Haible  <bruno@clisp.org>
55092
55093         * tests/test-vasnprintf-posix2.sh: New file.
55094         * tests/test-vasnprintf-posix2.c: New file.
55095         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55096         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55097         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55098
55099         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55100         a locale dependent decimal point, rather than always '.'.
55101
55102 2007-03-09  Eric Blake  <ebb9@byu.net>
55103
55104         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55105         spite of platforms like Tandem/NSK that define it to -1.
55106
55107 2007-03-08  Bruno Haible  <bruno@clisp.org>
55108
55109         * modules/vprintf-posix-tests: New file.
55110         * tests/test-vprintf-posix.sh: New file.
55111         * tests/test-vprintf-posix.c: New file.
55112         * tests/test-printf-posix.h: New file.
55113
55114         * modules/vprintf-posix: New file.
55115         * lib/vprintf.c: New file.
55116         * m4/vprintf-posix.m4: New file.
55117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55118         REPLACE_VPRINTF.
55119         * lib/stdio_.h (vprintf): New declaration.
55120         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55121         REPLACE_VPRINTF.
55122
55123 2007-03-08  Bruno Haible  <bruno@clisp.org>
55124
55125         * modules/fprintf-posix-tests: New file.
55126         * tests/test-fprintf-posix.sh: New file.
55127         * tests/test-fprintf-posix.c: New file.
55128
55129         * modules/fprintf-posix: New file.
55130         * lib/fprintf.c: New file.
55131         * m4/fprintf-posix.m4: New file.
55132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55133         REPLACE_FPRINTF.
55134         * lib/stdio_.h (fprintf): New declaration.
55135         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55136         REPLACE_FPRINTF.
55137
55138 2007-03-08  Bruno Haible  <bruno@clisp.org>
55139
55140         * modules/vfprintf-posix-tests: New file.
55141         * tests/test-vfprintf-posix.sh: New file.
55142         * tests/test-vfprintf-posix.c: New file.
55143         * tests/test-fprintf-posix.h: New file.
55144         * tests/test-fprintf-posix.out: New file.
55145
55146         * modules/vfprintf-posix: New file.
55147         * lib/vfprintf.c: New file.
55148         * m4/vfprintf-posix.m4: New file.
55149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55150         REPLACE_VFPRINTF.
55151         * lib/stdio_.h (vfprintf): New declaration.
55152         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55153         REPLACE_VFPRINTF.
55154
55155 2007-03-08  Bruno Haible  <bruno@clisp.org>
55156
55157         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55158
55159 2007-03-08  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55162         instead of 'expr' invocations.
55163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55168         Suggested by Paul Eggert.
55169
55170 2007-03-08  Bruno Haible  <bruno@clisp.org>
55171
55172         * modules/fseterr-tests: New file.
55173         * tests/test-fseterr.c: New file.
55174
55175         * modules/fseterr: New file.
55176         * lib/fseterr.h: New file.
55177         * lib/fseterr.c: New file.
55178
55179 2007-03-08  Bruno Haible  <bruno@clisp.org>
55180
55181         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55182         * lib/getopt_.h: Likewise.
55183         * lib/mbswidth.h: Likewise.
55184         * lib/setenv.h: Likewise.
55185         * lib/vasnprintf.h: Likewise.
55186         * lib/vasprintf.h: Likewise.
55187         * lib/verror.h: Likewise.
55188         * lib/xsetenv.h: Likewise.
55189         * lib/xvasprintf.h: Likewise.
55190
55191 2007-03-08  Jim Meyering  <jim@meyering.net>
55192
55193         * users.txt: Add parted.
55194
55195         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55196
55197 2007-03-07  Bruno Haible  <bruno@clisp.org>
55198
55199         * m4/printf.m4: Make the shell script snippets copy&pastable.
55200
55201 2007-03-02  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/netinet_in_.h: New file.
55204         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55205         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55206         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55207         (Depends-on): Add absolute-header.
55208         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55209         into netinet/in.h.
55210
55211 2007-03-03  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/sys_select_.h: New file.
55214         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55215         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55216         * modules/sys_select (Files): Add lib/sys_select_.h.
55217         (Depends-on): Add absolute-header.
55218         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55219         into sys/select.h.
55220
55221 2007-03-02  Bruno Haible  <bruno@clisp.org>
55222
55223         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55224         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55225         values.
55226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55227         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55228         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55229         * modules/sys_socket (Depends-on): Add absolute-header.
55230         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55231         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55232         (Include): Remove requirement of inclusion of <sys/types.h>.
55233
55234 2007-03-02  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/byteswap_.h (bswap_32): Fix formula.
55237
55238 2007-03-06  Bruno Haible  <bruno@clisp.org>
55239
55240         * modules/sprintf-posix-tests: New file.
55241         * tests/test-sprintf-posix.c: New file.
55242
55243         * modules/sprintf-posix: New file.
55244         * lib/sprintf.c: New file.
55245         * m4/sprintf-posix.m4: New file.
55246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55247         REPLACE_SPRINTF.
55248         * lib/stdio_.h (sprintf): New declaration.
55249         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55250         REPLACE_SPRINTF.
55251
55252 2007-03-06  Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/vsprintf-posix-tests: New file.
55255         * tests/test-vsprintf-posix.c: New file.
55256         * tests/test-sprintf-posix.h: New file.
55257
55258         * modules/vsprintf-posix: New file.
55259         * lib/vsprintf.c: New file.
55260         * m4/vsprintf-posix.m4: New file.
55261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55262         REPLACE_VSPRINTF.
55263         * lib/stdio_.h (vsprintf): New declaration.
55264         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55265         REPLACE_VSPRINTF.
55266
55267 2007-03-06  Bruno Haible  <bruno@clisp.org>
55268
55269         * modules/vsnprintf (Depend-on): Remove minmax.
55270
55271 2007-03-06  Bruno Haible  <bruno@clisp.org>
55272
55273         * modules/snprintf-posix-tests: New file.
55274         * tests/test-snprintf-posix.c: New file.
55275
55276         * modules/snprintf-posix: New file.
55277         * m4/snprintf-posix.m4: New file.
55278         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55279         gl_FUNC_SNPRINTF.
55280         (gl_FUNC_SNPRINTF): Invoke it.
55281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55282         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55283         is set.
55284         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55285
55286 2007-03-06  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/vsnprintf-posix-tests: New file.
55289         * tests/test-vsnprintf-posix.c: New file.
55290         * tests/test-snprintf-posix.h: New file.
55291
55292         * modules/vsnprintf-posix: New file.
55293         * m4/vsnprintf-posix.m4: New file.
55294         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55295         gl_FUNC_VSNPRINTF.
55296         (gl_FUNC_VSNPRINTF): Invoke it.
55297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55298         * lib/stdio_.h (vsnprintf): Define as a replacement if
55299         REPLACE_VSNPRINTF is set.
55300         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55301
55302 2007-03-06  Bruno Haible  <bruno@clisp.org>
55303
55304         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55306
55307 2007-03-06  Bruno Haible  <bruno@clisp.org>
55308
55309         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55310         (asinl): Declare also if HAVE_DECL_ASINL is set.
55311         (atanl): Declare also if HAVE_DECL_ATANL is set.
55312         (ceill): Declare also if HAVE_DECL_CEILL is set.
55313         (cosl): Declare also if HAVE_DECL_COSL is set.
55314         (expl): Declare also if HAVE_DECL_EXPL is set.
55315         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55316         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55317         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55318         (logl): Declare also if HAVE_DECL_LOGL is set.
55319         (sinl): Declare also if HAVE_DECL_SINL is set.
55320         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55321         (tanl): Declare also if HAVE_DECL_TANL is set.
55322         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55324         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55325         declaration of frexpl, ldexpl.
55326         * modules/printf-frexpl (Depends-on): Add math.
55327         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55328
55329 2007-03-05  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55332         frexpl and ldexpl are declared.
55333         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55334
55335 2007-03-05  Bruno Haible  <bruno@clisp.org>
55336
55337         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55338         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55339
55340 2007-03-05  Bruno Haible  <bruno@clisp.org>
55341
55342         * lib/stdio_.h: Include <stddef.h>.
55343
55344 2007-03-05  Bruno Haible  <bruno@clisp.org>
55345
55346         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55347
55348 2007-03-05  Bruno Haible  <bruno@clisp.org>
55349
55350         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55351         NetBSD 4, from Ralf Wildenhues.
55352
55353 2007-03-04  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/vasprintf.h: Update #if logic for the case when the functions
55356         exist but are overridden.
55357
55358 2007-03-04  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55361         implementations: glibc-2.4 and MacOS X 10.3.
55362         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55363         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55364         * tests/test-vasprintf-posix.c (test_function): Likewise.
55365
55366 2007-03-04  Bruno Haible  <bruno@clisp.org>
55367
55368         * modules/vasprintf-posix-tests: New file.
55369         * tests/test-vasprintf-posix.c: New file.
55370
55371         * modules/vasprintf-posix: New file.
55372         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55373         defined.
55374         * m4/vasprintf-posix.m4: New file.
55375         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55376         gl_FUNC_VASPRINTF.
55377         (gl_FUNC_VASPRINTF): Invoke it.
55378         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55379         here.
55380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55381
55382 2007-03-04  Bruno Haible  <bruno@clisp.org>
55383
55384         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55385         REPLACE_GETTIMEOFDAY.
55386         * modules/sys_time (Makefile.am): Likewise.
55387         * m4/sys_time_h.m4: Likewise.
55388         * m4/gettimeofday.m4: Likewise.
55389
55390 2007-03-04  Bruno Haible  <bruno@clisp.org>
55391
55392         * modules/vasnprintf-posix-tests: New file.
55393         * tests/test-vasnprintf-posix.c: New file.
55394
55395         * modules/vasnprintf-posix: New file.
55396         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55397         printf-frexpl.h.
55398         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55399         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55400         REPLACE_VASNPRINTF is defined.
55401         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55402         gl_FUNC_VASNPRINTF.
55403         (gl_FUNC_VASNPRINTF): Invoke it.
55404         * m4/vasnprintf-posix.m4: New file.
55405         * m4/printf.m4: New file.
55406
55407 2007-03-04  Bruno Haible  <bruno@clisp.org>
55408
55409         Compile progreloc.c only if --enable-relocatable is specified.
55410         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55411         if --enable-relocatable was specified.
55412         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55413         lib_SOURCES.
55414
55415 2007-03-04  Jim Meyering  <jim@meyering.net>
55416
55417         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55418         Use it consistently, rather than enumerating errno constants.
55419
55420 2007-03-04  Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/xvasprintf-tests: New file.
55423         * tests/test-xvasprintf.c: New file.
55424
55425         * modules/vasprintf-tests: New file.
55426         * tests/test-vasprintf.c: New file.
55427
55428         * modules/vasnprintf-tests: New file.
55429         * tests/test-vasnprintf.c: New file.
55430
55431         * modules/vsnprintf-tests: New file.
55432         * tests/test-vsnprintf.c: New file.
55433
55434         * modules/snprintf-tests: New file.
55435         * tests/test-snprintf.c: New file.
55436
55437 2007-03-04  Bruno Haible  <bruno@clisp.org>
55438
55439         Compile relocatable.c only if --enable-relocatable is specified.
55440         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55441         gl_RELOCATABLE_LIBRARY.
55442         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55443         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55444         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55445         gl_RELOCATABLE_LIBRARY.
55446         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55447         (Makefile.am): Remove lib_SOURCES.
55448         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55449         gl_RELOCATABLE_LIBRARY.
55450         (Makefile.am): Remove lib_SOURCES.
55451         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55452         always.
55453         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55454         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55455
55456 2007-03-04  Bruno Haible  <bruno@clisp.org>
55457
55458         * modules/argmatch-tests: New file.
55459         * tests/test-argmatch.c: New file.
55460
55461         * tests/test-allocsa.c (main): Halve the number of loop runs.
55462
55463         * modules/alloca-opt-tests: New file.
55464         * tests/test-alloca-opt.c: New file.
55465
55466 2007-03-04  Jim Meyering  <jim@meyering.net>
55467
55468         Work around difference between Linux ACLs and Solaris 10 ZFS.
55469         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55470         for EINVAL.
55471
55472 2007-03-03  Bruno Haible  <bruno@clisp.org>
55473
55474         * modules/relocatable-prog (Depends-on): Add back progreloc's
55475         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55476
55477 2007-03-03  Bruno Haible  <bruno@clisp.org>
55478
55479         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55480         * modules/relocatable-lib: New file.
55481
55482 2007-03-03  Bruno Haible  <bruno@clisp.org>
55483
55484         * modules/relocatable-prog: Renamed from modules/relocatable.
55485         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55486
55487 2007-03-03  Bruno Haible  <bruno@clisp.org>
55488
55489         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55490         m4/relocatable-lib.m4.
55491         (Depends-on): Remove 'relocatable'.
55492         (configure.ac): Add gl_RELOCATABLE_NOP.
55493
55494 2007-03-03  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/relocatable-prog-wrapper: New file.
55497         * modules/relocatable (Depends-on): Add it. Remove all other
55498         dependencies except progname.
55499         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55500
55501         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55502         (gl_FUNC_STRERROR): Nop.
55503         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55504
55505         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55506         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55507
55508         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55509         (gl_FUNC_READLINK): Update.
55510
55511         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55512
55513 2007-03-03  Bruno Haible  <bruno@clisp.org>
55514
55515         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55516         * modules/xreadlink (Depends-on): Add unistd.
55517         * modules/xreadlink-with-size (Depends-on): Likewise.
55518
55519 2007-03-03  Bruno Haible  <bruno@clisp.org>
55520
55521         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55522         extracted from gt_FUNC_SETENV.
55523         (gt_FUNC_SETENV): Remove macro.
55524         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55525         remove gt_FUNC_SETENV.
55526
55527 2007-03-03  Bruno Haible  <bruno@clisp.org>
55528
55529         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55530         ENABLE_RELOCATABLE here.
55531         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55532
55533 2007-03-03  Bruno Haible  <bruno@clisp.org>
55534
55535         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55536         * tests/test-rbtreehash_list.c: Include progname.h.
55537         (main): Call set_program_name.
55538
55539         * modules/rbtree-oset-tests (Depends-on): Add progname.
55540         * tests/test-rbtree_oset.c: Include progname.h.
55541         (main): Call set_program_name.
55542
55543         * modules/rbtree-list-tests (Depends-on): Add progname.
55544         * tests/test-rbtree_list.c: Include progname.h.
55545         (main): Call set_program_name.
55546
55547         * modules/linked-list-tests (Depends-on): Add progname.
55548         * tests/test-linked_list.c: Include progname.h.
55549         (main): Call set_program_name.
55550
55551 2007-03-03  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55554         All uses of __restrict changed to _Restrict_.
55555         * lib/glob_.h (__restrict): Remove macro.
55556
55557 2007-03-02  Bruno Haible  <bruno@clisp.org>
55558
55559         * modules/gettext (configure.ac): Require gettext infrastructure
55560         from version 0.16.1.
55561
55562 2007-03-02  Bruno Haible  <bruno@clisp.org>
55563
55564         * modules/linkedhash-list-tests (Depends-on): Add progname.
55565         * tests/test-linkedhash_list.c: Include progname.h.
55566         (main): Call set_program_name.
55567
55568         * modules/carray-list-tests (Depends-on): Add progname.
55569         * tests/test-carray_list.c: Include progname.h.
55570         (main): Call set_program_name.
55571
55572         * modules/avltreehash-list-tests (Depends-on): Add progname.
55573         * tests/test-avltreehash_list.c: Include progname.h.
55574         (main): Call set_program_name.
55575
55576         * modules/avltree-oset-tests (Depends-on): Add progname.
55577         * tests/test-avltree_oset.c: Include progname.h.
55578         (main): Call set_program_name.
55579
55580         * modules/avltree-list-tests (Depends-on): Add progname.
55581         * tests/test-avltree_list.c: Include progname.h.
55582         (main): Call set_program_name.
55583
55584         * modules/array-oset-tests (Depends-on): Add progname.
55585         * tests/test-array_oset.c: Include progname.h.
55586         (main): Call set_program_name.
55587
55588         * modules/array-list-tests (Depends-on): Add progname.
55589         * tests/test-array_list.c: Include progname.h.
55590         (main): Call set_program_name.
55591
55592         * modules/argp-tests (Depends-on): Add progname.
55593         * tests/test-argp.c: Include argp.h first. Include progname.h.
55594         (main): Call set_program_name.
55595
55596 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55597
55598         * doc/gnulib-tool.texi (Initial import): Reword description of
55599         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55600         limited effect even if defined after the first system include.
55601
55602 2007-03-01  Bruno Haible  <bruno@clisp.org>
55603
55604         * build-aux/config.libpath: Update to libtool-1.5.22.
55605         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55606
55607 2007-03-01  Bruno Haible  <bruno@clisp.org>
55608
55609         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55610         foo_CFLAGS.
55611         Reported by Ralf Wildenhues.
55612
55613 2007-03-01  Bruno Haible  <bruno@clisp.org>
55614
55615         * build-aux/install-reloc: Remove object files left over by some
55616         compilers.
55617         Reported by Ralf Wildenhues.
55618
55619 2007-03-01  Bruno Haible  <bruno@clisp.org>
55620
55621         * build-aux/install-reloc: Break long lines.
55622
55623 2007-03-01  Bruno Haible  <bruno@clisp.org>
55624
55625         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55626         Reported by Ralf Wildenhues.
55627
55628 2007-03-01  Bruno Haible  <bruno@clisp.org>
55629
55630         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55631         include ordering constraints.
55632
55633 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55634
55635         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55637         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55638         as another example.
55639         * lib/time_.h: Fix misspelling.
55640         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55641         Require gl_HEADER_TIME_H_DEFAULTS.
55642         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55643         * m4/time_r.m4 (gl_TIME_R): Likewise.
55644         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55645
55646 2007-03-01  Bruno Haible  <bruno@clisp.org>
55647
55648         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55649         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55650
55651 2007-03-01  Jim Meyering  <jim@meyering.net>
55652
55653         * modules/xreadlink (Maintainer): Add my name.
55654         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55655
55656 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55657             Bruno Haible  <bruno@clisp.org>
55658
55659         * build-aux/install-reloc: Compile also c-ctype.c.
55660         * build-aux/relocatable.sh.in: New file.
55661         * doc/relocatable.texi: New file.
55662         * doc/relocatable-maint.texi: New file.
55663         * doc/gnulib.texi: Include relocatable-maint.texi.
55664         * lib/progreloc.c: Include unistd.h unconditionally.
55665         * lib/relocwrapper.c: Include unistd.h unconditionally.
55666         Include c-ctype.h.
55667         (add_dotbin): Use c_tolower.
55668         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55669         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55670         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55671         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55672         to m4/relocatable-lib.m4.
55673         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55674         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55675         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55676         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55677         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55678         * modules/relocatable: New file.
55679         * modules/relocatable-lib: New file.
55680         * modules/relocatable-script: New file.
55681
55682 2007-02-28  Bruno Haible  <bruno@clisp.org>
55683
55684         Import --enable-relocatable infrastructure.
55685         * build-aux/config.libpath: New file, from GNU gettext.
55686         * build-aux/install-reloc: New file, from GNU gettext.
55687         * build-aux/reloc-ldflags: New file, from GNU gettext.
55688         * lib/relocatable.h: New file, from GNU gettext.
55689         * lib/relocatable.c: New file, from GNU gettext.
55690         * lib/relocwrapper.c: New file, from GNU gettext.
55691         * m4/relocatable.m4: New file, from GNU gettext.
55692
55693 2007-02-28  Bruno Haible  <bruno@clisp.org>
55694
55695         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55696
55697         * modules/xreadlink: New file, from GNU gettext with modifications.
55698         * lib/xreadlink.c: New file, from GNU gettext.
55699         * lib/xreadlink.h: Add comments.
55700         (xreadlink): New declaration.
55701
55702         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55703         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55704         lib/xreadlink-with-size.c.
55705         (configure.ac): Remove gl_XREADLINK invocation.
55706         (Makefile.am): Augment lib_SOURCES.
55707         * m4/xreadlink.m4: Remove file.
55708         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55709         (xreadlink_with_size): Renamed from xreadink.
55710         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55711         * modules/canonicalize (Depends-on): Replace xreadlink with
55712         xreadlink-with-size.
55713         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55714
55715 2007-02-25  Jim Meyering  <jim@meyering.net>
55716
55717         * build-aux/announce-gen: When complaining about excess arguments,
55718         list them.
55719
55720 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * README: Document signed integer overflow situation more
55723         accurately.
55724
55725 2007-02-25  Bruno Haible  <bruno@clisp.org>
55726
55727         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55728         'a' or 'A' conversion.
55729
55730 2007-02-25  Bruno Haible  <bruno@clisp.org>
55731
55732         * modules/filename: Renamed from modules/pathname.
55733         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55734         lib/concatpath.c with lib/concat-filename.c.
55735         (Makefile.am): Update.
55736         (Include): Replace pathname.h with filename.h.
55737         * lib/filename.h: Renamed from lib/pathname.h.
55738         (concatenated_filename): Renamed from concatenated_pathname.
55739         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55740         (concatenated_filename): Renamed from concatenated_pathname.
55741         * lib/findprog.c: Include filename.h instead of pathname.h.
55742         (find_in_path): Update.
55743         * lib/javacomp.c: Include filename.h instead of pathname.h.
55744         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55745         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55746         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55747         is_oldgcj_14_13_usable, is_javac_usable): Update.
55748         * lib/javaexec.c: Include filename.h instead of pathname.h.
55749         (execute_java_class): Update.
55750         * modules/findprog: Update.
55751         * modules/javacomp: Update.
55752         * modules/javaexec: Update.
55753         * MODULES.html.sh (File system functions): Add 'filename', remove
55754         'pathname'.
55755
55756 2007-02-25  Bruno Haible  <bruno@clisp.org>
55757
55758         * modules/printf-frexpl-tests: New file.
55759         * tests/test-printf-frexpl.c: New file.
55760
55761         * modules/printf-frexpl: New file.
55762         * lib/printf-frexpl.h: New file.
55763         * lib/printf-frexpl.c: New file.
55764         * m4/printf-frexpl.m4: New file.
55765
55766 2007-02-25  Bruno Haible  <bruno@clisp.org>
55767
55768         * modules/printf-frexp-tests: New file.
55769         * tests/test-printf-frexp.c: New file.
55770
55771         * modules/printf-frexp: New file.
55772         * lib/printf-frexp.h: New file.
55773         * lib/printf-frexp.c: New file.
55774         * m4/printf-frexp.m4: New file.
55775
55776 2007-02-25  Bruno Haible  <bruno@clisp.org>
55777
55778         Assume automake >= 1.10 for the tests.
55779         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55780         * modules/arctwo-tests: Likewise.
55781         * modules/argp-tests: Likewise.
55782         * modules/avltree-list-tests: Likewise.
55783         * modules/avltree-oset-tests: Likewise.
55784         * modules/avltreehash-list-tests: Likewise.
55785         * modules/carray-list-tests: Likewise.
55786         * modules/crc-tests: Likewise.
55787         * modules/des-tests: Likewise.
55788         * modules/gc-arcfour-tests: Likewise.
55789         * modules/gc-arctwo-tests: Likewise.
55790         * modules/gc-des-tests: Likewise.
55791         * modules/gc-hmac-md5-tests: Likewise.
55792         * modules/gc-hmac-sha1-tests: Likewise.
55793         * modules/gc-md2-tests: Likewise.
55794         * modules/gc-md4-tests: Likewise.
55795         * modules/gc-md5-tests: Likewise.
55796         * modules/gc-pbkdf2-sha1-tests: Likewise.
55797         * modules/gc-rijndael-tests: Likewise.
55798         * modules/gc-sha1-tests: Likewise.
55799         * modules/gc-tests: Likewise.
55800         * modules/getaddrinfo-tests: Likewise.
55801         * modules/hmac-md5-tests: Likewise.
55802         * modules/hmac-sha1-tests: Likewise.
55803         * modules/linked-list-tests: Likewise.
55804         * modules/linkedhash-list-tests: Likewise.
55805         * modules/lock-tests: Likewise.
55806         * modules/md2-tests: Likewise.
55807         * modules/md4-tests: Likewise.
55808         * modules/md5-tests: Likewise.
55809         * modules/rbtree-list-tests: Likewise.
55810         * modules/rbtree-oset-tests: Likewise.
55811         * modules/rbtreehash-list-tests: Likewise.
55812         * modules/read-file-tests: Likewise.
55813         * modules/rijndael-tests: Likewise.
55814         * modules/stdint-tests: Likewise.
55815         * modules/tls-tests: Likewise.
55816
55817 2007-02-24  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55820         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55821         function; instead check whether isnan with a double argument links.
55822         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55823         function; instead check whether isnan with a 'long double' argument
55824         links.
55825         Reported by Eric Blake <ebb9@byu.net>.
55826
55827 2007-02-24  Bruno Haible  <bruno@clisp.org>
55828
55829         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55830         defined.
55831         * lib/isnanl.c: Remove all code. Just include isnan.c.
55832         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55833
55834 2007-02-25  Jim Meyering  <jim@meyering.net>
55835
55836         Avoid conflicting types for 'unsetenv' on FreeBSD.
55837         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55838         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55839         in stdlib.h.
55840
55841 2007-02-24  Bruno Haible  <bruno@clisp.org>
55842
55843         * modules/isnanl-nolibm-tests: New file.
55844         * tests/test-isnanl.c: New file.
55845
55846         * modules/isnanl-nolibm: New file.
55847         * lib/isnanl.h: New file.
55848         * lib/isnanl.c: New file.
55849         * m4/isnanl.m4: New file.
55850
55851 2007-02-24  Bruno Haible  <bruno@clisp.org>
55852
55853         * modules/isnan-nolibm-tests: New file.
55854         * tests/test-isnan.c: New file.
55855
55856         * modules/isnan-nolibm: New file.
55857         * lib/isnan.h: New file.
55858         * lib/isnan.c: New file.
55859         * m4/isnan.m4: New file.
55860
55861 2007-02-24  Bruno Haible  <bruno@clisp.org>
55862
55863         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55864         assume that an exponent fits in 20 bits.
55865
55866 2007-02-24  Jim Meyering  <jim@meyering.net>
55867
55868         * m4/regex.m4: Update the description of the configure-time option,
55869         --without-included-regex, to state accurately what the defaults are,
55870         and perhaps to give people an idea why using this option is risky.
55871
55872 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55875         loops on small arguments.  This attempts to avoid the problem
55876         Bruno Haible reported for AIX 4.3.2 in
55877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55878
55879 2007-02-23  Bruno Haible  <bruno@clisp.org>
55880
55881         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55882         Needed for help2man.
55883
55884 2007-02-23  Karl Berry  <karl@gnu.org>
55885
55886         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55887         exists, foo.h should be cvs-ignored, not committed.
55888
55889 2007-02-23  Eric Blake  <ebb9@byu.net>
55890
55891         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55892         * lib/stat-time.h (includes): Likewise.
55893         * lib/utimecmp.c (includes): Likewise.
55894         * lib/utimens.h (includes): Likewise.
55895         * lib/getdate.y (includes): Also include "timespec.h" for use
55896         internal to the module.
55897         * modules/utimens (Depends-on): Revert yesterday's patch.
55898         * modules/nanosleep (Depends-on): Add missing dependency.
55899
55900 2007-02-22  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/glob.c: Don't include getlogin_r.h.
55903
55904 2007-02-22  Jim Meyering  <jim@meyering.net>
55905
55906         * modules/utimens (Depends-on): Add timespec, required for
55907         utimens.h's inclusion of timespec.h.
55908
55909 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55912         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55913         Schwab in
55914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55915         I'll try to think of a better way to fix the Solaris problem.
55916
55917         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55918         like glibc; on Solaris 10, it fails with errno == EINVAL.
55919         POSIX says the behavior is unspecified if the first argument is NULL,
55920         so play it safe and never pass NULL to the system getcwd.
55921
55922 2007-02-21  Jim Meyering  <jim@meyering.net>
55923
55924         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55925         of gettimeofday.  It would conflict with the one now always
55926         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55927         an IRIX 6.5 build failure.
55928
55929 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55930
55931         Minor fixups to port to Solaris 10 with Sun C 5.8.
55932         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55933         * modules/getcwd (Depends-on): Add dirfd.
55934         * lib/putenv.c (putenv): #undef it.
55935         (rpl_putenv): New decl.
55936         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55937
55938 2007-02-20  Bruno Haible  <bruno@clisp.org>
55939
55940         * modules/stdio-tests: New file.
55941         * tests/test-stdio.c: New file.
55942
55943         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55944         (Depends-on): Add stdio.
55945         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55946         (Include): Use <stdio.h> instead of vsnprintf.h.
55947         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55948         HAVE_DECL_VSNPRINTF.
55949         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55950
55951         * modules/snprintf (Files): Remove lib/snprintf.h.
55952         (Depends-on): Add stdio.
55953         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55954         (Include): Use <stdio.h> instead of snprintf.h.
55955         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55956         HAVE_DECL_SNPRINTF.
55957         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55958         * lib/getaddrinfo.c: Likewise.
55959
55960         * modules/stdio: New file.
55961         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55962         * lib/snprintf.h: Remove file.
55963         * lib/vsnprintf.h: Remove file.
55964         * lib/.cppi-disable: Remove snprintf.h.
55965         * m4/stdio_h.m4: New file.
55966         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55967
55968 2007-02-20  Jim Meyering  <jim@meyering.net>
55969
55970         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55971         used by e.g., mingw.  From Bruno Haible.
55972
55973 2007-02-19  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55976         warnings.
55977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55978
55979 2007-02-19  Bruno Haible  <bruno@clisp.org>
55980
55981         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55982         from mingw users.
55983
55984 2007-02-19  Bruno Haible  <bruno@clisp.org>
55985
55986         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55987         warnings.
55988         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55989
55990 2007-02-19  Jim Meyering  <jim@meyering.net>
55991
55992         Don't use FD after a successful "fdopendir (fd)".
55993         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55994         Reset it by calling dirfd on the just-obtained DIR*.
55995
55996         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55997         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55998
55999 2007-02-18  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/readlink.c: Include <unistd.h>.
56002         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56003         HAVE_READLINK.
56004         * modules/readlink (Depends-on): Add unistd.
56005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56006         (Include): Add <unistd.h>.
56007
56008         * lib/getlogin_r.h: Remove file.
56009         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56010         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56011         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56012         HAVE_DECL_GETLOGIN_R.
56013         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56015         (Include): Use <unistd.h> instead of getlogin_r.h.
56016
56017         * lib/getcwd.h: Remove file.
56018         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56019         * lib/xgetcwd.c: Likewise.
56020         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56021         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56022         * modules/getcwd (Files): Remove lib/getcwd.h.
56023         (Depends-on): Add unistd.
56024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56025         (Include): Use <unistd.h> instad of getcwd.h.
56026
56027         * lib/ftruncate.c: Include <unistd.h> first.
56028         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56029         Set HAVE_FTRUNCATE.
56030         * modules/ftruncate (Depends-on): Add unistd.
56031         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56032
56033         * lib/fchdir.c: Include <unistd.h> first.
56034         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56035         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56036         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56037         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56038         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56039
56040         * lib/dup2.c: Include <unistd.h> first.
56041         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56042         HAVE_DUP2.
56043         * modules/dup2 (Depends-on): Add unistd.
56044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56045
56046         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56047         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56048         REPLACE_CHOWN. Don't define chown as a macro here.
56049         * modules/chown (Depends-on): Add unistd.
56050         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56051
56052         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56053         Add definition for GL_LINK_WARNING.
56054         (chown, dup2): New declarations.
56055         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56056         link warning.
56057         (ftruncate): New declaration.
56058         (getcwd): New declaration, taken from old getcwd.h.
56059         (getlogin_r): New declaration, taken from old getlogin_r.h.
56060         (readlink): New declaration.
56061         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56062         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56063         (gl_PREREQ_UNISTD): Remove macro.
56064         (gl_UNISTD_MODULE_INDICATOR): New macro.
56065         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56066         many new variables. Don't set UNISTD_H.
56067         * modules/unistd (Description): Change.
56068         (Depends-on): Add link-warning.
56069         (configure.ac): Update.
56070         (Makefile.am): Create unistd.h always. Substitute many new variables
56071         into it.
56072
56073 2007-02-18  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56076         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56077         HAVE_GETSUBOPT.
56078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56079         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56080         * lib/getsubopt.h: Remove file.
56081         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56082         (Depends-on): Add stdlib.
56083         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56084         (Includes): Use <stdlib.h> instead of getsubopt.h.
56085         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56086         Set HAVE_GETSUBOPT.
56087         * lib/getsubopt.c: Don't include getsubopt.h.
56088
56089 2007-02-18  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/fchdir (Depends-on): Add dup2.
56092
56093 2007-02-18  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/stdlib_.h: Handle glibc's special invocation convention
56096         specially.
56097
56098 2007-02-18  Bruno Haible  <bruno@clisp.org>
56099
56100         * modules/stdlib-tests: New file.
56101         * tests/test-stdlib.c: New file.
56102
56103         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56104         (Depends-on): Add stdlib.
56105         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56106         (Includes): Use <stdlib.h> instead of mkstemp.h.
56107         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56108         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56109         * lib/mkstemp.c: Don't include mkstemp.h.
56110         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56111         * lib/stdlib--.h: Don't include mkstemp.h.
56112
56113         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56114         (Depends-on): Add stdlib.
56115         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56116         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56117         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56118         HAVE_MKDTEMP.
56119         * lib/mkdtemp.c: Don't include mkdtemp.h.
56120         * lib/clean-temp.c: Don't include mkdtemp.h.
56121
56122         * modules/exit (Files): Remove lib/exit.h.
56123         (Depends-on): Add stdlib.
56124         (Makefile.am): Remove lib_SOURCES.
56125         (Include): Use <stdlib.h> instead of exit.h.
56126         * lib/argmatch.c: Don't include exit.h.
56127         * lib/execute.c: Likewise.
56128         * lib/pagealign_alloc.c: Likewise.
56129         * lib/pipe.c: Likewise.
56130         * lib/wait-process.c: Likewise.
56131         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56132         * lib/exitfail.c: Likewise.
56133         * lib/savewd.c: Likewise.
56134         * lib/xsetenv.c: Likewise.
56135
56136         * modules/stdlib: New file.
56137         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56138         and extra comments about mkstemp().
56139         * lib/exit.h: Remove file.
56140         * lib/mkdtemp.h: Remove file.
56141         * lib/mkstemp.h: Remove file.
56142         * m4/stdlib_h.m4: New file.
56143         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56144
56145 2007-02-18  Bruno Haible  <bruno@clisp.org>
56146
56147         * modules/math-tests: New file.
56148         * tests/test-math.c: New file.
56149
56150         * modules/math: New file.
56151         * modules/mathl (Files): Remove lib/mathl.h.
56152         (Depends-on): Add math.
56153         (Makefile.am): Don't mention mathl.h.
56154         (Include): Use <math.h> instead of mathl.h.
56155         * lib/math_.h: New file.
56156         * lib/mathl.h: Remove file.
56157         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56158         mathl.h.
56159         * lib/asinl.c: Likewise.
56160         * lib/atanl.c: Likewise.
56161         * lib/ceill.c: Likewise.
56162         * lib/cosl.c: Likewise.
56163         * lib/expl.c: Likewise.
56164         * lib/floorl.c: Likewise.
56165         * lib/frexpl.c: Likewise.
56166         * lib/ldexpl.c: Likewise.
56167         * lib/logl.c: Likewise.
56168         * lib/sincosl.c: Likewise.
56169         * lib/sinl.c: Likewise.
56170         * lib/sqrtl.c: Likewise.
56171         * lib/tanl.c: Likewise.
56172         * lib/trigl.c: Likewise.
56173         * m4/math_h.m4: New file.
56174         * MODULES.html.sh (Mathematics): Add math.
56175
56176 2007-02-17  Bruno Haible  <bruno@clisp.org>
56177
56178         * modules/wctype-tests: New file.
56179         * tests/test-wctype.c: New file.
56180
56181         * modules/wchar-tests: New file.
56182         * tests/test-wchar.c: New file.
56183
56184         * modules/unistd-tests: New file.
56185         * tests/test-unistd.c: New file.
56186
56187         * modules/time-tests: New file.
56188         * tests/test-time.c: New file.
56189
56190         * modules/sysexits-tests: New file.
56191         * tests/test-sysexits.c: New file.
56192
56193         * modules/sys_time-tests: New file.
56194         * tests/test-sys_time.c: New file.
56195
56196         * modules/sys_stat-tests: New file.
56197         * tests/test-sys_stat.c: New file.
56198
56199         * modules/sys_socket-tests: New file.
56200         * tests/test-sys_socket.c: New file.
56201
56202         * modules/sys_select-tests: New file.
56203         * tests/test-sys_select.c: New file.
56204
56205         * modules/string-tests: New file.
56206         * tests/test-string.c: New file.
56207
56208         * modules/stdbool-tests: New file.
56209         * tests/test-stdbool.c: New file.
56210
56211         * modules/netinet_in-tests: New file.
56212         * tests/test-netinet_in.c: New file.
56213
56214         * modules/inttypes-tests: New file.
56215         * tests/test-inttypes.c: New file.
56216
56217         * modules/fcntl-tests: New file.
56218         * tests/test-fcntl.c: New file.
56219
56220         * modules/byteswap-tests: New file.
56221         * tests/test-byteswap.c: New file.
56222
56223         * modules/arpa_inet-tests: New file.
56224         * tests/test-arpa_inet.c: New file.
56225
56226 2007-02-17  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56229         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56230         if the corresponding module is not enabled. Emit link warnings if
56231         the function is used nevertheless.
56232         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56233         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56234         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56235         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56236         * modules/inttypes (Depends-on): Add link-warning.
56237         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56238         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56239         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56240         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56241         * modules/imaxdiv (configure.ac): Likewise.
56242         * modules/strtoimax (configure.ac): Likewise.
56243         * modules/strtoumax (configure.ac): Likewise.
56244
56245 2007-02-17  Bruno Haible  <bruno@clisp.org>
56246
56247         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56248         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56249         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56250         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56251
56252 2007-02-17  Bruno Haible  <bruno@clisp.org>
56253
56254         * modules/link-warning: New file.
56255         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56256         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56257         * modules/string (Depends-on): Add link-warning.
56258         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56259         string.h.
56260         * MODULES.html.sh (Support for building libraries and executables): Add
56261         link-warning.
56262
56263 2007-02-17  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56266         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56267         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56268         long lines.
56269
56270 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56271             Bruno Haible  <bruno@clisp.org>
56272
56273         * modules/tmpfile: New file.
56274         * lib/tmpfile.c: New file.
56275         * m4/tmpfile.m4: New file.
56276         * MODULES.html.sh (func_all_modules): New section "Input/output".
56277
56278 2007-02-15  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56281         (supports_delete_on_close): New function.
56282         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56283
56284 2007-02-14  Bruno Haible  <bruno@clisp.org>
56285
56286         * modules/mbspcasecmp-tests: New file.
56287         * tests/test-mbspcasecmp.sh: New file.
56288         * tests/test-mbspcasecmp.c: New file.
56289
56290         New module mbspcasecmp.
56291         * modules/mbspcasecmp: New file.
56292         * lib/mbspcasecmp.c: New file.
56293         * lib/string_.h (strncasecmp): Change warning message.
56294         (mbspcasecmp): New declaration.
56295         * m4/mbspcasecmp.m4: New file.
56296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56297         GNULIB_MBSPCASECMP.
56298         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56299         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56300
56301 2007-02-14  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/mbsncasecmp-tests: New file.
56304         * tests/test-mbsncasecmp.sh: New file.
56305         * tests/test-mbsncasecmp.c: New file.
56306
56307         New module mbsncasecmp.
56308         * modules/mbsncasecmp: New file.
56309         * lib/mbsncasecmp.c: New file.
56310         * lib/string_.h (mbsncasecmp): New declaration.
56311         * m4/mbsncasecmp.m4: New file.
56312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56313         GNULIB_MBSNCASECMP.
56314         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56315         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56316
56317 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56320         Verify that it doesn't overlap with our flags.
56321         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56322         do not have the desired effect in multibyte locales; instead, use
56323         mbscasecmp.
56324         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56325         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56326         we don't require GNU fnmatch ourselves (if our users require it, they
56327         should do so explicitly).
56328
56329         Fix regex code so it doesn't rely on strcasecmp.
56330         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56331         Otherwise, include gnulib's langinfo.h.
56332         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56333         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56334         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56335         * modules/regex (FILES): Remove m4/codeset.m4.
56336         (Depends-on): Add localcharset.  Remove strcase.
56337
56338 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56339
56340         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56341         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56342
56343 2007-02-13  Bruno Haible  <bruno@clisp.org>
56344
56345         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56346         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56347
56348 2007-02-12  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56351         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56352         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56353         time warning rather than a link error.
56354
56355 2007-02-12  Bruno Haible  <bruno@clisp.org>
56356
56357         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56359         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56360
56361 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56362
56363         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56364         args, not 2.
56365
56366 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         New module 'time', so that apps can include <time.h> as per
56369         POSIX and GNU instead of separate include files like time_r.h
56370         and timegm.h.  This implementation tries out a simpler approach
56371         for replacing decls in standard include files (as compared to
56372         the string module), somewhat as an experiment.
56373
56374         * config/srclist.txt: Comment out mktime.c for now.
56375         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56376         since it doesn't apply any more.  Use generic wording instead.
56377         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56378         'time'.
56379         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56380         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56381         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56382         Don't include <sys/types.h>; no longer needed since we assume C89.
56383         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56384         * lib/strftime.c: Likewise.
56385         * lib/time_r.c: Likewise.
56386         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56387         * lib/nanosleep.c: Include <time.h> first, to check interface.
56388         * lib/strptime.c: Likewise.
56389         * lib/time_r.c: Likewise.
56390         * lib/timegm.c: Likewise.
56391         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56392         needed.
56393         * lib/timegm.c: Don't include timegm.h; no longer needed.
56394         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56395         time.h now handles any problems in that area.
56396         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56397         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56398         that time.h defines struct timespec.
56399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56400         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56401         handles that.
56402         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56403         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56404         needed.  Set REPLACE_LOCALTIME.
56405         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56406         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56407         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56408         nanosleep; time_h.m4 now does that.  Don't require
56409         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56410         module handles this now.
56411         * modules/getdate (Depends-on): Remove timespec.  Add time.
56412         * modules/nanosleep (Depends-on): Likewise.
56413         * modules/stat-time (Depends-on): Likewise.
56414         * modules/nanosleep (Include): Include time.h, not timespec.h.
56415         * modules/strptime (Files): Remove lib/strptime.h.
56416         (Depends-on): Add extensions, time.
56417         (Include): Include time.h, not strptime.h.
56418         * modules/time_r (Files): Remove lib/time_r.h.
56419         (Depends-on): Add time.
56420         (Include): Include time.h, not time_r.h.
56421         * modules/timegm: Likewise.
56422         * modules/timespec (Description): Now does timespec-related decls
56423         of our own, instead of struct timespec itself.
56424         (Depends-on): Add time; remove extensions.
56425         (Maintainer): Add self.
56426         * modules/utimecmp (Depends-on): Add time; remove timespec.
56427         * modules/utimens (Depends-on): Likewise.
56428         * modules/xnanosleep (Depends-on): Likewise.
56429
56430 2007-02-11  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/c-strstr.c: Include allocsa.h.
56433         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56434         * lib/c-strcasestr.c: Include allocsa.h.
56435         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56436         * lib/strcasestr.c: Include allocsa.h.
56437         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56438         * lib/mbsstr.c: Include allocsa.h.
56439         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56440         allocsa/freesa instead of malloc/free.
56441         * lib/mbscasestr.c: Include allocsa.h.
56442         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56443         allocsa/freesa instead of malloc/free.
56444         * modules/c-strstr (Depends-on): Add allocsa.
56445         * modules/c-strcasestr (Depends-on): Likewise.
56446         * modules/strcasestr (Depends-on): Likewise.
56447         * modules/mbsstr (Depends-on): Likewise.
56448         * modules/mbscasestr (Depends-on): Likewise.
56449
56450 2007-02-11  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56453
56454         * modules/mbsspn-tests: New file.
56455         * tests/test-mbsspn.sh: New file.
56456         * tests/test-mbsspn.c: New file.
56457
56458 2007-02-11  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56461
56462         * modules/mbspbrk-tests: New file.
56463         * tests/test-mbspbrk.sh: New file.
56464         * tests/test-mbspbrk.c: New file.
56465
56466 2007-02-11  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56469         unneeded cast.
56470
56471         * modules/mbscspn-tests: New file.
56472         * tests/test-mbscspn.sh: New file.
56473         * tests/test-mbscspn.c: New file.
56474
56475 2007-02-11  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/mbscasecmp-tests: New file.
56478         * tests/test-mbscasecmp.sh: New file.
56479         * tests/test-mbscasecmp.c: New file.
56480
56481 2007-02-11  Bruno Haible  <bruno@clisp.org>
56482
56483         Ensure O(n) worst-case complexity of mbscasestr.
56484         * lib/mbscasestr.c: Include stdbool.h.
56485         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56486         functions.
56487         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56488         the bookkeeping indicates that it's worth it.
56489         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56490
56491         * modules/mbscasestr-tests: New file.
56492         * tests/test-mbscasestr1.c: New file.
56493         * tests/test-mbscasestr2.sh: New file.
56494         * tests/test-mbscasestr2.c: New file.
56495         * tests/test-mbscasestr3.sh: New file.
56496         * tests/test-mbscasestr3.c: New file.
56497         * tests/test-mbscasestr4.sh: New file.
56498         * tests/test-mbscasestr4.c: New file.
56499         * m4/locale-tr.m4: New file.
56500
56501 2007-02-11  Bruno Haible  <bruno@clisp.org>
56502
56503         Ensure O(n) worst-case complexity of mbsstr.
56504         * lib/mbsstr.c: Include stdbool.h.
56505         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56506         functions.
56507         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56508         bookkeeping indicates that it's worth it.
56509         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56510
56511         * modules/mbsstr-tests: New file.
56512         * tests/test-mbsstr1.c: New file.
56513         * tests/test-mbsstr2.sh: New file.
56514         * tests/test-mbsstr2.c: New file.
56515         * tests/test-mbsstr3.sh: New file.
56516         * tests/test-mbsstr3.c: New file.
56517         * m4/locale-fr.m4: New file.
56518
56519 2007-02-11  Bruno Haible  <bruno@clisp.org>
56520
56521         * lib/mbsrchr.c (mbsrchr): Fix bug.
56522
56523         * modules/mbsrchr-tests: New file.
56524         * tests/test-mbsrchr.sh: New file.
56525         * tests/test-mbsrchr.c: New file.
56526
56527 2007-02-11  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/mbschr.c (mbschr): Fix bug.
56530
56531         * modules/mbschr-tests: New file.
56532         * tests/test-mbschr.sh: New file.
56533         * tests/test-mbschr.c: New file.
56534         * m4/locale-zh.m4: New file.
56535
56536 2007-02-11  Bruno Haible  <bruno@clisp.org>
56537
56538         Support for copying multibyte string iterators.
56539         * lib/mbiter.h: Include <string.h>.
56540         (mbiter_multi_copy): New function.
56541         (mbi_copy): New macro.
56542         * lib/mbuiter.h: Include <string.h>.
56543         (mbuiter_multi_copy): New function.
56544         (mbui_copy): New macro.
56545
56546 2007-02-11  Bruno Haible  <bruno@clisp.org>
56547
56548         New module mbslen.
56549         * modules/mbslen: New file.
56550         * lib/mbslen.c: New file.
56551         * lib/string_.h (mbslen): New declaration.
56552         * m4/mbslen.m4: New file.
56553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56554         GNULIB_MBSLEN.
56555         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56556         * MODULES.html.sh (Internationalization functions): Add mbslen.
56557
56558 2007-02-11  Bruno Haible  <bruno@clisp.org>
56559
56560         Ensure O(n) worst-case complexity of strcasestr substitute.
56561         * lib/strcasestr.c: Include stdbool.h.
56562         (knuth_morris_pratt): New function.
56563         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56564         bookkeeping indicates that it's worth it.
56565         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56566
56567         * modules/strcasestr-tests: New file.
56568         * tests/test-strcasestr.c: New file.
56569
56570 2007-02-11  Bruno Haible  <bruno@clisp.org>
56571
56572         Ensure O(n) worst-case complexity of c_strcasestr.
56573         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56574         (knuth_morris_pratt): New function.
56575         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56576         the bookkeeping indicates that it's worth it.
56577         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56578
56579         * modules/c-strcasestr-tests: New file.
56580         * tests/test-c-strcasestr.c: New file.
56581
56582 2007-02-11  Bruno Haible  <bruno@clisp.org>
56583
56584         Ensure O(n) worst-case complexity of c_strstr.
56585         * lib/c-strstr.c: Include stdbool.h, string.h.
56586         (knuth_morris_pratt): New function.
56587         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56588         bookkeeping indicates that it's worth it.
56589         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56590
56591         * lib/c-strstr.c: Complete rewrite for maintainability.
56592
56593         * modules/c-strstr-tests: New file.
56594         * tests/test-c-strstr.c: New file.
56595
56596 2007-02-11  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56599         5.2.1 and earlier, whereby \055 was treated just like the range
56600         delimiter '-'.
56601         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56602
56603 2007-02-08  Bruno Haible  <bruno@clisp.org>
56604
56605         * modules/regex (Depends-on): Add stdbool.
56606         Reported by Dalibor Topic <robilad@kaffe.org>.
56607
56608 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56611         Prefer returning from main to exiting from it.
56612         Remove unnecessary parens after sizeof.
56613
56614 2007-02-05  Bruno Haible  <bruno@clisp.org>
56615
56616         New module mbssep.
56617         * modules/mbssep: New file.
56618         * lib/mbssep.c: New file.
56619         * lib/string_.h (strsep): Add a conditional link warning.
56620         (mbssep): New declaration.
56621         * m4/mbssep.m4: New file.
56622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56623         GNULIB_MBSSEP.
56624         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56625         * MODULES.html.sh (Internationalization functions): Add mbssep.
56626
56627 2007-02-05  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56630         Optimize search in case of 1 delimiter.
56631
56632 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56633
56634         * lib/acl.h: Include sys/types.h before sys/acl.h.
56635
56636 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56637
56638         Merge upstream fix for glibc bugzilla #3957:
56639
56640         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56641
56642         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56643         bit for RE_HAT_LISTS_NOT_NEWLINE.
56644         (build_charclass_op): Remove bogus comment.
56645
56646 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56647
56648         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56649
56650 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56651
56652         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56653         * lib/memmem.c [!defined _LIBC]: Include config.h.
56654
56655 2007-02-04  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56658         warning message.
56659
56660 2007-02-04  Bruno Haible  <bruno@clisp.org>
56661
56662         New module mbstok_r.
56663         * modules/mbstok_r: New file.
56664         * lib/mbstok_r.c: New file.
56665         * lib/string_.h (strtok_r): Change argument names to match the
56666         comments. Add a conditional link warning.
56667         (mbstok_r): New declaration.
56668         * m4/mbstok_r.m4: New file.
56669         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56670         GNULIB_MBSTOK_R.
56671         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56672         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56673
56674 2007-02-04  Bruno Haible  <bruno@clisp.org>
56675
56676         New module mbsspn.
56677         * modules/mbsspn: New file.
56678         * lib/mbsspn.c: New file.
56679         * lib/string_.h (strspn): Add a conditional link warning.
56680         (mbsspn): New declaration.
56681         * m4/mbsspn.m4: New file.
56682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56683         GNULIB_MBSSPN.
56684         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56685         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56686
56687 2007-02-04  Bruno Haible  <bruno@clisp.org>
56688
56689         New module mbspbrk.
56690         * modules/mbspbrk: New file.
56691         * lib/mbspbrk.c: New file.
56692         * lib/string_.h (strpbrk): Add a conditional link warning.
56693         (mbspbrk): New declaration.
56694         * m4/mbspbrk.m4: New file.
56695         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56696         GNULIB_MBSPBRK.
56697         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56698         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56699
56700 2007-02-04  Bruno Haible  <bruno@clisp.org>
56701
56702         New module mbscspn.
56703         * modules/mbscspn: New file.
56704         * lib/mbscspn.c: New file.
56705         * lib/string_.h (strcspn): Add a conditional link warning.
56706         (mbscspn): New declaration.
56707         * m4/mbscspn.m4: New file.
56708         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56709         GNULIB_MBSCSPN.
56710         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56711         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56712
56713 2007-02-04  Bruno Haible  <bruno@clisp.org>
56714
56715         New module mbscasestr, reduced goal of strcasestr.
56716         * modules/mbscasestr: New file.
56717         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56718         (mbscasestr): Renamed from strcasestr.
56719         * lib/strcasestr.c: Don't include mbuiter.h.
56720         (strcasestr): Remove support for multibyte locales.
56721         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56722         Change the conditional link warning.
56723         (mbscasestr): New declaration.
56724         * m4/mbscasestr.m4: New file.
56725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56726         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56727         REPLACE_STRCASESTR.
56728         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56730         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56732         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56733         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56734         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56735         (Depends-on): Remove mbuiter.
56736         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56737
56738 2007-02-04  Bruno Haible  <bruno@clisp.org>
56739
56740         Simplify handling of strncasecmp.
56741         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56742         the conditional link warning.
56743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56744         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56745         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56746         * modules/strcase (configure.ac): Don't invoke
56747         gl_STRING_MODULE_INDICATOR.
56748         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56749
56750 2007-02-04  Bruno Haible  <bruno@clisp.org>
56751
56752         New module mbscasecmp, reduced goal of strcasecmp.
56753         * modules/mbscasecmp: New file.
56754         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56755         (mbscasecmp): Renamed from strcasecmp.
56756         * lib/strcasecmp.c: Don't include mbuiter.h.
56757         (strcasecmp): Remove support for multibyte locales.
56758         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56759         Change the conditional link warning.
56760         (mbscasecmp): New declaration.
56761         * m4/mbscasecmp.m4: New file.
56762         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56763         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56764         REPLACE_STRCASECMP.
56765         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56767         GNULIB_MBSCASECMP.
56768         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56769         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56770         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56771         (Depends-on): Remove mbuiter.
56772         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56773
56774 2007-02-04  Bruno Haible  <bruno@clisp.org>
56775
56776         New module mbsstr. Remove module strstr.
56777         * modules/mbsstr: New file.
56778         * modules/strstr: Remove file.
56779         * lib/mbsstr.c: Renamed from lib/strstr.c.
56780         (mbsstr): Renamed from strstr.
56781         * lib/string_.h (strstr): Remove declaration. Change the conditional
56782         link warning.
56783         (mbsstr): New declaration.
56784         * m4/mbsstr.m4: New file.
56785         * m4/strstr.m4: Remove file.
56786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56787         REPLACE_STRSTR.
56788         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56789         Don't initialize GNULIB_STRSTR.
56790         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56791         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56792         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56793         (Support for systems lacking ANSI C 89): Remove strstr.
56794
56795 2007-02-04  Bruno Haible  <bruno@clisp.org>
56796
56797         New module mbsrchr.
56798         * modules/mbsrchr: New file.
56799         * lib/mbsrchr.c: New file.
56800         * lib/string_.h (strrchr): Add a conditional link warning.
56801         (mbsrchr): New declaration.
56802         * m4/mbsrchr.m4: New file.
56803         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56804         GNULIB_MBSRCHR.
56805         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56806         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56807
56808 2007-02-04  Bruno Haible  <bruno@clisp.org>
56809
56810         New module mbschr.
56811         * modules/mbschr: New file.
56812         * lib/mbschr.c: New file.
56813         * lib/string_.h (strchr): Add a conditional link warning.
56814         (mbschr): New declaration.
56815         * m4/mbschr.m4: New file.
56816         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56817         GNULIB_MBSCHR.
56818         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56819         * MODULES.html.sh (Internationalization functions): Add mbschr.
56820
56821 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56822
56823         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56824
56825         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56826
56827 2007-02-04  Bruno Haible  <bruno@clisp.org>
56828
56829         New module description section 'configure.ac-early'.
56830         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56831         (func_get_autoconf_early_snippet): New function.
56832         (func_import, func_create_testdir): Use it. Remove special cases for
56833         modules 'extensions' and 'lock'.
56834         * modules/extensions (configure.ac-early): Require
56835         gl_USE_SYSTEM_EXTENSIONS.
56836         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56837
56838 2007-02-04  Bruno Haible  <bruno@clisp.org>
56839
56840         Make use of gcj-4.3's -fsource and -ftarget option.
56841         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56842         and if so try the options -fsource and -ftarget.
56843         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56844         source_version, ftarget_option, target_version arguments.
56845         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56846         (is_envjavac_oldgcj_14_14_usable): Renamed from
56847         is_envjavac_gcj_14_14_usable.
56848         (is_envjavac_oldgcj_14_13_usable): Renamed from
56849         is_envjavac_gcj_14_13_usable.
56850         (is_gcj_present): Update.
56851         (is_gcj_43, is_gcj43_usable): New functions.
56852         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56853         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56854         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56855         try the options -fsource and -ftarget.
56856
56857 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56860         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56861         larger value.
56862
56863 2007-02-03  Jim Meyering  <jim@meyering.net>
56864
56865         Give tools a better chance to allocate space for very large buffers.
56866         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56867
56868         Make pwd and readlink work also when run with an unreadable parent dir
56869         on systems with openat support.
56870         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56871         provided getcwd function, even when we have openat support.
56872         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56873
56874 2007-02-02  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56877         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56878         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56879         portability problems if one of these functions is only used on specific
56880         platforms.
56881         Reported by Paul Eggert.
56882
56883 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56884
56885         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56886         is causing more trouble than it's curing.
56887         * lib/regex_internal.h (__mempcpy): Remove.
56888         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56889         (and make the code a tad smaller to boot).
56890         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56891
56892 2007-02-02  Jim Meyering  <jim@meyering.net>
56893
56894         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56895         section, not in the Makefile.am: one.
56896
56897 2007-02-02  Eric Blake  <ebb9@byu.net>
56898
56899         * lib/strchrnul.c: Always include config.h first.
56900
56901         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56902         gnulib strstr is not necessary here.
56903
56904 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56905
56906         * m4/socklen.m4: Fix typo.
56907
56908 2007-02-02  Eric Blake  <ebb9@byu.net>
56909
56910         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56911         * modules/netinet_in (Makefile.am): Likewise.
56912
56913 2007-02-01  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/string_.h (GL_LINK_WARNING): New macro.
56916         (strcasecmp, strstr, strcasestr): If provided by the system,
56917         conditionally define as a macro that leads to a warning instead of to
56918         an error.
56919         (strncasecmp): Conditionally define as a macro that leads to a warning.
56920
56921 2007-02-01  Karl Berry  <karl@gnu.org>
56922
56923         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56924
56925 2007-02-01  Bruno Haible  <bruno@clisp.org>
56926
56927         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56928         renamings.
56929
56930 2007-02-01  Eric Blake  <ebb9@byu.net>
56931
56932         * modules/regex (Depends-on): Revert dependence on mempcpy.
56933         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56934         module's definition of mempcpy.
56935         Reported by Paul Eggert.
56936
56937 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56938
56939         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56940         the symbol XYZ before redefining it.  This fixes a problem with
56941         programs that don't use XYZ, when compiled on systems that define
56942         XYZ to something else.
56943
56944 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56945
56946         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56947         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56948         writeable to group or other and (2) is intended to have a special
56949         mode bit that is set or cleared.  In such a case, the directory
56950         should be neither group- nor other-writeable until the special
56951         mode bits are right.
56952
56953 2007-01-31  Eric Blake  <ebb9@byu.net>
56954
56955         * modules/mountlist (Depends-on): Add strstr.
56956
56957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56958         bug.
56959         * modules/string (Makefile.am): Remove redundant replacement.
56960         * modules/regex (Depends-on): Add mempcpy.
56961
56962 2007-01-31  Bruno Haible  <bruno@clisp.org>
56963
56964         New module description field 'Link'.
56965         * gnulib-tool (func_usage): Document --extract-link-directive.
56966         (sed_extract_prog): Recognize 'Link' directive.
56967         (func_get_link_directive): New function.
56968         (func_import): Show summary of link directives.
56969         Handle --extract-link-directive option.
56970         * modules/acl (Link): New section.
56971         * modules/clock-time (Link): New section.
56972         * modules/euidaccess (Link): New section.
56973         * modules/gettext (Link): New section.
56974         * modules/iconv (Link): New section.
56975         * modules/lock (Link): New section.
56976         * modules/nanosleep (Link): New section.
56977         * modules/readline (Link): New section.
56978
56979 2007-01-27  Bruno Haible  <bruno@clisp.org>
56980
56981         Enforce the use of gnulib modules for unportable <string.h> functions.
56982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56983         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56984         (gl_HEADER_STRING_H_BODY): Require it.
56985         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56986         the symbol XYZ to one that gives a link error.
56987         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56988         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56989         * modules/mempcpy (configure.ac): Likewise.
56990         * modules/memrchr (configure.ac): Likewise.
56991         * modules/stpcpy (configure.ac): Likewise.
56992         * modules/stpncpy (configure.ac): Likewise.
56993         * modules/strcase (configure.ac): Likewise.
56994         * modules/strcasestr (configure.ac): Likewise.
56995         * modules/strchrnul (configure.ac): Likewise.
56996         * modules/strdup (configure.ac): Likewise.
56997         * modules/strndup (configure.ac): Likewise.
56998         * modules/strnlen (configure.ac): Likewise.
56999         * modules/strpbrk (configure.ac): Likewise.
57000         * modules/strsep (configure.ac): Likewise.
57001         * modules/strstr (configure.ac): Likewise.
57002         * modules/strtok_r (configure.ac): Likewise.
57003
57004 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57005
57006         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57007
57008 2007-01-30  Jim Meyering  <jim@meyering.net>
57009
57010         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57011
57012 2007-01-29  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57015         * lib/execute.c: Likewise.
57016         * lib/pipe.c: Likewise.
57017         * lib/printf-args.h: Likewise.
57018         * lib/printf-args.c: Likewise.
57019         * lib/printf-parse.c: Likewise.
57020         * lib/vasnprintf.c: Likewise.
57021
57022 2007-01-29  Eric Blake  <ebb9@byu.net>
57023
57024         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57025         declaration.
57026
57027 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * lib/strptime.h (strptime): Use 'restrict' for args where
57030         POSIX requires this.
57031         * lib/strptime.c (strptime): Likewise.
57032         Change license notice from LGPL to GPL, since gnulib-tool will
57033         change this as needed.
57034         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57035         defined.
57036         Include "strptime.h" first, to check interface.
57037         Do not #undef _LIBC and _NL_CURRENT.
57038         Do not include <stdlib.h>; no longer needed.
57039         Include "time_r.h" and declare ptime_locale_status
57040         only if _LIBC is not defined.
57041         (__P): Remove unused macro.
57042         (match_string): Bring back glibc version, but use it only if _LIBC
57043         is defined.
57044         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57045         Remove unnecessary assertion and abort() call.
57046         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57047         * m4/strptime.m4: Fix serial number comment.
57048         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57049         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57050         (Depends-on): Add time_r.
57051
57052 2007-01-29  Bruno Haible  <bruno@clisp.org>
57053
57054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57055         strptime.
57056         * modules/strptime (Depends-on): Add stdbool.
57057         * lib/strptime.h: Include <time.h> always. Add comments.
57058
57059 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57060
57061         * modules/strptime: New file.
57062         * lib/strptime.h: New file.
57063         * lib/strptime.c: New file.
57064         * m4/strptime.m4: New file.
57065
57066 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * MODULES.html.sh: New module mpsort.
57069         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57070
57071         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57072         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57074         All uses changed.
57075         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57076         All uses changed.
57077         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57078         to _Restrict_.
57079         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57080         the parameter matches the prototype.
57081
57082 2007-01-28  Jim Meyering  <jim@meyering.net>
57083
57084         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57085         sys/time.h here, reverting that part of the previous patch:
57086         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57087
57088 2007-01-28  Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57091         value of $(SYS_TIME_H).
57092         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57093         remove it conditionally, too. [added by Jim Meyering]
57094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57096         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57097         GETTIMEOFDAY_REPLACEMENT to 1.
57098
57099 2007-01-28  Bruno Haible  <bruno@clisp.org>
57100
57101         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57102         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57104         Set UNISTD_H instead of UNISTD_H2.
57105         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57106
57107 2007-01-28  Bruno Haible  <bruno@clisp.org>
57108
57109         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57110         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57111
57112 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57113
57114         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57115         (func_create_testdir): Ensure C locale for `grep' and `tr'
57116         character ranges.
57117         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57118         ACLOCAL_AMFLAGS parsing state machine.
57119
57120 2007-01-27  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/unistr/base: Update.
57123
57124 2007-01-27  Bruno Haible  <bruno@clisp.org>
57125
57126         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57127         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57128         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57129         modules/unistr/u32-mbtouc.
57130         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57131         * lib/unistr.h: Update.
57132         * lib/linebreak.c: Update.
57133         * modules/unistr/u32-mbtouc: Renamed from
57134         modules/unistr/u32-mbtouc-safe.
57135         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57136         * lib/unistr.h: Update.
57137         * lib/unistr/u32-to-u8.c: Update.
57138         * lib/unistr/u32-to-u16.c: Update.
57139
57140 2007-01-27  Bruno Haible  <bruno@clisp.org>
57141
57142         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57143         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57144         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57145         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57146         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57147         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57148         modules/unistr/u16-mbtouc.
57149         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57150         * lib/unistr.h: Update.
57151         * lib/linebreak.c: Update.
57152         * modules/linebreak: Update.
57153         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57154         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57155         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57156         * modules/unistr/u16-mbtouc: Renamed from
57157         modules/unistr/u16-mbtouc-safe.
57158         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57159         * lib/unistr.h: Update.
57160         * lib/unistr/u16-to-u8.c: Update.
57161         * modules/unistr/u16-to-u8: Update.
57162         * lib/unistr/u16-to-u32.c: Update.
57163         * modules/unistr/u16-to-u32: Update.
57164
57165 2007-01-27  Bruno Haible  <bruno@clisp.org>
57166
57167         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57168         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57169         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57170         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57171         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57172         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57173         modules/unistr/u8-mbtouc.
57174         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57175         * lib/unistr.h: Update.
57176         * lib/striconveh.c: Update.
57177         * modules/striconveh: Update.
57178         * lib/linebreak.c: Update.
57179         * modules/linebreak: Update.
57180         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57181         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57182         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57183         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57184         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57185         * lib/unistr.h: Update.
57186         * lib/striconveh.c: Update.
57187         * modules/striconveh: Update.
57188         * lib/unistr/u8-to-u16.c: Update.
57189         * modules/unistr/u8-to-u16: Update.
57190         * lib/unistr/u8-to-u32.c: Update.
57191         * modules/unistr/u8-to-u32: Update.
57192
57193 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57194
57195         Sync from Libtool.
57196         * lib/argz.c: Do not include strings.h nor memory.h, include
57197         string.h unconditionally.  Patch by Simon Josefsson.
57198
57199 2007-01-27  Bruno Haible  <bruno@clisp.org>
57200
57201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57202         from gl_HEADER_STRING_H_BODY.
57203         (gl_HEADER_STRING_H_BODY): Require it.
57204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57205         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57206         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57207         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57208         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57209         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57211         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57212         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57213         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57214         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57215         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57216         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57217         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57218         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57219
57220 2007-01-27  Bruno Haible  <bruno@clisp.org>
57221
57222         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57223         check_PROGRAMS into noinst_PROGRAMS.
57224         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57225         check_PROGRAMS in this case.
57226         (func_import): Set for_test to false.
57227         (func_create_testdir): Set for_test to true.
57228
57229 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57230             Bruno Haible  <bruno@clisp.org>
57231
57232         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57233         (Depends-on): Add string.
57234         (Includes): Use <string.h> instead of strcasestr.h.
57235         * modules/string (Makefile.am): Also substitute the value of
57236         REPLACE_STRCASESTR.
57237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57238         assume strcasestr is declared in <string.h> not <strings.h>. Also
57239         set REPLACE_STRCASESTR.
57240         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57241         REPLACE_STRCASESTR.
57242         * lib/strcasestr.h: Remove file.
57243         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57244         * lib/string_.h (strcasestr): New declaration.
57245
57246 2007-01-27  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/string_.h: Use 'extern'.
57249
57250 2007-01-27  Jim Meyering  <jim@meyering.net>
57251
57252         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57253         of set-but-not-used local, "q".
57254
57255         * lib/mempcpy.c: Include <config.h> before <string.h>.
57256         This fixes a compilation error on HP-UX, due to the system's
57257         "restrict"-using mempcpy prototype.
57258
57259 2007-01-26  Bruno Haible  <bruno@clisp.org>
57260
57261         Small optimization.
57262         * lib/javacomp.c: Include c-strstr.h.
57263          (is_envjavac_gcj): Use c_strstr instead of strstr.
57264         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57265
57266 2007-01-26  Bruno Haible  <bruno@clisp.org>
57267
57268         * MODULES.html.sh (Unicode string functions): Add the new modules.
57269
57270         * modules/uniconv/u32-strconv-to-locale: New file.
57271         * lib/uniconv/u32-strconv-to-locale.c: New file.
57272
57273         * modules/uniconv/u16-strconv-to-locale: New file.
57274         * lib/uniconv/u16-strconv-to-locale.c: New file.
57275
57276         * modules/uniconv/u8-strconv-to-locale: New file.
57277         * lib/uniconv/u8-strconv-to-locale.c: New file.
57278
57279         * modules/uniconv/u32-strconv-from-locale: New file.
57280         * lib/uniconv/u32-strconv-from-locale.c: New file.
57281
57282         * modules/uniconv/u16-strconv-from-locale: New file.
57283         * lib/uniconv/u16-strconv-from-locale.c: New file.
57284
57285         * modules/uniconv/u8-strconv-from-locale: New file.
57286         * lib/uniconv/u8-strconv-from-locale.c: New file.
57287
57288         * modules/uniconv/u32-strconv-to-enc: New file.
57289         * lib/uniconv/u32-strconv-to-enc.c: New file.
57290         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57291         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57292
57293         * modules/uniconv/u16-strconv-to-enc: New file.
57294         * lib/uniconv/u16-strconv-to-enc.c: New file.
57295         * lib/uniconv/u-strconv-to-enc.h: New file.
57296         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57297         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57298
57299         * modules/uniconv/u8-strconv-to-enc: New file.
57300         * lib/uniconv/u8-strconv-to-enc.c: New file.
57301         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57302         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57303
57304         * modules/uniconv/u32-strconv-from-enc: New file.
57305         * lib/uniconv/u32-strconv-from-enc.c: New file.
57306         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57307         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57308
57309         * modules/uniconv/u16-strconv-from-enc: New file.
57310         * lib/uniconv/u16-strconv-from-enc.c: New file.
57311         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57312         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57313
57314         * modules/uniconv/u8-strconv-from-enc: New file.
57315         * lib/uniconv/u8-strconv-from-enc.c: New file.
57316         * lib/uniconv/u-strconv-from-enc.h: New file.
57317         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57318         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57319
57320         * modules/uniconv/u32-conv-from-enc: New file.
57321         * lib/uniconv/u32-conv-from-enc.c: New file.
57322         * modules/uniconv/u32-conv-from-enc-tests: New file.
57323         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57324
57325         * modules/uniconv/u16-conv-from-enc: New file.
57326         * lib/uniconv/u16-conv-from-enc.c: New file.
57327         * lib/uniconv/u-conv-from-enc.h: New file.
57328         * modules/uniconv/u16-conv-from-enc-tests: New file.
57329         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57330
57331         * modules/uniconv/u8-conv-from-enc: New file.
57332         * lib/uniconv/u8-conv-from-enc.c: New file.
57333         * modules/uniconv/u8-conv-from-enc-tests: New file.
57334         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57335
57336         * modules/uniconv/base: New file.
57337         * lib/uniconv.h: New file.
57338
57339 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57340
57341         * doc/gnulib-tool.texi (Initial import): Update to match current
57342         behavior with strdup module.
57343         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57344         * lib/memmem.h: Remove; all uses removed.  This is now done
57345         by <string.h>.
57346         * lib/mempcpy.h: Likewise.
57347         * lib/memrchr.h: Likewise.
57348         * lib/stpcpy.h: Likewise.
57349         * lib/stpncpy.h: Likewise.
57350         * lib/strcase.h: Likewise.
57351         * lib/strchrnul.h: Likewise.
57352         * lib/strdup.h: Likewise.
57353         * lib/strndup.h: Likewise.
57354         * lib/strnlen.h: Likewise.
57355         * lib/strpbrk.h: Likewise.
57356         * lib/strsep.h: Likewise.
57357         * lib/strstr.h: Likewise.
57358         * lib/strtok_r.h: Likewise.
57359         * lib/string_.h: New file.
57360         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57361         Rely on <string.h> instead.
57362         * lib/canon-host.c: Likewise.
57363         * lib/chdir-long.c: Likewise.
57364         * lib/concatpath.c: Likewise.
57365         * lib/exclude.c: Likewise.
57366         * lib/fchdir.c: Likewise.
57367         * lib/getaddrinfo.c: Likewise.
57368         * lib/getcwd.c: Likewise.
57369         * lib/getsubopt.c: Likewise.
57370         * lib/glob.c: Likewise.
57371         * lib/hard-locale.c: Likewise.
57372         * lib/iconvme.c: Likewise.
57373         * lib/javacomp.c: Likewise.
57374         * lib/mempcpy.c: Likewise.
57375         * lib/memrchr.c: Likewise.
57376         * lib/regex_internal.h: Likewise.
57377         * lib/stpncpy.c: Likewise.
57378         * lib/strcasecmp.c: Likewise.
57379         * lib/strchrnul.c: Likewise.
57380         * lib/strdup.c: Likewise.
57381         * lib/striconv.c: Likewise.
57382         * lib/striconveh.c: Likewise.
57383         * lib/striconveha.c: Likewise.
57384         * lib/strncasecmp.c: Likewise.
57385         * lib/strndup.c: Likewise.
57386         * lib/strnlen.c: Likewise.
57387         * lib/strsep.c: Likewise.
57388         * lib/strstr.c: Likewise.
57389         * lib/strtok_r.c: Likewise.
57390         * lib/userspec.c: Likewise.
57391         * lib/w32spawn.h: Likewise.
57392         * lib/xstrndup.c: Likewise.
57393         * lib/mountlist.c (strstr): Remove decl.
57394         * m4/string_h.m4: New file.
57395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57396         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57398         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57399         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57400         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57401         Set REPLACE_STRCASECMP if necessary.
57402         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57403         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57404         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57405         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57406         HAVE_DECL_STRDUP if necessary.
57407         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57408         since gl_FUNC_STRNDUP does that now.
57409         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57410         Check for decl here...
57411         (gl_PREREQ_STRNLEN): ... not here.
57412         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57413         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57414         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57415         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57416         necessary.
57417         * modules/string: New file.
57418         * modules/memmem (Files): Remove special-purpose include file.
57419         (Depends-on): Add string.
57420         (Include): Include <string.h>, not the removed file.
57421         * modules/mempcpy: Likewise.
57422         * modules/memrchr: Likewise.
57423         * modules/stpcpy: Likewise.
57424         * modules/stpncpy: Likewise.
57425         * modules/strcase: Likewise.
57426         * modules/strchrnul: Likewise.
57427         * modules/strdup: Likewise.
57428         * modules/strndup: Likewise.
57429         * modules/strnlen: Likewise.
57430         * modules/strpbrk: Likewise.
57431         * modules/strsep: Likewise.
57432         * modules/strstr: Likewise.
57433         * modules/strtok_r: Likewise.
57434         * tests/test-dirname.c: Don't include "strdup.h", since
57435         <string.h> now suffices.
57436         * tests/test-memmem.c: Don't include "memmem.h", since
57437         <string.h> now suffices.
57438
57439 2007-01-25  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57442         *resultp is 0.
57443
57444         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57445         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57446         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57447         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57448
57449         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57450         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57451         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57452         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57453         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57454         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57455
57456 2007-01-24  Bruno Haible  <bruno@clisp.org>
57457
57458         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57459         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57460         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57461         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57462         gl_FUNC_FTS_CORE.
57463         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57464         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57465         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57466         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57467         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57468         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57469         gl_FUNC_FCHOWNAT.
57470         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57471         gl_FUNC_STRFTIME.
57472         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57473         Reported by Ralf Wildenhues.
57474
57475 2007-01-24  Bruno Haible  <bruno@clisp.org>
57476
57477         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57478         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57479         gl_GETADDRINFO.
57480         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57481         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57482         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57483
57484 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57487         Don't use 'exit'; just return from 'main'.
57488         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57489
57490         * lib/fnmatch_.h: Readjust white space and comments to match
57491         glibc, to avoid spurious diffs.
57492
57493 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57496         2004-12-01 change by Jakub Jelinek, since this code won't compile
57497         if !LIBC.  Problem reported by Bob Proulx.
57498
57499 2007-01-23  Bruno Haible  <bruno@clisp.org>
57500
57501         * lib/striconveh.c: Include c-strcaseeq.h.
57502         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57503         * modules/striconveh (Depends-on): Add c-strcaseeq.
57504
57505 2007-01-23  Bruno Haible  <bruno@clisp.org>
57506
57507         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57508
57509         * modules/c-strcaseeq: New file.
57510         * lib/c-strcaseeq.h: New file.
57511
57512         * modules/streq: New file.
57513         * lib/streq.h: New file.
57514
57515 2007-01-23  Bruno Haible  <bruno@clisp.org>
57516
57517         * modules/striconveha-tests: New file.
57518         * tests/test-striconveha.c: New file.
57519
57520         * lib/striconveha.h: Include <stdbool.h>.
57521         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57522         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57523         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57524         (mem_iconveha): New function.
57525         (str_iconveha_notranslit): Renamed from str_iconveha.
57526         (str_iconveha): New function.
57527         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57528         c-strcase.
57529
57530 2007-01-23  Bruno Haible  <bruno@clisp.org>
57531
57532         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57533         encodings without forgiving before trying any encoding with handler.
57534         (str_iconveha): Try all encodings without forgiving before trying any
57535         encoding with handler.
57536
57537 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         Import the following changes from libc.
57540
57541         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57542
57543         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57544
57545         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57546
57547         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57548         normal_bracket label.
57549
57550         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57551
57552         [BZ #361]
57553         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57554         to normal_bracket after fetching the next character.
57555
57556 2007-01-22  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57559         argument.
57560         * lib/striconveh.c (iconv_carefully_1): New function.
57561         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57562         argument.
57563         (str_cd_iconveh): Update.
57564         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57565         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57566         * tests/test-striconveh.c (MAGIC): New macro.
57567         (new_offsets): New function.
57568         (main): Test call with and without offsets.
57569
57570 2007-01-22  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57573         * modules/sys_select (Makefile.am): Likewise.
57574         * modules/sys_socket (Makefile.am): Likewise.
57575         * modules/sys_time (Makefile.am): Likewise.
57576
57577 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * modules/gettimeofday (License): Change from GPL to LGPL, since
57580         gettimeofday is a library function.
57581
57582 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57583
57584         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57585
57586 2007-01-21  Bruno Haible  <bruno@clisp.org>
57587
57588         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57589
57590 2007-01-21  Bruno Haible  <bruno@clisp.org>
57591
57592         * modules/striconveha: New file.
57593         * lib/striconveha.h: New file.
57594         * lib/striconveha.c: New file.
57595         * MODULES.html.sh (Internationalization functions): Add striconveha.
57596         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57597         string.
57598         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57599
57600 2007-01-21  Bruno Haible  <bruno@clisp.org>
57601
57602         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57603         * lib/striconveh.c (str_iconveh): Likewise.
57604
57605 2007-01-21  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/striconveh.h (mem_iconveh): New declaration.
57608         * lib/striconveh.c (mem_iconveh): New function.
57609         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57610
57611 2007-01-21  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57614
57615         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57616         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57617         original result buffer.
57618         (str_cd_iconveh): Update.
57619         * tests/test-striconveh.c (main): Update.
57620
57621         * lib/striconv.h (mem_cd_iconv): Change specification.
57622         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57623         result buffer.
57624         (str_cd_iconv): Update.
57625         * tests/test-striconv.c (main): Update.
57626
57627 2007-01-21  Bruno Haible  <bruno@clisp.org>
57628
57629         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57630
57631 2007-01-20  Jim Meyering  <jim@meyering.net>
57632
57633         * lib/userspec.c (parse_with_separator): If a user or group string
57634         starts with "+", skip the corresponding name-to-ID look-up, since
57635         such a look-up must fail: user and group names may not include "+".
57636
57637 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57638
57639         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57640         since we now assume the sys_time module.
57641         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57642         check for sys/time.h; no longer needed.
57643         * modules/poll (Depends-on): Depend on sys_time.
57644
57645 2007-01-18  Bruno Haible  <bruno@clisp.org>
57646
57647         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57648         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57649
57650         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57651         gettimeofday.
57652
57653         * tests/test-gettimeofday.c: Include <time.h>.
57654         (dummy): Remove variable.
57655
57656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57657         gl_HEADER_SYS_TIME_H.
57658         (gl_HEADER_SYS_TIME_H): New macro.
57659
57660         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57661         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57663         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57664         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57666         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57667         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57668         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57669         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57670         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57671
57672         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57673         last change; it caused a compilation error when cross-compiling to
57674         Cygwin.
57675
57676 2007-01-18  Jim Meyering  <jim@meyering.net>
57677
57678         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57679         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57680         than the race-prone "test -d sys || mkdir sys".
57681         (configure.ac): Use AC_PROG_MKDIR_P.
57682         * modules/sys_select: Likewise.
57683         * modules/sys_socket: Likewise.
57684         * modules/sys_time: Likewise.
57685
57686 2007-01-18  Eric Blake  <ebb9@byu.net>
57687
57688         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57689         replace gettimeofday.
57690         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57691         name, to avoid infinite recursion.
57692
57693 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57696         module sys_time.
57697         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57698         assume timespec.h defines struct timeval.
57699         * lib/settime.c: Likewise.
57700         * lib/utimens.c: Likewise.
57701         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57702         since we now assume the gettimeofday module.
57703         * lib/tempname.c (__gen_tempname): Likewise.
57704         * lib/gettimeofday.h: Remove.
57705         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57706         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57707         Include <time.h>, for 'time()'.
57708         (localtime_buffer_addr): Also use this workaround if
57709         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57710         to simplify the uses.  All uses changed.
57711         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57712         that #undef is inside {}, and 'const' follows type name consistently.
57713         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57714         (gettimeofday): Do not use the maximum possible value for
57715         tv->tv_usec, since that might break usages other than ls.c.
57716         Instead, we'll leave ls.c alone.  This undoes today's patch
57717         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57718         we've never observed the problem but might as well keep the
57719         canary.
57720         * lib/nanosleep.c: Include timespec.h first, for interface check.
57721         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57722         now assume the sys_time module.
57723         * lib/tempname.c: Likewise.
57724         * lib/timespec.h: Likewise.
57725         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57726         needed.
57727         * lib/strftime.c: Likewise.
57728         * lib/timespec.h: Likewise.
57729         * lib/posixtm.c: Include posixtm.h first, for interface check.
57730         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57731         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57732         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57733         * lib/sys_time_.h: New file.
57734         * lib/timespec.h (struct timespec): Use long int, not long.
57735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57736         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57737         Remove obsolescent call to AC_HEADER_TIME.
57738         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57740         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57741         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57742         Likewise.
57743         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57744         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57746         into the sys_time module.  Check for gettimeofday just once.
57747         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57748         for gettimeofday signature to just check the signature.  Merely
57749         compile it, since linking doesn't test signature.  Improve test for
57750         whether gettimeofday.o is actually needed.
57751         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57752         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57753         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57754         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57755         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57756         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57757         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57758         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57759         than worrying about sys/time.h.
57760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57761         Don't bother worrying about TIME_WITH_SYS_TIME.
57762         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57763         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57764         * m4/sys_time_h.m4: New file.
57765         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57766         Don't include sys/time.h.  Return from main rather than exiting.
57767         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57768         all uses changed.
57769         * modules/gethrxtime (Depends-on): Add sys_time.
57770         * modules/gettime (Depends-on): Likewise.
57771         * modules/gettimeofday (Depends-on): Likewise.
57772         * modules/nanosleep (Depends-on): Likewise.
57773         * modules/settime (Depends-on): Likewise.
57774         * modules/tempname (Depends-on): Likewise.
57775         * modules/utimens (Depends-on): Likewise.
57776         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57777         (Include): Change back to <sys/time.h>.
57778         (Maintainer): Add self.
57779         * modules/sys_time: New file.
57780         * modules/tempname (Depends-on): Add gettimeofday.
57781         * tests/test-gettimeofday.c: Include <sys/time.h>
57782         rather than gettimeofday.h.
57783
57784 2007-01-17  Bruno Haible  <bruno@clisp.org>
57785
57786         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57787         the license default to GPL.
57788         (func_create_testdir): Don't complain if a module is LGPL and its
57789         tests module depends on GPLed modules.
57790
57791 2007-01-17  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/gettimeofday.c (gettimeofday): Add code for the case
57794         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57795         maximum possible value for tv->tv_usec, rather than the minimum one.
57796
57797 2005-10-08  Martin Lambers  <marlam@marlam.de>
57798 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57799 2007-01-16  Bruno Haible  <bruno@clisp.org>
57800
57801         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57802         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57803         gl_FUNC_GETTIMEOFDAY.
57804         (Include): Add gettimeofday.h.
57805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57806         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57807         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57808         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57809         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57810         * lib/gettimeofday.h: New file.
57811         * lib/gettimeofday.c: Include <sys/timeb.h>.
57812         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57813         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57814         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57815         fall back on time().
57816
57817         * tests/test-gettimeofday.c: New file.
57818         * modules/gettimeofday-tests: New file.
57819
57820 2007-01-16  Eric Blake  <ebb9@byu.net>
57821
57822         * modules/fnmatch (Depends-on): Depend on wchar.
57823         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57824         * m4/fnmatch.m4: Likewise.
57825         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57826         * m4/mbchar.m4: Likewise.
57827         * modules/mbswidth (Depends-on): Depend on wchar.
57828         * lib/mbswidth.c: Assume <wchar.h>.
57829         * m4/mbswidth.m4: Likewise.
57830         * modules/quotearg (Depends-on): Depend on wchar.
57831         * lib/quotearg.c: Assume <wchar.h>.
57832         * m4/quotearg.m4: Likewise.
57833         * modules/regex (Depends-on): Depend on wchar.
57834         * lib/regex_internal.h: Assume <wchar.h>.
57835         * m4/regex.m4: Likewise.
57836         * modules/stdint (Depends-on): Depend on wchar.
57837         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57838         * m4/stdint.m4: Likewise.
57839         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57840         * modules/strftime (Depends-on): Depend on wchar.
57841         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57842         * modules/strtol (Depends-on): Depend on wchar.
57843         * lib/strtol.c: Assume <wchar.h>.
57844         * modules/wcwidth (Depends-on): Depend on wchar.
57845         * lib/wcwidth.h: Assume <wchar.h>.
57846         * m4/wcwidth.m4: Likewise.
57847
57848 2007-01-16  Bruno Haible  <bruno@clisp.org>
57849
57850         * modules/csharpexec-script: New, created from...
57851         * modules/csharpexec: ... this.
57852
57853 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57854
57855         * modules/javaexec-script: New, created from...
57856         * modules/javaexec: ... this.
57857
57858 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57859
57860         * modules/poll (Dependencies): Add sys_select.
57861
57862 2007-01-15  Jim Meyering  <jim@meyering.net>
57863
57864         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57865         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57866         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57867         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57868
57869 2007-01-15  Bruno Haible  <bruno@clisp.org>
57870
57871         * modules/striconveh: New file.
57872         * lib/striconveh.h: New file.
57873         * lib/striconveh.c: New file.
57874         * MODULES.html.sh (Internationalization functions): Add striconveh.
57875
57876         * modules/striconveh-tests: New file.
57877         * tests/test-striconveh.c: New file.
57878
57879 2007-01-15  Bruno Haible  <bruno@clisp.org>
57880
57881         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57882         not from GNU libiconv or GNU libc.
57883
57884 2007-01-15  Bruno Haible  <bruno@clisp.org>
57885
57886         * doc/gnulib-intro.texi (Copyright): Explain the different license
57887         terms for module descriptions, autoconf macros, tests, documentation.
57888
57889 2007-01-14  Bruno Haible  <bruno@clisp.org>
57890
57891         * modules/striconv-tests: New file.
57892         * tests/test-striconv.c: New file.
57893
57894 2007-01-14  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/iconv-tests: New file.
57897         * tests/test-iconv.c: New file.
57898
57899 2007-01-14  Bruno Haible  <bruno@clisp.org>
57900
57901         * gnulib-tool (func_get_license): For test modules, use the license of
57902         the main module.
57903
57904 2007-01-14  Bruno Haible  <bruno@clisp.org>
57905
57906         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57907         if iconv is found to exist.
57908
57909 2007-01-14  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/c-ctype-tests: New file.
57912         * tests/test-c-ctype.c: New file.
57913
57914 2007-01-14  Bruno Haible  <bruno@clisp.org>
57915
57916         * modules/binary-io-tests: New file.
57917         * tests/test-binary-io.sh: New file.
57918         * tests/test-binary-io.c: New file.
57919
57920 2007-01-14  Bruno Haible  <bruno@clisp.org>
57921
57922         * modules/array-oset-tests: New file.
57923         * tests/test-array_oset.c: New file.
57924
57925 2007-01-14  Bruno Haible  <bruno@clisp.org>
57926
57927         * modules/array-list-tests: New file.
57928         * tests/test-array_list.c: New file.
57929
57930 2007-01-14  Bruno Haible  <bruno@clisp.org>
57931
57932         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57933         and make.
57934         Reported by Simon Josefsson in
57935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57936
57937 2007-01-14  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/allocsa-tests: New file.
57940         * tests/test-allocsa.c: New file.
57941
57942 2007-01-14  Bruno Haible  <bruno@clisp.org>
57943
57944         * modules/fchdir (Depends-on): Add absolute-header.
57945         * modules/unistd (Depends-on): Likewise.
57946
57947 2006-12-30  Bruno Haible  <bruno@clisp.org>
57948
57949         * modules/fchdir: New file.
57950         * modules/unistd (Files): Add lib/unistd_.h.
57951         (Makefile.am): Generate unistd.h from unistd_.h.
57952         * lib/fchdir.c: New file.
57953         * lib/dirent_.h: New file.
57954         * lib/unistd_.h: New file.
57955         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57956         * m4/fchdir.m4: New file.
57957         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57958         (gl_HEADER_UNISTD): Invoke it.
57959         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57960         function.
57961         * lib/backupfile.c (opendir, closedir): Undefine.
57962         * lib/chown.c (open, close): Undefine.
57963         * lib/clean-temp.c (open, close): Undefine.
57964         * lib/copy-file.c (open, close): Undefine.
57965         * lib/execute.c (open, close): Undefine.
57966         * lib/fsusage.c (open, close): Undefine.
57967         * lib/gc-gnulib.c (open, close): Undefine.
57968         * lib/getcwd.c (opendir, closedir): Undefine.
57969         * lib/glob.c (opendir, closedir): Undefine.
57970         * lib/javacomp.c (open, close): Undefine.
57971         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57972         * lib/openat-proc.c (open, close): Undefine.
57973         * lib/pagealign_alloc.c (open, close): Undefine.
57974         * lib/pipe.c (open, close): Undefine.
57975         * lib/progreloc.c (open, close): Undefine.
57976         * lib/savedir.c (opendir, closedir): Undefine.
57977         * lib/utime.c (open, close): Undefine.
57978         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57979
57980 2007-01-10  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57983
57984 2007-01-12  Eric Blake  <ebb9@byu.net>
57985
57986         Provide a robust <wchar.h>.  Further simplifications are now
57987         possible in other modules, but not included here.
57988         * modules/wchar: New module.
57989         * m4/wchar.m4: New file.
57990         * lib/wchar_.h: Likewise.
57991         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57992         of the new module.
57993         * MODULES.html.sh (Extended multibyte and wide character utilities):
57994         New section.
57995
57996 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57997
57998         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57999         to a reasonable default for memory allocation.
58000         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58001         file system that reports garbage st_size values for symlinks.
58002         Problem reported by Liyang Hu.
58003
58004 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58005
58006         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58007         Emacs .#* auto-save files).
58008
58009 2007-01-11  Bruno Haible  <bruno@clisp.org>
58010
58011         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58012         directory.
58013
58014 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         Use @...@ consistently in lib/wctype_.h.
58017         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58018         on it being set to 1 or 0.
58019         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58020         go back to AC_SUBSTing it.
58021         * modules/wctype (Makefile.am): Undo previous change.
58022
58023 2007-01-10  Eric Blake  <ebb9@byu.net>
58024
58025         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58026         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58027         * modules/wctype (Makefile.am): Likewise.
58028         Reported by Chris McGuire.
58029
58030 2007-01-10  Jim Meyering  <jim@meyering.net>
58031
58032         fts.c: a small readability/maintainability improvement
58033         * lib/fts.c (fts_read): Make this code slightly more readable and
58034         maintainable by hoisting the "sp->fts_cur = p" assignments to
58035         immediately follow the statements that set P.  Derived from
58036         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58037
58038 2007-01-10  Eric Blake  <ebb9@byu.net>
58039
58040         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58041         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58043         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58044         Reported by Chris McGuire.
58045
58046 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58047
58048         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58049         in sed script.
58050
58051 2007-01-09  Bruno Haible  <bruno@clisp.org>
58052
58053         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58054         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58055         variables.
58056         (func_module): Use them.
58057
58058 2007-01-09  Bruno Haible  <bruno@clisp.org>
58059
58060         * modules/unistr/base: New file.
58061         * lib/unistr.h: New file.
58062
58063         * modules/unistr/u8-to-u16: New file.
58064         * lib/unistr/u8-to-u16.c: New file.
58065
58066         * modules/unistr/u8-to-u32: New file.
58067         * lib/unistr/u8-to-u32.c: New file.
58068
58069         * modules/unistr/u16-to-u8: New file.
58070         * lib/unistr/u16-to-u8.c: New file.
58071
58072         * modules/unistr/u16-to-u32: New file.
58073         * lib/unistr/u16-to-u32.c: New file.
58074
58075         * modules/unistr/u32-to-u8: New file.
58076         * lib/unistr/u32-to-u8.c: New file.
58077
58078         * modules/unistr/u32-to-u16: New file.
58079         * lib/unistr/u32-to-u16.c: New file.
58080
58081         * modules/unistr/u8-check: New file.
58082         * modules/unistr/u16-check: New file.
58083         * modules/unistr/u32-check: New file.
58084         * lib/unistr/u8-check.c: New file.
58085         * lib/unistr/u16-check.c: New file.
58086         * lib/unistr/u32-check.c: New file.
58087
58088         * modules/unistr/u8-chr: New file.
58089         * modules/unistr/u16-chr: New file.
58090         * modules/unistr/u32-chr: New file.
58091         * lib/unistr/u8-chr.c: New file.
58092         * lib/unistr/u16-chr.c: New file.
58093         * lib/unistr/u32-chr.c: New file.
58094
58095         * modules/unistr/u8-cmp: New file.
58096         * modules/unistr/u16-cmp: New file.
58097         * modules/unistr/u32-cmp: New file.
58098         * lib/unistr/u8-cmp.c: New file.
58099         * lib/unistr/u16-cmp.c: New file.
58100         * lib/unistr/u32-cmp.c: New file.
58101
58102         * modules/unistr/u8-cpy: New file.
58103         * modules/unistr/u16-cpy: New file.
58104         * modules/unistr/u32-cpy: New file.
58105         * lib/unistr/u8-cpy.c: New file.
58106         * lib/unistr/u16-cpy.c: New file.
58107         * lib/unistr/u32-cpy.c: New file.
58108         * lib/unistr/u-cpy.h: New file.
58109
58110         * modules/unistr/u8-cpy-alloc: New file.
58111         * modules/unistr/u16-cpy-alloc: New file.
58112         * modules/unistr/u32-cpy-alloc: New file.
58113         * lib/unistr/u8-cpy-alloc.c: New file.
58114         * lib/unistr/u16-cpy-alloc.c: New file.
58115         * lib/unistr/u32-cpy-alloc.c: New file.
58116         * lib/unistr/u-cpy-alloc.h: New file.
58117
58118         * modules/unistr/u8-endswith: New file.
58119         * modules/unistr/u16-endswith: New file.
58120         * modules/unistr/u32-endswith: New file.
58121         * lib/unistr/u8-endswith.c: New file.
58122         * lib/unistr/u16-endswith.c: New file.
58123         * lib/unistr/u32-endswith.c: New file.
58124         * lib/unistr/u-endswith.h: New file.
58125
58126         * modules/unistr/u8-mblen: New file.
58127         * modules/unistr/u16-mblen: New file.
58128         * modules/unistr/u32-mblen: New file.
58129         * lib/unistr/u8-mblen.c: New file.
58130         * lib/unistr/u16-mblen.c: New file.
58131         * lib/unistr/u32-mblen.c: New file.
58132
58133         * modules/unistr/u8-mbtouc: New file.
58134         * modules/unistr/u16-mbtouc: New file.
58135         * modules/unistr/u32-mbtouc: New file.
58136         * lib/unistr/u8-mbtouc.c: New file.
58137         * lib/unistr/u16-mbtouc.c: New file.
58138         * lib/unistr/u32-mbtouc.c: New file.
58139
58140         * modules/unistr/u8-mbtouc-safe: New file.
58141         * modules/unistr/u16-mbtouc-safe: New file.
58142         * modules/unistr/u32-mbtouc-safe: New file.
58143         * lib/unistr/u8-mbtouc-safe.c: New file.
58144         * lib/unistr/u16-mbtouc-safe.c: New file.
58145         * lib/unistr/u32-mbtouc-safe.c: New file.
58146
58147         * modules/unistr/u8-move: New file.
58148         * modules/unistr/u16-move: New file.
58149         * modules/unistr/u32-move: New file.
58150         * lib/unistr/u8-move.c: New file.
58151         * lib/unistr/u16-move.c: New file.
58152         * lib/unistr/u32-move.c: New file.
58153         * lib/unistr/u-move.h: New file.
58154
58155         * modules/unistr/u8-next: New file.
58156         * modules/unistr/u16-next: New file.
58157         * modules/unistr/u32-next: New file.
58158         * lib/unistr/u8-next.c: New file.
58159         * lib/unistr/u16-next.c: New file.
58160         * lib/unistr/u32-next.c: New file.
58161
58162         * modules/unistr/u8-prev: New file.
58163         * modules/unistr/u16-prev: New file.
58164         * modules/unistr/u32-prev: New file.
58165         * lib/unistr/u8-prev.c: New file.
58166         * lib/unistr/u16-prev.c: New file.
58167         * lib/unistr/u32-prev.c: New file.
58168
58169         * modules/unistr/u8-set: New file.
58170         * modules/unistr/u16-set: New file.
58171         * modules/unistr/u32-set: New file.
58172         * lib/unistr/u8-set.c: New file.
58173         * lib/unistr/u16-set.c: New file.
58174         * lib/unistr/u32-set.c: New file.
58175         * lib/unistr/u-set.h: New file.
58176
58177         * modules/unistr/u8-startswith: New file.
58178         * modules/unistr/u16-startswith: New file.
58179         * modules/unistr/u32-startswith: New file.
58180         * lib/unistr/u8-startswith.c: New file.
58181         * lib/unistr/u16-startswith.c: New file.
58182         * lib/unistr/u32-startswith.c: New file.
58183         * lib/unistr/u-startswith.h: New file.
58184
58185         * modules/unistr/u8-stpcpy: New file.
58186         * modules/unistr/u16-stpcpy: New file.
58187         * modules/unistr/u32-stpcpy: New file.
58188         * lib/unistr/u8-stpcpy.c: New file.
58189         * lib/unistr/u16-stpcpy.c: New file.
58190         * lib/unistr/u32-stpcpy.c: New file.
58191         * lib/unistr/u-stpcpy.h: New file.
58192
58193         * modules/unistr/u8-stpncpy: New file.
58194         * modules/unistr/u16-stpncpy: New file.
58195         * modules/unistr/u32-stpncpy: New file.
58196         * lib/unistr/u8-stpncpy.c: New file.
58197         * lib/unistr/u16-stpncpy.c: New file.
58198         * lib/unistr/u32-stpncpy.c: New file.
58199         * lib/unistr/u-stpncpy.h: New file.
58200
58201         * modules/unistr/u8-strcat: New file.
58202         * modules/unistr/u16-strcat: New file.
58203         * modules/unistr/u32-strcat: New file.
58204         * lib/unistr/u8-strcat.c: New file.
58205         * lib/unistr/u16-strcat.c: New file.
58206         * lib/unistr/u32-strcat.c: New file.
58207         * lib/unistr/u-strcat.h: New file.
58208
58209         * modules/unistr/u8-strchr: New file.
58210         * modules/unistr/u16-strchr: New file.
58211         * modules/unistr/u32-strchr: New file.
58212         * lib/unistr/u8-strchr.c: New file.
58213         * lib/unistr/u16-strchr.c: New file.
58214         * lib/unistr/u32-strchr.c: New file.
58215
58216         * modules/unistr/u8-strcmp: New file.
58217         * modules/unistr/u16-strcmp: New file.
58218         * modules/unistr/u32-strcmp: New file.
58219         * lib/unistr/u8-strcmp.c: New file.
58220         * lib/unistr/u16-strcmp.c: New file.
58221         * lib/unistr/u32-strcmp.c: New file.
58222
58223         * modules/unistr/u8-strcpy: New file.
58224         * modules/unistr/u16-strcpy: New file.
58225         * modules/unistr/u32-strcpy: New file.
58226         * lib/unistr/u8-strcpy.c: New file.
58227         * lib/unistr/u16-strcpy.c: New file.
58228         * lib/unistr/u32-strcpy.c: New file.
58229         * lib/unistr/u-strcpy.h: New file.
58230
58231         * modules/unistr/u8-strcspn: New file.
58232         * modules/unistr/u16-strcspn: New file.
58233         * modules/unistr/u32-strcspn: New file.
58234         * lib/unistr/u8-strcspn.c: New file.
58235         * lib/unistr/u16-strcspn.c: New file.
58236         * lib/unistr/u32-strcspn.c: New file.
58237         * lib/unistr/u-strcspn.h: New file.
58238
58239         * modules/unistr/u8-strdup: New file.
58240         * modules/unistr/u16-strdup: New file.
58241         * modules/unistr/u32-strdup: New file.
58242         * lib/unistr/u8-strdup.c: New file.
58243         * lib/unistr/u16-strdup.c: New file.
58244         * lib/unistr/u32-strdup.c: New file.
58245         * lib/unistr/u-strdup.h: New file.
58246
58247         * modules/unistr/u8-strlen: New file.
58248         * modules/unistr/u16-strlen: New file.
58249         * modules/unistr/u32-strlen: New file.
58250         * lib/unistr/u8-strlen.c: New file.
58251         * lib/unistr/u16-strlen.c: New file.
58252         * lib/unistr/u32-strlen.c: New file.
58253         * lib/unistr/u-strlen.h: New file.
58254
58255         * modules/unistr/u8-strmblen: New file.
58256         * modules/unistr/u16-strmblen: New file.
58257         * modules/unistr/u32-strmblen: New file.
58258         * lib/unistr/u8-strmblen.c: New file.
58259         * lib/unistr/u16-strmblen.c: New file.
58260         * lib/unistr/u32-strmblen.c: New file.
58261
58262         * modules/unistr/u8-strmbtouc: New file.
58263         * modules/unistr/u16-strmbtouc: New file.
58264         * modules/unistr/u32-strmbtouc: New file.
58265         * lib/unistr/u8-strmbtouc.c: New file.
58266         * lib/unistr/u16-strmbtouc.c: New file.
58267         * lib/unistr/u32-strmbtouc.c: New file.
58268
58269         * modules/unistr/u8-strncat: New file.
58270         * modules/unistr/u16-strncat: New file.
58271         * modules/unistr/u32-strncat: New file.
58272         * lib/unistr/u8-strncat.c: New file.
58273         * lib/unistr/u16-strncat.c: New file.
58274         * lib/unistr/u32-strncat.c: New file.
58275         * lib/unistr/u-strncat.h: New file.
58276
58277         * modules/unistr/u8-strncmp: New file.
58278         * modules/unistr/u16-strncmp: New file.
58279         * modules/unistr/u32-strncmp: New file.
58280         * lib/unistr/u8-strncmp.c: New file.
58281         * lib/unistr/u16-strncmp.c: New file.
58282         * lib/unistr/u32-strncmp.c: New file.
58283
58284         * modules/unistr/u8-strncpy: New file.
58285         * modules/unistr/u16-strncpy: New file.
58286         * modules/unistr/u32-strncpy: New file.
58287         * lib/unistr/u8-strncpy.c: New file.
58288         * lib/unistr/u16-strncpy.c: New file.
58289         * lib/unistr/u32-strncpy.c: New file.
58290         * lib/unistr/u-strncpy.h: New file.
58291
58292         * modules/unistr/u8-strnlen: New file.
58293         * modules/unistr/u16-strnlen: New file.
58294         * modules/unistr/u32-strnlen: New file.
58295         * lib/unistr/u8-strnlen.c: New file.
58296         * lib/unistr/u16-strnlen.c: New file.
58297         * lib/unistr/u32-strnlen.c: New file.
58298         * lib/unistr/u-strnlen.h: New file.
58299
58300         * modules/unistr/u8-strpbrk: New file.
58301         * modules/unistr/u16-strpbrk: New file.
58302         * modules/unistr/u32-strpbrk: New file.
58303         * lib/unistr/u8-strpbrk.c: New file.
58304         * lib/unistr/u16-strpbrk.c: New file.
58305         * lib/unistr/u32-strpbrk.c: New file.
58306         * lib/unistr/u-strpbrk.h: New file.
58307
58308         * modules/unistr/u8-strrchr: New file.
58309         * modules/unistr/u16-strrchr: New file.
58310         * modules/unistr/u32-strrchr: New file.
58311         * lib/unistr/u8-strrchr.c: New file.
58312         * lib/unistr/u16-strrchr.c: New file.
58313         * lib/unistr/u32-strrchr.c: New file.
58314
58315         * modules/unistr/u8-strspn: New file.
58316         * modules/unistr/u16-strspn: New file.
58317         * modules/unistr/u32-strspn: New file.
58318         * lib/unistr/u8-strspn.c: New file.
58319         * lib/unistr/u16-strspn.c: New file.
58320         * lib/unistr/u32-strspn.c: New file.
58321         * lib/unistr/u-strspn.h: New file.
58322
58323         * modules/unistr/u8-strstr: New file.
58324         * modules/unistr/u16-strstr: New file.
58325         * modules/unistr/u32-strstr: New file.
58326         * lib/unistr/u8-strstr.c: New file.
58327         * lib/unistr/u16-strstr.c: New file.
58328         * lib/unistr/u32-strstr.c: New file.
58329         * lib/unistr/u-strstr.h: New file.
58330
58331         * modules/unistr/u8-strtok: New file.
58332         * modules/unistr/u16-strtok: New file.
58333         * modules/unistr/u32-strtok: New file.
58334         * lib/unistr/u8-strtok.c: New file.
58335         * lib/unistr/u16-strtok.c: New file.
58336         * lib/unistr/u32-strtok.c: New file.
58337         * lib/unistr/u-strtok.h: New file.
58338
58339         * modules/unistr/u8-uctomb: New file.
58340         * modules/unistr/u16-uctomb: New file.
58341         * modules/unistr/u32-uctomb: New file.
58342         * lib/unistr/u8-uctomb.c: New file.
58343         * lib/unistr/u16-uctomb.c: New file.
58344         * lib/unistr/u32-uctomb.c: New file.
58345
58346         * MODULES.html.sh (Unicode string functions): Add the new modules.
58347
58348 2007-01-08  Bruno Haible  <bruno@clisp.org>
58349
58350         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58351         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58352         subdirectories.
58353
58354 2007-01-08  Karl Berry  <karl@gnu.org>
58355
58356         * doc/error.texi: mention that main() fns must set program_name
58357         when progname is used.
58358
58359 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58360
58361         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58362         WCTYPE_H is empty, for the benefit of builds from non-distclean
58363         directories.  Problem reported by Eric Blake in
58364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58365
58366 2007-01-08  Bruno Haible  <bruno@clisp.org>
58367
58368         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58369         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58370         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58371         PROVIDE_CANONICALIZE_FILENAME_MODE.
58372         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58373
58374 2007-01-08  Bruno Haible  <bruno@clisp.org>
58375
58376         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58377         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58378         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58379         * lib/fts.c: Likewise.
58380         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58381
58382 2006-12-25  Bruno Haible  <bruno@clisp.org>
58383
58384         * modules/utf8-ucs4-safe: New file.
58385         * lib/utf8-ucs4-safe.h: New file.
58386         * lib/unistr/utf8-ucs4-safe.c: New file.
58387
58388         * modules/utf16-ucs4-safe: New file.
58389         * lib/utf16-ucs4-safe.h: New file.
58390         * lib/unistr/utf16-ucs4-safe.c: New file.
58391
58392         * MODULES.html.sh (Unicode string functions): Add the new modules.
58393
58394 2007-01-08  Bruno Haible  <bruno@clisp.org>
58395
58396         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58397         (Depends-on): Add unitypes.
58398         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58399         (u8_mbtouc_aux): Move out to separate file.
58400         (u8_mbtouc): Use ucs4_t, uint8_t types.
58401         * lib/unistr/utf8-ucs4.c: New file.
58402
58403         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58404         (Depends-on): Add unitypes.
58405         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58406         (u16_mbtouc_aux): Move out to separate file.
58407         (u16_mbtouc): Use ucs4_t, uint16_t types.
58408         * lib/unistr/utf16-ucs4.c: New file.
58409
58410         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58411         (Depends-on): Add unitypes.
58412         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58413         (u8_uctomb_aux): Move out to separate file.
58414         (u8_uctomb): Use ucs4_t, uint8_t types.
58415         * lib/unistr/ucs4-utf8.c: New file.
58416
58417         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58418         (Depends-on): Add unitypes.
58419         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58420         (u16_uctomb_aux): Move out to separate file.
58421         (u16_uctomb): Use ucs4_t, uint16_t types.
58422         * lib/unistr/ucs4-utf16.c: New file.
58423
58424 2006-12-25  Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/unitypes: New file.
58427         * lib/unitypes.h: New file.
58428         * MODULES.html.sh (func_all_modules): New section "Unicode string
58429         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58430         this section. Add unitypes.
58431
58432 2007-01-08  Bruno Haible  <bruno@clisp.org>
58433
58434         Avoid variable names that conflict with those from libtool.
58435         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58436         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58437         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58438         library_names_spec to acl_library_names_spec, hardcode_* to
58439         acl_hardcode_*.
58440         Reported by Ralf Wildenhues.
58441
58442 2007-01-08  Bruno Haible  <bruno@clisp.org>
58443
58444         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58445         definition.
58446         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58447         definition.
58448         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58449         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58450         definition.
58451         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58452         definition.
58453         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58454         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58455         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58456         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58457         definition.
58458         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58459         definition.
58460         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58461         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58462         GC_USE_<algorithm>.
58463         * lib/gc-libgcrypt.c: Likewise.
58464         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58465         * modules/gc-arctwo (configure.ac): Likewise.
58466         * modules/gc-des (configure.ac): Likewise.
58467         * modules/gc-hmac-md5 (configure.ac): Likewise.
58468         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58469         * modules/gc-md2 (configure.ac): Likewise.
58470         * modules/gc-md4 (configure.ac): Likewise.
58471         * modules/gc-md5 (configure.ac): Likewise.
58472         * modules/gc-random (configure.ac): Likewise.
58473         * modules/gc-rijndael (configure.ac): Likewise.
58474         * modules/gc-sha1 (configure.ac): Likewise.
58475
58476 2007-01-08  Bruno Haible  <bruno@clisp.org>
58477
58478         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58479         macro definition.
58480         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58481         definition.
58482         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58483         definition.
58484         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58485         * modules/fcntl-safer (configure.ac): Likewise.
58486         * modules/fopen-safer (configure.ac): Likewise.
58487         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58488         GNULIB_FWRITEERROR macro definition.
58489
58490 2007-01-08  Bruno Haible  <bruno@clisp.org>
58491
58492         * m4/gnulib-common.m4: New file.
58493         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58494         (func_get_filelist): Add m4/gnulib-common.m4.
58495
58496 2007-01-08  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58499         command.
58500
58501 2007-01-08  Jim Meyering  <jim@meyering.net>
58502
58503         Use a more robust test for a "can't happen" condition.
58504         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58505         narrowed the st_size value.  Presuming the "can't happen" condition
58506         is true, that narrowing could conceivably convert an invalid st_size
58507         value into a valid one.  Instead, use a change based on Matthew
58508         Woehlke's original patch.
58509
58510         Slight readability improvement: use an assert-like macro
58511         in place of literal "abort ()" uses.
58512         * lib/fts.c (fts_assert): Define.
58513         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58514         Use this macro instead of a bare 'abort'.
58515
58516 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58517
58518         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58519         simply work around them.
58520         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58521         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58522         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58523         declaring.
58524         Don't bother to define as macros, since the standard doesn't require it.
58525         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58526         longer worry about IRIX 5.3.
58527         (HAVE_WCTYPE_CTMP_BUG): Remove.
58528
58529 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58530
58531         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58532         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58533         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58534         Problems reported by Georg Schwarz for IRIX 5.3.
58535
58536         * gnulib-tool (autoconf_minversion): Take the maximum version number
58537         found, not the minimum.  Problem reported by James Youngman.
58538
58539 2007-01-03  Karl Berry  <karl@gnu.org>
58540
58541         * doc/error.texi: new file, explaining interaction with progname.
58542         * doc/gnulib.texi: include it.  Update copyright.
58543
58544 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58545
58546         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58547         AC_CANONICAL_HOST, to improve autobuild outputs.
58548
58549 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58550             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58551
58552         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58553         sockets, server sockets, and other file descriptors.  Count errors
58554         to compute the return value.  Reorder the code a bit to be easier
58555         to follow.  Don't set event bits that were not requested (except
58556         POLLERR and POLLHUP).
58557
58558 2007-01-01  Bruno Haible  <bruno@clisp.org>
58559
58560         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58561
58562 2007-01-03  Jim Meyering  <jim@meyering.net>
58563
58564         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58565
58566 2007-01-02  Bruno Haible  <bruno@clisp.org>
58567
58568         * modules/settime (Include): Require timespec.h.
58569         * modules/nanosleep (Include): Likewise.
58570
58571 2007-01-01  Bruno Haible  <bruno@clisp.org>
58572
58573         * gnulib-tool (func_emit_copyright_notice): Bump year.
58574         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58575
58576 2007-01-01  Bruno Haible  <bruno@clisp.org>
58577
58578         Improve support for OpenBSD.
58579         * build-aux/config.rpath (libname_spec): Export.
58580         (library_names_spec): New variable. Export.
58581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58582         library_names_spec from the config.rpath output. Locate shared library
58583         through the name pattern in library_names_spec.
58584
58585 2007-01-01  Eric Blake  <ebb9@byu.net>
58586
58587         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58588
58589 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58592         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58593         assume the C locale, and avoid an "eval" that could cause trouble.
58594         Problem with SORT reported by Bob Proulx.
58595
58596         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58597         Define.  Trivial patch from Henning Nielsen Lund, originally
58598         sent to bug-grep@gnu.org today.
58599
58600 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58603         struct stat.  Problem reported by Henning Nielsen Lund.
58604         * lib/acl.c: Include acl.h first, to check interface.  Don't
58605         bother to include sys/types.h and sys/stat.h again.
58606
58607 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58608
58609         Import the following change from libc; problem reported by
58610         Sven Verdoolaege.
58611
58612         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58613
58614         [BZ #1373]
58615         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58616
58617 2006-12-28  Jim Meyering  <jim@meyering.net>
58618
58619         * build-aux/announce-gen: Do not assume that the package
58620         builds any of tar.gz, tar.bz2, and .xdelta files.
58621         Suggestion from Simon Josefsson.
58622
58623 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58624
58625         * modules/announce-gen: New file.
58626
58627 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58628
58629         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58630         handles its gotchas now.
58631         * lib/mbswidth.c: Likewise.
58632         * lib/wcwidth.h: Likewise.
58633         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58634         and iswcntrl; the wctype module does this stuff now.
58635         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58637         * modules/mbchar (Depends-on): Add wctype.
58638         * modules/mbswidth (Depends-on): Likewise.
58639         * modules/wcwidth (Depends-on): Likewise.
58640
58641 2006-12-27  Eric Blake  <ebb9@byu.net>
58642
58643         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58644         module uses more than what <wctype.h> is required to provide.
58645
58646 2006-12-26  Eric Blake  <ebb9@byu.net>
58647
58648         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58649
58650 2006-12-26  Eric Blake  <ebb9@byu.net>
58651
58652         * modules/absolute-header: New module.
58653         * modules/fcntl (Depends-on): Depend on it.
58654         * modules/inttypes (Depends-on): Likewise.
58655         * modules/stdint (Depends-on): Likewise.
58656         * modules/sys_stat (Depends-on): Likewise.
58657         * modules/wctype (Depends-on): Likewise.
58658         * MODULES.html.sh (Support for building libraries and
58659         executables): Document it.
58660
58661 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * gnulib-tool (SED): Remove, undoing previous change.
58664         The problem was that it broke coreutils on Solaris, because
58665         "sed --posix" leaked into a makefile.
58666         (sed): New alias, if 'alias' and GNU sed.
58667
58668 2006-12-24  Jim Meyering  <jim@meyering.net>
58669
58670         Work around an fchownat bug in glibc-2.4:
58671         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58672         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58673         in spite of the -P option.
58674         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58675         New macros.
58676         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58677         * modules/openat (Files): Add lib/fchownat.c.
58678         * lib/openat.c (fchownat): Don't define here.  Move to...
58679         * lib/fchownat.c: ...this new file.
58680
58681 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         Fix bug reported by Bruno Haible in
58684         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58685         where quotearg.c didn't compile on Mac OS X 10.2 because it
58686         lacks <wchar.h> and wint_t.
58687         * lib/wctype_.h (__wctype_wint_t): New type.
58688         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58689         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58690         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58691         Arg is now of type __wctype_wint_t, not wint_t.
58692         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58693         substitute HAVE_WINT_T.
58694         * modules/wctype (Files): Add m4/wint_t.m4.
58695         (wctype.h): Substitute HAVE_WINT_T.
58696
58697 2006-12-23  Bruno Haible  <bruno@clisp.org>
58698
58699         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58700
58701 2006-12-23  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58704         S_ISLNK.
58705         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58706         mingw.
58707
58708 2006-12-22  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/copy-file.c: Include acl.h.
58711         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58712         Close the file descriptors only after being done with copy_acl.
58713         * modules/copy-file (Depends-on): Add acl.
58714
58715 2006-12-22  Bruno Haible  <bruno@clisp.org>
58716
58717         * gnulib-tool (SED): New variable.
58718         Use $SED instead of sed everywhere.
58719
58720 2006-12-22  Bruno Haible  <bruno@clisp.org>
58721
58722         * modules/no-c++: New file.
58723         * m4/no-c++.m4: New file.
58724         * MODULES.html.sh (Support for building libraries and executables):
58725         Add no-c++.
58726
58727 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58728
58729         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58730         Include <limits.h>, and use its INT_MAX to rewrite the
58731         j loop so that it does not overflow 'int'.  Problem reported by
58732         Ralf Wildenhues in
58733         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58734         Play it safe by shifting left by 1 rather than multiplying by 2,
58735         as GCC is less likely to optimize this away when the value
58736         is signed (when it assumes overflow leads to undefined behavior).
58737         Also, don't assume time_t uses two's complement.
58738
58739 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58740
58741         * MODULES.html.sh: New module wctype.
58742         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58743         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58744         <wctype.h>, since the new wctype module should fix this.
58745         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58746         the wctype module should arrange for it.
58747         * lib/regex_internal.h: Likewise.
58748         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58749         since the wctype module should handle this now.
58750         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58751         * modules/fnmatch (Depends-on): Add wctype.
58752         * modules/quotearg (Depends-on): Likewise.
58753         * modules/regex (Depends-on): Likewise.
58754
58755 2006-12-19  Bruno Haible  <bruno@clisp.org>
58756
58757         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58758         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58759
58760 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58761
58762         * modules/savewd (Depends-on): Fix dependency on fcntl.
58763
58764 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58767         conforms to C99, rather than relying on the user's environment
58768         setting of STDINT_H.
58769
58770 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58771         and Eric Blake  <ebb9@byu.net>
58772
58773         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58774         This is more consistent with the other defines here.
58775         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58776         Port to z/OS.  Problem reported by Paul Gilmartin.
58777         Change local vars to use gl_ prefix rather than ac_.
58778         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58779         with other defines.
58780         * modules/double-slash-root: New module.
58781         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58782         (Depends-on): Add double-slash-root.
58783         * MODULES.html.sh (File system functions): Mention new module.
58784
58785 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58786
58787         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58788         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58789         This is for the benefit of gzip, which doesn't do i18n.
58790
58791 2006-12-12  Jim Meyering  <jim@meyering.net>
58792
58793         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58794         Reported by Andreas Schwab <schwab@suse.de>.
58795
58796 2006-12-12  Bruno Haible  <bruno@clisp.org>
58797
58798         Merge these changes.
58799         2006-09-05  Bruno Haible  <bruno@clisp.org>
58800         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58801         iconv_alloc succeeded.
58802         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58803         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58804         test for " && dest " at the end - dest is always != NULL there. Call
58805         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58806         with 2xNULL arguments, also to flush the state storage. Handle the
58807         IRIX iconv behaviour. Realloc the final result, to throw away unused
58808         memory.
58809
58810 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58811
58812         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58813         and fchmodat unconditionally, since glibc 2.4 has them.
58814         Problem reported by Arkadiusz Miskiewicz.
58815
58816 2006-12-10  Bruno Haible  <bruno@clisp.org>
58817
58818         * gnulib-tool (func_import): Show the include files only for those
58819         modules that are copied and specified.
58820         Reported by Karl Berry.
58821
58822 2006-12-08  Jim Meyering  <jim@meyering.net>
58823
58824         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58825         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58826
58827         * build-aux/announce-gen: Add two new options, both optional:
58828         --bootstrap-tools=TOOL_LIST
58829               a comma-separated list of tools, e.g.,
58830               autoconf,automake,bison,gnulib
58831         --gnulib-snapshot-date=DATE
58832               if gnulib is in the bootstrap tool list,
58833               then report this as the snapshot date.
58834               If not specified, use the current date/time.
58835               If you specify a date here, be sure it's UTC.
58836
58837 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58838
58839         * tests/test-argp-2.sh: Fix test to match actual output.
58840         (func_compare): Fix sed script to be portable.
58841
58842 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58843
58844         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58845         workaround for this case.  It is not autoconfigured now; offhand
58846         it's hard to see how to autoconfigure it.
58847
58848 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58849
58850         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58851         a directory that is about to be chowned.  Such a directory's
58852         initial file permissions should permit the owner only and this
58853         should not be changed until after the chown, since the group and
58854         other bits would be incorrect if they granted permission before
58855         the chown.
58856
58857         Fix porting problem for iswctype reported by Georg Schwarz in:
58858         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58859         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58860         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58862         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58863
58864 2006-12-03  Jim Meyering  <jim@meyering.net>
58865
58866         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58867         p->fts_statp may not yet be defined.
58868         (fts_read): Instead, set it in the caller, once p->fts_statp is
58869         sure to be defined, and corresponds to a top-level directory.
58870         This bug made du -x fail.  Here's the coreutils test case:
58871         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58872         Reported by Mike Frysinger.
58873
58874 2006-12-01  Jim Meyering  <jim@meyering.net>
58875
58876         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58877         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58878         Reported by Simon Josefsson.
58879
58880 2006-11-30  Jim Meyering  <jim@meyering.net>
58881
58882         * m4/warning.m4: Use the all-permissive copyright notice
58883         recommended by RMS (rather than LGPL).
58884         * m4/vararrays.m4: Likewise.
58885         * m4/flexmember.m4: Likewise.
58886
58887 2006-11-29  Bruno Haible  <bruno@clisp.org>
58888
58889         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58890         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58891         using +=.
58892         Reported by Simon Josefsson <simon@josefsson.org>.
58893
58894 2006-11-28  James Youngman <jay@gnu.org>
58895
58896         * README: Advise users that they might find the bug-gnulib@gnu.org
58897         and autotools-announce@gnu.org mailing lists useful.
58898
58899 2006-11-28  Bruno Haible  <bruno@clisp.org>
58900
58901         * m4/ptrdiff_max.m4: Remove file.
58902
58903 2006-11-21  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58906         _AC_COMPUTE_INT.
58907         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58908         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58909         _AC_COMPUTE_INT.
58910         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58911         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58912         _AC_COMPUTE_INT.
58913         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58914
58915 2006-11-28  Jim Meyering  <jim@meyering.net>
58916
58917         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58918         warning from "gcc -Wshadow" about shadowing the builtin.
58919
58920 2006-11-27  Bruno Haible  <bruno@clisp.org>
58921
58922         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58923         _AC_COMPUTE_INT.
58924         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58925
58926 2006-11-27  Bruno Haible  <bruno@clisp.org>
58927             Paul Eggert  <eggert@cs.ucla.edu>
58928
58929         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58930
58931 2006-11-26  Bruno Haible  <bruno@clisp.org>
58932
58933         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58934         noinst_LTLIBRARIES.
58935
58936 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58937             Bruno Haible  <bruno@clisp.org>
58938
58939         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58940         if compiling with "gcc -ansi".
58941
58942 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         Fix some incompatibilities with gcc -ansi -pedantic.
58945         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58946         if compiling pedantically with GCC, unless it's C99 or later.
58947         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58948         it mishandles gcc -ansi -pedantic as well.
58949         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58950         if gcc -pedantic.
58951         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58952         initializers for struct if -pedantic, unless it's C99 or later.
58953
58954 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58955
58956         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58957         Don't close an fd more than once. Identical atimes indicate
58958         success, not failure.
58959
58960 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58961
58962         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58963
58964 2006-11-23  Jim Meyering  <jim@meyering.net>
58965
58966         * build-aux/announce-gen: New file.  From coreutils.
58967
58968 2006-11-22  Jim Meyering  <jim@meyering.net>
58969
58970         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58971         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58972         (fts_read): Use a temporary to narrow the overused st_size member
58973         before using it in a switch statement.  Reported by Matthew Woehlke.
58974
58975         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58976         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58977
58978 2006-11-20  Bruno Haible  <bruno@clisp.org>
58979
58980         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58981         changequote instead of pairs of brackets.
58982         Reported by Andreas Schwab <schwab@suse.de>.
58983
58984 2006-11-21  Jim Meyering  <jim@meyering.net>
58985
58986         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58987         so as to remain compatible with older compilers.
58988         Patch from Michael Deutschmann.
58989
58990 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * MODULES.html.sh (File system functions): Add openat.
58993
58994         * lib/openat.h (rpl_fstatat): New macro, if
58995         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58996         (fstatat): Define to rpl_fstatat under the same conditions,
58997         unless COMPILING_FSTATAT.
58998         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58999         seems to have the bug.
59000         * lib/fstatat.c: New file.
59001         * modules/openat (Files): Add it.
59002
59003 2006-11-20  Bruno Haible  <bruno@clisp.org>
59004
59005         * Makefile: New file.
59006
59007 2006-11-20  Jim Meyering  <jim@meyering.net>
59008
59009         The beginnings of syntax-related checks for gnulib.
59010         * lib/Makefile: New file.
59011         * lib/t-idcache: New script.  Ensure that the two halves of
59012         idcache.c stay in sync.
59013
59014         * lib/idcache.c: Adjust comments in user- and group- portions to
59015         be more accurate, and to be consistent with one another.
59016
59017 2006-11-20  Jim Meyering  <jim@meyering.net>
59018
59019         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59020         continue using the flexible array member (thus, this module performs
59021         half as many malloc calls), with the addition that...
59022         (getgroup, getuser): Consistently record a non-match via an empty
59023         "name" string, and map an empty string match to a NULL return value.
59024         * modules/idcache (Depends-on): Re-add flexmember.
59025
59026         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59027         (getuidbyname, getgroup, getgidbyname): Likewise.
59028
59029         Use cleaner syntax: NULL rather than 0.
59030         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59031
59032 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59035         It mishandled the case where the group was missing.
59036         Problem reported by Greg Schafer.
59037         * modules/idcache: Likewise.
59038
59039 2006-11-18  Jim Meyering  <jim@meyering.net>
59040
59041         * check-module (%exempt_header): Add exception for some
59042         conditionally-included headers.
59043
59044         * modules/i-ring (Depends-on): Add verify.
59045         (License): Change to LGPL.
59046
59047 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59048
59049         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59050         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59051         and inttostr.h.  Use snprintf rather than uinttostr, so that
59052         LGPLed code doesn't depend on GPLed.
59053
59054 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59055
59056         * modules/inline (License): Change from GPL to LGPL.
59057
59058 2006-11-17  Jim Meyering  <jim@meyering.net>
59059
59060         * modules/d-type (License): Switch to LGPL.
59061
59062 2006-11-15  Bruno Haible  <bruno@clisp.org>
59063
59064         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59065
59066 2006-11-15  Eric Blake  <ebb9@byu.net>
59067
59068         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59069         the module dependency.
59070
59071 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59072             Bruno Haible  <bruno@clisp.org>
59073
59074         * gnulib-tool (func_create_testdir): Add license consistency check.
59075
59076 2006-11-15  Eric Blake  <ebb9@byu.net>
59077
59078         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59079         random "(cached)" in configure output.
59080
59081 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59082
59083         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59084         test for conforming inttypes.h is both announced and cached.
59085
59086         * MODULES.html.sh (seen_modules, seen_files): New variables.
59087         (func_module): Rewrite to use a few less gnulib-tool and sed
59088         invocations.  Avoid a couple of quadratic algorithms for ...
59089         (missed_modules, missed_files): ... these, with ...
59090         (func_append, func_tmpdir): ... these new functions, from
59091         gnulib-tool.  Analogously, install traps for cleanup.
59092
59093         * tests/test-gc.c (main): Remove unused variables.
59094         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59095
59096 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59097
59098         * modules/inttostr (License): Change to LGPL.
59099
59100 2006-11-14  Eric Blake  <ebb9@byu.net>
59101
59102         * modules/tempname (License): Change to LGPL.
59103
59104 2006-11-14  Eric Blake  <ebb9@byu.net>
59105
59106         * doc/functions.texi (Function Portability): *printf functions on
59107         Cygwin now understand all POSIX size specifiers.
59108
59109 2006-11-14  Bruno Haible  <bruno@clisp.org>
59110
59111         * modules/c-ctype (License): Change to LGPL.
59112
59113 2006-11-12  Bruno Haible  <bruno@clisp.org>
59114
59115         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59116         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59117         for GNOME libraries, for which the include files are installed in
59118         subdirectories of $prefix/include.
59119
59120 2006-11-12  Bruno Haible  <bruno@clisp.org>
59121
59122         * m4/lib-link.m4: Require at least autoconf-2.54.
59123         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59124         name to underscores for the --with option.
59125
59126 2006-11-13  Bruno Haible  <bruno@clisp.org>
59127
59128         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59129         the tests directory.
59130         Reported by Ralf Wildenhues.
59131
59132 2006-11-13  Bruno Haible  <bruno@clisp.org>
59133
59134         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59135         (func_emit_initmacro_end): Undo the override here.
59136         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59137         Works around the famous automake error in coreutils.
59138
59139 2006-11-13  Eric Blake  <ebb9@byu.net>
59140
59141         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59142         element, not its node.
59143
59144 2006-11-12  Bruno Haible  <bruno@clisp.org>
59145
59146         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59147         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59148
59149 2006-11-12  Bruno Haible  <bruno@clisp.org>
59150
59151         * gnulib-tool: New option --local-symlink.
59152         (func_usage): Document it.
59153         (lsymbolic): New variable.
59154         (func_import, func_create_testdir): If --symlink was not specified,
59155         test whether --local-symlink was specified and the file comes from
59156         the local_gnulib_dir.
59157
59158 2006-11-12  Bruno Haible  <bruno@clisp.org>
59159
59160         * gnulib-tool (func_ln): New function.
59161         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59162
59163 2006-11-12  Bruno Haible  <bruno@clisp.org>
59164
59165         Finish support for source files in subdirectories.
59166         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59167         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59168         AUTOMAKE_OPTIONS.
59169         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59170
59171 2006-11-12  Bruno Haible  <bruno@clisp.org>
59172
59173         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59174         EXTRA_lib_SOURCES augmentation.
59175         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59176
59177 2006-11-12  Jim Meyering  <jim@meyering.net>
59178
59179         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59180         file descriptors.  This also averts a failure on systems with
59181         native openat support when a traversed directory lacks "x" access.
59182         * lib/fts_.h: Include "i-ring.h"
59183         (struct FTS) [fts_fd_ring]: New member.
59184         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59185         (FCHDIR): Add parentheses.
59186         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59187         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59188         When descending, rather than simply closing the previous
59189         fts_cwd_fd value, push that file descriptor onto the ring.
59190         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59191         (fts_open): Initialize the new fd_ring member.
59192         (fts_close): Clear the ring.
59193         (fts_safe_changedir): When possible, use our new fd_ring to skip
59194         the diropen and fstat and dev/ino comparison that would normally
59195         accompany a virtual `chdir ("..")'.
59196
59197         * modules/fts (Depends-on): Add i-ring.
59198         * modules/i-ring: New module.
59199         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59200         * m4/i-ring.m4: New file.
59201
59202 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59203
59204         * gnulib-tool (func_create_testdir): Fix replacement of
59205         `build-aux' in configure.ac.  Run autotools in gltests
59206         subdirectory.
59207         (func_create_testdir, func_create_megatestdir, test): There is
59208         no need for '--force' in most autotool invocations in a new
59209         tree.  Actually fail the whole test if any of the tools, or the
59210         configure or make stages fail.
59211
59212         Sync from Automake.
59213         * build-aux/gnupload: Revert last change.  Add pointer to upload
59214         instructions of the GNU Maintenance Instructions.
59215         Suggestion by Karl Berry.
59216
59217 2006-11-10  Jim Meyering  <jim@meyering.net>
59218
59219         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59220
59221 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59224         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59225         (bind_textdomain_codeset) [! ENABLE_NLS]:
59226         Evaluate all the arguments.  That way, callers get compatible behavior
59227         if the arguments have side effects.  Also, it avoids some GCC
59228         diagnostics in some cases; Joel E. Denny reported problems when Bison
59229         was configured with --enable-gcc-warnigs.
59230
59231 2006-11-10  Jim Meyering  <jim@meyering.net>
59232
59233         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59234         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59235         account.
59236
59237 2006-11-10  Jim Meyering  <jim@meyering.net>
59238
59239         * modules/inline: New file/module.
59240         * modules/xalloc (Files): Remove m4/inline.m4.
59241         (Depends-on): Add inline, instead.
59242         * modules/oset: Likewise.
59243         * modules/list: Likewise.
59244
59245 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59246
59247         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59248         Problem reported by Matthew Woehlke.
59249
59250 2006-11-09  Bruno Haible  <bruno@clisp.org>
59251
59252         * lib/tempname.c (gen_tempname): Remove variant that invokes
59253         __gen_tempname.
59254         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59255         __gen_tempname.
59256
59257 2006-11-08  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59260         to 'yes' instead of 'cross-compiling'.
59261
59262 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * lib/quotearg.h (quotearg_free): New decl.
59265         * lib/quotearg.c (quotearg_free): New function.
59266         (slot0, nslots, slotvec0, slotvec):
59267         Now file-scope so that quotearg_free can get at them.
59268
59269 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59270
59271         Sync from Automake.
59272         * build-aux/gnupload: Add missing 'gnu' to example URL.
59273         Report by Karl Berry.
59274
59275 2006-11-08  Bruno Haible  <bruno@clisp.org>
59276
59277         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59278         Suggested by Paul Eggert.
59279
59280 2006-11-08  Jim Meyering  <jim@meyering.net>
59281
59282         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59283         It's already included if !_LIBC.
59284         (fts_safe_changedir): Add a comment.
59285
59286 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59287
59288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59289         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59290         Matthew Woehlke.
59291
59292         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59293         definitions up, to avoid colliding with change below.
59294         (static_inline) [HAVE_INLINE]: New macro.
59295         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59296         Provide extern decls when !HAVE_INLINE.  Do not define unless
59297         static_inline is defined, either by us or by xmalloc.c.  Use
59298         static_inline rather than static inline.
59299         (XCALLOC): Optimize sizeof(T) = 1 case.
59300         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59301
59302 2006-11-07  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59305         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59306         AC_C_INLINE.
59307         * modules/xalloc (Files): Add m4/inline.m4.
59308
59309 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59310
59311         * README: Fix typo.
59312         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59313         (Miscellanous Notes): ...from this.
59314
59315 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59316
59317         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59318         Mention that offsetof should be used instead of sizeof.
59319         From Bruno Haible.
59320
59321 2006-11-07  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59324
59325 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59328         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59329         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59330         (gl_tree_add_before, gl_tree_add_after):
59331         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59332         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59333         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59334         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59335         (gl_linked_add_after, gl_linked_add_at): Likewise.
59336         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59337         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59338         (gl_tree_add_before, gl_tree_add_after): Likewise.
59339         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59340         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59341         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59342
59343 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59344
59345         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59346
59347 2006-11-06  Bruno Haible  <bruno@clisp.org>
59348
59349         * m4/inline.m4: New file.
59350         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59351         * modules/list (Files): Add m4/inline.m4.
59352         * modules/oset (Files): Likewise.
59353
59354 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59355
59356         * lib/idcache.c: Include <stddef.h>, for offsetof.
59357         (struct userid.name): Change from char * to a flexible array member.
59358         All uses changed.
59359         * modules/idcache (Depends-on): Add flexmember.
59360
59361         * MODULES.html.sh (Core language properties): New module flexmember.
59362         * modules/flexmember, m4/flexmember.m4: New files.
59363
59364         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59365         inline functions that are identical with the old xnmalloc_inline,
59366         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59367         that we can avoid some unnecessary integer multiplications and
59368         divisions in the common case where the element size is known at
59369         compile time.
59370         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59371         needed.
59372         (xnboundedmalloc): Remove.
59373         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59374         arguments, for consistency with rest of this header.
59375         (xcharalloc): Rewrite using XNMALLOC.
59376         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59377         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59378         versions have been moved to lib/xalloc.h and renamed to be the
59379         non-*_inline versions.
59380         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59381         and xnrealloc functions, since those functions are now inline and
59382         now call us.
59383         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59384         renaming described above.
59385         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59386         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59387         captures the dependency in AC_C_INLINE.
59388
59389         New module canonicalize-lgpl, proposed by Charles Wilson in
59390         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59391         with a few small changes afterwards.
59392         * MODULES.html.sh (File system functions): New module
59393         canonicalize-lgpl.
59394         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59395         and canonicalize_file_name.
59396         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59397         * modules/canonicalize-lgpl: New files.
59398
59399 2006-11-05  Bruno Haible  <bruno@clisp.org>
59400
59401         * gnulib-tool (func_import, func_create_testdir): Create directories
59402         also for files in subdirectories of lib/.
59403
59404 2006-11-05  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59407         ANSI C compliant.
59408
59409 2006-11-03  Bruno Haible  <bruno@clisp.org>
59410
59411         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59412         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59413         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59414         (xnboundedmalloc): New inline function.
59415         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59416         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59417         xmalloc.
59418         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59419         xmalloc.
59420         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59421         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59422         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59423         xmalloc.
59424         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59425         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59426         xmalloc.
59427         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59428         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59429         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59430         xmalloc.
59431         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59432         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59433         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59434         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59435         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59436         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59437         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59438
59439 2006-11-03  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/c-ctype.h [C++]: Define functions without name mangling.
59442         * lib/fwriteerror.h [C++]: Likewise.
59443         * lib/gcd.h [C++]: Likewise.
59444         * lib/linebreak.h [C++]: Likewise.
59445
59446 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59449         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59450         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59451         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59452         Check for functions and headers just once.
59453         Check for declaration of canonicalize_file_name.
59454         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59455
59456 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59457
59458         * gnulib-tool (func_import): Fix typo in actioncmd.
59459
59460 2006-11-02  Bruno Haible  <bruno@clisp.org>
59461
59462         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59463         newline sequence in the Makefile.am snippet as a space, like "make"
59464         does.
59465         Reported by Roger Persson <perrog@gmail.com>.
59466
59467 2006-11-01  Bruno Haible  <bruno@clisp.org>
59468
59469         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59470         already declared in <string.h>.
59471         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59472
59473 2006-11-01  Bruno Haible  <bruno@clisp.org>
59474
59475         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59476         * lib/strcase.h: Include <string.h>.
59477         (strcasecmp): Define to rpl_strcasecmp here.
59478
59479 2006-11-01  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59482
59483 2006-11-01  Eric Blake  <ebb9@byu.net>
59484
59485         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59486
59487         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59488
59489 2006-10-29  Bruno Haible  <bruno@clisp.org>
59490
59491         Make it compile in C++ mode.
59492         * lib/full-write.c (full_rw): Add a cast.
59493
59494 2006-11-01  Bruno Haible  <bruno@clisp.org>
59495
59496         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59497         be POSIX compliant.
59498         Reported by Roger Persson <perrog@gmail.com>.
59499
59500 2006-11-01  Eric Blake  <ebb9@byu.net>
59501
59502         * lib/getopt_.h: Fix comments.
59503
59504 2006-10-31  Eric Blake  <ebb9@byu.net>
59505
59506         * modules/tmpdir (Depends-on): Add sys_stat.
59507         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59508         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59509         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59510         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59511         tempname.
59512
59513 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59514
59515         Avoid some C++ diagnostics reported by Bruno Haible.
59516         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59517         xmalloc.
59518         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59519         (struct slotvec): Move to top level.
59520         (quotearg_n_options): Rewrite to avoid xmalloc.
59521         * lib/xalloc.h (xcharalloc): New function.
59522         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59523         [defined __cplusplus]: Add function template that provides result
59524         type propagation.  This part of the change is from Bruno Haible.
59525
59526 2006-10-29  Bruno Haible  <bruno@clisp.org>
59527
59528         Make it compile in C++ mode.
59529         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59530         * lib/strnlen1.c (strnlen1): Cast memchr result.
59531         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59532         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59533         (create_temp_dir): Rename local variable 'template'.
59534         (compile_csharp_using_sscli): Add cast.
59535         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59536         * lib/findprog.c (find_in_path): Likewise.
59537         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59538         * lib/wait-process.c (register_slave_subprocess): Likewise.
59539
59540 2006-10-22  Bruno Haible  <bruno@clisp.org>
59541
59542         * modules/tsearch: New file.
59543         * lib/tsearch.h: New file.
59544         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59545         * m4/tsearch.m4: New file.
59546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59547
59548 2006-10-29  Eric Blake  <ebb9@byu.net>
59549
59550         * lib/arcfour.c: Assume config.h.
59551         * lib/arctwo.c: Likewise.
59552         * lib/base64.c: Likewise.
59553         * lib/check-version.c: Likewise.
59554         * lib/crc.c: Likewise.
59555         * lib/des.c: Likewise.
59556         * lib/gc-gnulib.c: Likewise.
59557         * lib/gc-libgcrypt.c: Likewise.
59558         * lib/gc-pbkdf2-sha1.c: Likewise.
59559         * lib/getaddrinfo.c: Likewise.
59560         * lib/getdelim.c: Likewise.
59561         * lib/getline.c: Likewise.
59562         * lib/hmac-md5.c: Likewise.
59563         * lib/hmac-sha1.c: Likewise.
59564         * lib/iconvme.c: Likewise.
59565         * lib/md2.c: Likewise.
59566         * lib/md4.c: Likewise.
59567         * lib/memxor.c: Likewise.
59568         * lib/read-file.c: Likewise.
59569         * lib/readline.c: Likewise.
59570         * lib/rijndael-alg-fst.c: Likewise.
59571         * lib/rijndael-api-fst.c: Likewise.
59572         * lib/xgetdomainname.c: Likewise.
59573
59574 2006-10-28  Eric Blake  <ebb9@byu.net>
59575
59576         * lib/xstrndup.c: Assume config.h.
59577
59578 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59581         stat-macros.h is now for our own macros, whereas stat_h is for
59582         macros in the <sys/stat.h> name space.
59583         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59584         (STAT_MACROS_H): Remove.
59585         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59586         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59587         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59588         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59589         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59590         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59591         Move these macros to ...
59592         * lib/stat_.h: here.  Don't include stat-macros.h.
59593         * lib/canonicalize.c: Don't include stat-macros.h.
59594         * lib/chown.c: Likewise.
59595         * lib/euidaccess.c: Likewise.
59596         * lib/file-type.c: Likewise.
59597         * lib/filemode.c: Likewise.
59598         * lib/glob.c: Likewise.
59599         * lib/isapipe.c: Likewise.
59600         * lib/lchown.c: Likewise.
59601         * lib/lstat.c: Likewise.
59602         * lib/mkdir-p.c: Likewise.
59603         * lib/rmdir.c: Likewise.
59604         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59606         unless mkdir isn't declared, to speed up 'configure'.
59607         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59608         would define all the S_* symbols.
59609         * modules/canonicalize (Depends-on):
59610         Depend on sys_stat, not stat-macros.
59611         * modules/chown: Likewise.
59612         * modules/euidaccess: Likewise.
59613         * modules/filemode: Likewise.
59614         * modules/file-type: Likewise.
59615         * modules/glob: Likewise.
59616         * modules/isapipe: Likewise.
59617         * modules/lchown: Likewise.
59618         * modules/lstat: Likewise.
59619         * modules/mkancesdirs: Likewise.
59620         * modules/rmdir: Likewise.
59621         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59622         * modules/modechange: Likewise.
59623         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59624         (configure.ac): Remove gl_STAT_MACROS.
59625         * modules/sys_stat (Depends-on): Remove stat-macros.
59626
59627 2006-10-27  Bruno Haible  <bruno@clisp.org>
59628
59629         * m4/signed.m4: Remove file.
59630         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59631         invocation.
59632         * modules/vasnprintf (Files): Remove m4/signed.m4.
59633
59634 2006-10-27  Bruno Haible  <bruno@clisp.org>
59635
59636         Update to GNU gettext 0.16.
59637         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59638         m4/inttypes-h.m4, m4/signed.m4.
59639         * m4/gettext.m4: Update to GNU gettext 0.16.
59640         * m4/intl.m4: New file, from GNU gettext.
59641         * m4/intldir.m4: New file, from GNU gettext.
59642         * config/srclist.txt: Update
59643
59644 2006-10-27  Eric Blake  <ebb9@byu.net>
59645
59646         * MODULES.html.sh: Document tempname.
59647         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59648         dependencies.
59649         (Files): Move lib/tempname.c...
59650         * modules/tempname: ...to this new module.
59651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59652         (gl_PREREQ_TEMPNAME): Move...
59653         * m4/tempname.m4: ...to this new file.
59654         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59655         * modules/sys_stat (Depends-on): Add stat-macros.
59656         * lib/stat_.h (includes): Pick up stat macros.
59657         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59658         if stat macros are broken.
59659         * lib/tempname.c (includes): No need to include "stat-macros.h".
59660         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59661         (direxists, __path_search) [!_LIBC]: Don't compile these in
59662         gnulib; the tmpdir module covers that.
59663         * lib/tempname.h: New file.
59664
59665 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59666
59667         * COPYING: Explain how gnulib-tool converts licence headers.
59668         Almost all wording by Eric Blake.
59669
59670 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59671
59672         * lib/mbchar.h (is_basic_table): Make read-only.
59673         * lib/mbchar.c (is_basic_table): Likewise.
59674         Reported by John Darrington.
59675
59676 2006-10-25  Bruno Haible  <bruno@clisp.org>
59677
59678         * lib/progname.h (set_program_name): Undefine before defining.
59679
59680 2006-10-25  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59683         false for non-gcc C++ compilers.
59684         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59685
59686 2006-10-24  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59689         iconv implementations like Irix iconv.
59690
59691 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59692
59693         * modules/vararrays: New file.
59694         * m4/vararrays.m4: New file, taken from diffutils.
59695         * MODULES.html.sh: New module vararrays.
59696
59697 2006-10-24  Karl Berry  <karl@gnu.org>
59698
59699         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59700         Don't call GNU Unix.
59701
59702 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59703
59704         * users.txt: Add Libtool.
59705
59706         Sync from Libtool:
59707
59708         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59711         to gnulib's policy of including config.h unconditionally.
59712
59713 2006-10-24  Bruno Haible  <bruno@clisp.org>
59714
59715         * modules/wcwidth (Files): Add m4/wint_t.m4.
59716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59717         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59718
59719 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59722         to pacify GCC with some -W flags enabled.  Problem reported by
59723         Bruno Haible.
59724
59725 2006-10-24  Jim Meyering  <jim@meyering.net>
59726
59727         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59728         Reported by Karl Berry.
59729
59730 2006-10-23  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59733
59734 2006-10-24  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/gl_list.h: Use C comment style, not C++ comment style.
59737
59738 2006-10-23  Eric Blake  <ebb9@byu.net>
59739
59740         * lib/getaddrinfo.c (includes): Add missing include.
59741
59742 2006-10-23  Bruno Haible  <bruno@clisp.org>
59743             Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         Ability to rename obstack_free.
59746         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59747         obstack_free.
59748         (obstack_free): Invoke the __obstack_free macro.
59749         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59750
59751 2006-10-23  Bruno Haible  <bruno@clisp.org>
59752             Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59755         __argc, __argv from the declaration. (They are defined as macros on
59756         mingw.)
59757
59758 2006-10-22  Bruno Haible  <bruno@clisp.org>
59759
59760         * doc/gnulib-intro.texi: New file.
59761         * doc/gnulib.texi: Include it.
59762
59763 2006-10-21  Bruno Haible  <bruno@clisp.org>
59764
59765         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59766         "Introduction", "Miscellanous Notes", "Particular Modules".
59767
59768 2006-10-21  Bruno Haible  <bruno@clisp.org>
59769
59770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59771         Change mostlyclean-local rule to avoid sh syntax error from bash
59772         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59773
59774 2006-10-23  Jim Meyering  <jim@meyering.net>
59775
59776         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59777         in place of snprintf.
59778
59779         * modules/inttostr (Files): Add lib/uinttostr.c.
59780         * lib/uinttostr.c (inttostr): New file/function.
59781         * lib/inttostr.h (uinttostr): Declare.
59782         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59783         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59784         Add uinttostr.
59785         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59786
59787 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * lib/canonicalize.c (ELOOP): Define if not already defined.
59790         Problem reported by Bruno Haible in
59791         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59792
59793 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59796         Problem reported by Perry Smith and Ville Laurikari.
59797
59798         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59799         uses.
59800
59801 2006-10-19  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59804         for mingw.
59805
59806 2006-10-19  Bruno Haible  <bruno@clisp.org>
59807
59808         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59809         Needed for mingw.
59810
59811 2006-10-19  Bruno Haible  <bruno@clisp.org>
59812
59813         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59814
59815 2006-10-19  Bruno Haible  <bruno@clisp.org>
59816
59817         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59818         it.
59819
59820 2006-10-19  Bruno Haible  <bruno@clisp.org>
59821
59822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59823         invocation.
59824
59825 2006-10-19  Bruno Haible  <bruno@clisp.org>
59826
59827         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59828         mountlist by default.
59829
59830 2006-10-16  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/c-strstr.c: Include c-strstr.h.
59833
59834 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59835
59836         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59837         in a slash.
59838
59839 2006-10-18  Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/lock.h [C++]: Wrap definitions in extern "C".
59842
59843 2006-10-18  Bruno Haible  <bruno@clisp.org>
59844
59845         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59846         gl_LIBOBJS list.
59847
59848 2006-10-18  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59851
59852 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59853
59854         * lib/xstrtol.h: Include gettext.h.
59855         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59856         Problem reported by Eric Blake.
59857         * modules/xstrtol (Depends-on): Add gettext-h.
59858
59859 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59860
59861         * lib/strftime.c (advance): New macro.
59862         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59863         incomplete type, so you can't add 0 to it.  Problem and patch
59864         reported by Eelco Dolstra for dietlibc.
59865
59866 2006-10-18  Jim Meyering  <jim@meyering.net>
59867
59868         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59869         type for a local, and rename it: s/up/user_proc/.
59870
59871 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59872
59873         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59874         READ_UTMP_USER_PROCESS.
59875         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59876
59877 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59878
59879         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59880         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59881
59882 2006-10-17  Eric Blake  <ebb9@byu.net>
59883
59884         * lib/sigprocmask.c (sigprocmask): Fix typo.
59885
59886         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59887
59888         * modules/clean-temp (Makefile.am): Don't add to make output...
59889         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59890         config.h.
59891
59892 2006-10-17  Bruno Haible  <bruno@clisp.org>
59893
59894         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59895         differently if DEFAULT_TEXT_DOMAIN is set.
59896
59897 2006-10-16  Bruno Haible  <bruno@clisp.org>
59898
59899         * lib/clean-temp.c: Include fwriteerror.h.
59900
59901 2006-10-16  Bruno Haible  <bruno@clisp.org>
59902
59903         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59904
59905 2006-10-16  Bruno Haible  <bruno@clisp.org>
59906
59907         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59908         * lib/sigprocmask.h: Include <sys/types.h>.
59909         (sigset_t): Use the system's definition if present.
59910
59911 2006-10-17  Eric Blake  <ebb9@byu.net>
59912
59913         * lib/xvasprintf.c (includes): Assume config.h.
59914         * lib/xasprintf.c (includes): Likewise.
59915
59916 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59917
59918         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59919         at least as wide as intmax_t.
59920
59921 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59922
59923         (Imported from Automake.)
59924         * build-aux/gnupload: Update to version 1.1 of directive file.
59925
59926 2006-10-16  Eric Blake  <ebb9@byu.net>
59927
59928         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59929         match Automake 1.10a.
59930
59931 2006-10-14  Bruno Haible  <bruno@clisp.org>
59932
59933         * modules/sigprocmask: New file.
59934         * lib/sigprocmask.h: New file.
59935         * lib/sigprocmask.c: New file.
59936         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59937         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59938         request sigprocmask.o.
59939         (gl_PREREQ_SIGPROCMASK): New macro.
59940         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59941         (Depends-on): Add sigprocmask.
59942         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59943         gt_SIGNALBLOCKING. Test for 'raise' only once.
59944         * lib/fatal-signal.c: Include sigprocmask.h.
59945         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59946         unblock_fatal_signals): Define always.
59947         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59948         sigprocmask.
59949
59950 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         Sync from Automake.
59953         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59954         which incorrectly sets the mode of an existing destination
59955         directory.  In some cases the unpatched install-sh could do the
59956         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59957         system.  We hope this is rare in practice, but it's clearly worth
59958         fixing.  Problem reported by Alex Unleashed in
59959         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59960         Also, don't bother to check for -m bugs unless we're using -m;
59961         suggested by Stepan Kasal.
59962
59963 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59964
59965         Sync from Automake.
59966         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59967         `-c' flag, so they appear at the same position as in %FASTDEP%
59968         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59969         which ignores unknown options only after the first non-option.
59970         Bug report against M4 by Nelson H. F. Beebe.
59971
59972 2006-10-13  Jim Meyering  <jim@meyering.net>
59973
59974         Fix a bug in yesterday's change.
59975         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59976         p->fts_statp->st_dev would be used uninitialized.
59977         Ensures that we always call fts_stat on the very first entry.
59978         Miklos Szeredi reported that find -xdev stopped working.
59979
59980 2006-10-12  Bruno Haible  <bruno@clisp.org>
59981
59982         * gnulib-tool (func_get_automake_snippet): Append an automatically
59983         computed EXTRA_DIST augmentation.
59984         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59985         * modules/alloca-opt (Makefile.am): Likewise.
59986         * modules/allocsa (Makefile.am): Likewise.
59987         * modules/arcfour (Makefile.am): Likewise.
59988         * modules/arctwo (Makefile.am): Likewise.
59989         * modules/argmatch (Makefile.am): Likewise.
59990         * modules/argz (Makefile.am): Likewise.
59991         * modules/atexit (Makefile.am): Likewise.
59992         * modules/backupfile (Makefile.am): Likewise.
59993         * modules/byteswap (Makefile.am): Likewise.
59994         * modules/c-strtod (Makefile.am): Likewise.
59995         * modules/c-strtold (Makefile.am): Likewise.
59996         * modules/calloc (Makefile.am): Likewise.
59997         * modules/canon-host (Makefile.am): Likewise.
59998         * modules/canonicalize (Makefile.am): Likewise.
59999         * modules/chdir-long (Makefile.am): Likewise.
60000         * modules/chdir-safer (Makefile.am): Likewise.
60001         * modules/check-version (Makefile.am): Likewise.
60002         * modules/chown (Makefile.am): Likewise.
60003         * modules/cloexec (Makefile.am): Likewise.
60004         * modules/close-stream (Makefile.am): Likewise.
60005         * modules/closeout (Makefile.am): Likewise.
60006         * modules/crc (Makefile.am): Likewise.
60007         * modules/csharpexec (Makefile.am): Likewise.
60008         * modules/cycle-check (Makefile.am): Likewise.
60009         * modules/des (Makefile.am): Likewise.
60010         * modules/dev-ino (Makefile.am): Likewise.
60011         * modules/dirfd (Makefile.am): Likewise.
60012         * modules/dirname (Makefile.am): Likewise.
60013         * modules/dup2 (Makefile.am): Likewise.
60014         * modules/eealloc (Makefile.am): Likewise.
60015         * modules/error (Makefile.am): Likewise.
60016         * modules/euidaccess (Makefile.am): Likewise.
60017         * modules/exclude (Makefile.am): Likewise.
60018         * modules/exitfail (Makefile.am): Likewise.
60019         * modules/fcntl-safer (Makefile.am): Likewise.
60020         * modules/fcntl (Makefile.am): Likewise.
60021         * modules/file-type (Makefile.am): Likewise.
60022         * modules/fileblocks (Makefile.am): Likewise.
60023         * modules/filemode (Makefile.am): Likewise.
60024         * modules/filenamecat (Makefile.am): Likewise.
60025         * modules/fnmatch (Makefile.am): Likewise.
60026         * modules/fopen-safer (Makefile.am): Likewise.
60027         * modules/fpending (Makefile.am): Likewise.
60028         * modules/fprintftime (Makefile.am): Likewise.
60029         * modules/free (Makefile.am): Likewise.
60030         * modules/fsusage (Makefile.am): Likewise.
60031         * modules/ftruncate (Makefile.am): Likewise.
60032         * modules/fts (Makefile.am): Likewise.
60033         * modules/gc-arcfour (Makefile.am): Likewise.
60034         * modules/gc-des (Makefile.am): Likewise.
60035         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60036         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60037         * modules/gc-md4 (Makefile.am): Likewise.
60038         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60039         * modules/gc-sha1 (Makefile.am): Likewise.
60040         * modules/gc (Makefile.am): Likewise.
60041         * modules/getaddrinfo (Makefile.am): Likewise.
60042         * modules/getcwd (Makefile.am): Likewise.
60043         * modules/getdelim (Makefile.am): Likewise.
60044         * modules/getdomainname (Makefile.am): Likewise.
60045         * modules/getgroups (Makefile.am): Likewise.
60046         * modules/gethostname (Makefile.am): Likewise.
60047         * modules/gethrxtime (Makefile.am): Likewise.
60048         * modules/getline (Makefile.am): Likewise.
60049         * modules/getloadavg (Makefile.am): Likewise.
60050         * modules/getlogin_r (Makefile.am): Likewise.
60051         * modules/getndelim2 (Makefile.am): Likewise.
60052         * modules/getopt (Makefile.am): Likewise.
60053         * modules/getpagesize (Makefile.am): Likewise.
60054         * modules/getpass-gnu (Makefile.am): Likewise.
60055         * modules/getpass (Makefile.am): Likewise.
60056         * modules/getsubopt (Makefile.am): Likewise.
60057         * modules/gettime (Makefile.am): Likewise.
60058         * modules/gettimeofday (Makefile.am): Likewise.
60059         * modules/getugroups (Makefile.am): Likewise.
60060         * modules/getusershell (Makefile.am): Likewise.
60061         * modules/glob (Makefile.am): Likewise.
60062         * modules/group-member (Makefile.am): Likewise.
60063         * modules/hard-locale (Makefile.am): Likewise.
60064         * modules/hash (Makefile.am): Likewise.
60065         * modules/hmac-md5 (Makefile.am): Likewise.
60066         * modules/hmac-sha1 (Makefile.am): Likewise.
60067         * modules/human (Makefile.am): Likewise.
60068         * modules/idcache (Makefile.am): Likewise.
60069         * modules/imaxabs (Makefile.am): Likewise.
60070         * modules/imaxdiv (Makefile.am): Likewise.
60071         * modules/inet_ntop (Makefile.am): Likewise.
60072         * modules/inet_pton (Makefile.am): Likewise.
60073         * modules/intprops (Makefile.am): Likewise.
60074         * modules/inttostr (Makefile.am): Likewise.
60075         * modules/inttypes (Makefile.am): Likewise.
60076         * modules/isapipe (Makefile.am): Likewise.
60077         * modules/javaversion (Makefile.am): Likewise.
60078         * modules/lchmod (Makefile.am): Likewise.
60079         * modules/lchown (Makefile.am): Likewise.
60080         * modules/localcharset (Makefile.am): Likewise.
60081         * modules/long-options (Makefile.am): Likewise.
60082         * modules/lstat (Makefile.am): Likewise.
60083         * modules/malloc (Makefile.am): Likewise.
60084         * modules/mathl (Makefile.am): Likewise.
60085         * modules/mbchar (Makefile.am): Likewise.
60086         * modules/md2 (Makefile.am): Likewise.
60087         * modules/md4 (Makefile.am): Likewise.
60088         * modules/md5 (Makefile.am): Likewise.
60089         * modules/memcasecmp (Makefile.am): Likewise.
60090         * modules/memchr (Makefile.am): Likewise.
60091         * modules/memcmp (Makefile.am): Likewise.
60092         * modules/memcoll (Makefile.am): Likewise.
60093         * modules/memcpy (Makefile.am): Likewise.
60094         * modules/memmem (Makefile.am): Likewise.
60095         * modules/memmove (Makefile.am): Likewise.
60096         * modules/mempcpy (Makefile.am): Likewise.
60097         * modules/memrchr (Makefile.am): Likewise.
60098         * modules/memset (Makefile.am): Likewise.
60099         * modules/memxor (Makefile.am): Likewise.
60100         * modules/mkancesdirs (Makefile.am): Likewise.
60101         * modules/mkdir-p (Makefile.am): Likewise.
60102         * modules/mkdir (Makefile.am): Likewise.
60103         * modules/mkdtemp (Makefile.am): Likewise.
60104         * modules/mkstemp (Makefile.am): Likewise.
60105         * modules/mktime (Makefile.am): Likewise.
60106         * modules/modechange (Makefile.am): Likewise.
60107         * modules/mountlist (Makefile.am): Likewise.
60108         * modules/nanosleep (Makefile.am): Likewise.
60109         * modules/obstack (Makefile.am): Likewise.
60110         * modules/openat (Makefile.am): Likewise.
60111         * modules/pagealign_alloc (Makefile.am): Likewise.
60112         * modules/pathmax (Makefile.am): Likewise.
60113         * modules/physmem (Makefile.am): Likewise.
60114         * modules/poll (Makefile.am): Likewise.
60115         * modules/posixtm (Makefile.am): Likewise.
60116         * modules/posixver (Makefile.am): Likewise.
60117         * modules/putenv (Makefile.am): Likewise.
60118         * modules/quote (Makefile.am): Likewise.
60119         * modules/quotearg (Makefile.am): Likewise.
60120         * modules/raise (Makefile.am): Likewise.
60121         * modules/read-file (Makefile.am): Likewise.
60122         * modules/readline (Makefile.am): Likewise.
60123         * modules/readlink (Makefile.am): Likewise.
60124         * modules/readtokens (Makefile.am): Likewise.
60125         * modules/readutmp (Makefile.am): Likewise.
60126         * modules/realloc (Makefile.am): Likewise.
60127         * modules/regex (Makefile.am): Likewise.
60128         * modules/rename-dest-slash (Makefile.am): Likewise.
60129         * modules/rename (Makefile.am): Likewise.
60130         * modules/rijndael (Makefile.am): Likewise.
60131         * modules/rmdir (Makefile.am): Likewise.
60132         * modules/rpmatch (Makefile.am): Likewise.
60133         * modules/safe-read (Makefile.am): Likewise.
60134         * modules/safe-write (Makefile.am): Likewise.
60135         * modules/same-inode (Makefile.am): Likewise.
60136         * modules/same (Makefile.am): Likewise.
60137         * modules/save-cwd (Makefile.am): Likewise.
60138         * modules/savedir (Makefile.am): Likewise.
60139         * modules/setenv (Makefile.am): Likewise.
60140         * modules/settime (Makefile.am): Likewise.
60141         * modules/sha1 (Makefile.am): Likewise.
60142         * modules/sig2str (Makefile.am): Likewise.
60143         * modules/snprintf (Makefile.am): Likewise.
60144         * modules/stat-macros (Makefile.am): Likewise.
60145         * modules/stat-time (Makefile.am): Likewise.
60146         * modules/stdbool (Makefile.am): Likewise.
60147         * modules/stdint (Makefile.am): Likewise.
60148         * modules/stdlib-safer (Makefile.am): Likewise.
60149         * modules/stpcpy (Makefile.am): Likewise.
60150         * modules/stpncpy (Makefile.am): Likewise.
60151         * modules/strcase (Makefile.am): Likewise.
60152         * modules/strcasestr (Makefile.am): Likewise.
60153         * modules/strchrnul (Makefile.am): Likewise.
60154         * modules/strcspn (Makefile.am): Likewise.
60155         * modules/strdup (Makefile.am): Likewise.
60156         * modules/strerror (Makefile.am): Likewise.
60157         * modules/strftime (Makefile.am): Likewise.
60158         * modules/strndup (Makefile.am): Likewise.
60159         * modules/strnlen (Makefile.am): Likewise.
60160         * modules/strpbrk (Makefile.am): Likewise.
60161         * modules/strsep (Makefile.am): Likewise.
60162         * modules/strstr (Makefile.am): Likewise.
60163         * modules/strtod (Makefile.am): Likewise.
60164         * modules/strtoimax (Makefile.am): Likewise.
60165         * modules/strtok_r (Makefile.am): Likewise.
60166         * modules/strtol (Makefile.am): Likewise.
60167         * modules/strtoll (Makefile.am): Likewise.
60168         * modules/strtoul (Makefile.am): Likewise.
60169         * modules/strtoull (Makefile.am): Likewise.
60170         * modules/strtoumax (Makefile.am): Likewise.
60171         * modules/strverscmp (Makefile.am): Likewise.
60172         * modules/sys_socket (Makefile.am): Likewise.
60173         * modules/sys_stat (Makefile.am): Likewise.
60174         * modules/sysexits (Makefile.am): Likewise.
60175         * modules/time_r (Makefile.am): Likewise.
60176         * modules/timegm (Makefile.am): Likewise.
60177         * modules/timespec (Makefile.am): Likewise.
60178         * modules/tmpfile-safer (Makefile.am): Likewise.
60179         * modules/trim (Makefile.am): Likewise.
60180         * modules/unistd-safer (Makefile.am): Likewise.
60181         * modules/unlinkdir (Makefile.am): Likewise.
60182         * modules/unlocked-io (Makefile.am): Likewise.
60183         * modules/userspec (Makefile.am): Likewise.
60184         * modules/utime (Makefile.am): Likewise.
60185         * modules/utimecmp (Makefile.am): Likewise.
60186         * modules/utimens (Makefile.am): Likewise.
60187         * modules/vasnprintf (Makefile.am): Likewise.
60188         * modules/vasprintf (Makefile.am): Likewise.
60189         * modules/vsnprintf (Makefile.am): Likewise.
60190         * modules/xalloc (Makefile.am): Likewise.
60191         * modules/xgetcwd (Makefile.am): Likewise.
60192         * modules/xnanosleep (Makefile.am): Likewise.
60193         * modules/xreadlink (Makefile.am): Likewise.
60194         * modules/xstrtod (Makefile.am): Likewise.
60195         * modules/xstrtol (Makefile.am): Likewise.
60196         * modules/xstrtold (Makefile.am): Likewise.
60197         * modules/yesno (Makefile.am): Likewise.
60198         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60199
60200 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60201
60202         * modules/error (Makefile.am): Distribute files through
60203         EXTRA_DIST, not lib_SOURCES.
60204
60205 2006-10-12  Eric Blake  <ebb9@byu.net>
60206
60207         * modules/error (Makefile.am): Distribute files in /lib.
60208         * modules/obstack (Makefile.am): Likewise.
60209
60210 2006-10-12  Bruno Haible  <bruno@clisp.org>
60211
60212         * modules/acl (Makefile.am): Distribute all files in lib/ through
60213         EXTRA_DIST.
60214         * modules/arcfour (Makefile.am): Likewise.
60215         * modules/arctwo (Makefile.am): Likewise.
60216         * modules/argmatch (Makefile.am): Likewise.
60217         * modules/argz (Makefile.am): Likewise.
60218         * modules/atexit (Makefile.am): Likewise.
60219         * modules/backupfile (Makefile.am): Likewise.
60220         * modules/c-strtod (Makefile.am): Likewise.
60221         * modules/c-strtold (Makefile.am): Likewise.
60222         * modules/calloc (Makefile.am): Likewise.
60223         * modules/canon-host (Makefile.am): Likewise.
60224         * modules/canonicalize (Makefile.am): Likewise.
60225         * modules/chdir-long (Makefile.am): Likewise.
60226         * modules/chdir-safer (Makefile.am): Likewise.
60227         * modules/check-version (Makefile.am): Likewise.
60228         * modules/chown (Makefile.am): Likewise.
60229         * modules/cloexec (Makefile.am): Likewise.
60230         * modules/close-stream (Makefile.am): Likewise.
60231         * modules/closeout (Makefile.am): Likewise.
60232         * modules/crc (Makefile.am): Likewise.
60233         * modules/cycle-check (Makefile.am): Likewise.
60234         * modules/des (Makefile.am): Likewise.
60235         * modules/dirfd (Makefile.am): Likewise.
60236         * modules/dirname (Makefile.am): Likewise.
60237         * modules/dup2 (Makefile.am): Likewise.
60238         * modules/euidaccess (Makefile.am): Likewise.
60239         * modules/exclude (Makefile.am): Likewise.
60240         * modules/exitfail (Makefile.am): Likewise.
60241         * modules/fcntl-safer (Makefile.am): Likewise.
60242         * modules/file-type (Makefile.am): Likewise.
60243         * modules/fileblocks (Makefile.am): Likewise.
60244         * modules/filemode (Makefile.am): Likewise.
60245         * modules/filenamecat (Makefile.am): Likewise.
60246         * modules/fnmatch (Makefile.am): Likewise.
60247         * modules/fopen-safer (Makefile.am): Likewise.
60248         * modules/fpending (Makefile.am): Likewise.
60249         * modules/fprintftime (Makefile.am): Likewise.
60250         * modules/free (Makefile.am): Likewise.
60251         * modules/fsusage (Makefile.am): Likewise.
60252         * modules/ftruncate (Makefile.am): Likewise.
60253         * modules/fts (Makefile.am): Likewise.
60254         * modules/gc (Makefile.am): Likewise.
60255         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60256         * modules/getaddrinfo (Makefile.am): Likewise.
60257         * modules/getcwd (Makefile.am): Likewise.
60258         * modules/getdelim (Makefile.am): Likewise.
60259         * modules/getdomainname (Makefile.am): Likewise.
60260         * modules/getgroups (Makefile.am): Likewise.
60261         * modules/gethostname (Makefile.am): Likewise.
60262         * modules/gethrxtime (Makefile.am): Likewise.
60263         * modules/getline (Makefile.am): Likewise.
60264         * modules/getloadavg (Makefile.am): Likewise.
60265         * modules/getlogin_r (Makefile.am): Likewise.
60266         * modules/getopt (Makefile.am): Likewise.
60267         * modules/getpass (Makefile.am): Likewise.
60268         * modules/getpass-gnu (Makefile.am): Likewise.
60269         * modules/getsubopt (Makefile.am): Likewise.
60270         * modules/gettime (Makefile.am): Likewise.
60271         * modules/gettimeofday (Makefile.am): Likewise.
60272         * modules/getugroups (Makefile.am): Likewise.
60273         * modules/getusershell (Makefile.am): Likewise.
60274         * modules/glob (Makefile.am): Likewise.
60275         * modules/group-member (Makefile.am): Likewise.
60276         * modules/hard-locale (Makefile.am): Likewise.
60277         * modules/hash (Makefile.am): Likewise.
60278         * modules/hmac-md5 (Makefile.am): Likewise.
60279         * modules/hmac-sha1 (Makefile.am): Likewise.
60280         * modules/human (Makefile.am): Likewise.
60281         * modules/idcache (Makefile.am): Likewise.
60282         * modules/imaxabs (Makefile.am): Likewise.
60283         * modules/imaxdiv (Makefile.am): Likewise.
60284         * modules/inet_ntop (Makefile.am): Likewise.
60285         * modules/inet_pton (Makefile.am): Likewise.
60286         * modules/inttostr (Makefile.am): Likewise.
60287         * modules/isapipe (Makefile.am): Likewise.
60288         * modules/lchown (Makefile.am): Likewise.
60289         * modules/long-options (Makefile.am): Likewise.
60290         * modules/lstat (Makefile.am): Likewise.
60291         * modules/malloc (Makefile.am): Likewise.
60292         * modules/mathl (Makefile.am): Likewise.
60293         * modules/mbchar (Makefile.am): Likewise.
60294         * modules/md2 (Makefile.am): Likewise.
60295         * modules/md4 (Makefile.am): Likewise.
60296         * modules/md5 (Makefile.am): Likewise.
60297         * modules/memcasecmp (Makefile.am): Likewise.
60298         * modules/memchr (Makefile.am): Likewise.
60299         * modules/memcmp (Makefile.am): Likewise.
60300         * modules/memcoll (Makefile.am): Likewise.
60301         * modules/memcpy (Makefile.am): Likewise.
60302         * modules/memmem (Makefile.am): Likewise.
60303         * modules/memmove (Makefile.am): Likewise.
60304         * modules/mempcpy (Makefile.am): Likewise.
60305         * modules/memrchr (Makefile.am): Likewise.
60306         * modules/memset (Makefile.am): Likewise.
60307         * modules/memxor (Makefile.am): Likewise.
60308         * modules/mkancesdirs (Makefile.am): Likewise.
60309         * modules/mkdir (Makefile.am): Likewise.
60310         * modules/mkdir-p (Makefile.am): Likewise.
60311         * modules/mkdtemp (Makefile.am): Likewise.
60312         * modules/mkstemp (Makefile.am): Likewise.
60313         * modules/mktime (Makefile.am): Likewise.
60314         * modules/modechange (Makefile.am): Likewise.
60315         * modules/mountlist (Makefile.am): Likewise.
60316         * modules/nanosleep (Makefile.am): Likewise.
60317         * modules/openat (Makefile.am): Likewise.
60318         * modules/pagealign_alloc (Makefile.am): Likewise.
60319         * modules/physmem (Makefile.am): Likewise.
60320         * modules/poll (Makefile.am): Likewise.
60321         * modules/posixtm (Makefile.am): Likewise.
60322         * modules/posixver (Makefile.am): Likewise.
60323         * modules/putenv (Makefile.am): Likewise.
60324         * modules/quote (Makefile.am): Likewise.
60325         * modules/quotearg (Makefile.am): Likewise.
60326         * modules/raise (Makefile.am): Likewise.
60327         * modules/read-file (Makefile.am): Likewise.
60328         * modules/readline (Makefile.am): Likewise.
60329         * modules/readlink (Makefile.am): Likewise.
60330         * modules/readtokens (Makefile.am): Likewise.
60331         * modules/readutmp (Makefile.am): Likewise.
60332         * modules/realloc (Makefile.am): Likewise.
60333         * modules/regex (Makefile.am): Likewise.
60334         * modules/rename (Makefile.am): Likewise.
60335         * modules/rename-dest-slash (Makefile.am): Likewise.
60336         * modules/rijndael (Makefile.am): Likewise.
60337         * modules/rmdir (Makefile.am): Likewise.
60338         * modules/rpmatch (Makefile.am): Likewise.
60339         * modules/safe-read (Makefile.am): Likewise.
60340         * modules/safe-write (Makefile.am): Likewise.
60341         * modules/same (Makefile.am): Likewise.
60342         * modules/save-cwd (Makefile.am): Likewise.
60343         * modules/savedir (Makefile.am): Likewise.
60344         * modules/setenv (Makefile.am): Likewise.
60345         * modules/settime (Makefile.am): Likewise.
60346         * modules/sha1 (Makefile.am): Likewise.
60347         * modules/sig2str (Makefile.am): Likewise.
60348         * modules/snprintf (Makefile.am): Likewise.
60349         * modules/stdlib-safer (Makefile.am): Likewise.
60350         * modules/stpcpy (Makefile.am): Likewise.
60351         * modules/stpncpy (Makefile.am): Likewise.
60352         * modules/strcase (Makefile.am): Likewise.
60353         * modules/strcasestr (Makefile.am): Likewise.
60354         * modules/strchrnul (Makefile.am): Likewise.
60355         * modules/strcspn (Makefile.am): Likewise.
60356         * modules/strdup (Makefile.am): Likewise.
60357         * modules/strerror (Makefile.am): Likewise.
60358         * modules/strftime (Makefile.am): Likewise.
60359         * modules/strndup (Makefile.am): Likewise.
60360         * modules/strnlen (Makefile.am): Likewise.
60361         * modules/strpbrk (Makefile.am): Likewise.
60362         * modules/strsep (Makefile.am): Likewise.
60363         * modules/strstr (Makefile.am): Likewise.
60364         * modules/strtod (Makefile.am): Likewise.
60365         * modules/strtoimax (Makefile.am): Likewise.
60366         * modules/strtok_r (Makefile.am): Likewise.
60367         * modules/strtol (Makefile.am): Likewise.
60368         * modules/strtoll (Makefile.am): Likewise.
60369         * modules/strtoul (Makefile.am): Likewise.
60370         * modules/strtoull (Makefile.am): Likewise.
60371         * modules/strtoumax (Makefile.am): Likewise.
60372         * modules/strverscmp (Makefile.am): Likewise.
60373         * modules/time_r (Makefile.am): Likewise.
60374         * modules/timegm (Makefile.am): Likewise.
60375         * modules/tmpfile-safer (Makefile.am): Likewise.
60376         * modules/unistd-safer (Makefile.am): Likewise.
60377         * modules/unlinkdir (Makefile.am): Likewise.
60378         * modules/userspec (Makefile.am): Likewise.
60379         * modules/utime (Makefile.am): Likewise.
60380         * modules/utimecmp (Makefile.am): Likewise.
60381         * modules/utimens (Makefile.am): Likewise.
60382         * modules/vasnprintf (Makefile.am): Likewise.
60383         * modules/vasprintf (Makefile.am): Likewise.
60384         * modules/vsnprintf (Makefile.am): Likewise.
60385         * modules/xalloc (Makefile.am): Likewise.
60386         * modules/xgetcwd (Makefile.am): Likewise.
60387         * modules/xnanosleep (Makefile.am): Likewise.
60388         * modules/xreadlink (Makefile.am): Likewise.
60389         * modules/xstrtod (Makefile.am): Likewise.
60390         * modules/xstrtol (Makefile.am): Likewise.
60391         * modules/xstrtold (Makefile.am): Likewise.
60392         * modules/yesno (Makefile.am): Likewise.
60393
60394 2006-10-12  Jim Meyering  <jim@meyering.net>
60395
60396         * m4/getloadavg.m4: Revert the change below.
60397
60398         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60399         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60400         fail with a symlink, which is what coreutils' ./bootstrap now
60401         creates by default.
60402
60403 2006-10-12  Bruno Haible  <bruno@clisp.org>
60404
60405         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60406         mingw.
60407         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60408         MSVC and mingw explicitly.
60409
60410 2006-10-11  Simon Josefsson  <jas@extundo.com>
60411             Bruno Haible  <bruno@clisp.org>
60412
60413         Add support for multiple gnulib-tool invocations in the scope of a
60414         single configure.ac file.
60415         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60416         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60417         with the same contents as the _LIBADD variable.
60418         (func_emit_initmacro_start, func_emit_initmacro_end,
60419         func_emit_initmacro_done): New functions.
60420         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60421         gl_LIBOBJS and gl_LTLIBOBJS.
60422
60423 2006-10-11  Bruno Haible  <bruno@clisp.org>
60424
60425         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60426         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60427         autoreconf. Instead, invoke autopoint explicitly but move back the
60428         *.m4 files from gnulib.
60429
60430 2006-10-11  Bruno Haible  <bruno@clisp.org>
60431
60432         * gnulib-tool (func_usage): Make module names after --create-testdir
60433         optional.
60434         (func_create_testdir): If no module was specified, use nearly all
60435         modules.
60436
60437 2006-10-12  Jim Meyering  <jim@meyering.net>
60438
60439         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60440         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60441         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60442         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60443         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60444         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60445         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60446         (fts_set_stat_required): New function.
60447         (fts_open): Defer the calls to fts_stat, if possible or requested.
60448         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60449         into fts_stat itself.
60450         (fts_read): Perform any required (deferred) fts_stat call.
60451         (fts_build): Likewise, for the directory we're about to open and read.
60452         In the readdir loop, carefully decide whether each entry will require
60453         an eventual call to fts_stat, using dirent.d_type info if available.
60454         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60455         a command line argument into this function.  Update all callers.
60456         Map a return value of FTS_DOT to FTS_D for a command line argument.
60457         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60458         Thanks to Miklos Szeredi for his tenacity and for the initial
60459         bug report about "find" failing on a FUSE-based file system.
60460
60461         * lib/fts.c (fts_open): Use consistent indentation.
60462
60463 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60466         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60467         reported by Jim Meyering.  All uses of cache variables renamed
60468         to match Autoconf's.
60469         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60470         the other one.
60471
60472         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60473         Fix misspelling in diagnostic.
60474
60475 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60476
60477         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60478         defined.  Problem reported by Matthew Woehlke.
60479
60480         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60481         Add support for Tandem NonStop R series.
60482         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60483         Use new macro.
60484
60485         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60486         (has_trailing_slash): Omit size arg; all callers changed.
60487         Omit 'inline', since it doesn't help performance and we'd
60488         need to configure it.
60489         Don't count //, ///, etc. as having a trailing slash.
60490         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60491         (rpl_rename_dest_slash): On failure, use rename's errno rather
60492         than (in some cases) an incorrect or junk errno.
60493         Simplify code by removing need to compute length; this does
60494         cause it to make two passes instead of one over the file name,
60495         but it's worth it.
60496
60497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60498         change, since Autoconf's version may no longer be appropriate now
60499         that we are using CVS Autoconf's version.  Add support for Tandem.
60500
60501 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60502             Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60505         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60506         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60507         gl_AC_TYPE_LONG_LONG.
60508
60509         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60510         instead of HAVE_LONG_LONG.
60511         * lib/printf-args.c (printf_fetchargs): Likewise.
60512         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60513         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60514         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60515         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60516         gl_AC_TYPE_LONG_LONG.
60517
60518 2006-10-11  Bruno Haible  <bruno@clisp.org>
60519
60520         * m4/longlong.m4: Add comments.
60521         * m4/ulonglong.m4: Likewise.
60522
60523 2006-10-10  Bruno Haible  <bruno@clisp.org>
60524
60525         Make it possible to #define stpcpy, strdup to aliases.
60526         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60527         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60528
60529 2006-10-10  Bruno Haible  <bruno@clisp.org>
60530
60531         Make it possible to #define gcd to an alias.
60532         * lib/gcd.c: Include config.h.
60533
60534 2006-10-10  Bruno Haible  <bruno@clisp.org>
60535
60536         Make it possible to #define c_isascii to an alias.
60537         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60538         defined. Undefine the macros before defining them, to avoid gcc
60539         warnings.
60540         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60541         define NO_C_CTYPE_MACROS early.
60542
60543 2006-10-10  Bruno Haible  <bruno@clisp.org>
60544
60545         Make it possible to #define set_program_name to an alias.
60546         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60547         ENABLE_RELOCATABLE early.
60548
60549 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60550
60551         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60552         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60553         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60554         More generally, don't assume that 64-bit signed int is available
60555         if unsigned int is, and vice versa.
60556         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60557         unsigned symbols, not on their signed counterparts.
60558         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60559         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60560         (UINT64_C, UINTMAX_C):
60561         Likewise.
60562         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60563         unsigned counterparts.
60564         (Have_long_long, Unsigned): New macros.
60565         (Int): Renamed from INT.
60566         (strtoimax): Use the new macros.
60567         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60568         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60569         * modules/inttypes (inttypes.h): Substitute
60570         HAVE_UNSIGNED_LONG_LONG_INT.
60571         * modules/stdint (stdint.h): Likewise.
60572         (Files): Add m4/ulonglong.m4.
60573
60574 2006-10-10  Bruno Haible  <bruno@clisp.org>
60575
60576         Fix a gcc -Wshadow warning.
60577         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60578         to 'bucket'.
60579         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60580         gl_linked_indexof_from_to): Likewise.
60581         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60582         Likewise.
60583         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60584         Likewise.
60585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60586         Reported by Eric Blake.
60587
60588 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60589
60590         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60591         for NetBSD.  Problem reported by Bruno Haible.
60592
60593 2006-10-09  Jim Meyering  <jim@meyering.net>
60594
60595         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60596         Patch from Bruno Haible.
60597
60598 2006-10-09  Jim Meyering  <jim@meyering.net>
60599
60600         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60601         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60602         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60603
60604 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         Don't include <config.h> twice; this doesn't work in some cases,
60607         e.g., when config.h has "#define intmax_t long long int" and
60608         we include <config.h>, <inttypes.h>, <config.h> in that order.
60609         Problem reported by Matthew Woehlke in:
60610         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60611         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60612         * lib/fts-cycle.c: Don't include config.h.
60613         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60614         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60615         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60616         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60617         inttypes.h.
60618         * lib/xstrtoumax.c: Likewise.
60619         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60620         __strtol and the like, so that this module is more like its siblings.
60621         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60622         Remove; no longer needed now that we assume gnulib inttypes.h.
60623
60624 2006-10-08  Bruno Haible  <bruno@clisp.org>
60625
60626         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60627         option.
60628
60629 2006-10-07  Jim Meyering  <jim@meyering.net>
60630
60631         * modules/inttypes (inttypes.h): Revert what seems to have been
60632         an inadvertent part of today's change: use "|", not "/" in the
60633         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60634
60635 2006-10-07  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/sublist: New file.
60638
60639 2006-10-07  Bruno Haible  <bruno@clisp.org>
60640
60641         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60642         * modules/argz (argz.h): Likewise.
60643         * modules/arpa_inet (arpa/inet.h): Likewise.
60644         * modules/byteswap (byteswap.h): Likewise.
60645         * modules/configmake (configmake.h): Likewise.
60646         * modules/fcntl (fcntl.h): Likewise.
60647         * modules/fnmatch (fnmatch.h): Likewise.
60648         * modules/getopt (getopt.h): Likewise.
60649         * modules/glob (glob.h): Likewise.
60650         * modules/inttypes (inttypes.h): Likewise.
60651         * modules/netinet_in (netinet/in.h): Likewise.
60652         * modules/poll (poll.h): Likewise.
60653         * modules/stdbool (stdbool.h): Likewise.
60654         * modules/stdint (stdint.h): Likewise.
60655         * modules/sys_select (sys/select.h): Likewise.
60656         * modules/sys_socket (sys/socket.h): Likewise.
60657         * modules/sys_stat (sys/stat.h): Likewise.
60658         * modules/sysexits (sysexits.h): Likewise.
60659         * modules/unistd (unistd.h): Likewise.
60660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60661         Add a "DO NOT EDIT" comment to the generated file.
60662         (func_import): Likewise for gnulib-comp.m4.
60663
60664 2006-10-07  Bruno Haible  <bruno@clisp.org>
60665
60666         * lib/gl_sublist.h: New file.
60667         * lib/gl_sublist.c: New file.
60668
60669 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60670
60671         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60672         name (relative to the original working directory) and the file
60673         name component (relative to the temporary working directory).  All
60674         callers changed.
60675         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60676         * lib/mkdir-p.c (make_dir_parents): Likewise.
60677         * lib/mkdir-p.h (make_dir_parents): Likewise.
60678
60679 2006-10-06  Eric Blake  <ebb9@byu.net>
60680
60681         Define several macros for use by the clean-temp module.
60682         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60683         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60684         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60685
60686         * lib/clean-temp.h (close_stream_temp): New declaration.
60687         * lib/clean-temp.c (includes): Pull in headers according to what
60688         other modules are in use.
60689         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60690
60691 2006-10-06  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60694         instead of fopen, fwriteerror.
60695
60696 2006-10-06  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60699         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60700         int.
60701         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60702         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60703         Return an error indicator.
60704         Suggested by Eric Blake.
60705
60706 2006-10-06  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60709         Reported by Eric Blake.
60710
60711 2006-10-06  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/closeout (Description): Mention stderr too.
60714
60715 2006-10-06  Bruno Haible  <bruno@clisp.org>
60716         and Paul Eggert  <eggert@cs.ucla.edu>
60717
60718         * lib/closeout.c (close_stdout): Also close stderr.
60719         * lib/closeout.h: Update comment.
60720
60721 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60724         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60725         * lib/dirchownmod.c: Include lchown.h.
60726         * lib/lchown.c: Don't include files that lchown.h now includes.
60727         Don't declare chown, since lchown.h now does that.
60728         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60729         (lchown): Define to rpl_chown if lchown is declared but
60730         does not exist.  Declare using a prototype if lchown is not
60731         declared.  Add a copyright notice.
60732         * lib/mkstemp.h: Include <unistd.h>.
60733         * lib/openat.c: Include lchown.h.
60734
60735         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60736         we now test for that separately.
60737         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60738         rather than O_NOFOLLOW, when testing whether it's possible to
60739         avoid a race condition reliably.
60740         * lib/savewd.c (savewd_chdir): Likewise.
60741
60742         Remove macros that are no longer needed now that stdint.h is
60743         reliable.
60744         * lib/fsusage.c (UINTMAX_MAX): Remove.
60745         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60746         * lib/utimecmp.c (SIZE_MAX): Remove.
60747
60748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60749
60750         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60751         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60752         O_NOATIME works.
60753
60754 2006-10-05  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/gl_list.h (gl_sortedlist_search_from_to,
60757         gl_sortedlist_indexof_from_to): New declarations.
60758         (gl_list_implementation): New fields sortedlist_search_from_to,
60759         sortedlist_indexof_from_to.
60760         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60761         inline functions.
60762         * lib/gl_list.c (gl_sortedlist_search_from_to,
60763         gl_sortedlist_indexof_from_to): New functions.
60764         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60765         function.
60766         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60767         (gl_array_sortedlist_search_from_to): New function.
60768         (gl_array_list_implementation): Update.
60769         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60770         function.
60771         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60772         (gl_carray_sortedlist_search_from_to): New function.
60773         (gl_carray_list_implementation): Update.
60774         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60775         gl_linked_sortedlist_indexof_from_to): New functions.
60776         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60777         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60778         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60779         gl_tree_sortedlist_indexof_from_to): New functions.
60780         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60781         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60782         Update.
60783         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60784         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60785         Update.
60786
60787 2006-10-05  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60790         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60791         (struct gl_list_implementation): Add fields search_from_to,
60792         indexof_from_to. Remove fields search, indexof.
60793         (gl_list_search): Use the search_from_to method.
60794         (gl_list_search_from, gl_list_search_from_to): New functions.
60795         (gl_list_indexof): Use the indexof_from_to method.
60796         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60797         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60798         (gl_list_search_from, gl_list_search_from_to): New functions.
60799         (gl_list_indexof): Use the indexof_from_to method.
60800         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60801         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60802         gl_array_indexof. Add start_index, end_index arguments.
60803         (gl_array_search_from_to): Renamed from gl_array_search. Add
60804         start_index, end_index arguments.
60805         (gl_array_remove, gl_array_list_implementation): Update.
60806         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60807         gl_carray_indexof. Add start_index, end_index arguments.
60808         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60809         start_index, end_index arguments.
60810         (gl_carray_remove, gl_carray_list_implementation): Update.
60811         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60812         gl_linked_search. Add start_index, end_index arguments.
60813         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60814         start_index, end_index arguments.
60815         (gl_linked_remove): Update.
60816         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60817         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60818         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60819         field to 'size_t'.
60820         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60821         gl_tree_search. Add start_index, end_index arguments.
60822         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60823         start_index, end_index arguments.
60824         (gl_tree_remove): Update.
60825         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60826         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60827         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60828         function.
60829         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60830         gl_tree_search. Add start_index, end_index arguments.
60831         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60832         start_index, end_index arguments.
60833         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60834         Update.
60835         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60836
60837 2006-10-05  Bruno Haible  <bruno@clisp.org>
60838
60839         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60840
60841         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60842         fwriteerror_temp): New declarations.
60843         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60844         (descriptors): New variable.
60845         (cleanup): First, close the descriptors.
60846         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60847         fclose_temp, fwriteerror_temp): New functions.
60848
60849 2006-10-04  Jim Meyering  <jim@meyering.net>
60850
60851         * lib/fts.c (fts_open): Tiny comment change.
60852
60853 2006-10-04  Bruno Haible  <bruno@clisp.org>
60854
60855         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60856         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60857         gl_LOCK_BODY.
60858         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60859         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60860         gl_LOCK_EARLY_BODY.
60861         (gl_LOCK): Require gl_LOCK_BODY.
60862
60863 2006-10-04  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60866         (gl_oset_search_atleast): New declaration.
60867         (struct gl_oset_implementation): Add field 'search_atleast'.
60868         (gl_oset_search_atleast): New inline function.
60869         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60870         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60871         (gl_array_oset_implementation): Update.
60872         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60873         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60874         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60875
60876 2006-10-04  Bruno Haible  <bruno@clisp.org>
60877
60878         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60879
60880 2006-10-03  Bruno Haible  <bruno@clisp.org>
60881
60882         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60883         from gl_avltreehash_list_implementation.
60884
60885 2006-10-03  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/gl_oset.c (gl_oset_add): Fix return type.
60888
60889 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60890
60891         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60892
60893 2006-10-02  Eric Blake  <ebb9@byu.net>
60894
60895         * modules/strnlen (Depends-on): Add extensions.
60896
60897 2006-10-02  Eric Blake  <ebb9@byu.net>
60898
60899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60900         definition in 2.60+.
60901
60902 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60903
60904         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60905         checks.
60906
60907 2006-10-02  Bruno Haible  <bruno@clisp.org>
60908
60909         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60910         to the AUTOMAKE_OPTIONS.
60911         Reported by Jim Meyering.
60912
60913 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         Work around bug in Solaris 10 /proc file system:
60916         /proc/self/fd/NNN/.. isn't the parent directory of
60917         the directory whose file descriptor is NNN.  This needs to
60918         be worked around at run time, not compile time, since a
60919         program might be built on Solaris 8, where things work, and
60920         run on Solaris 10.
60921         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60922         to use the following interface instead:
60923         (OPENAT_BUFFER_SIZE): New macro.
60924         (openat_proc_name): New function.
60925         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60926         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60927         Likewise.
60928         * lib/openat-proc.c: New file.
60929         * modules/openat (Files): Add lib/openat-proc.c.
60930         (Depends-on): Add same-inode, stdbool.
60931         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60932
60933 2006-09-29  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60936         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60937         argument. Set stdout_closed before testing for ferror, not after.
60938         (fwriteerror, fwriteerror_no_ebadf): New functions.
60939
60940 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60941
60942         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60943
60944 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60945
60946         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60947         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60948
60949 2006-09-28  Jim Meyering  <jim@meyering.net>
60950
60951         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60952         Include <unistd.h>.
60953
60954 2006-09-28  Bruno Haible  <bruno@clisp.org>
60955
60956         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60957         * modules/linkedhash-list (Depends-on): Likewise.
60958         * modules/rbtreehash-list (Depends-on): Likewise.
60959
60960 2006-09-28  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/strndup.h: Simplify the redefinition of strndup.
60963         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60965
60966 2006-09-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60969         * lib/gl_linkedhash_list.c: Likewise.
60970         * lib/gl_rbtreehash_list.c: Likewise.
60971
60972 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60973
60974         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60975         getaddrinfo.
60976
60977         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60978         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60979         it causes <stdio_ext.h> to cause a compile-time error.
60980         Problem reported by Nelson H. F. Beebe.
60981         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60982         of HAVE_DECL___PENDING.
60983
60984         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60985         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60986         declaration.
60987
60988 2006-09-27  Jim Meyering  <jim@meyering.net>
60989
60990         This file could end up with a definition for a function
60991         named __strndup, rather than rpl_strndup on a system with
60992         incomplete weak_alias support.
60993         * lib/strndup.c (strndup): Rename from __strndup.
60994         Remove #defines that used to map __strndup to strndup.
60995         Don't use K&R prototypes.
60996         Remove LIBC-related code, since this file is not sync'd with glibc.
60997         * lib/strndup.h: Revamp, accordingly.
60998         * m4/strndup.m4: Modernize.
60999
61000 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * modules/savewd (Depends-on): Add 'raise'.
61003         * lib/savewd.c: Include <signal.h>, for 'raise'.
61004
61005 2006-09-26  Jim Meyering  <jim@meyering.net>
61006
61007         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61008         when we detect Darwin 8.7.0's acl_get_file bug.
61009         Rearrange to perform the new (below) run-test while $LIBS
61010         contains any acl-related library.  Set USE_ACL at the end.
61011         (gl_ACL_GET_FILE): New function.
61012
61013 2006-09-26  Eric Blake  <ebb9@byu.net>
61014
61015         * lib/verror.c: Include <config.h> unconditionally.
61016
61017 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61018
61019         * modules/clock-time (Maintainer): Add self.
61020         * modules/getlogin_r (Depends-on): Add extensions.
61021
61022 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61023
61024         * modules/clock-time: New module.
61025         * modules/nanosleep (Depends-on): Add clock-time.
61026         * modules/gethrxtime (Depends-on): Likewise.
61027         * modules/gettime (Depends-on): Likewise.
61028         * modules/settime (Depends-on): Likewise.
61029
61030         * modules/fts-lgpl: Depend on openat.
61031         * modules/mkancesdirs: Depend on savewd.
61032         * modules/mkdir-p: Likewise.
61033
61034 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61035
61036         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61037
61038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61039         `gl_have_arbitrary_file_name_length_limit' to
61040         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61041         actually works between configure runs.
61042
61043 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61044             Bruno Haible  <bruno@clisp.org>
61045
61046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61047
61048 2006-09-25  Jim Meyering  <jim@meyering.net>
61049
61050         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61051         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61052
61053 2006-09-25  Eric Blake  <ebb9@byu.net>
61054
61055         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61056         exec's in 2006-09-18 patch when shuffling fds.
61057
61058 2006-09-25  Bruno Haible  <bruno@clisp.org>
61059
61060         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61061         Reported by Jim Meyering.
61062
61063 2006-09-24  Jim Meyering  <jim@meyering.net>
61064
61065         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61066         compare a pointer against a literal "0".  That caused failures with
61067         at least HP-UX's hpcc.
61068
61069 2006-09-22  Simon Josefsson  <jas@extundo.com>
61070
61071         * modules/gc-sha1:
61072         * modules/gc-md4:
61073         * modules/gc-hmac-sha1:
61074         * modules/gc-hmac-md5:
61075         * modules/gc-des:
61076         * modules/gc-arcfour: Distribute more files.
61077
61078 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61079
61080         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61081         (gl_linked_iterator_from_to): Initialize struct completely.
61082         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61083         (gl_tree_iterator_from_to): Likewise
61084         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61085         * lib/gl_array_list.c [lint] (gl_array_iterator)
61086         (gl_array_iterator_from_to): Likewise.
61087         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61088         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61089         (gl_carray_iterator_from_to): Likewise.
61090
61091         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61092         * lib/md4.c (md4_process_block): Remove unused variable.
61093         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61094         parentheses for clarity.
61095
61096 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61097
61098         * modules/bison-i18n (Depends-on): Add gettext.
61099
61100 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61101
61102         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61103         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61104         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61105         also add missing comma that caused broken test.
61106         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61107         stdlib.h, for `abort'.
61108         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61109         variables.
61110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61111         include unistd.h if present, for `rmdir'.
61112         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61113         variables.
61114         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61115         in the process include standard headers for prototypes.
61116         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61117         gets declared on GNU/Linux.
61118         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61119         unistd.h, for `rmdir'.
61120         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61121
61122         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61123         always true.
61124         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61125
61126         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61127
61128 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61129
61130         * gnulib-tool (func_version): Create output all at once.  This
61131         may help avoid triggering unnecessary SIGPIPEs, and at any
61132         rate it doesn't hurt.
61133
61134 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61135             Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61138         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61139         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61140
61141         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61142         (gl_FUNC_VASPRINTF): Invoke it.
61143
61144 2006-09-22  Bruno Haible  <bruno@clisp.org>
61145
61146         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61147         getloadavg.c as first argument.
61148
61149 2006-09-22  Bruno Haible  <bruno@clisp.org>
61150
61151         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61152         at the beginning of the gl_INIT macro.
61153         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61154         gl_GETLOADAVG.
61155
61156 2006-09-22  Bruno Haible  <bruno@clisp.org>
61157
61158         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61159         module.
61160         Suggested by Ralf Wildenhues.
61161
61162 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         Import this patch from libc:
61165
61166         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61167
61168         * lib/regex_internal.c (re_string_reconstruct): Handle
61169         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61170         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61171         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61172         re_string_context_at.
61173
61174         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61175         now requires it.
61176         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61177         gl_REGEX now does it for us.
61178         (gl_REGEX): Add test taken from
61179         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61180
61181         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61182         Check that large offsets work.  Modernize Autoconf usages.
61183         Prefer "yes" to mean a good thing rather than a bad.
61184         Don't put "#define mkstemp" in config.h, as this might interfere
61185         with standard system headers that "#define mkstemp mkstemp64".
61186
61187         * modules/mkstemp (Depends-on): Add extensions, so that
61188         mkstemp is visible on some platforms.
61189         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61190         (Include): Change to "mkstemp.h" from <stdlib.h>.
61191         (Files): Add mkstemp.h.
61192
61193         * lib/mkstemp.h: New file, since some standard headers
61194         #define mkstemp.
61195         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61196         Include "mkstemp.h".
61197         Make the _LIBC code resemble glibc original more,
61198         e.g., use K&R style.
61199         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61200         (mkstemp): Remove, since mkstemp.h does this for us.
61201         * lib/stdlib--.h: Include mkstemp.h.
61202
61203         Import this patch from libc:
61204
61205         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61206
61207         * lib/tempname.c (__gen_tempname): Change attempts_min
61208         into a macro.  Use preprocessor to decide how to initialize
61209         attempts [Coverity CID 67].
61210
61211 2006-09-20  Bruno Haible  <bruno@clisp.org>
61212
61213         * lib/mkdtemp.c: Import from libc.
61214         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61215                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61216                 attempts_min into a macro.  Use preprocessor to decide how to
61217                 initialize attempts [Coverity CID 67].
61218         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61219                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61220                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61221
61222 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61223
61224         * gnulib-tool (func_exit): New function, to allow to pass the
61225         exit status portably through the trap.  Use everywhere.
61226         (--help, --version): Signal a write error.
61227         (trap): catch SIGPIPE, for write errors.
61228         Exit at the end of the trap, with the correct exit status.
61229
61230 2006-09-19  Karl Berry  <karl@gnu.org>
61231
61232         * doc/gnulib.texi: note about the license texinfo files.
61233
61234 2006-09-19  Eric Blake  <ebb9@byu.net>
61235
61236         * gnulib-tool: Avoid space-tab.
61237
61238 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61239
61240         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61241         that prevented coreutils 6.1 from building.  Problem reported
61242         by Petter Reinholdtsen.
61243
61244 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * gnulib-tool (avoidlist): Fix typo that broke options like
61247         --avoid=lock that are used by coreutils bootstrap.
61248
61249 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61250
61251         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61252         more systematically.
61253
61254 2006-09-18  Jim Meyering  <jim@meyering.net>
61255
61256         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61257
61258 2006-09-18  Bruno Haible  <bruno@clisp.org>
61259
61260         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61261
61262 2006-09-18  Bruno Haible  <bruno@clisp.org>
61263
61264         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61265         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61266         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61267         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61268         * m4/gettext.m4: Require autoconf >= 2.52.
61269         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61270         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61271         of gl_cv_header_inttypes_h.
61272
61273 2006-09-18  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/javaversion.c: Include configmake.h.
61276
61277 2006-09-18  Bruno Haible  <bruno@clisp.org>
61278
61279         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61280         avoid that the while loops be executed in a subshell.
61281
61282 2006-09-18  Bruno Haible  <bruno@clisp.org>
61283
61284         * MODULES.html.sh (func_module): Break long lines.
61285         Suggested by Bruce Korb <bkorb@gnu.org>.
61286
61287 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61288
61289         Speed up by a factor of 1.12.
61290         * gnulib-tool (nl): New variable.
61291         (func_import): Rewrite include directive extraction to only read each
61292         directive once.
61293
61294 2006-09-17  Bruno Haible  <bruno@clisp.org>
61295
61296         * modules/javaversion (Makefile.am): Remove DEFS setting.
61297         (Depends-on): Add configmake, for PKGDATADIR definition.
61298
61299 2006-09-17  Bruno Haible  <bruno@clisp.org>
61300
61301         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61302
61303 2006-09-17  Bruno Haible  <bruno@clisp.org>
61304
61305         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61306         (func_modules_transitive_closure, func_modules_add_dummy,
61307         func_modules_to_filelist, func_import, func_create_testdir,
61308         func_create_megatestdir, ...): Use it wherever possible.
61309         Suggested by Ralf Wildenhues.
61310
61311 2006-09-16  Karl Berry  <karl@gnu.org>
61312
61313         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61314         to avoid sectioning errors.
61315         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61316         [ifinfo]: blank line after @center-ed titles.
61317         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61318         Spell FSF address consistently with others.
61319         (These changes approved by rms.)
61320
61321 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61322
61323         Speed up by a factor of 1.61.
61324         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61325         already checked module names again.
61326
61327 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61328
61329         Speed up by a factor of 1.13.
61330         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61331         for new_files, and the input to func_add_or_update.
61332
61333 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61334
61335         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61336         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61337
61338 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61339
61340         * modules/mkancesdirs (Depends-on): Add fcntl.
61341         * modules/savewd: New file.
61342         * MODULES.html.sh (File system functions): Add savewd.
61343
61344         * modules/configmake (Makefile.am): Add support for the
61345         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61346
61347 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * m4/savewd.m4: New file.
61350
61351 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61354         (dirchownmod): New arg FD.  All callers changed.
61355         Use FD rather than opening the directory ourself, as opening is
61356         now the caller's responsibility.
61357         * lib/dirchownmod.h: Likewise.
61358         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61359         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61360         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61361         (test_dir): Remove.
61362         (mkancesdirs): Return length of prefix of FILE that has already
61363         been made, or -2 if there is a child doing the work.  Redo
61364         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61365         ".", and treat ".." specially since it might stray back into
61366         already-created areas.  Use a subprocess if necessary.  New arg
61367         WD; all users changed.  MAKE_DIR function should now return 1
61368         if it creates a directory that is not readable.  Return -2 if
61369         a child process is spun off.
61370         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61371         Adjust signature to match code.
61372         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61373         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61374         all users changed.
61375         * lib/savewd.c, lib/savewd.h: New files.
61376
61377 2006-09-15  Jim Meyering  <jim@meyering.net>
61378
61379         * modules/rename-dest-slash: New module.
61380         * MODULES.html.sh (posix_compat): Add it here.
61381
61382         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61383
61384 2006-09-15  Jim Meyering  <jim@meyering.net>
61385
61386         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61387         file.
61388
61389         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61390
61391 2006-09-15  Jim Meyering  <jim@meyering.net>
61392
61393         * lib/rename-dest-slash.c (has_trailing_slash): Use
61394         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61395         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61396         test before testing whether SRC is a directory.
61397         Suggestions from Bruno Haible.
61398
61399         Avoid a warning about an unused variable.
61400         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61401         into the #ifdef block where it's used.
61402
61403         * lib/rename-dest-slash.c: New file.
61404
61405 2006-09-14  Bruno Haible  <bruno@clisp.org>
61406
61407         * lib/allocsa.c: Include <config.h> unconditionally.
61408         * lib/asnprintf.c: Likewise.
61409         * lib/asprintf.c: Likewise.
61410         * lib/c-strcasecmp.c: Likewise.
61411         * lib/c-strcasestr.c: Likewise.
61412         * lib/c-strncasecmp.c: Likewise.
61413         * lib/c-strstr.c: Likewise.
61414         * lib/classpath.c: Likewise.
61415         * lib/clean-temp.c: Likewise.
61416         * lib/concatpath.c: Likewise.
61417         * lib/copy-file.c: Likewise.
61418         * lib/csharpcomp.c: Likewise.
61419         * lib/csharpexec.c: Likewise.
61420         * lib/execute.c: Likewise.
61421         * lib/fatal-signal.c: Likewise.
61422         * lib/findprog.c: Likewise.
61423         * lib/fwriteerror.c: Likewise.
61424         * lib/gl_array_list.c: Likewise.
61425         * lib/gl_array_oset.c: Likewise.
61426         * lib/gl_avltree_list.c: Likewise.
61427         * lib/gl_avltree_oset.c: Likewise.
61428         * lib/gl_avltreehash_list.c: Likewise.
61429         * lib/gl_carray_list.c: Likewise.
61430         * lib/gl_linked_list.c: Likewise.
61431         * lib/gl_linkedhash_list.c: Likewise.
61432         * lib/gl_list.c: Likewise.
61433         * lib/gl_oset.c: Likewise.
61434         * lib/gl_rbtree_list.c: Likewise.
61435         * lib/gl_rbtree_oset.c: Likewise.
61436         * lib/gl_rbtreehash_list.c: Likewise.
61437         * lib/imaxabs.c: Likewise.
61438         * lib/imaxdiv.c: Likewise.
61439         * lib/javacomp.c: Likewise.
61440         * lib/javaexec.c: Likewise.
61441         * lib/javaversion.c: Likewise.
61442         * lib/linebreak.c: Likewise.
61443         * lib/localcharset.c: Likewise.
61444         * lib/lock.c: Likewise.
61445         * lib/mbchar.c: Likewise.
61446         * lib/mbswidth.c: Likewise.
61447         * lib/mkdtemp.c: Likewise.
61448         * lib/pipe.c: Likewise.
61449         * lib/printf-args.c: Likewise.
61450         * lib/printf-parse.c: Likewise.
61451         * lib/progname.c: Likewise.
61452         * lib/progreloc.c: Likewise.
61453         * lib/readlink.c: Likewise.
61454         * lib/sh-quote.c: Likewise.
61455         * lib/stpcpy.c: Likewise.
61456         * lib/stpncpy.c: Likewise.
61457         * lib/strcasecmp.c: Likewise.
61458         * lib/strcasestr.c: Likewise.
61459         * lib/strcspn.c: Likewise.
61460         * lib/striconv.c: Likewise.
61461         * lib/strncasecmp.c: Likewise.
61462         * lib/strnlen1.c: Likewise.
61463         * lib/strstr.c: Likewise.
61464         * lib/strtok_r.c: Likewise.
61465         * lib/tls.c: Likewise.
61466         * lib/tmpdir.c: Likewise.
61467         * lib/unicodeio.c: Likewise.
61468         * lib/unsetenv.c: Likewise.
61469         * lib/vasnprintf.c: Likewise.
61470         * lib/vasprintf.c: Likewise.
61471         * lib/wait-process.c: Likewise.
61472         * lib/xallocsa.c: Likewise.
61473         * lib/xsetenv.c: Likewise.
61474         * lib/xstriconv.c: Likewise.
61475
61476 2006-09-13  Simon Josefsson  <jas@extundo.com>
61477
61478         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61479         that internally, suggested by Ralf Wildenhues
61480         <Ralf.Wildenhues@gmx.de>.
61481
61482 2006-09-13  Simon Josefsson  <jas@extundo.com>
61483
61484         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61485         @LIBOBJS@.
61486         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61487
61488 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61491         longer worry about uses that don't define HAVE_CONFIG_H.
61492         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61493         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61494         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61495         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61496         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61497         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61498         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61499         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61500         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61501         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61502         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61503         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61504         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61505         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61506         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61507         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61508         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61509         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61510         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61511         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61512         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61513         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61514         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61515         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61516         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61517         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61518         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61519         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61520         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61521         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61522         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61523         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61524         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61525         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61526         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61527         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61528         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61529         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61530         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61531         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61532         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61533         Likewise.
61534
61535 2006-09-13  Eric Blake  <ebb9@byu.net>
61536
61537         * lib/getopt.c: Fix typo in last commit.
61538
61539 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61540
61541         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61542         dgettext.
61543
61544 2006-09-12  Jim Meyering  <jim@meyering.net>
61545
61546         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61547         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61548         Reported by Nelson H. F. Beebe.
61549
61550 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61551
61552         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61553         program_invocation_name and program_invocation_short_name are
61554         initialized.
61555         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61556         and program_invocation_short_name to argp.h, so they are visible
61557         to user programs.
61558         * lib/argp.h: Likewise
61559
61560 2006-09-10  Bruno Haible  <bruno@clisp.org>
61561
61562         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61563         m4/inttypes_h.m4, m4/uintmax_t.m4.
61564
61565 2006-09-10  Bruno Haible  <bruno@clisp.org>
61566
61567         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61568         gl_AC_TYPE_UINTMAX_T.
61569
61570 2006-09-10  Bruno Haible  <bruno@clisp.org>
61571
61572         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61573
61574 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61575
61576         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61577         convention.  Text proposed by Bruno Haible.
61578         (struct argp_option): Document the use of N_() wrappers.
61579
61580         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61581         '\v', and translate the two parts separately, instead of feeding
61582         the whole string to gettext.  This allows to exclude
61583         '\v' from the strings visible to the translator by writing doc
61584         strings as N_("..") "\v" N_("..").
61585
61586 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61587
61588         * config/srclist.txt: Undo latest change; the bug was fixed.
61589
61590 2006-09-09  Bruno Haible  <bruno@clisp.org>
61591
61592         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61593         assignments if building a library without libtool.
61594         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61595         in func_emit_lib_Makefile_am.
61596         (func_import): When building a static library libfoo.a, arrange to
61597         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61598         (func_create_testdir): Likewise.
61599         * modules/gc (configure.ac, Makefile.am): If building statically,
61600         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61601         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61602         * modules/striconv (configure.ac, Makefile.am): Likewise.
61603         Based on a suggestion by Ralf Wildenhues.
61604
61605 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61608         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61609         Also:
61610
61611         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61612         Add year_2050_test to catch glibc bug 2821
61613         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61614
61615         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61616         Prefer #ifdef to #if.
61617
61618         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61619         Return from 'main' instead of calling 'exit'.
61620
61621 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61624         returned the maximum time_t value rather than (time_t) -1.
61625         Problem originally reported by William Bardwell
61626         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61627
61628         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61629         Moved to here ...
61630         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61631         ... from here.
61632
61633 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61636         2821 is fixed.
61637
61638 2006-09-08  Jim Meyering  <jim@meyering.net>
61639
61640         Don't make generated files read-only.  That would bother too many
61641         people.  However, do retain the ability to work when targets are
61642         read-only: remove the destination and temporary files before writing
61643         them (when generated via sed or echo), or by using the -f option for
61644         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61645         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61646         * modules/byteswap, modules/configmake, modules/fcntl:
61647         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61648         * modules/localcharset, modules/netinet_in, modules/poll:
61649         * modules/stdbool, modules/stdint, modules/sys_select:
61650         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61651
61652 2006-09-08  Jim Meyering  <jim@meyering.net>
61653
61654         Avoid new build failure on FreeBSD 6.0.
61655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61656         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61657         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61658
61659 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61660
61661         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61662
61663 2006-09-07  Jim Meyering  <jim@meyering.net>
61664
61665         Fix global typo in last change: use chmod u-w, not chmod u-x.
61666         Spotted by Paul Eggert and Bruce Korb.
61667         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61668         * modules/byteswap, modules/configmake, modules/fcntl:
61669         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61670         * modules/localcharset, modules/netinet_in, modules/poll:
61671         * modules/stdbool, modules/stdint, modules/sys_select:
61672         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61673
61674 2006-09-06  Jim Meyering  <jim@meyering.net>
61675
61676         Make generated files be read-only.
61677         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61678         Ensure that each generated file is now read-only.
61679         * modules/argz: Likewise.
61680         * modules/arpa_inet: Likewise.
61681         * modules/byteswap: Likewise.
61682         * modules/configmake: Likewise.
61683         * modules/fcntl: Likewise.
61684         * modules/fnmatch: Likewise.
61685         * modules/getopt: Likewise.
61686         * modules/glob: Likewise.
61687         * modules/inttypes: Likewise.
61688         * modules/netinet_in: Likewise.
61689         * modules/poll: Likewise.
61690         * modules/stdbool: Likewise.
61691         * modules/stdint: Likewise.
61692         * modules/sys_select: Likewise.
61693         * modules/sys_socket: Likewise.
61694         * modules/sys_stat: Likewise.
61695         * modules/sysexits: Likewise.
61696         * modules/localcharset: Same as above, but continue using temporary
61697         file named "t-$@" (why different?) rather than the "$@-t" used
61698         everywhere else.
61699
61700         * modules/sysexits (Makefile.am): Replace literal occurrences
61701         of "sysexit.h" more readable, and more consistent, "$@".
61702
61703 2006-09-06  Bruno Haible  <bruno@clisp.org>
61704
61705         * modules/striconv: New file.
61706         * modules/xstriconv: New file.
61707         * MODULES.html.sh (Internationalization functions): Add striconv,
61708         xstriconv.
61709
61710 2006-09-06  Bruno Haible  <bruno@clisp.org>
61711
61712         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61713         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61714         not using libtool correctly.
61715
61716 2006-09-06  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/striconv.h: New file.
61719         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61720         iconvstring.c.
61721         * lib/xstriconv.h: New file.
61722         * lib/xstriconv.c: New file.
61723
61724 2006-09-06  Bruno Haible  <bruno@clisp.org>
61725
61726         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61727         lib_..._LDFLAGS.
61728
61729 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61730
61731         * lib/argz_.h: Sync from Libtool.
61732
61733         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61734                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61735
61736         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61737
61738 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61739
61740         * modules/trim: New file.
61741
61742 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61743
61744         * lib/trim.h: New file.
61745         * lib/trim.c: New file.
61746
61747 2006-09-05  Bruno Haible  <bruno@clisp.org>
61748
61749         * MODULES.html.sh (String handling): Add trim.
61750
61751 2006-09-04  Karl Berry  <karl@gnu.org>
61752
61753         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61754         until next release.
61755
61756 2006-09-03  Bruno Haible  <bruno@clisp.org>
61757
61758         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61759         correctly.
61760
61761 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61762
61763         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61764         not gl_GETLOADAVG.  Omit unneeded semicolons.
61765         Problems reported by Ralf Wildenhues in
61766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61767         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61768         at the end, which is the usual gnulib style.
61769
61770         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61771         of doing all the work ourselves.
61772         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61773         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61774
61775 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61776
61777         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61778         Problem reported by Ralf Wildenhues in
61779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61780
61781         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61782         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61783
61784 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61785
61786         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61787         yesterday's patch by changing test -n to test -z.
61788
61789 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61792         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61793         the former is now obsolescent.
61794
61795         * modules/chdir-long (Depends-on): Add fcntl.
61796
61797 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61798
61799         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61800         obsolescent, and programs should use gnulib instead.
61801         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61802         but with prefixes changed.
61803
61804 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61805
61806         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61807         or stdbool.h, because they might not exist while configuring.
61808
61809         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61810         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61811         does that for us.
61812         (O_DIRECTORY): Remove.
61813
61814 2006-08-31  Eric Blake  <ebb9@byu.net>
61815
61816         * gnulib-tool: Don't let emacs change spaces to TAB.
61817
61818 2006-08-31  Bruno Haible  <bruno@clisp.org>
61819
61820         * gnulib-tool: When calling func_import more than once, do it in a
61821         subshell.
61822         Reported by Eric Blake <ebb9@byu.net>.
61823
61824 2006-08-31  Bruno Haible  <bruno@clisp.org>
61825
61826         * gnulib-tool (nl): Remove variable.
61827         (sed_transform_lib_file): Use more robust test for config-h module.
61828         (func_import): Fix typo in 2006-08-25 patch.
61829
61830 2006-08-31  Bruno Haible  <bruno@clisp.org>
61831
61832         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61833         specified, augment Makefile.am variables instead of assigning them.
61834
61835 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         Work around a bug in both the Linux and SunOS 64-bit kernels:
61838         nanosleep mishandles sleeps for longer than 2**31 seconds.
61839         Problem reported by Frank v Waveren in
61840         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61842         Check for nanosleep bug.
61843         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61844
61845 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         Work around a bug in both the Linux and SunOS 64-bit kernels:
61848         nanosleep mishandles sleeps for longer than 2**31 seconds.
61849         Problem reported by Frank v Waveren in
61850         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61851         * lib/nanosleep.c (BILLION): New constant.
61852         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61853         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61854         implementation.
61855
61856 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * modules/nanosleep (Depends-on): Add gettime.
61859
61860 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61861         and Simon Josefsson  <jas@extundo.com>
61862         and Oskar Liljeblad  <oskar@osk.mine.nu>
61863
61864         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61865         * gnulib-tool (func_import): New license type 'unmodifiable license
61866         text'.
61867         * modules/fdl: Use it.  Longer description.
61868         * module/gpl, module/lgpl: New files.
61869
61870 2006-08-30  Jim Meyering  <jim@meyering.net>
61871
61872         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61873         shadowing the parameter.
61874
61875 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61876
61877         Sync from Libtool:
61878
61879         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61880
61881         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61882         sharing with gnulib.  Report by Eric Blake.
61883
61884 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         * modules/isapipe: New file.
61887         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61888
61889 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61890
61891         * modules/configmake (Makefile.am): Add a comment, and omit
61892         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61893         by Bruno Haible.
61894
61895 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * m4/isapipe.m4: New file.
61898
61899 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * lib/isapipe.c, lib/isapipe.h: New files.
61902
61903 2006-08-29  Jim Meyering  <jim@meyering.net>
61904
61905         * modules/configmake (Makefile.am): Make configmake.h depend on
61906         Makefile.  Otherwise, a stale configmake.h could hang around.
61907
61908 2006-08-29  Eric Blake  <ebb9@byu.net>
61909
61910         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61911         resolution of upstream bug 3044.
61912
61913 2006-08-29  Bruno Haible  <bruno@clisp.org>
61914
61915         * modules/localcharset (Depends-on): Add configmake.
61916         (Makefile.am): Remove setting of LIBDIR through DEFS.
61917
61918 2006-08-29  Bruno Haible  <bruno@clisp.org>
61919
61920         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61921         defined.
61922
61923 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         * modules/fcntl: New file.
61926         * modules/chdir-safer (Depends-on): Add fcntl.
61927         * modules/fts: Likewise.
61928         * modules/mkdir-p: Likewise.
61929
61930         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61931         This undoes the most recent change, since we're now addressing the
61932         problem in a different way.
61933
61934         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61935         into output, since the output might be called Makefile.am even
61936         if $makefile_name is something different.
61937         (func_import): Use $makefile_am rather than
61938         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61939         empty.
61940
61941         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61942
61943 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61944
61945         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61946         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61947         recent change to stdint.m4, since we're now addressing the problem in a
61948         different way.
61949
61950 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61951
61952         * m4/fcntl_h.m4: New file.
61953
61954 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/fcntl_.h: New file.
61957         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61958         the fcntl module.
61959         * lib/dirchownmod.c: Likewise.
61960         * lib/fts.c: Likewise.
61961
61962         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61963         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61964         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61965         just before including <inttypes.h>, to avoid circular inclusion.
61966
61967 2006-08-28  Jim Meyering  <jim@meyering.net>
61968
61969         * doc/visibility.texi: Actually read and correct the grammar of the
61970         sentence affected by yesterday's change.
61971
61972 2006-08-28  Eric Blake  <ebb9@byu.net>
61973
61974         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61975         needs wrapper.
61976
61977 2006-08-28  Eric Blake  <ebb9@byu.net>
61978
61979         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61980
61981 2006-08-28  Eric Blake  <ebb9@byu.net>
61982
61983         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61984
61985 2006-08-28  Bruno Haible  <bruno@clisp.org>
61986
61987         * modules/c-strstr: New file, from GNU gettext.
61988         * MODULES.html.sh (String handling): Add c-strstr.
61989
61990 2006-08-28  Bruno Haible  <bruno@clisp.org>
61991
61992         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61993         macros.
61994         Reported by Eric Blake.
61995
61996 2006-08-28  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61999         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62000         * lib/vasprintf.c: Include errno.h, limits.h.
62001         (EOVERFLOW): New fallback definition.
62002         (vasprintf): Test here whether the string length is > INT_MAX.
62003         * lib/vsnprintf.c: Include errno.h, limits.h.
62004         (EOVERFLOW): New fallback definition.
62005         (vsnprintf): Fix bug when generated string was too long for the buffer.
62006         Test here whether the string length is > INT_MAX.
62007
62008 2006-08-28  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/inttypes_.h (SCNX*): Remove definitions.
62011         Reported by Eric Blake.
62012
62013 2006-08-28  Bruno Haible  <bruno@clisp.org>
62014
62015         * lib/c-strstr.h: New file, from GNU gettext.
62016         * lib/c-strstr.c: New file, from GNU gettext.
62017
62018 2006-08-28  Bruno Haible  <bruno@clisp.org>
62019
62020         * gnulib-tool: Reorder some statements.
62021
62022 2006-08-28  Bruno Haible  <bruno@clisp.org>
62023
62024         * gnulib-tool: New option --makefile-name.
62025         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62026         $makefile_name.
62027         (func_import): Write $makefile_name to the cache file, and read it from
62028         there unless explicitly specified. Use $makefile_name as file name
62029         instead of Makefile.am. Adjust the recommendations accordingly.
62030
62031 2006-08-28  Bruno Haible  <bruno@clisp.org>
62032
62033         * gnulib-tool (func_verify_module): Check against misapplying patch.
62034
62035 2006-08-28  Bruno Haible  <bruno@clisp.org>
62036
62037         * gnulib-tool (func_relativize, func_relconcat): New functions.
62038         Give an error if --local-dir is given with --update.
62039         Remove trailing slashes from $local_gnulib_dir.
62040         (func_import): Store the relativized $local_gnulib_dir in
62041         gnulib-cache.m4, and read it from there if not specified explicitly.
62042
62043 2006-08-28  Bruno Haible  <bruno@clisp.org>
62044
62045         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62046         is the current directory. Respect also $local_gnulib_dir.
62047
62048 2006-08-28  Bruno Haible  <bruno@clisp.org>
62049             Simon Josefsson  <jas@extundo.com>
62050
62051         BeOS portability.
62052         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62053
62054 2006-08-27  Jim Meyering  <jim@meyering.net>
62055
62056         * doc/visibility.texi: Remove duplicate word: "pointer".
62057
62058 2006-08-26  Bruno Haible  <bruno@clisp.org>
62059
62060         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62061         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62062         (Makefile.am): Create inttypes.h from inttypes_.h.
62063         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62064
62065         * modules/imaxabs: New file.
62066
62067         * modules/imaxdiv: New file.
62068
62069 2006-08-26  Bruno Haible  <bruno@clisp.org>
62070
62071         * m4/inttypes.m4: New file.
62072         * m4/_inttypes_h.m4: Remove file.
62073         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62074         PRI_MACROS_BROKEN.
62075         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62076
62077         * m4/imaxabs.m4: New file.
62078
62079         * m4/imaxdiv.m4: New file.
62080
62081 2006-08-26  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/inttypes_.h: New file.
62084         * lib/inttypes.h: Remove file.
62085         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62086
62087         * lib/imaxabs.c: New file.
62088
62089         * lib/imaxdiv.c: New file.
62090
62091 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         New config-h module, so that "make" output needn't be cluttered
62094         by -DHAVE_CONFIG_H.
62095         * MODULES.html.sh (Support for building libraries and executables):
62096         Add config-h.
62097         * modules/config-h: New file.
62098         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62099         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62100         the config-h module is used.
62101
62102         New configmake module, so that "make" output needn't be cluttered
62103         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62104         * MODULES.html.sh (Support for building libraries and executables):
62105         Add configmake.
62106         * modules/configmake: New file.
62107
62108 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * m4/config-h.m4: New file.
62111
62112 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62113
62114         * config/srclist.txt: Add elisp-comp.
62115
62116 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62117
62118         * MODULES.html.sh (Support for building libraries and executables):
62119         Add elisp-comp.
62120         * build-aux/elisp-comp: New file.
62121         * modules/elisp-comp: New file.
62122
62123 2006-08-24  Bruno Haible  <bruno@clisp.org>
62124
62125         * gnulib-tool (func_create_testdir): Use non-default values of
62126         sourcebase and m4base.
62127
62128 2006-08-24  Bruno Haible  <bruno@clisp.org>
62129
62130         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62131         HTML structure.
62132
62133 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * modules/openat (Depends-on): Add lchown.
62136
62137 2006-08-23  Bruno Haible  <bruno@clisp.org>
62138
62139         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62140         of gl_LOCK_EARLY instead of gl_LOCK.
62141
62142 2006-08-23  Bruno Haible  <bruno@clisp.org>
62143
62144         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62145         on OSF/1 to no.
62146         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62147
62148 2006-08-23  Bruno Haible  <bruno@clisp.org>
62149
62150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62151         as unusable.
62152
62153         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62154         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62155         (gl_LOCK): New macro.
62156
62157 2006-08-22  Simon Josefsson  <jas@extundo.com>
62158
62159         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62160         to md5 module.
62161
62162 2006-08-22  Simon Josefsson  <jas@extundo.com>
62163
62164         * MODULES.html.sh: Add "Support for maintaining and release
62165         projects".
62166
62167         * build-aux/gnupload: New file, from coreutils.
62168
62169 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         Avoid the need for AC_LIBSOURCES in m4 macros.
62172         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62173         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62174         * modules/check-version (EXTRA_DIST): Add check-version.h.
62175         * modules/crc (EXTRA_DIST): Add crc.h.
62176         * modules/des (EXTRA_DIST): Add des.h.
62177         * modules/gc (EXTRA_DIST): Add gc.h.
62178         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62179         * modules/getline (EXTRA_DIST): Add getline.h.
62180         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62181         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62182         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62183         * modules/md2 (EXTRA_DIST): Add md2.h.
62184         * modules/md4 (EXTRA_DIST): Add md4.h.
62185         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62186         * modules/read-file (EXTRA_DIST): Add read-file.h.
62187         * modules/readline (EXTRA_DIST): Add readline.h.
62188         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62189         rijndael-api-fst.h.
62190
62191 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * m4/rijndael.m4 (gl_ARCFOUR):
62194         * m4/arctwo.m4 (gl_ARCTWO):
62195         * m4/check-version.m4 (gl_CHECK_VERSION):
62196         * m4/crc.m4 (gl_CRC):
62197         * m4/des.m4 (gl_DES):
62198         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62199         * m4/gc.m4 (gl_GC):
62200         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62201         * m4/getline.m4 (gl_FUNC_GETLINE):
62202         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62203         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62204         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62205         * m4/md2.m4 (gl_MD2):
62206         * m4/md4.m4 (gl_MD4):
62207         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62208         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62209         * m4/readline.m4 (gl_FUNC_READLINE):
62210         * m4/rijndael.m4 (gl_RIJNDAEL):
62211         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62212         to get the necessary .h files and whatnot.
62213
62214 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62217         gnulib rather than the other way around.
62218         * config/srclistvars.sh (COREUTILS): Remove.
62219
62220 2006-08-22  Jim Meyering  <jim@meyering.net>
62221
62222         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62223
62224         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62225
62226 2006-08-22  Eric Blake  <ebb9@byu.net>
62227
62228         * modules/regexprops-generic: New file.
62229         * MODULES.html.sh (Support for building documentation): List it.
62230
62231 2006-08-22  Eric Blake  <ebb9@byu.net>
62232
62233         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62234         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62236         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62237
62238 2006-08-22  Bruno Haible  <bruno@clisp.org>
62239
62240         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62241         and lib_LTLIBRARIES like the other lib_* variables.
62242
62243 2006-08-22  Bruno Haible  <bruno@clisp.org>
62244
62245         * build-aux/x-to-1.in: New file, from GNU gettext.
62246
62247 2006-08-22  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62250         <utmpx.h> exists.
62251
62252 2006-08-22  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62255         <utmpx.h> exists.
62256
62257 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62258
62259         BeOS portability.
62260         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62261         exist.
62262         Problem reported by Bruno Haible.
62263
62264 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         Avoid the need for AC_LIBSOURCES in m4 macros.
62267         * modules/acl (EXTRA_DIST): Add acl.h.
62268         * modules/argmatch (Files): Add m4/argmatch.m4.
62269         (configure.ac): Add gl_ARGMATCH.
62270         (EXTRA_DIST): Renamed from lib_SOURCES, for
62271         consistency with the other modules.  Remove argmatch.c.
62272         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62273         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62274         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62275         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62276         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62277         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62278         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62279         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62280         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62281         * modules/closeout (EXTRA_DIST): Add closeout.h.
62282         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62283         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62284         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62285         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62286         dirname.h; remove basename.c and stripslash.c.
62287         * modules/exclude (EXTRA_DIST): Add exclude.h.
62288         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62289         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62290         * modules/file-type (EXTRA_DIST): Add file-type.h.
62291         * modules/filemode (EXTRA_DIST): Add filemode.h.
62292         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62293         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62294         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62295         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62296         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62297         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62298         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62299         * modules/getdate (EXTRA_DIST): Add getdate.c.
62300         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62301         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62302         * modules/getpass (EXTRA_DIST): Add getpass.h.
62303         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62304         * modules/group-member (EXTRA_DIST): Add group-member.h.
62305         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62306         * modules/hash (EXTRA_DIST): Add hash.h.
62307         * modules/human (EXTRA_DIST): Add human.h.
62308         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62309         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62310         * modules/lchown (EXTRA_DIST): Add lchown.h.
62311         * modules/long-options (EXTRA_DIST): Add long-options.h.
62312         * modules/lstat (EXTRA_DIST): Add lstat.h.
62313         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62314         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62315         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62316         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62317         * modules/memxor (EXTRA_DIST): Add memxor.h.
62318         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62319         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62320         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62321         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62322         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62323         * modules/physmem (EXTRA_DIST): Add physmem.h.
62324         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62325         * modules/posixver (EXTRA_DIST): Add posixver.h.
62326         * modules/quote (EXTRA_DIST): Add quote.h.
62327         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62328         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62329         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62330         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62331         regex_internal.h regexec.c.
62332         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62333         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62334         * modules/same (EXTRA_DIST): Add same.h.
62335         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62336         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62337         * modules/savedir (EXTRA_DIST): Add savedir.h.
62338         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62339         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62340         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62341         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62342         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62343         * modules/strdup (EXTRA_DIST): Add strdup.h.
62344         * modules/strftime (EXTRA_DIST): Add strftime.h.
62345         * modules/strndup (EXTRA_DIST): Add strndup.h.
62346         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62347         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62348         * modules/time_r (EXTRA_DIST): Add time_r.h.
62349         * modules/timespec (EXTRA_DIST): Add timespec.h.
62350         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62351         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62352         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62353         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62354         * modules/userspec (EXTRA_DIST): Add userspec.h.
62355         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62356         * modules/utimens (EXTRA_DIST): Add utimens.h.
62357         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62358         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62359         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62360         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62361         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62362         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62363         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62364         * modules/yesno (EXTRA_DIST): Add yesno.h.
62365
62366 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62369
62370         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62371         * m4/dev-ino.m4, same-inode.m4: Remove.
62372
62373         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62374         * m4/acl.m4 (AC_FUNC_ACL):
62375         * m4/backupfile.m4 (gl_BACKUPFILE):
62376         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62377         * m4/canon-host.m4 (gl_CANON_HOST):
62378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62379         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62380         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62381         * m4/cloexec.m4 (gl_CLOEXEC):
62382         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62383         * m4/closeout.m4 (gl_CLOSEOUT):
62384         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62385         * m4/dirname.m4 (gl_DIRNAME):
62386         * m4/exclude.m4 (gl_EXCLUDE):
62387         * m4/exitfail.m4 (gl_EXITFAIL):
62388         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62389         * m4/file-type.m4 (gl_FILE_TYPE):
62390         * m4/filemode.m4 (gl_FILEMODE):
62391         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62392         * m4/fpending.m4 (gl_FUNC_FPENDING):
62393         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62394         * m4/fts.m4 (gl_FUNC_FTS):
62395         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62396         * m4/getdate.m4 (gl_GETDATE):
62397         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62398         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62399         * m4/getpass.m4 (gl_FUNC_GETPASS):
62400         * m4/gettime.m4 (gl_GETTIME):
62401         * m4/getugroups.m4 (gl_GETUGROUPS):
62402         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62403         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62404         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62405         * m4/hash.m4 (gl_HASH):
62406         * m4/idcache.m4 (gl_IDCACHE):
62407         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62408         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62409         * m4/long-options.m4 (gl_LONG_OPTIONS):
62410         * m4/lstat.m4 (gl_FUNC_LSTAT):
62411         * m4/md5.m4 (gl_MD5):
62412         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62413         * m4/memcoll.m4 (gl_MEMCOLL):
62414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62415         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62416         * m4/memxor.m4 (gl_MEMXOR):
62417         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62418         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62419         * m4/modechange.m4 (gl_MODECHANGE):
62420         * m4/mountlist.m4 (gl_MOUNTLIST):
62421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62422         * m4/openat.m4 (gl_FUNC_OPENAT):
62423         * m4/pathmax.m4 (gl_PATHMAX):
62424         * m4/physmem.m4 (gl_PHYSMEM):
62425         * m4/posixtm.m4 (gl_POSIXTM):
62426         * m4/posixver.m4 (gl_POSIXVER):
62427         * m4/quote.m4 (gl_QUOTE):
62428         * m4/quotearg.m4 (gl_QUOTEARG):
62429         * m4/readtokens.m4 (gl_READTOKENS):
62430         * m4/readutmp.m4 (gl_READUTMP):
62431         * m4/regex.m4 (gl_REGEX):
62432         * m4/safe-read.m4 (gl_SAFE_READ):
62433         * m4/safe-write.m4 (gl_SAFE_WRITE):
62434         * m4/same.m4 (gl_SAME):
62435         * m4/save-cwd.m4 (gl_SAVE_CWD):
62436         * m4/savedir.m4 (gl_SAVEDIR):
62437         * m4/settime.m4 (gl_SETTIME):
62438         * m4/sha1.m4 (gl_SHA1):
62439         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62440         * m4/stat-macros.m4 (gl_STAT_MACROS):
62441         * m4/stat-time.m4 (gl_STAT_TIME):
62442         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62443         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62444         * m4/strdup.m4 (gl_FUNC_STRDUP):
62445         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62446         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62447         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62448         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62449         * m4/time_r.m4 (gl_TIME_R):
62450         * m4/timespec.m4 (gl_TIMESPEC):
62451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62452         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62453         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62454         * m4/userspec.m4 (gl_USERSPEC):
62455         * m4/utimecmp.m4 (gl_UTIMECMP):
62456         * m4/utimens.m4 (gl_UTIMENS):
62457         * m4/xalloc.m4 (gl_XALLOC):
62458         * m4/xgetcwd.m4 (gl_XGETCWD):
62459         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62460         * m4/xreadlink.m4 (gl_XREADLINK):
62461         * m4/xstrtod.m4 (gl_XSTRTOD):
62462         * m4/yesno.m4 (gl_YESNO):
62463         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62464         to get the necessary .h files and whatnot.
62465
62466 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62467             Bruno Haible  <bruno@clisp.org>
62468
62469         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62470         /bin/sh understanding of '!' conditional negation.
62471
62472 2006-08-21  Jim Meyering  <jim@meyering.net>
62473
62474         * modules/openat (Depends-on): Really alphabetize.
62475
62476         * modules/acl (Depends-on): Add error and quote.
62477
62478         * check-module (find_included_lib_files): Add at-func.c to the
62479         ok-to-include-more-than-once white list.
62480
62481         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62482
62483 2006-08-21  Bruno Haible  <bruno@clisp.org>
62484
62485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62486         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62487         Reported by Martin Lambers <marlam@marlam.de>.
62488
62489 2006-08-21  Bruno Haible  <bruno@clisp.org>
62490
62491         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62492         specify an installation location, don't emit a noinst_LIBRARIES or
62493         noinst_LTLIBRARIES assignment.
62494
62495 2006-08-21  Bruno Haible  <bruno@clisp.org>
62496
62497         BeOS portability.
62498         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62499         BeOS has mbrtowc() but no <wctype.h>.
62500
62501 2006-08-21  Bruno Haible  <bruno@clisp.org>
62502
62503         BeOS portability.
62504         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62505         exist.
62506
62507 2006-08-21  Bruno Haible  <bruno@clisp.org>
62508
62509         BeOS portability.
62510         * lib/mbchar.h: Include <wctype.h> only if it exists.
62511
62512 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         Remove files that are no longer needed by their respective modules.
62515         * m4/obstack.m4: Remove.
62516         * m4/strerror_r.m4: Remove.
62517         * m4/uint32_t.m4: Remove.
62518         * m4/uintptr_t.m4: Remove.
62519         * m4/ullong_max.m4: Remove.
62520         * m4/xstrtoimax.m4: Remove.
62521         * m4/xstrtoumax.m4: Remove.
62522
62523         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62524         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62525         dependencies now capture this.
62526
62527         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62528         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62529         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62530         * m4/human.m4 (gl_HUMAN): Likewise.
62531         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62532         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62533
62534         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62535
62536         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62537         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62538         stdint.
62539         * m4/human.m4 (gl_HUMAN): Likewise.
62540         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62541         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62542         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62543         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62544         * m4/xstrtol (gl_XSTRTOL): Likewise.
62545
62546         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62547         AC_TYPE_LONG_LONG_INT.
62548         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62549         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62550         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62551         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62552
62553         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62554         on stdbool.
62555
62556         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62557         (gl_PREREQ_XSTRTOUL): Remove.
62558
62559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62560
62561         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62562         mode.
62563
62564 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         Add and change modules to make it easier for coreutils to use
62567         gnulib-tool.
62568         * modules/backupfile (Files): Remove m4/d-ino.m4.
62569         (Depends-on): Add d-ino.
62570         * modules/cycle-check (Depends-on): Add stdint.
62571         (lib_SOURCES): Add cycle-check.h.
62572         * modules/d-ino: New module.
62573         * modules/d-type: New module.
62574         * modules/error (Files): Remove m4/strerror_r.m4.
62575         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62576         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62577         m4/inttypes_h.m4, m4/uintmax_t.m4.
62578         (Depends-on): Add stdint.
62579         (lib_SOURCES): Add fsusage.h.
62580         * modules/getcwd (Files): Remove d-ino.m4.
62581         (Depends-on): Add d-ino.
62582         * modules/getndelim2 (Depends-on): Add stdint.
62583         * modules/glob (Files): Remove m4/d-type.m4.
62584         (Depends-on): Add d-type.
62585         * modules/host-os: New module.
62586         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62587         m4/inttypes_h.m4, m4/uintmax_t.m4.
62588         * Depends-on: Add stdint.
62589         (lib_SOURCES): Add human.h.
62590         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62591         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62592         m4/uintmax_t.m4, m4/ulonglong.m4.
62593         (Depends-on): Add stdint.
62594         (EXTRA_DIST): Add inttostr.h.
62595         * modules/lchmod: New module.
62596         * modules/link-follow: New module.
62597         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62598         (Depends-on): Add lchmod.
62599         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62600         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62601         (Depends-on): Add stdint.
62602         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62603         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62604         (Depends-on): Add stdint.
62605         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62606         * modules/perl: New module.
62607         * modules/regex (Depends-on): Add stdint.
62608         * modules/rmdir-errno: New module.
62609         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62610         m4/intmax_t.m4.
62611         (Depends-on): Add stdint.
62612         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62613         m4/uintmax_t.m4.
62614         (Depends-on): Add stdint.
62615         * modules/unlink-busy: New module.
62616         * modules/utimecmp (Depends-on): Add stdint.
62617         * modules/uptime: New module.
62618         * modules/winsz-ioctl: New module.
62619         * modules/winsz-termios: New module.
62620         * modules/xnanosleep (Depends-on): Add nanosleep.
62621         * modules/ullong_max: Remove.
62622         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62623         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62624         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62625         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62626         (Depends-on): Add inttypes.
62627         (lib_SOURCES): Add xstrtol.h.
62628         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62629         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62630         * MODULES.html.sh: Move 'assert' into the assert section.
62631         Move 'dummy' into the linking section.
62632         Remove ullong_max.
62633         Add section for compatibility checks for POSIX:2001 functions,
62634         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62635         winsz-ioctl, and winsz-termios into it.
62636         Add lchmod.
62637         Add top-level Misc section and put host-os, perl, and uptime
62638         into it.
62639
62640 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62643         now assume the stdint module.  Do not include inttypes.h.
62644         * lib/fsusage.h: Likewise.
62645         * lib/getndelim2.c: Likewise.
62646         * lib/human.h: Likewise.
62647         * lib/inttostr.h: Likewise.
62648         * lib/obstack.c: Likewise.
62649         * lib/regex_internal.h: Likewise.
62650         * lib/tempname.c: Likewise.
62651         * lib/utimecmp.c: Likewise.
62652         * lib/xstrtol.h: Likewise.
62653
62654         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62655
62656         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62657         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62658         * lib/xtime.h: Likewise.
62659
62660 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62661
62662         * modules/openat (Files): Add lib/fchmodat.c.
62663         Fixes problem reported by Jay Youngman.
62664
62665 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62668         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62669
62670 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62671             Bruno Haible  <bruno@clisp.org>
62672
62673         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62674         and is a script that invokes bison. Tighten the code. Add comments.
62675
62676 2006-08-18  Jim Meyering  <jim@meyering.net>
62677
62678         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62679         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62680         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62681         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62682
62683 2006-08-18  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/bison-i18n: New file.
62686         * MODULES.html.sh (Internationalization functions): Add it.
62687
62688 2006-08-18  Bruno Haible  <bruno@clisp.org>
62689
62690         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62691         sys/statvfs.h. When getmntinfo was found, check its declaration and
62692         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62693
62694 2006-08-18  Bruno Haible  <bruno@clisp.org>
62695
62696         * m4/bison-i18n.m4: New file, from bison.
62697
62698 2006-08-18  Bruno Haible  <bruno@clisp.org>
62699
62700         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62701         (ME_DUMMY): Treat "kernfs" as a dummy.
62702         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62703
62704 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62705
62706         Update from coreutils.
62707
62708         2006-08-15  Jim Meyering  <jim@meyering.net>
62709
62710         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62711
62712         2006-01-17  Jim Meyering  <jim@meyering.net>
62713
62714         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62715
62716         2006-01-11  Jim Meyering  <jim@meyering.net>
62717
62718         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62719         Check for the lchmod function.
62720
62721 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         Update from coreutils.
62724
62725         * lib/__fpending.h: Add copyright notice.
62726         * lib/fprintftime.h: Likewise.
62727         * lib/savedir.c: Use (C) in copyright notice.
62728         * lib/savedir.h: Likewise.
62729
62730         2006-08-15  Jim Meyering  <jim@meyering.net>
62731
62732         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62733         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62734         in support of the EXPECTED_ERRNO macro.
62735         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62736         definitions.  Instead, define the appropriate symbols and include
62737         "at-func.c".
62738         * lib/mkdirat.c (mkdirat): Likewise.
62739         * lib/fchmodat.c (fchmodat): Likewise.
62740         (ENOSYS): Remove definition.
62741         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62742         it.  Don't include "unistd--.h" -- it wasn't ever used.
62743
62744         2006-01-17  Jim Meyering  <jim@meyering.net>
62745
62746         Rewrite fts.c not to change the current working directory,
62747         by using openat, fstatat, fdopendir, etc..
62748
62749         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62750         (HAVE_OPENAT_SUPPORT): Define.
62751         [_LIBC] (fchdir): Don't undef or define; no longer used.
62752         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62753         Now, this `function' always succeeds, and consumes its file descriptor
62754         parameter -- so callers must not close such FDs.  Update callers.
62755         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62756         (diropen): Add parameter, SP.  Adjust all callers.
62757         Implement using diropen_fd, rather than open.
62758         (fts_open): Initialize new member, fts_cwd_fd.
62759         Remove fts_rft-setting code.
62760         (fts_close): Close fts_cwd_fd, if necessary.
62761         (__opendir2): Define in terms of opendir or opendirat,
62762         depending on whether the FST_NOCHDIR flag is set.
62763         (fts_build): Since fts_safe_changedir consumes its FD, and since
62764         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62765         and close the dup'd file descriptor upon failure.
62766         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62767         (fts_safe_changedir): Tweak semantics to reflect that this function
62768         now calls cwd_advance_fd and hence consumes its FD argument.
62769         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62770         [struct FTS] (fts_rft): Remove now-unused member.
62771         [struct FTS] (fts_cycle.state): Improve comment.
62772
62773         * lib/openat.c (openat_needs_fchdir): New function.
62774         * lib/openat.h (openat_needs_fchdir): Declare it.
62775
62776 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62779         Problem and fix reported by Pádraig Brady in
62780         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62781
62782 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62783
62784         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62785
62786 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62787
62788         * lib/memcoll.c (memcoll): Optimize for the common case where the
62789         arguments are bytewise equal.
62790
62791 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62792
62793         * doc/regexprops-generic.texi: Add a copyright notice.
62794
62795 2006-08-15  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/tmpdir (License): Change to LGPL.
62798
62799 2006-08-15  Bruno Haible  <bruno@clisp.org>
62800
62801         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62802         module.
62803
62804 2006-08-14  Simon Josefsson  <jas@extundo.com>
62805
62806         * config/srclist.txt: Add gnupload.
62807
62808 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62809
62810         Change copyright notice from LGPL 2 to GPL 2, since that's the
62811         standard form used in the gnulib repository.
62812         * tests/test-lock.c: Likewise.
62813         * tests/test-stdint.c: Likewise.
62814         * tests/test-tls.c: Likewise.
62815
62816         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62817         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62818         Add copyright notice.
62819
62820         * check-module: Add copyright notice.  Output a copyright
62821         notice if "--version" is specified.
62822         * modules/COPYING: New file.
62823         * tests/test-getaddrinfo.c: Add copyright notice.
62824         * tests/test-verify.c: Likewise.
62825
62826 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         Change copyright notice from LGPL 2 to GPL 2, since that's the
62829         standard form used in the gnulib repository.
62830         * lib/lock.c: LGPL -> GPL.
62831         * lib/lock.h: Likewise.
62832         * lib/strnlen1.c: Likewise.
62833         * lib/strnlen1.h: Likewise.
62834         * lib/tls.c: Likewise.
62835         * lib/tls.h: Likewise.
62836         * lib/tmpdir.c: Likewise.
62837
62838         * lib/TODO: Remove; this belongs only in coreutils.
62839
62840 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         Add copyright notices to long-enough files that lack them, since
62843         otherwise the files aren't clearly free.  Use the same notice that
62844         getdate.texi already uses.
62845         * doc/alloca-opt.texi: Add copyright notice.
62846         * doc/alloca.texi: Likewise.
62847         * doc/ctime.texi: Likewise.
62848         * doc/functions.texi: Likewise.
62849         * doc/gcd.texi: Likewise.
62850         * doc/gnulib-tool.texi: Likewise.
62851         * doc/inet_ntoa.texi: Likewise.
62852         * doc/visibility.texi: Likewise.
62853
62854         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62855         * doc/quote.texi: Add copyright notice.
62856
62857         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62858         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62859         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62860         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62861         is now obsolete, and give a pointer to the Sun list.
62862         Add copyright notice.
62863
62864 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62865
62866         * config/srclistvars.sh: Add copyright notice.
62867
62868 2006-08-14  Eric Blake  <ebb9@byu.net>
62869
62870         Import the following change from libc:
62871
62872         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62873
62874         Upstream bug 2997.
62875         * lib/misc/error.c: Add space between program name and message if file
62876         name is missing.
62877
62878 2006-08-12  Karl Berry  <karl@gnu.org>
62879
62880         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62881         remove, these originate in gnulib now.
62882
62883 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62884
62885         * doc/Makefile (standards.info standards.html standards.dvi):
62886         Also depend on make-stds.texi.
62887
62888 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62889
62890         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62891         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62892
62893         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62894         in wchar_t.  Problem reported by Eric Blake.
62895
62896         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62897         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62898         Also, help the compiler to keep LEN in a register.
62899
62900 2006-08-11  Eric Blake  <ebb9@byu.net>
62901
62902         * users.txt: Sort.  Add tar.
62903
62904 2006-08-11  Bruno Haible  <bruno@clisp.org>
62905
62906         * users.txt: New file.
62907
62908 2006-08-11  Bruno Haible  <bruno@clisp.org>
62909
62910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62911         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62912
62913 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * modules/snprintf (Depends-on): Remove minmax.
62916         (Maintainer): Add self and Bruno.
62917
62918 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62921         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62922         (EOVERFLOW): Define if the system does not.
62923         Do not include "minmax.h"; it wasn't used.
62924         (snprintf): Don't assume size_t promotes to an unsigned type.
62925         Fix bug when generated string was too long for the buffer: the
62926         buffer's contents are supposed to be the initial prefix of the
62927         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62928         exceeds INT_MAX; do the check ourselves.
62929
62930         Import the following changes from libc:
62931
62932         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62933
62934         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62935         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62936         set wc to the byte which couldn't be converted.
62937         (re_string_reconstruct): Don't clear valid_raw_len before calling
62938         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62939         tip_context using re_string_context_at.
62940
62941         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62942
62943         * lib/posix/regex.h: g++ still cannot handled [restrict].
62944
62945         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62946
62947         * lib/posix/regex.h: Remove special handling for VMS.
62948
62949 2006-08-10  Jim Meyering  <jim@meyering.net>
62950
62951         * modules/same-inode: New module.
62952         * modules/dev-ino: New module.
62953         * modules/cycle-check: Depend on these modules, rather than simply
62954         including their .h files.
62955         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62956         required via m4/cycle-check.m4.
62957         * modules/same: Depend on new same-inode module, rather than
62958         including same-inode.h.
62959         * modules/chdir-safer: New file.
62960
62961         * modules/chown (Depends-on): Add stat-macros.
62962
62963 2006-08-10  Jim Meyering  <jim@meyering.net>
62964
62965         * m4/cycle-check.m4: New file.
62966         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62967         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62968
62969 2006-08-10  Eric Blake  <ebb9@byu.net>
62970
62971         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62972         in from original proposal.
62973
62974 2006-08-10  Eric Blake  <ebb9@byu.net>
62975         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62976
62977         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62978         namespace.
62979
62980 2006-08-10  Bruno Haible  <bruno@clisp.org>
62981
62982         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62983         as well.
62984
62985 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62986
62987         Sync from coreutils.
62988
62989         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62990
62991         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62992         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62993
62994 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * modules/restrict: Remove; no longer needed now that we assume
62997         Autoconf 2.59 or later.
62998         * MODULES.html.sh: Remove 'restrict'.
62999         * modules/argp (Depends-on): Remove 'restrict'.
63000         * modules/base64 (Depends-on): Likewise.
63001         * modules/gc (Depends-on): Likewise.
63002         * modules/getaddrinfo (Depends-on): Likewise.
63003         * modules/glob (Depends-on): Likewise.
63004         * modules/inet_ntop (Depends-on): Likewise.
63005         * modules/inet_pton (Depends-on): Likewise.
63006         * modules/memxor (Depends-on): Likewise.
63007         * modules/regex (Depends-on): Likewise.
63008         * modules/strtok_r (Depends-on): Likewise.
63009         * modules/time_r (Depends-on): Likewise.
63010
63011 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63012
63013         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63014         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63015         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63016         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63017         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63018         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63019         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63020         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63021
63022         Merge from coreutils.
63023         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63024         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63026         * m4/time_r.m4 (gl_TIME_R): Likewise.
63027
63028 2006-08-09  Karl Berry  <karl@gnu.org>
63029
63030         * config/srclist.txt: no more gettext-tools, per Bruno.
63031
63032 2006-08-08  Eric Blake  <ebb9@byu.net>
63033
63034         * modules/verror: New module.
63035         * MODULES.html.sh: Document it.
63036
63037 2006-08-08  Eric Blake  <ebb9@byu.net>
63038
63039         * lib/verror.h, lib/verror.c: New files.
63040
63041 2006-08-08  Eric Blake  <ebb9@byu.net>
63042
63043         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63044         verror_at_line output complies with GNU Coding Standards even when
63045         file is NULL.
63046
63047 2006-08-07  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63050         versions of AIX.
63051         Reported by Ralf Wildenhues.
63052
63053 2006-08-07  Bruno Haible  <bruno@clisp.org>
63054
63055         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63056         in an AC_DEFUN. Needed so that the autoconf snippets can use
63057         AC_REQUIRE.
63058
63059 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63060
63061         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63062         Initialize pkgdata_DATA.
63063         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63064         overriding it.
63065
63066 2006-08-06  Eric Blake  <ebb9@byu.net>
63067
63068         * lib/error.h: Fold in some upstream changes from glibc.
63069         * lib/error.c: Likewise.
63070
63071 2006-08-04  Bruno Haible  <bruno@clisp.org>
63072
63073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63074         Make the mostlyclean-local rule depend on mostlyclean-generic.
63075         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63076
63077 2006-07-31  Bruno Haible  <bruno@clisp.org>
63078
63079         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63080         <stdlib.h>, <string.h>.
63081
63082 2006-07-30  Bruno Haible  <bruno@clisp.org>
63083
63084         * modules/readlink (License): Change to LGPL.
63085
63086 2006-07-30  Bruno Haible  <bruno@clisp.org>
63087
63088         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63089         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63090         set PKGDATADIR to point to it.
63091
63092 2006-07-30  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/csharpexec (configure.ac): Comment out macro invocation.
63095         * modules/javaexec (configure.ac): Likewise.
63096         * modules/javacomp-script (configure.ac): Likewise.
63097
63098         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63099
63100 2006-07-30  Bruno Haible  <bruno@clisp.org>
63101
63102         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63103         linked-list.
63104
63105 2006-07-30  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63108
63109 2006-07-30  Bruno Haible  <bruno@clisp.org>
63110
63111         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63112         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63113         get removed.
63114
63115 2006-07-29  Bruno Haible  <bruno@clisp.org>
63116
63117         Make it possible for gnulib-tool to work with locally modified or
63118         augmented gnulib repositories.
63119         * gnulib-tool (func_usage): Document --local-dir option.
63120         (local_gnulib_dir): New variable.
63121         Handle --local-dir option.
63122         (func_lookup_file): New function.
63123         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63124         (func_get_description, func_get_filelist, func_get_description,
63125         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63126         func_get_automake_snippet, func_get_include_directive,
63127         func_get_license, func_get_maintainer): Use func_lookup_file.
63128         (func_import, func_create_testdir): Use func_lookup_file.
63129
63130 2006-07-29  Bruno Haible  <bruno@clisp.org>
63131
63132         * modules/setenv (Depends-on): Add unistd.
63133
63134 2006-07-29  Bruno Haible  <bruno@clisp.org>
63135
63136         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63137
63138 2006-07-29  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63141
63142 2006-07-29  Bruno Haible  <bruno@clisp.org>
63143
63144         * gnulib-tool (import, update): If there is no Makefile.am, look at
63145         aclocal.m4, instead of bailing out.
63146
63147 2006-07-29  Bruno Haible  <bruno@clisp.org>
63148
63149         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63150         Categorize the options by when they are useful.
63151
63152 2006-07-29  Bruno Haible  <bruno@clisp.org>
63153
63154         * gnulib-tool (func_usage): Document option --no-libtool.
63155         Handle option --no-libtool.
63156         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63157         for changed semantics of $libtool variable.
63158         (func_import): Likewise. If libtool is not used, show this through
63159         an option --no-libtool.
63160         (func_create_testdir): Update.
63161
63162 2006-07-29  Bruno Haible  <bruno@clisp.org>
63163
63164         * gnulib-tool (func_import): Extend error message about missing
63165         --doc-base.
63166
63167 2006-07-29  Bruno Haible  <bruno@clisp.org>
63168
63169         * gnulib-tool (func_import): Don't create the $docbase directory if
63170         there is no file to store there.
63171
63172 2006-07-29  Bruno Haible  <bruno@clisp.org>
63173
63174         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63175         relevant, look for configure.ac there, not in the current directory.
63176         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63177
63178 2006-07-29  Bruno Haible  <bruno@clisp.org>
63179
63180         * gnulib-tool (SORT): New variable.
63181         (func_usage): Undocument --assume-autoconf option.
63182         Remove --assume-autoconf option handling.
63183         (autoconf_minversion): Determine from the contents of configure.ac.
63184         (func_import): Remove autoconf_minversion handling.
63185         Suggested by Eric Blake.
63186
63187 2006-07-29  Bruno Haible  <bruno@clisp.org>
63188
63189         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63190
63191 2006-07-29  Bruno Haible  <bruno@clisp.org>
63192
63193         * config/srclist.txt (*setenv.[ch]): Remove rules.
63194
63195 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63196
63197         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63198
63199 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63200
63201         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63202         arpa/inet.h.
63203
63204 2006-07-28  Simon Josefsson  <jas@extundo.com>
63205
63206         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63207         * modules/inet_pton (Depends-on): Likewise.
63208
63209 2006-07-28  Simon Josefsson  <jas@extundo.com>
63210
63211         * m4/netinet_in_h.m4: New file.
63212
63213 2006-07-28  Simon Josefsson  <jas@extundo.com>
63214
63215         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63216         #include's.
63217
63218 2006-07-28  Simon Josefsson  <jas@extundo.com>
63219
63220         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63221         #include's.
63222
63223 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63224
63225         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63226         setgid on directories only if they set these bits.
63227         * lib/modechange.h: Remove obsolete comment about masks.
63228
63229 2006-07-28  Eric Blake  <ebb9@byu.net>
63230
63231         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63232         macro expansion.
63233
63234 2006-07-28  Bruno Haible  <bruno@clisp.org>
63235
63236         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63237
63238 2006-07-28  Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63241
63242 2006-07-28  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63245         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63246         Define fallbacks.
63247         Avoids link error on FreeBSD 4.x.
63248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63249
63250         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63251         encoding.
63252         * lib/mbswidth.c (iswcntrl): Likewise.
63253
63254 2006-07-27  Bruno Haible  <bruno@clisp.org>
63255
63256         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63257         test.
63258
63259 2006-07-27  Bruno Haible  <bruno@clisp.org>
63260
63261         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63262         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63263         defined.
63264
63265 2006-07-26  Eric Blake  <ebb9@byu.net>
63266
63267         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63268
63269 2006-07-26  Eric Blake  <ebb9@byu.net>
63270
63271         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63272         like mingw that lack mkstemp.
63273         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63274         avoid compilation warning on mingw.
63275
63276 2006-07-26  Bruno Haible  <bruno@clisp.org>
63277
63278         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63279         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63280         INT_FAST*_MIN, INTPTR_MIN.
63281
63282 2006-07-25  Bruno Haible  <bruno@clisp.org>
63283
63284         * modules/version-etc (Depends-on): Add stdarg.
63285
63286 2006-07-25  Bruno Haible  <bruno@clisp.org>
63287
63288         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63289         complex commands.
63290
63291 2006-07-25  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63294         defined in <stdarg.h> or config.h.
63295
63296 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63299         (gl_STDIO_SAFER): Remove.
63300
63301 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         * MODULES.html.sh (File stream based Input/Output):
63304         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63305         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63306         * modules/fopen-safer, modules/tmpfile-safer: New files.
63307         * modules/stdio-safer: Remove.
63308
63309 2006-07-24  Bruno Haible  <bruno@clisp.org>
63310
63311         * modules/tmpdir: New file.
63312         * MODULES.html.sh (File system functions): Add it.
63313
63314 2006-07-24  Bruno Haible  <bruno@clisp.org>
63315
63316         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63317         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63318
63319 2006-07-24  Bruno Haible  <bruno@clisp.org>
63320
63321         * modules/clean-temp: New file.
63322
63323 2006-07-24  Bruno Haible  <bruno@clisp.org>
63324
63325         * m4/tmpdir.m4: New file, from GNU gettext.
63326
63327 2006-07-24  Bruno Haible  <bruno@clisp.org>
63328
63329         * lib/tmpdir.h: New file, from GNU gettext.
63330         * lib/tmpdir.c: New file, from GNU gettext.
63331
63332 2006-07-24  Bruno Haible  <bruno@clisp.org>
63333
63334         * lib/clean-temp.h: New file, from GNU gettext.
63335         * lib/clean-temp.c: New file, from GNU gettext.
63336
63337 2006-07-23  Eric Blake  <ebb9@byu.net>
63338
63339         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63340         (Depends-on): Add binary-io.
63341
63342 2006-07-23  Eric Blake  <ebb9@byu.net>
63343
63344         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63345
63346 2006-07-23  Eric Blake  <ebb9@byu.net>
63347
63348         * lib/tmpfile-safer.c: New file.
63349         * lib/stdio-safer.h (fopen_safer): Add prototype.
63350         * lib/stdio--.h (tmpfile): Make safer.
63351
63352 2006-07-23  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63355         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63356         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63357         gl_linked_remove_at): Use it.
63358
63359 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63360         and Simon Josefsson <jas@extundo.com>
63361
63362         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63363
63364         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63365
63366 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63367
63368         * modules/close-stream: New file.
63369         * modules/closeout (Description): Make it clear that it exits
63370         with a diagnostic on error.
63371         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63372         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63373
63374 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63375
63376         * m4/close-stream.m4: New file.
63377
63378 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63379
63380         * lib/close-stream.c, lib/close-stream.h: New files.
63381
63382 2006-07-22  Bruno Haible  <bruno@clisp.org>
63383
63384         Merge from GNU gettext 0.15.
63385
63386         2006-05-01  Bruno Haible  <bruno@clisp.org>
63387
63388                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63389
63390         2006-07-22  Bruno Haible  <bruno@clisp.org>
63391
63392                 * modules/javaversion: New file.
63393                 * MODULES.html.sh (Java): Add javaversion.
63394
63395         2006-03-12  Bruno Haible  <bruno@clisp.org>
63396
63397                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63398
63399         2005-12-04  Bruno Haible  <bruno@clisp.org>
63400
63401                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63402                 (untested).
63403
63404         2006-06-21  Bruno Haible  <bruno@clisp.org>
63405
63406                 Avoid warnings from recent versions of mcs.
63407                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63408                 -o, -L, -r any more. Use options documented since mcs-1.0
63409                 instead. Similarly for -g.
63410
63411         2005-12-04  Bruno Haible  <bruno@clisp.org>
63412
63413                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63414                 .resources, not .resource.
63415
63416         2005-07-09  Bruno Haible  <bruno@clisp.org>
63417
63418                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63419                 add a .dll suffix.
63420                 Reported by Mark Junker <mjscod@gmx.de>.
63421
63422         2006-07-22  Bruno Haible  <bruno@clisp.org>
63423
63424                 * modules/gettext: Upgrade to gettext-0.15.
63425                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63426                 m4/visibility.m4.
63427                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63428
63429 2006-07-22  Bruno Haible  <bruno@clisp.org>
63430
63431         Merge from GNU gettext 0.15.
63432
63433         2006-03-25  Bruno Haible  <bruno@clisp.org>
63434
63435                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63436
63437         2006-07-21  Bruno Haible  <bruno@clisp.org>
63438
63439                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63440                 "1.1".
63441
63442         2006-05-09  Bruno Haible  <bruno@clisp.org>
63443
63444                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63445                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63446                 for the conftestver execution.
63447
63448         2006-05-01  Bruno Haible  <bruno@clisp.org>
63449
63450                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63451                 optional target-version argument. Verify that the compiler
63452                 groks source of the specified source-version, or add -source
63453                 option as necessary. Verify that the compiler produces
63454                 bytecode in the specified target-version, or add -target and
63455                 -source options as necessary. Make the result of the test
63456                 available as variable CONF_JAVAC. Also log error output in
63457                 config.log.
63458
63459         2006-03-11  Bruno Haible  <bruno@clisp.org>
63460
63461                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63462
63463         2006-05-09  Bruno Haible  <bruno@clisp.org>
63464
63465                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63466                 CLASSPATH_SEPARATOR to a semicolon.
63467
63468         2006-03-12  Bruno Haible  <bruno@clisp.org>
63469
63470                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63471                 available as variable CONF_JAVA, for subsequent autoconf
63472                 tests. Also log error output in config.log.
63473
63474         2006-07-19  Bruno Haible  <bruno@clisp.org>
63475
63476                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63477                 that getline works on glibc2 systems. Needed to avoid trouble
63478                 in relocatable.c.
63479                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63480
63481         2005-12-04  Bruno Haible  <bruno@clisp.org>
63482
63483                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63484                 launcher (untested).
63485
63486         2005-12-04  Bruno Haible  <bruno@clisp.org>
63487
63488                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63489
63490         2006-07-22  Bruno Haible  <bruno@clisp.org>
63491
63492                 * gettext.m4: Update from GNU gettext-0.15.
63493                 * nls.m4: Likewise.
63494                 * po.m4: Likewise.
63495                 * inttypes-pri.m4: Likewise.
63496                 * inttypes-h.m4: Renamed from inttypes.m4.
63497                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63498
63499 2006-07-22  Bruno Haible  <bruno@clisp.org>
63500
63501         Merge from GNU gettext 0.15.
63502
63503         2005-07-05  Bruno Haible  <bruno@clisp.org>
63504
63505                 * printf-args.c (printf_fetchargs): Work around broken
63506                 definition of wint_t on mingw.
63507
63508         2005-02-12  Bruno Haible  <bruno@clisp.org>
63509
63510                 * xallocsa.h: Add extern "C" for C++.
63511
63512         2006-05-17  Bruno Haible  <bruno@clisp.org>
63513
63514                 Cygwin portability.
63515                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63516
63517         2006-04-30  Bruno Haible  <bruno@clisp.org>
63518
63519                 * progreloc.c: Include <mach-o/dyld.h> if available.
63520                 (find_executable): Use _NSGetExecutablePath when possible.
63521
63522         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63523
63524                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63525                 function.
63526
63527         2005-12-29  Bruno Haible  <bruno@clisp.org>
63528
63529                 * progreloc.c (set_program_name_and_installdir): Fix
63530                 compilation error.
63531
63532         2005-12-04  Bruno Haible  <bruno@clisp.org>
63533
63534                 Cygwin portability.
63535                 * progreloc.c: Include <windows.h> also on Cygwin.
63536                 (find_executable): Add support for Cygwin.
63537                 (set_program_name_and_installdir): Handle also platforms with
63538                 nonempty EXEEXT.
63539
63540         2006-07-11  Bruno Haible  <bruno@clisp.org>
63541
63542                 * javacomp.c: Fix a comment.
63543                 Reported by Jim Meyering.
63544
63545         2006-04-30  Bruno Haible  <bruno@clisp.org>
63546
63547                 * javacomp.h (compile_java_class): Add source_version,
63548                 target_version arguments.
63549                 * javacomp.c: Rewritten to choose only a compiler that
63550                 respects the specified source_version and target_version.
63551
63552         2006-06-27  Bruno Haible  <bruno@clisp.org>
63553
63554                 Assume correct S_ISDIR macro.
63555                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63556
63557         2006-07-22  Bruno Haible  <bruno@clisp.org>
63558
63559                 * javaversion.h: New file, from GNU gettext.
63560                 * javaversion.c: New file, from GNU gettext.
63561                 * javaversion.java: New file, from GNU gettext.
63562                 * javaversion.class: New file, from GNU gettext.
63563
63564         2006-05-17  Bruno Haible  <bruno@clisp.org>
63565
63566                 Cygwin portability.
63567                 * javaexec.c (execute_java_class): Test for jview program
63568                 also on Cygwin.
63569
63570         2006-04-09  Bruno Haible  <bruno@clisp.org>
63571
63572                 * fatal-signal.c: Don't include string.h.
63573                 (at_fatal_signal): Use a copying loop instead of memcpy.
63574
63575         2005-12-04  Bruno Haible  <bruno@clisp.org>
63576
63577                 * csharpexec.c: Add support for 'clix' launcher (untested).
63578                 (execute_csharp_using_sscli): New function.
63579                 (execute_csharp_program): Call it.
63580
63581         2006-06-21  Bruno Haible  <bruno@clisp.org>
63582
63583                 Avoid warnings from recent versions of mcs.
63584                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63585                 -o, -L, -r any more. Use options documented since mcs-1.0
63586                 instead. Similarly for -g.
63587
63588         2005-07-09  Bruno Haible  <bruno@clisp.org>
63589
63590                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63591                 add a .dll suffix.
63592                 Reported by Mark Junker <mjscod@gmx.de>.
63593
63594         2006-06-17  Bruno Haible  <bruno@clisp.org>
63595
63596                 * config.charset: Update for NetBSD 3.0.
63597
63598         2006-05-17  Bruno Haible  <bruno@clisp.org>
63599
63600                 Cygwin portability.
63601                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63602
63603         2006-05-16  Bruno Haible  <bruno@clisp.org>
63604
63605                 * localcharset.c [CYGWIN]: Include <windows.h>.
63606                 (get_charset_aliases): For Cygwin, return the same CPxxx
63607                 aliases list as under WIN32.
63608                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63609                 the environment variables. Fall back to GetACP().
63610
63611         2006-04-05  Bruno Haible  <bruno@clisp.org>
63612
63613                 * config.charset: Update Juan Manuel Guerrero's address.
63614
63615         2005-02-12  Bruno Haible  <bruno@clisp.org>
63616
63617                 * allocsa.h: Add extern "C" for C++.
63618
63619         2005-02-10  Bruno Haible  <bruno@clisp.org>
63620
63621                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63622                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63623
63624         2006-07-22  Bruno Haible  <bruno@clisp.org>
63625
63626                 * gettext.h: Update to GNU gettext-0.15.
63627
63628 2006-07-22  Bruno Haible  <bruno@clisp.org>
63629
63630         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63631         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63632         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63633
63634 2006-07-21  Eric Blake  <ebb9@byu.net>
63635
63636         * modules/stdlib-safer: New file.
63637         * MODULES.html.sh (File stream based Input/Output): Add
63638         stdlib-safer.
63639
63640 2006-07-21  Eric Blake  <ebb9@byu.net>
63641
63642         * lib/stdlib-safer.h: New file from coreutils, required by
63643         stdlib--.h.
63644
63645 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63646
63647         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63648
63649 2006-07-20  Bruno Haible  <bruno@clisp.org>
63650
63651         * gnulib-tool: Recognize new option --assume-autoconf.
63652         (autoconf_minversion): New variable.
63653         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63654
63655 2006-07-20  Bruno Haible  <bruno@clisp.org>
63656
63657         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63658
63659 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63660
63661         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63662         Reindent and repaginate.
63663
63664 2006-07-19  Derek Price  <derek@ximbiot.com>
63665
63666         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63667         Correct grammar.
63668
63669 2006-07-17  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/list: New file.
63672         * modules/array-list: New file.
63673         * modules/carray-list, modules/carray-list-tests: New files.
63674         * modules/linked-list, modules/linked-list-tests: New files.
63675         * modules/avltree-list, modules/avltree-list-tests: New files.
63676         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63677         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63678         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63679         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63680         * modules/oset: New file.
63681         * modules/array-oset: New file.
63682         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63683         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63684         * tests/test-carray_list.c: New file.
63685         * tests/test-linked_list.c: New file.
63686         * tests/test-avltree_list.c: New file.
63687         * tests/test-rbtree_list.c: New file.
63688         * tests/test-linkedhash_list.c: New file.
63689         * tests/test-avltreehash_list.c: New file.
63690         * tests/test-rbtreehash_list.c: New file.
63691         * tests/test-avltree_oset.c: New file.
63692         * tests/test-rbtree_oset.c: New file.
63693         * MODULES.html.sh (Container data structures): New section.
63694
63695 2006-07-17  Bruno Haible  <bruno@clisp.org>
63696
63697         * m4/gl_list.m4: New file.
63698
63699 2006-07-17  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/gl_list.h: New file.
63702         * lib/gl_list.c: New file.
63703         * lib/gl_array_list.h: New file.
63704         * lib/gl_array_list.c: New file.
63705         * lib/gl_carray_list.h: New file.
63706         * lib/gl_carray_list.c: New file.
63707         * lib/gl_linked_list.h: New file.
63708         * lib/gl_linked_list.c: New file.
63709         * lib/gl_anylinked_list1.h: New file.
63710         * lib/gl_anylinked_list2.h: New file.
63711         * lib/gl_avltree_list.h: New file.
63712         * lib/gl_avltree_list.c: New file.
63713         * lib/gl_anyavltree_list1.h: New file.
63714         * lib/gl_anyavltree_list2.h: New file.
63715         * lib/gl_rbtree_list.h: New file.
63716         * lib/gl_rbtree_list.c: New file.
63717         * lib/gl_anyrbtree_list1.h: New file.
63718         * lib/gl_anyrbtree_list2.h: New file.
63719         * lib/gl_anytree_list1.h: New file.
63720         * lib/gl_anytree_list2.h: New file.
63721         * lib/gl_linkedhash_list.h: New file.
63722         * lib/gl_linkedhash_list.c: New file.
63723         * lib/gl_anyhash_list1.h: New file.
63724         * lib/gl_anyhash_list2.h: New file.
63725         * lib/gl_avltreehash_list.h: New file.
63726         * lib/gl_avltreehash_list.c: New file.
63727         * lib/gl_rbtreehash_list.h: New file.
63728         * lib/gl_rbtreehash_list.c: New file.
63729         * lib/gl_anytreehash_list1.h: New file.
63730         * lib/gl_anytreehash_list2.h: New file.
63731
63732         * lib/gl_oset.h: New file.
63733         * lib/gl_oset.c: New file.
63734         * lib/gl_array_oset.h: New file.
63735         * lib/gl_array_oset.c: New file.
63736         * lib/gl_avltree_oset.h: New file.
63737         * lib/gl_avltree_oset.c: New file.
63738         * lib/gl_rbtree_oset.h: New file.
63739         * lib/gl_rbtree_oset.c: New file.
63740         * lib/gl_anytree_oset.h: New file.
63741
63742 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * m4/mkancesdirs.m4: New file.
63745         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63746         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63747         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63748         it.
63749
63750 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63753         * lib/mkancesdirs.h: New files.
63754         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63755         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63756         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63757         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63758         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63759         callers changed.  Revamp internals significantly, by not
63760         attempting to create directories that are temporarily more
63761         permissive than the final results.  Do not attempt to use
63762         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63763         This removes some race conditions, fixes some bugs, and simplifies
63764         things.  Use new dirchownmod function to do owner and mode changes.
63765         * lib/mkdir-p.h: Likewise.
63766         * lib/modechange.c (octal_to_mode): New function.
63767         (struct mode_change): New member mentioned.
63768         (make_node_op_equals): New arg mentioned.  All callers changed.
63769         (mode_compile): Keep track of which mode bits the user has explicitly
63770         mentioned.
63771         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63772         New arg PMODE_BITS, to keep track of which mode bits the user
63773         mentioned; it treats S_ISUID and S_ISGID speciall.
63774         All callers changed.
63775         * lib/modechange.h: Likewise.
63776
63777 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63778
63779         * MODULES.html.sh: Add mkancestors.
63780         * modules/mkancesdirs: New module.
63781         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63782         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63783         The chdir-safer and afs files are now orphans; I'll remove them
63784         unless someone speaks up.
63785         Add lib/dirchownmod.c, lib/dirchownmod.h.
63786         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63787         Add lchown, mkancesdirs.
63788         (Maintainer): Add self.
63789
63790 2006-07-15  Karl Berry  <karl@gnu.org>
63791
63792         * gnulib-tool: help message wording/arrangement.
63793
63794 2006-07-14  Simon Josefsson  <jas@extundo.com>
63795
63796         * doc/gnulib.texi (Libtool and Windows): New section.
63797
63798 2006-07-12  Simon Josefsson  <jas@extundo.com>
63799
63800         * modules/gendocs (License): Fix license, approved by Karl.
63801
63802 2006-07-12  Eric Blake  <ebb9@byu.net>
63803
63804         * MODULES.html.sh: Add gendocs.
63805
63806 2006-07-11  Eric Blake  <ebb9@byu.net>
63807
63808         * modules/fdl: New module, to install doc/fdl.texi.
63809         * MODULES.html.sh: Add new section for documentation modules.
63810         * gnulib-tool: Avoid space-tab.
63811         (--doc-base): New option, to manage files from doc.
63812
63813 2006-07-11  Eric Blake  <ebb9@byu.net>
63814
63815         * m4/absolute-header.m4: Fix comments to match recent change.
63816
63817 2006-07-11  Eric Blake  <ebb9@byu.net>
63818
63819         * gnulib-tool: List --doc-base before --tests-base.
63820
63821 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63822
63823         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63824
63825 2006-07-11  Bruno Haible  <bruno@clisp.org>
63826
63827         * README: Mention where to put documentation.
63828
63829 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63830
63831         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63832
63833 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63836         to stdint.m4.
63837
63838 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63839
63840         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63841         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63842         "no/such/file/stdint.h" when there is no such file, so that
63843         the resulting C code can be parsed by dodgy compilers.
63844         Problems reported by Bob Proulx.
63845
63846 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63847
63848         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63849         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63850         macros into the GNU _D_EXACT_NAMLEN.
63851         * lib/savedir.c:  Likewise.
63852         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63853
63854 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63855         and Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63858         * m4/savedir.m4:
63859         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63860         macros into the GNU _D_EXACT_NAMLEN.
63861
63862 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63865         around the absolute name, to work around a problem with the HP-UX
63866         11.23 native C compiler, reported by Bob Proulx.
63867
63868 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * doc/maintain.texi, make-stds.texi: Sync from
63871         <http://savannah.gnu.org/projects/gnustandards>.
63872
63873 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63876
63877 2006-07-09  Jim Meyering  <jim@meyering.net>
63878
63879         * m4/glob.m4: Remove a doubled word in a comment.
63880
63881 2006-07-09  Jim Meyering  <jim@meyering.net>
63882
63883         * lib/argp-pv.c: Remove a doubled word in a comment.
63884         * lib/check-version.c (check_version): Likewise.
63885         * lib/javacomp.c (compile_java_class): Likewise.
63886
63887 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63890         for the benefit of people using Autoconf 2.60.  If you want to
63891         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63892         (or m4/onceonly.m4, if pre-2.57) manually.
63893
63894 2006-07-08  Jim Meyering  <jim@meyering.net>
63895
63896         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63897         comment.
63898         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63899         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63900         comment.
63901
63902 2006-07-08  Jim Meyering  <jim@meyering.net>
63903
63904         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63905
63906 2006-07-07  Simon Josefsson  <jas@extundo.com>
63907
63908         * tests/test-crc.c: Change expected crc value, the test vector
63909         were probably computed using the old broken crc.c?
63910
63911 2006-07-06  Simon Josefsson  <jas@extundo.com>
63912
63913         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63914         now the canonical place for the M4 file).
63915
63916         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63917         from the sys_socket dependency now.
63918
63919         * modules/inet_pton (Files): Ditto.
63920
63921         * modules/inet_ntop (Files): Ditto.
63922
63923 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63924
63925         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63926         not gl_PREREQ_GETUSERSHELL.
63927
63928 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63929
63930         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63931         with only one argument, for Autoconf 2.60.
63932         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63933         expand to nothing, so add a shell command to avoid syntax error.
63934         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63935
63936 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63937
63938         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63939
63940 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63943         no longer needed.  Check for isblank decl.
63944         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63945         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63946         of existence.
63947
63948 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         * lib/getloadavg.c: Use __VMS, not VMS.
63951         * lib/getopt.c: Likewise.
63952         * lib/getpagesize.h: Likewise.
63953         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63954         and probably does not work.
63955
63956 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         * lib/.cppi-disable: Add wcwidth.
63959         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63960         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63961         (ISGRAPH): Remove.  All uses changed to isgraph.
63962         (FOLD) [!defined _LIBC]: Remove special case.
63963         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63964         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63965         HAVE_ISBLANK.
63966         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63967         case.
63968
63969 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63970
63971         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63972         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63973         brackets.  Other minor changes to suppress some compiler
63974         warnings.
63975
63976 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63977         and Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63980         of invoking obsolescent AC_HEADER_DIRENT macro.
63981         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63982         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63983         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63984         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63985         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63986         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63987         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63988         * m4/readdir.m4: Remove; no longer needed.
63989
63990 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63991         and Paul Eggert  <eggert@cs.ucla.edu>
63992
63993         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63994         Don't worry about this obsolete case any more.
63995         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63996         directories.
63997         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63998         worry about this obsolete case any more.
63999         * lib/fts.c: Likewise.
64000         * lib/getcwd.c: Likewise.
64001         * lib/glob.h: Likewise.
64002         * lib/savedir.c: Likewise.
64003
64004 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64007         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64008         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64009         needed.
64010         All uses removed.
64011         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64012         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64013         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64014         needed.
64015         * m4/getdate.m4 (gl_GETDATE): Likewise.
64016         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64017         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64018         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64019         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64020         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64022         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64023         needed.
64024
64025 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * lib/memcasecmp.c: Include <limits.h>.
64028         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64029         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64030         Don't assume isdigit succeeds only on '0' through '9'.
64031
64032 2006-07-05  Eric Blake  <ebb9@byu.net>
64033
64034         * modules/getaddrinfo (Depends-on): Add snprintf.
64035
64036 2006-07-05  Eric Blake  <ebb9@byu.net>
64037
64038         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64039         to avoid 'header present but could not be compiled' on cygwin.
64040
64041 2006-07-05  Eric Blake  <ebb9@byu.net>
64042
64043         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64044         missing from netdb.h.
64045         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64046
64047 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64048
64049         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64050         no longer needed.
64051         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64052         * m4/getdate.m4 (gl_GETDATE): Likewise.
64053         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64054         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64055         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64056         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64057         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64058
64059 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64060
64061         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64062         All uses of is_space replaced by isspace.
64063         * lib/exit.h: Don't talk about STDC_HEADERS.
64064         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64065         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64066         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64067         replaced by isprint etc.
64068         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64069         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64070         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64071         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64072         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64073         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64074
64075 2006-07-05  Bruno Haible  <bruno@clisp.org>
64076
64077         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64078         the function exists, before testing against AIX.
64079         Reported by Martin Lambers <marlam@marlam.de>.
64080
64081 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64084         From Mark D. Baushke.
64085
64086 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64089         to the absolute name, not just one, to bypass Sun C 5.8's
64090         "warning: #include of /usr/include/... may be non-portable".
64091
64092 2006-07-04  Eric Blake  <ebb9@byu.net>
64093
64094         * modules/dirname-tests: New test module.
64095         * tests/test-dirname.c: New file, replacing dirname.c
64096         TEST_DIRNAME section that was recently deleted.
64097
64098 2006-07-04  Bruno Haible  <bruno@clisp.org>
64099
64100         Assume ANSI C header files and <ctype.h> functions.
64101         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64102         (mbsnwidth): Use isprint, iscntrl instead.
64103
64104 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64105
64106         Merge from coreutils.
64107         * MODULES.html.sh: Add xstrtold.
64108         * modules/xstrtold: New file.
64109         * modules/cycle-check (Files): Add lib/same-inode.h.
64110         * modules/dirname (Files): Add m4/double-slash-root.m4.
64111         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64112         * modules/mkdir-p (Files): Add lib/same-inode.h.
64113         * modules/same (Files): Add lib/same-inode.h.
64114
64115 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64118         This is to keep the terminology clean; POSIX talks about
64119         "absolute pathnames", not "full pathnames", but the GNU
64120         Coding Standards say to use "path" for something else;
64121         so use "absolute" to keep both sides happy.
64122         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64123         Set gl_absolute_header, not gl_full_header_path.
64124         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64125         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64126         All uses changed.
64127
64128         Merge from coreutils.
64129
64130         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64133         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64134         want to require the building of c-strtod.o.
64135         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64136         needs -lm directly.
64137         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64138
64139         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64142         --as-needed option if available.  Problem reported by Albert Chin in
64143         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64144         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64145         cc merely issues a bunch of annoying warnings for --as-needed
64146         (this problem was reported by Bob Proulx).  Also, try linking with
64147         -lm to detect a bug in binutils 2.16 (this problem was reported
64148         by Ralf Wildenhues).
64149
64150         2006-06-18  Jim Meyering  <jim@meyering.net>
64151
64152         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64153         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64154         macro.
64155         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64156         also check for glibc-2.4's abort-inducing bug.
64157
64158         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64159         Low-probability clean-up should be to use rmdir to get rid of
64160         the just-created directory, not unlink.
64161
64162         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64163         configure fail, and request a bug report to inform us about it.
64164         Add a comment that, barring reports to the contrary, in 2007 we'll
64165         assume ftruncate is universally available.
64166
64167         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64170
64171         2006-03-12  Jim Meyering  <jim@meyering.net>
64172
64173         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64174         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64175         * m4/same.m4 (gl_SAME): Likewise.
64176         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64177
64178         2006-03-11  Eric Blake  <ebb9@byu.net>
64179
64180         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64181         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64182         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64183         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64184
64185 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64186
64187         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64188         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64189         reported by Mark D. Baushke, one in
64190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64191
64192         Merge from coreutils.
64193
64194         * lib/.cppi-disable: Add stdint_.h.
64195         * lib/.cvsignore: Add stdint.h.
64196
64197         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64198
64199         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64200         both double and long double versions.
64201         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64202         * lib/xstrtold.c: New file.
64203         * lib/xstrtod.h (xstrtold): New decl.
64204
64205         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         * lib/filemode.c (setst): Remove.
64208         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64209         (arguably) clearer, and the generated code is a bit smaller on my
64210         Debian GNU/Linux stable x86 host.
64211
64212         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64215         Assume that filemode.h includes sys/types.h and sys/stat.h.
64216         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64217         (ftypelet): Reorder to put common cases first, for efficiency.
64218         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64219         to do 'M'.
64220         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64221         of 10, for compatibility with FreeBSD.  All callers changed.
64222         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64223         types that can't be deduced solely from st_mode.  First arg is now a
64224         const pointer.
64225         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64226         (strmode): Renamed from mode_string.
64227         (filemodestring): New decl.
64228         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64229         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64230         needed.
64231         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64232
64233         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64236         fsusage.h now does that.  Include fsusage.h first, to test interface.
64237         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64238         at most one method (the old code could have generated decls that
64239         didn't conform to C89, not that this was ever exercised).
64240         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64241
64242         2006-03-19  Jim Meyering  <jim@meyering.net>
64243
64244         Work even in a chroot where d_ino values for entries in "/"
64245         don't match the stat.st_ino values for the same names.
64246         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64247         number, iterate through all entries again, using lstat instead.
64248         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64249         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64250
64251         * lib/getcwd.c (__getcwd): Clarify a comment.
64252         Use memcpy in place of a call to strcpy.
64253
64254         2006-03-12  Jim Meyering  <jim@meyering.net>
64255
64256         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64257         matches that of the current directory (which we're about to chdir ".."
64258         out of), then save the dev-ino of the parent, instead.
64259
64260         * lib/same-inode.h (SAME_INODE): New file/macro.
64261         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64262         Include "same-inode.h", instead.
64263         * lib/same.c: Likewise.
64264         * lib/cycle-check.h: Include "same-inode.h".
64265         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64266         * lib/cycle-check.c (SAME_INODE): Remove definition.
64267         * lib/root-dev-ino.h: Include "same-inode.h".
64268
64269         2006-03-11  Eric Blake  <ebb9@byu.net>
64270
64271         * lib/same.c (same_name): s/base_name/last_component/
64272         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64273         * lib/filenamecat.c (file_name_concat): Likewise.
64274
64275         2006-03-11  Eric Blake  <ebb9@byu.net>,
64276                     Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64279         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64280         drive prefix.
64281         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64282         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64283         (last_component): New method.
64284         * lib/dirname.c (dir_len): Determine when drive letters need a
64285         subsequent slash.  Preserve // when it is special.
64286         (dir_name): Don't append dot when drive letter is absolute.
64287         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64288         * lib/basename.c (base_name): New semantics - malloc the result.
64289         Preserve // when it is special.  Preserve relative files that look
64290         like drive letters.
64291         (base_len): Preserve // when it is special.
64292         (last_component): New method, similar to old base_name semantics.
64293         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64294         base_name.  Strip redundant slashes from ///.
64295
64296 2006-07-03  Jim Meyering  <jim@meyering.net>
64297
64298         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64299         macro is used before the first cycle_check call.
64300
64301 2006-07-03  Eric Blake  <ebb9@byu.net>
64302
64303         * modules/dirname (Depends-on): Add xstrndup.
64304
64305 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64308         test cases, so that config.log is a bit easier to follow.
64309
64310 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64311
64312         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64313         both are 64 bits, since this seems to be the tradition, and this
64314         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64315         we ever run into a host that prefers long long to long in this
64316         case, we'll need another configure-time test.  Problem reported by
64317         Jim Meyering.
64318
64319 2006-07-02  Eric Blake  <ebb9@byu.net>
64320
64321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64322
64323 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64324
64325         * modules/inttypes (Depends-on): No longer depends on stdint.
64326         * modules/stdint (Description): Say more about assumptions.
64327         Say that the fast types might differ.  Say macros are used.
64328         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64329         (Makefile.am): Revise list of substituted symbols to match
64330         new stdint.m4.
64331         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64332         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64333         * tests/test-stdint.c (verify_same_types)
64334         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64335         the code conforms to C99/C89.
64336         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64337         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64338
64339 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64342         but fix a bug, by requiring at least 64 bits.
64343         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64344         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64345         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64346         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64347
64348         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64349         changes.  Make 2.59 a prerequisite.  Check and substitute for
64350         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64351         inttypes.h.  Do not use special include files; just use the
64352         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64353         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64354         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64355         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64356         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64357         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64358         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64359         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64360         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64361         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64362         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64363         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64364         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64365         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64366         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64367         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64368         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64369         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64370         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64371         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64372         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64373         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64374         not check for things that C99 does not require, e.g., int8_t.  If
64375         a test isn't needed unless <stdint.h> isn't working, and is
64376         unlikely to be needed for any other reason, then don't do it
64377         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64378         size_t, since we assume C89 freestanding at least.  Do not check
64379         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64380         the right thing even if the types are not defined.  Instead use:
64381         (gl_STDINT_TYPE_PROPERTIES): New macro.
64382         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64383         testing whether <sys/types.h> clashes, as Autoconf does this for
64384         us now.  All uses removed.
64385         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64386         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64387         (gl_CHECK_TYPE_SAME):
64388         Remove; no longer needed.
64389         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64390         exists, since we'll return 0 anyway in that case.
64391         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64392
64393 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64394
64395         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64396         possible collision with system files.
64397         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64398         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64399         WCHAR_MIN and WCHAR_MAX in this case.
64400         (<stddef.h>): Do not include; no longer needed.
64401         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64402         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64403         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64404         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64405         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64406         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64407         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64408         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64409         !defined(__c99))]: Include in this case too, since it's harmless
64410         now.
64411         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64412         dangerous to do so.
64413         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64414         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64415         (_STDINT_MIN, _STDINT_MAX): New macros.
64416         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64417         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64418         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64419         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64420         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64421         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64422         macros, not typedefs; this simplifies things quite a bit.
64423         Use long int for all types narrower than int64_t.
64424         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64425         Define in terms of long long int or int64_t or long int,
64426         not int64_t or int32_t.  This saves some compile-time testing.
64427         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64428         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64429         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64430         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64431         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64432         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64433         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64434         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64435         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64436         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64437         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64438         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64439         undef any previous version and define our own version, for
64440         simplicity and consistency with the new macros for types.
64441         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64442         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64443         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64444         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64445         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64446         @WINT_T_SUFFIX@ to keep things simple here.
64447         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64448         Simplify by assuming typical 8/16/32/64 host, since we're
64449         already doing that elsewhere anyway.
64450         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64451         and assume long long int is 64 bits if available.  This
64452         speeds up 'configure'.
64453
64454 2006-07-01  Eric Blake  <ebb9@byu.net>
64455
64456         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64457         Reported by Andreas Buening.
64458
64459 2006-07-01  Eric Blake  <ebb9@byu.net>
64460
64461         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64462
64463 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64464
64465         * lib/getaddrinfo.c: fixed typo
64466
64467 2006-06-29  Jim Meyering  <jim@meyering.net>
64468
64469         * modules/strftime (Maintainer): Add my name, since with the
64470         FPRINTFTIME changes strftime.c has forked from glibc.
64471
64472 2006-06-29  Eric Blake  <ebb9@byu.net>
64473
64474         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64475
64476 2006-06-29  Eric Blake  <ebb9@byu.net>
64477
64478         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64479
64480 2006-06-29  Eric Blake  <ebb9@byu.net>
64481
64482         * lib/stat_.h: New file.
64483
64484 2006-06-29  Eric Blake  <ebb9@byu.net>
64485
64486         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64487         unused static function.
64488
64489 2006-06-29  Eric Blake  <ebb9@byu.net>
64490
64491         * doc/functions.texi (Function Portability): Document missing lstat
64492         on mingw.
64493
64494 2006-06-29  Eric Blake  <ebb9@byu.net>
64495
64496         * MODULES.html.sh: Add sys_stat.
64497         * modules/sys_stat: New module.
64498         * modules/mkstemp (Depends-on): Add sys_stat.
64499
64500 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64501
64502         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64503
64504 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64505
64506         * m4/c-bs-a.m4: Removed.
64507
64508 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64509
64510         * lib/strftime.c: Assume strftime() exists.
64511
64512 2006-06-29  Derek Price  <derek@ximbiot.com>
64513
64514         * modules/c-bs-a: Removed - \a is C89.
64515         * MODULES.html.sh: Remove c-bs-a.
64516
64517 2006-06-29  Bruno Haible  <bruno@clisp.org>
64518
64519         * modules/wcwidth (License): Change to LGPL.
64520
64521 2006-06-28  Simon Josefsson  <jas@extundo.com>
64522
64523         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64524         on _WIN32.
64525
64526         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64527         getnameinfo.
64528
64529 2006-06-28  Simon Josefsson  <jas@extundo.com>
64530
64531         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64532
64533 2006-06-28  Simon Josefsson  <jas@extundo.com>
64534
64535         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64536         functions there.  It will succeed on Windows XP, but on Windows
64537         2000 and (presumably) earlier, it will fail, and use the internal
64538         re-implementation.
64539         (use_win32_p): New function.
64540         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64541         Support AI_NUMERICSERV to disable getservbyname.
64542         (getnameinfo): New function, only supports
64543         NI_NUMERICHOST|NI_NUMERICSERV for now.
64544
64545         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64546         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64547         getnameinfo.
64548
64549 2006-06-28  Eric Blake  <ebb9@byu.net>
64550
64551         * modules/wcwidth: New file.
64552         * modules/mbchar (Depends-on): Add wcwidth.
64553         * modules/mbswidth (Depends-on): Add wcwidth.
64554         * MODULES.html.sh: Add wcwidth.
64555
64556 2006-06-28  Eric Blake  <ebb9@byu.net>
64557
64558         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64560
64561 2006-06-28  Eric Blake  <ebb9@byu.net>
64562
64563         * lib/xvasprintf.h: Fix comments.
64564
64565 2006-06-28  Eric Blake  <ebb9@byu.net>
64566
64567         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64568         * lib/mbswidth.c (wcwidth): Move from here...
64569         * lib/wcwidth.h: ...to this new file.
64570
64571 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64572
64573         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64574
64575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64576         it's obsolete.
64577         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64578
64579 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64580
64581         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64582         Autoconf 2.60 says this stuff was obsolete.
64583
64584 2006-06-28  Bruno Haible  <bruno@clisp.org>
64585
64586         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64587
64588 2006-06-28  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64591         gt_TYPE_WCHAR_T.
64592
64593 2006-06-28  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64596         declaration for wcwidth.
64597         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64598
64599 2006-06-28  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64602         (mkdir): Define using _mkdir.
64603
64604 2006-06-28  Bruno Haible  <bruno@clisp.org>
64605
64606         * lib/getaddrinfo.h: Fix POSIX URL.
64607         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64608         _WIN32.
64609         (use_win32_p): Make static.
64610         (getaddrinfo): Reject service name if it is empty or does not consist
64611         solely of decimal digits, or if its value is > 65535.
64612         (getnameinfo): Remove useless casts.
64613
64614 2006-06-27  Simon Josefsson  <jas@extundo.com>
64615
64616         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64617         Eggert and Martin Lambers.
64618
64619 2006-06-27  Simon Josefsson  <jas@extundo.com>
64620
64621         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64622         Eggert and Martin Lambers.
64623
64624 2006-06-27  Bruno Haible  <bruno@clisp.org>
64625
64626         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64627         result to 0, not to empty.
64628         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64629
64630 2006-06-27  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64633
64634 2006-06-26  Simon Josefsson  <jas@extundo.com>
64635
64636         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64637         present.
64638
64639 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64640
64641         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64642         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64643         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64644
64645 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64646
64647         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64648
64649 2006-06-26  Bruno Haible  <bruno@clisp.org>
64650
64651         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64652
64653 2006-06-26  Bruno Haible  <bruno@clisp.org>
64654
64655         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64656
64657 2006-06-26  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64660         SGI C compiler in pre-C99 mode.
64661         Suggested by Mark D. Baushke and Larry Jones.
64662
64663 2006-06-26  Bruno Haible  <bruno@clisp.org>
64664
64665         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64666         WCHAR_MAX.
64667         Reported by Mark D. Baushke and Larry Jones.
64668
64669 2006-06-26  Bruno Haible  <bruno@clisp.org>
64670
64671         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64672         in pre-C99 mode.
64673         Suggested by Mark D. Baushke and Larry Jones.
64674
64675 2006-06-23  Simon Josefsson  <jas@extundo.com>
64676             Bruno Haible  <bruno@clisp.org>
64677
64678         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64679         Emit mostlyclean-local rule.
64680         (func_emit_tests_Makefile_am): Likewise.
64681         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64682
64683 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64684
64685         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64686
64687 2006-06-23  Bruno Haible  <bruno@clisp.org>
64688
64689         * tests/test-stdint.c: Update to match ISO C 99 Technical
64690         Corrigendum 1.
64691
64692 2006-06-23  Bruno Haible  <bruno@clisp.org>
64693
64694         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64695
64696 2006-06-23  Bruno Haible  <bruno@clisp.org>
64697
64698         * lib/stdint_.h: Treat IRIX like OpenBSD.
64699
64700 2006-06-23  Bruno Haible  <bruno@clisp.org>
64701
64702         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64703         ISO C 99 Technical Corrigendum 1.
64704
64705 2006-06-22  Simon Josefsson  <jas@extundo.com>
64706
64707         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64708         MinGW.
64709
64710 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64713         needed.  Some compiler complained about some of them.  Problem reported
64714         by Larry Jones in
64715         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64716
64717 2006-06-21  Simon Josefsson  <jas@extundo.com>
64718
64719         * tests/test-getaddrinfo.c: New file.
64720
64721         * modules/getaddrinfo-tests: New file.
64722
64723         * MODULES.html.sh: Add inet_pton.
64724
64725         * modules/inet_pton: New file.
64726
64727 2006-06-21  Simon Josefsson  <jas@extundo.com>
64728
64729         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64730         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64731         of using the (limited) gnulib implementation on Windows XP.
64732
64733         * m4/inet_pton.m4: New file.
64734
64735 2006-06-21  Simon Josefsson  <jas@extundo.com>
64736
64737         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64738         variable.
64739
64740         * lib/socket_.h: Don't define WINVER.
64741
64742         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64743         slightly modified to work in gnulib.
64744
64745 2006-06-21  Simon Josefsson  <jas@extundo.com>
64746
64747         * doc/gnulib.texi (Windows sockets): Add.
64748
64749 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64750
64751         * lib/read-file.c (fread_file): Start with buffer allocation of
64752         0 bytes rather than 1 byte; this simplifies the code.
64753         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64754         code to free buffer and save/restore errno.
64755         (internal_read_file): Remove unused local.
64756
64757 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64758
64759         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64760         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64761         Problem reported by Denis Excoffier in
64762         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64763
64764 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64765
64766         * modules/sys_socket, modules/socklen: Include sys/types since
64767         FreeBSD 4.x's sys/socket.h needs it.
64768
64769 2006-06-19  Simon Josefsson  <jas@extundo.com>
64770
64771         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64772
64773 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64774
64775         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64776
64777 2006-06-19  Bruno Haible  <bruno@clisp.org>
64778
64779         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64780         and FULL_PATH_INTTYPES_H in angle brackets.
64781         Reported by Mark D. Baushke <mdb@gnu.org>.
64782
64783 2006-06-17  Eric Blake  <ebb9@byu.net>
64784
64785         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64786         errno.
64787
64788 2006-06-17  Bruno Haible  <bruno@clisp.org>
64789
64790         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64791         <sys/inttypes.h>.
64792
64793 2006-06-17  Bruno Haible  <bruno@clisp.org>
64794
64795         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64796         whether errno is declared. Assume <errno.h> declares errno.
64797
64798 2006-06-17  Bruno Haible  <bruno@clisp.org>
64799
64800         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64801
64802 2006-06-17  Bruno Haible  <bruno@clisp.org>
64803
64804         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64805         problem on Solaris 2.5.1.
64806
64807 2006-06-16  Eric Blake  <ebb9@byu.net>
64808
64809         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64810         * lib/unicodeio.c [!defined errno]: Likewise.
64811         * lib/strtol.c [!defined errno]: Likewise.
64812         * lib/strtod.c [!defined errno]: Likewise.
64813
64814 2006-06-15  Eric Blake  <ebb9@byu.net>
64815
64816         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64817
64818 2006-06-15  Eric Blake  <ebb9@byu.net>
64819
64820         * config/srclist.txt (ssize_t.m4): Lose sync.
64821
64822 2006-06-15  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/stdint (Files): Include m4/full-header-path.m4,
64825         m4/size_max.m4, m4/wchar_t.m4.
64826         (Makefile.am): Many more substitutions.
64827         * modules/stdint-tests: New file.
64828         * tests/test-stdint.c: New file.
64829
64830 2006-06-15  Bruno Haible  <bruno@clisp.org>
64831
64832         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64833         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64834         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64835         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64836         gl_CHECK_TYPE_SAME): New macros.
64837
64838 2006-06-15  Bruno Haible  <bruno@clisp.org>
64839
64840         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64841
64842 2006-06-15  Bruno Haible  <bruno@clisp.org>
64843
64844         * lib/stdint_.h: Rewritten to be fully auto-configured.
64845         Fixes bug on HP-UX/IA64.
64846
64847 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64848
64849         * lib/getdate.y (__attribute__): Don't define if already defined.
64850         Problem reported by Larry Jones.
64851         * lib/utimens.c (__attribute__): Likewise.
64852
64853 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64856         reported by Andreas Schwab.
64857
64858 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64859             Bruno Haible  <bruno@clisp.org>
64860
64861         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64862         check for the declaration of strnlen and a run test that exposes the
64863         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64864         rpl_strndup.
64865
64866 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64867             Bruno Haible  <bruno@clisp.org>
64868
64869         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64870
64871 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64872
64873         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64874         compile test, for Tru64 4.0D.
64875
64876 2006-05-28  Karl Berry  <karl@gnu.org>
64877
64878         * config/srclist.txt (printf-args.c): lose sync.
64879
64880 2006-05-26  Martin Lambers  <marlam@marlam.de>
64881
64882         * lib/getpass.c: Updates the test for the native W32 API, and adds
64883         missing includes, thus fixing compilation warnings.
64884
64885 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64886
64887         * lib/exclude.c (exclude_fnmatch): New function.
64888         (excluded_file_name): Call exclude_fnmatch.
64889         * lib/exclude.h (excluded_file_name): New prototype
64890
64891 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64892
64893         * lib/tempname.c (small_open, large_open): New macros.
64894         (__open, __open64) [!_LIBC]: Remove.
64895         (__gen_tempname): Use small_open and large_open instead of __open
64896         and __open64.  This fixes a portability bug on HP-UX 11.11i
64897         reported by Simon Wing-Tang in
64898         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64899
64900 2006-05-24  Bruno Haible  <bruno@clisp.org>
64901
64902         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64903         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64904         Reported by Thorsten Maerz <torte@netztorte.de> via
64905         Aaron Stone <aaron@serendipity.cx>.
64906
64907 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64908
64909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64910         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64911         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64912         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64913         not really conditional on the cache.
64914         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64915
64916 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64919         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64920         (my_usleep): Don't mishandle maximum value.
64921
64922 2006-05-19  Jim Meyering  <jim@meyering.net>
64923
64924         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64925
64926 2006-05-17  Bruno Haible  <bruno@clisp.org>
64927
64928         Cygwin portability.
64929         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64930
64931 2006-05-17  Bruno Haible  <bruno@clisp.org>
64932
64933         * lib/stdint_.h: Fix recognition of Cygwin.
64934
64935 2006-05-15  Bruno Haible  <bruno@clisp.org>
64936
64937         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64938         on libtool patch by Ralf Wildenhues.
64939
64940 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64943         test for C99 conformance; (bool) 0.5 is an integer constant
64944         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64945         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64946
64947 2006-05-11  Simon Josefsson  <jas@extundo.com>
64948
64949         * m4/xvasprintf.m4: Fix obvious typo.
64950
64951 2006-05-11  Jim Meyering  <jim@meyering.net>
64952
64953         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64954         James Lemley.
64955
64956 2006-05-10  Simon Josefsson  <jas@extundo.com>
64957
64958         * lib/md4.c: Typo fix, update copyright years.
64959         (K1, K2): Don't use L because it turn computations into 64-bit on
64960         64-bit platforms.
64961
64962 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64963
64964         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64965         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64966         unwanted sign propagation, e.g., on hosts with 64-bit int.
64967         There still are some problems with reeelly weird theoretical hosts
64968         (e.g., 33-bit int) but it's not worth worrying about now.
64969         * lib/sha1.c (rol): Likewise.
64970         (K1, K2, K3, K4): Remove unnecessary L suffix.
64971
64972 2006-05-10  Bruno Haible  <bruno@clisp.org>
64973
64974         * lib/des.c: Cast to avoid warnings.
64975
64976 2006-05-09  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64979         (Depends-on): Depend also on xsize, stdarg.
64980         (configure.ac): Add gl_XVASPRINTF.
64981
64982 2006-05-09  Bruno Haible  <bruno@clisp.org>
64983
64984         * m4/xvasprintf.m4: New file.
64985
64986 2006-05-09  Bruno Haible  <bruno@clisp.org>
64987
64988         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64989         (EOVERFLOW): Define fallback value.
64990         (xstrcat): New function.
64991         (xvasprintf): Recognize the special case of a string concatenation.
64992
64993 2006-05-08  Eric Blake  <ebb9@byu.net>
64994
64995         * gnulib-tool (func_version): Base copyright year on CVS date.
64996         (func_emit_copyright_notice): New function.
64997         (func_emit_lib_Makefile_am): Use it.
64998         (func_emit_tests_Makefile_am): Likewise.
64999         (func_import): Likewise.
65000
65001 2006-05-08  Bruno Haible  <bruno@clisp.org>
65002
65003         * modules/stdarg: New file.
65004         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65005
65006 2006-05-08  Bruno Haible  <bruno@clisp.org>
65007
65008         * m4/stdarg.m4: New file, from GNU gettext.
65009
65010 2006-05-08  Bruno Haible  <bruno@clisp.org>
65011
65012         * config/srclist.txt (build-aux/config.rpath): different from latest
65013         release.
65014
65015 2006-05-08  Bruno Haible  <bruno@clisp.org>
65016
65017         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65018
65019 2006-05-05  Jim Meyering  <jim@meyering.net>
65020
65021         * m4/warning.m4: New file, derived from bison's file by the same name.
65022
65023 2006-05-03  Bruno Haible  <bruno@clisp.org>
65024
65025         * lib/stdint_.h: Shorter URL.
65026         * lib/inttypes.h: Likewise.
65027
65028 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65031
65032 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65033
65034         * lib/verify.h: Document the internals better.  Most of this change
65035         was written by Bruno Haible.
65036
65037 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65038
65039         * doc/verify.texi: New file, partly based on a proposal by
65040         Bruno Haible.
65041
65042 2006-05-02  Bruno Haible  <bruno@clisp.org>
65043
65044         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65045         test from here...
65046         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65047
65048 2006-04-29  Bruno Haible  <bruno@clisp.org>
65049
65050         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65051         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65052
65053 2006-04-29  Bruno Haible  <bruno@clisp.org>
65054
65055         * gnulib-tool: Make --update option actually work.
65056
65057 2006-04-29  Bruno Haible  <bruno@clisp.org>
65058
65059         * doc/gcd.texi: New file.
65060         * doc/gnulib.texi: Include it.
65061
65062 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65063
65064         * lib/getdate.y (get_date): When adding relative date, start with the
65065         initial time, not with the result of the first mktime call.
65066
65067 2006-04-25  Bruno Haible  <bruno@clisp.org>
65068
65069         * gnulib-tool (func_import): Output the include directives in three
65070         blocks, sorted separately.
65071         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65072
65073 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65076         to define main with arguments, for C++.  Reported by Eric Blake.
65077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65078         Prefer 'int main ()' to 'int main (void)', for C++.
65079         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65080         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65081         for 'main', for C99 and C++.
65082
65083 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65086         Don't assume that exit status -1 is valid.
65087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65088         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65089         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65090         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65091         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65092         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65093         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65094         functions can be used without declaring them, or that you can
65095         exit with status -1.
65096         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65097
65098 2006-04-24  Karl Berry  <karl@gnu.org>
65099
65100         * config/srclist.txt (longdouble.m4): sync lost.
65101
65102 2006-04-24  Eric Blake  <ebb9@byu.net>
65103
65104         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65105
65106 2006-04-24  Bruno Haible  <bruno@clisp.org>
65107
65108         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65109         poll() implementation in AIX.
65110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65111
65112 2006-04-24  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65115         assigned exactly once.
65116
65117 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65118             Bruno Haible  <bruno@clisp.org>
65119
65120         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65121         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65122         for AM_CPPFLAGS.
65123
65124 2006-04-23  Bruno Haible  <bruno@clisp.org>
65125
65126         * modules/copy-file: Depend on unistd.
65127         * modules/execute: Likewise.
65128         * modules/fatal-signal: Likewise.
65129         * modules/findprog: Likewise.
65130         * modules/mkdtemp : Likewise.
65131         * modules/pipe: Likewise.
65132         * modules/wait-process: Likewise.
65133
65134 2006-04-23  Bruno Haible  <bruno@clisp.org>
65135
65136         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65137         condition was already detected.
65138         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65139
65140 2006-04-23  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/copy-file.c: Include <unistd.h> unconditionally.
65143         * lib/execute.c: Likewise.
65144         * lib/fatal-signal.c: Likewise.
65145         * lib/findprog.c: Likewise.
65146         * lib/mkdtemp.c: Likewise.
65147         * lib/pipe.h: Likewise.
65148         * lib/pipe.c: Likewise.
65149         * lib/wait-process.h: Likewise.
65150
65151 2006-04-23  Bruno Haible  <bruno@clisp.org>
65152
65153         * gnulib-tool (func_usage): Fix --import description. Document
65154         --update.
65155         (func_import): Create temporary file in a temporary directory, if
65156         --dry-run is specified. Silence errors from 'grep' when there are no
65157         m4 files in $m4dir.
65158         (func_create_testdir): Silence errors from 'grep' when there are no
65159         m4 files in $m4dir.
65160         Reported by Karl Berry <karl@freefriends.org>.
65161
65162 2006-04-20  Bruno Haible  <bruno@clisp.org>
65163
65164         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65165         one argument, so that the code will be portable to Autoconf 2.60.
65166         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65167         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65168         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65169
65170 2006-04-19  Derek Price  <derek@ximbiot.com>
65171             Eric Blake  <ebb9@byu.net>
65172
65173         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65174         rather than "/full/path.h".  Update comment to match.  Shorten &
65175         generalize m4_translit call via AS_TR_CPP.
65176
65177 2006-04-19  Derek Price  <derek@ximbiot.com>
65178             Eric Blake  <ebb9@byu.net>
65179
65180         * lib/inttypes.h: Correct grammar in comment.
65181
65182 2006-04-18  Derek Price  <derek@ximbiot.com>
65183             Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * modules/inttypes: New file.
65186         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65187
65188 2006-04-18  Derek Price  <derek@ximbiot.com>
65189             Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65192         New files.
65193
65194 2006-04-18  Derek Price  <derek@ximbiot.com>
65195             Paul Eggert  <eggert@cs.ucla.edu>
65196
65197         * lib/inttypes.h: New file.
65198         * lib/strtoimax.c: Assume <inttypes.h>.
65199
65200 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65203         isn't mounted.  Problem reported by Kir Kolyshkin.
65204
65205 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65208         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65209         Derek R. Price.
65210         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65211         implementation.
65212
65213 2006-04-12  Eric Blake  <ebb9@byu.net>
65214
65215         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65216         is now done automatically by the corresponding Autoconf macro.
65217
65218 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65221         time_r.h.
65222
65223 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         Merge regex changes from libc, removing some of our
65226         POSIX-conformance changes that were rejected and redoing them in a
65227         less-intrusive way.
65228
65229         * lib/regcomp.c (re_compile_internal, init_dfa):
65230         Length arg is now size_t, not Idx.  All uses changed.
65231         (peek_token): Forward decl now says internal_function.
65232         (__re_error_msgid, __re_error_msgid_idx):
65233         Now static rather than extern with attribute_hidden.
65234         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65235         For some reason libc prefers K&R style defns for external functions.
65236         (regerror) [!defined _LIBC]: Likewise.
65237         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65238         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65239         (build_range_exp, build_collating_symbol):
65240         Use K&R-style defn.
65241         (re_compile_fastmap): Use '\0' to memset, not 0.
65242         (utf8_sb_map): Make the calculations more obvious.
65243         (init_dfa, parse_bracket_exp, build_charclass_op):
65244         Call calloc and cast result, as glibc does.
65245         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65246         (build_range_exp, build_collating_symbol):
65247         Now internal functions.
65248
65249         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65250
65251         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65252         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65253         Don't depend on VMS; depend on __VMS instead, for POSIX
65254         namespace cleanness.
65255         (regoff_t): Define to ssize_t, not long int.
65256
65257         Remove the REG_ macros named below.  Instead, make the old names
65258         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65259         __USE_GNU_REGEX.
65260         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65261         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65262         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65263         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65264         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65265         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65266         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65267         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65268         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65269         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65270         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65271         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65272         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65273         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65274         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65275         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65276         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65277         (REG_NREGS):
65278         Remove.  All uses replaced by the old RE_* names.
65279         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65280         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65281         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65282         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65283         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65284         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65285         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65286         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65287         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65288         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65289         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65290         Don't bother having these macros be independent of each others'
65291         values, since they no longer exist in the POSIX name space.
65292
65293         Rename the following member names back to their old names,
65294         unless !__USE_GNU_REGEX.  All uses changed back.
65295         (buffer): Renamed from re_buffer.
65296         (allocated): Renamed from re_allocated.
65297         (used): Renamed from re_used.
65298         (syntax): Renamed from re_syntax.
65299         (fastmap): Renamed from re_fastmap.
65300         (translate): Renamed from re_translate.
65301         (can_be_null): Renamed from re_can_be_null.
65302         (regs_allocated): Renamed from re_regs_allocated.
65303         (fastmap_accurate): Renamed from re_fastmap_accurate.
65304         (no_sub): Renamed from re_no_sub.
65305         (not_bol): Renamed from re_not_bol.
65306         (not_eol): Renamed from re_not_eol.
65307         (newline_anchor): Renamed from re_newline_anchor.
65308         (num_regs): Renamed from rm_num_regs.
65309         (start): Renamed from rm_start.
65310         (end): Renamed from rm_end.
65311
65312         (free_state): Move up a bit.
65313
65314         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65315         #define to be empty.
65316         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65317         when that is what is intended.
65318         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65319         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65320         (MAX): New macro.
65321         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65322         All uses changed back to re_malloc, etc.  It's now the caller's
65323         responsibility to check for overflow; all callers changed.
65324         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65325         (re_x2nrealloc): Remove.
65326         (free_state): Remove decl.
65327
65328         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65329         (re_set_registers, re_exec):
65330         Use K&R-style defn.
65331
65332         2006-01-31  Roland McGrath  <roland@redhat.com>
65333
65334         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65335         Reported by Mike Frysinger <vapier@gentoo.org>.
65336
65337         2006-01-15  Andreas Jaeger  <aj@suse.de>
65338
65339         [BZ #1950]
65340         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65341         build_wcs_upper_buffer change.
65342         (build_wcs_upper_buffer): Change return type.
65343
65344         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65345
65346         * lib/regex_internal.h: Include <stdint.h> if available.
65347
65348         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65349
65350         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65351
65352         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65353
65354         * lib/regcomp.c: Adjust for changed secondary hash function.
65355
65356         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65357
65358         * lib/regex.h: Pretty printing.
65359         Clean up namespace a bit.
65360
65361         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65362
65363         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65364         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65365
65366         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65367                     Ulrich Drepper  <drepper@redhat.com>
65368
65369         [BZ #1302]
65370         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65371         changed.
65372         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65373
65374         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65375
65376         [BZ #281]
65377         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65378         * lib/regcomp.c: Remove unnecessary uses of
65379         unsigned RE_TRANSLATE_TYPE.
65380         * lib/regex_internal.h: Likewise.
65381         * lib/regex_internal.c: Likewise.
65382         * lib/regexec.c: Likewise.
65383         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65384
65385         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65386
65387         * lib/regexec.c (find_recover_state): Remove unnecessary
65388         initialization.
65389         (transit_state_bkref): Make DFA a const pointer.
65390         (get_subexp): Likewise.
65391         (check_arrival): Likewise.
65392         (update_cur_sifted_state): Likewise.
65393         (re_search_internal): Likewise.
65394         (prune_impossible_nodes): Likewise.
65395         (acquire_init_state_context): Likewise.
65396         (proceed_next_node): Likewise.
65397         (set_regs): Likewise.
65398         (free_fail_stack_return): Likewise.
65399         (check_arrival_expand_ecl): Mark DFA parameter as const.
65400         (check_arrival_expand_ecl_sub): Likewise.
65401         (check_subexp_limits): Likewise.
65402         (sub_epsilon_src_nodes):  Likewise.
65403         (add_epsilon_src_nodes):  Likewise.
65404         (merge_state_array): Likewise.
65405         (update_regs): Likewise.
65406         (build_trtable): Likewise.
65407         (sift_states_backward): Mark MCTX parameter as const.
65408         (build_sifted_states): Likewise.
65409         (update_cur_sifted_state): Likewise.
65410         (sift_states_mkref): Likewise.
65411         (check_arrival_expand_ecl): Mark eclosure as const.
65412         (check_dst_limits_calc_pos_1): Likewise.
65413         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65414         pointer.
65415
65416         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65417
65418         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65419         (transit_state_sb): Likewise.
65420         (transit_state_mb): Likewise.
65421         (sift_states_iter_mb): Likewise.
65422         (check_arrival_add_next_nodes): Likewise.
65423         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65424         [_LIBC] (re_search_2_stub): Use mempcpy.
65425
65426         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65427         mbrtowc for very simple UTF-8 case.
65428
65429         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65430         a pointer-to-const.
65431         (re_acquire_state_context): Likewise.
65432         * lib/regex_internal.h: Adjust prototypes.
65433
65434         * lib/regex.c: Prevent using C++ compilers.
65435
65436         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65437         (re_acquire_state_context): Likewise.
65438
65439 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65440
65441         * modules/regex (Depends-on): Add ssize_t.
65442
65443 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65444
65445         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65446         translation table.
65447
65448 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65451
65452 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65453             Bruno Haible  <bruno@clisp.org>
65454
65455         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65456         <sys/types.h> and <inttypes.h>.
65457
65458 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65459
65460         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65461         `__error_t_defined', so argp.h will not typedef the former.
65462
65463 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65464
65465         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65466         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65467         glibc names.  Even if glibc is changed to conform to POSIX, the
65468         traditional names will be available anyway, since regex depends on
65469         the extensions module.  Also, fix a longstanding typo in the
65470         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65471         reported by Emanuele Giaquinta.  Also, change sense of cached
65472         variable, so that the message makes sense.
65473
65474 2006-03-24  Simon Josefsson  <jas@extundo.com>
65475
65476         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65477         including some doc fixes.
65478         (base64_encode_alloc): Fix +1 bug on allocation failures.
65479
65480 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65481
65482         * lib/base64.c (base64_encode): Do not read past end of array with
65483         unsanitized input on systems with CHAR_BIT > 8.
65484
65485 2006-03-24  Eric Blake  <ebb9@byu.net>
65486
65487         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65488
65489 2006-03-22  Karl Berry  <karl@gnu.org>
65490
65491         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65492         * config/srclistvars.sh (COREUTILS): new var.
65493
65494 2006-03-17  Jim Meyering  <jim@meyering.net>
65495
65496         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65497         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65498
65499 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65500
65501         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65502         no longer needs it.  Instead, check that regoff_t is as least
65503         as wide as ptrdiff_t.
65504
65505         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65506         so that our regex.h stays compatible with the installed regex.
65507         This is helpful for installers who configure --without-included-regex.
65508         Problem reported by Emanuele Giaquinta.
65509
65510 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65513         Typedef to long int, not to off_, as POSIX will likely change
65514         in that direction.
65515
65516 2006-03-15  Eric Blake  <ebb9@byu.net>
65517
65518         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65519
65520 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65521
65522         * lib/argp-help.c (validate_uparams): Fix typo
65523         * lib/argp-parse.c (argp_default_options): Consistently begin help
65524         messages with a lowercase letter.
65525
65526 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65527
65528         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65529         overrun buffers and shouldn't be used (much as gets shouldn't be
65530         used).
65531         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65532
65533 2006-03-08  Simon Josefsson  <jas@extundo.com>
65534
65535         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65536         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65537
65538 2006-03-08  Simon Josefsson  <jas@extundo.com>
65539
65540         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65541         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65542
65543 2006-03-08  Simon Josefsson  <jas@extundo.com>
65544
65545         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65546         signal that configure disabled the device.
65547
65548 2006-03-08  Simon Josefsson  <jas@extundo.com>
65549
65550         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65551         languages.
65552
65553 2006-03-07  Simon Josefsson  <jas@extundo.com>
65554
65555         * modules/getopt (Depends-on): Add unistd.
65556
65557         * modules/unistd: New file.
65558
65559 2006-03-07  Simon Josefsson  <jas@extundo.com>
65560
65561         * modules/gc-random: New file.
65562
65563 2006-03-07  Simon Josefsson  <jas@extundo.com>
65564
65565         * m4/unistd_h.m4: New file.
65566
65567 2006-03-07  Simon Josefsson  <jas@extundo.com>
65568
65569         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65570         test to be side-effect free by storing the result in the cache
65571         variable gl_cv_lib_readline, and moving the assignment of
65572         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65573         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65574
65575 2006-03-07  Simon Josefsson  <jas@extundo.com>
65576
65577         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65578         error on missing devices (the functions will return an error).
65579
65580         * m4/gc.m4: Move random stuff to gc-random.m4
65581
65582 2006-03-07  Simon Josefsson  <jas@extundo.com>
65583
65584         * lib/unistd_.h: New file.
65585
65586 2006-03-07  Simon Josefsson  <jas@extundo.com>
65587
65588         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65589
65590 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65593         Problem reported by Juan Manuel Guerrero.
65594
65595 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65596
65597         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65598         the unistd module.
65599         * lib/getlogin_r.c: Likewise.
65600         * lib/getlogin_r.h: Likewise.
65601         * lib/glob.c: Likewise.
65602         * lib/pagealign_alloc.c: Likewise.
65603         * lib/unistd_.h: Remove; no longer needed.
65604
65605 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65608         Add unistd.
65609         * modules/c-stack (Depends-on): Add unistd.
65610         * modules/getlogin_r: Likewise.
65611         * modules/glob: Likewise.
65612         * modules/pagealign_alloc: Likewise.
65613         * modules/unistd (Files): Remove lib/unistd_.h.
65614         (EXTRA_DIST): Remove.
65615         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65616         need unistd_.h.
65617         (MOSTLYCLEANFILES): Remove unistd.h-t.
65618
65619 2006-03-03  Simon Josefsson  <jas@extundo.com>
65620
65621         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65622
65623 2006-03-03  Simon Josefsson  <jas@extundo.com>
65624
65625         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65626         libidn and bison.
65627
65628 2006-03-03  Simon Josefsson  <jas@extundo.com>
65629
65630         * build-aux/maint.mk: Add indent target.
65631
65632 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65633
65634         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65635         our replacement poll.h in any case, to avoid a differing
65636         declaration from a system header.  Seen on AIX.
65637
65638 2006-03-01  Simon Josefsson  <jas@extundo.com>
65639
65640         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65641         <kasal@ucw.cz>.
65642
65643 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * modules/gettime (Depends-on): Add extensions module.
65646         * modules/nanosleep (Depends-on): Likewise.
65647         * modules/settime (Depends-on): Likewise.
65648
65649 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65650
65651         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65652         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65653         pedantically.
65654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65655         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65656
65657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65658         not "==".  Reported by Ralf Wildenhues.
65659
65660 2006-03-01  Karl Berry  <karl@gnu.org>
65661
65662         * doc/Copyright/request-*: new files, synced from gnuorg.
65663
65664 2006-03-01  Karl Berry  <karl@gnu.org>
65665
65666         * config/srclist.txt (Copyright/*): new entries.
65667
65668 2006-02-28  Simon Josefsson  <jas@extundo.com>
65669
65670         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65671
65672 2006-02-27  Simon Josefsson  <jas@extundo.com>
65673
65674         * lib/base64.h: Indent #define's.  From Jim Meyering
65675         <jim@meyering.net>.
65676
65677 2006-02-27  Jim Meyering  <jim@meyering.net>
65678
65679         Revert the change of 2006-02-24, so these files can continue
65680         to be sync'd from gettext.
65681         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65682         of `config.h'.
65683
65684 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * modules/intprops: New file.
65687         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65688         Add intprops.
65689         * modules/getloadavg (Files): Remove lib/intprops.h.
65690         (Depends-on): Add intprops.
65691         * modules/human: Likewise.
65692         * modules/inttostr: Likewise.
65693         * modules/openat: Likewise.
65694         * modules/sig2str: Likewise.
65695         * modules/userspec: Likewise.
65696         * modules/utimecmp: Likewise.
65697         * modules/xnanosleep: Likewise.
65698         * modules/xstrtol: Likewise.
65699
65700 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65701
65702         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65703         * modules/lock-tests (TESTS): Use $(EXEEXT).
65704         * modules/tls-tests: Likewise.
65705         * modules/argp-tests: Likewise.
65706         (check_PROGRAMS): New var, replacing...
65707         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65708
65709 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65710
65711         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65712         `config.h'.
65713
65714 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65717
65718 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65719
65720         Sync from coreutils.
65721         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65722         gl_CHDIR_SAFER.
65723
65724 2006-02-22  Jim Meyering  <jim@meyering.net>
65725
65726         Sync from coreutils.
65727         * m4/chdir-safer.m4: New file.
65728
65729 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65732         AT_FDCWD exceeds INT_MAX.
65733         * lib/openat.h (AT_FDCWD): Likewise.
65734
65735 2006-02-17  Eric Blake  <address@hidden>
65736
65737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65738
65739 2006-02-16  Simon Josefsson  <jas@extundo.com>
65740
65741         * modules/getaddrinfo (Depends-on): Add sys_socket.
65742
65743 2006-02-15  Simon Josefsson  <jas@extundo.com>
65744
65745         * build-aux/maint.mk: Add dsyntax-check rule.
65746
65747 2006-02-15  Eric Blake  <ebb9@byu.net>
65748
65749         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65750         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65751         'present but cannot compile' warnings on cygwin.
65752         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65753         use ws2tcpip.h if sys/socket.h works.
65754         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65755         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65756
65757 2006-02-14  Simon Josefsson  <jas@extundo.com>
65758
65759         * modules/maintainer-makefile (Files): Rename.
65760
65761         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65762         and (the local) Makefile.cfg to maint-cfg.mk.
65763
65764         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65765         to the latter.
65766
65767         * modules/maintainer-makefile: New module.
65768
65769         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65770         severaly stripped to make it possible to build it up from scratch
65771         with reliable tests.
65772
65773         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65774         fixes to permit overriding the default actions when configure and
65775         makefile are not available.
65776
65777 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         Sync from coreutils.
65780         * modules/lstat (Depends-on): Don't depend on xalloc.
65781         (License): Change from GPL to LGPL, since this is now simply a
65782         replacement for a libc function.
65783
65784 2006-02-14  Jim Meyering  <jim@meyering.net>
65785
65786         Sync from coreutils.
65787
65788         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65789         failure on deficient systems, and simplify gnulib lgpl dependencies.
65790         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65791         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65792
65793         * lib/xalloc-die.c: Remove unused definition of N_.
65794
65795 2006-02-14  Jim Meyering  <jim@meyering.net>
65796
65797         Sync from coreutils.
65798         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65799         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65800         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65801         double-quote uses of that variable, to accommodate the rare case in
65802         which getmntent is available in none of the libraries checked.  This
65803         happens at least on FreeBSD 5.0.
65804
65805 2006-02-13  Simon Josefsson  <jas@extundo.com>
65806
65807         * gnulib-tool (Usage): Fix --import, from
65808         karl@freefriends.org (Karl Berry).
65809
65810 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65811
65812         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65813
65814 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65815
65816         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65817         "autoupdate" on 2005-12-12.
65818
65819 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         * modules/closeout (Depends-on): Remove atexit.
65822
65823 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65826         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65827
65828 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65831         __EXTENSIONS__ if this causes compilation to fail.  Problem
65832         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65833         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65834
65835 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65838         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65839         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65840         All uses changed.
65841
65842 2006-01-26  Simon Josefsson  <jas@extundo.com>
65843
65844         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65845         prototype is visible on mingw32.
65846
65847         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65848         for mingw32.
65849
65850         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65851         mingw32).
65852
65853 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65856         attempt to open for write; this always fails, at least on POSIX
65857         hosts.  This reinstates the 2006-01-09 change, which was
65858         inadvertently removed.
65859
65860 2006-01-26  Bruno Haible  <bruno@clisp.org>
65861
65862         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65863         Reported by Paul Eggert.
65864
65865 2006-01-26  Bruno Haible  <bruno@clisp.org>
65866             Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         * lib/stdbool_.h (_Bool)
65869         [(! (defined __cplusplus || defined __BEOS__)
65870           && !defined __GNUC__
65871           && !(defined __HP_cc || defined __xlc__
65872                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65873                || defined __sgi))]:
65874         #define to signed char in these cases too; this simplifies
65875         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65876         etc., separately) and makes it more conservative.
65877
65878 2006-01-25  Simon Josefsson  <jas@extundo.com>
65879
65880         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65881         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65882         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65883
65884 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65885
65886         * lib/argp-namefrob.h: Bugfix. Remove stray #
65887
65888 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65891         so that we test the test.
65892         Check for yet another HP-UX cc bug involving *bool |= bool.
65893
65894 2006-01-25  Karl Berry  <karl@gnu.org>
65895
65896         * config/srclist.txt (vasnprintf.c): sync lost.
65897
65898 2006-01-25  Jim Meyering  <jim@meyering.net>
65899
65900         Sync from the stable (b5) branch of coreutils:
65901
65902         * lib/fts.c (fts_children): Don't let close() clobber errno from
65903         failed fchdir().
65904
65905         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65906         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65907         a dangling symlink.  That can also happen at least for ELOOP.
65908         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65909         FYI, this bug predates the inclusion of fts.c in coreutils.
65910
65911         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65912         in their own block, so pre-c99 compilers don't object.
65913
65914         Avoid the double-free (first in fts_read, second in fts_close) that
65915         would occur when an `active' directory is made inaccessible (e.g.,
65916         via chmod a-x) during a traversal.
65917         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65918         before returning.  Reproduce this failure by
65919         mkdir -p a/b; cd a; chmod a-x . b
65920         Reported by Stavros Passas.
65921
65922 2006-01-25  Jim Meyering  <jim@meyering.net>
65923
65924         * lib/fileblocks.c: Remove more useless parentheses.
65925         * lib/readutmp.h: Likewise.
65926
65927 2006-01-25  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65930         warnings.
65931         Reported by Paul Eggert.
65932
65933 2006-01-25  Bruno Haible  <bruno@clisp.org>
65934
65935         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65936         rid of a trap command. For Solaris sh.
65937         Reported by Mark D. Baushke <mdb@gnu.org>.
65938
65939 2006-01-24  Simon Josefsson  <jas@extundo.com>
65940
65941         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65942         Bruno.
65943
65944 2006-01-24  Karl Berry  <karl@gnu.org>
65945
65946         * config/srclist.txt (argp-namefrob.h): sync lost.
65947
65948 2006-01-24  Jim Meyering  <jim@meyering.net>
65949
65950         * modules/openat (Files): Add lib/intprops.h.
65951         From Mark D. Baushke.
65952
65953 2006-01-24  Jim Meyering  <jim@meyering.net>
65954
65955         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65956         Reported by Mark D. Baushke.
65957
65958 2006-01-24  Jim Meyering  <jim@meyering.net>
65959
65960         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65961
65962 2006-01-24  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/strnlen (Maintainer): Change from glibc to all.
65965
65966 2006-01-24  Bruno Haible  <bruno@clisp.org>
65967
65968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65969         Patch by Paul Eggert.
65970
65971 2006-01-24  Bruno Haible  <bruno@clisp.org>
65972
65973         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65974         already has it.
65975         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65976         2005-11-26.
65977
65978         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65979         'signed char' to avoid problems with the built-in _Bool type.
65980         Reported by Paul Eggert on 2005-11-26.
65981
65982 2006-01-24  Bruno Haible  <bruno@clisp.org>
65983
65984         * gnulib-tool (func_import): Avoid constructing complicated sed
65985         expressions inside backquote.
65986         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65987
65988 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65989
65990         These changes imported from libc.
65991         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65992         test and two separate function calls.
65993         * lib/strndup.c (__strndup): Add libc_hidden_def.
65994
65995 2006-01-23  Simon Josefsson  <jas@extundo.com>
65996
65997         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65998         Remove the test_*_SOURCES variable: automake infers it by default.
65999         * modules/tls-tests: Likewise.
66000
66001 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         Work around porting bugs reported by Dieter in
66004         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66005         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66006         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66007         Include "getopt.h" first, to check interface.
66008         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66009         !HAVE_DECL_GETENV.
66010         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66011         (__strndup): Revert to K&R-style function dfns, the glibc style.
66012         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66013         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66014         Include strnlen.h first, to get prototype properly.
66015         (strnlen): Renamed from __strnlen.
66016         Remove weak alias.
66017
66018 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66021
66022 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         * config/srclist.txt: Adjust to reflect glibc reorganization.
66025         This affects only comments.
66026
66027 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66028
66029          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66030          Reported by Bruce Korb <bkorb@gnu.org>.
66031
66032 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66035         to pacify gcc -Wswitch-default.
66036
66037 2006-01-22  Bruno Haible  <bruno@clisp.org>
66038
66039         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66040         temporary buffer for sprintf, take into account the precision also
66041         for 'd', 'i', 'u', 'o', 'x', 'X'.
66042
66043 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66044
66045         * modules/argp-tests: New module
66046         * tests/test-argp.c: New file
66047         * tests/test-argp-2.sh: New file
66048
66049 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66050
66051         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66052         (__argp_base_name): Removed
66053         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66054         typo.
66055         (__argp_base_name): Provide macro definition or extern declaration
66056         depending on the configuration
66057
66058 2006-01-20  Simon Josefsson  <jas@extundo.com>
66059
66060         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66061
66062 2006-01-20  Simon Josefsson  <jas@extundo.com>
66063
66064         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66065
66066 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66067
66068         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66069         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66070         Suggested by Bruno Haible.
66071
66072 2006-01-20  Karl Berry  <karl@gnu.org>
66073
66074         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66075         until changes propagate, I guess.
66076
66077 2006-01-19  Simon Josefsson  <jas@extundo.com>
66078
66079         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66080
66081 2006-01-19  Simon Josefsson  <jas@extundo.com>
66082
66083         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66084
66085 2006-01-19  Simon Josefsson  <jas@extundo.com>
66086
66087         * gnulib-tool: Set check_PROGRAMS.
66088
66089         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66090         modules/des-tests, modules/gc-arcfour-tests,
66091         modules/gc-arctwo-tests, modules/gc-des-tests,
66092         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66093         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66094         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66095         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66096         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66097         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66098         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66099         test_*_SOURCES.
66100
66101 2006-01-18  Simon Josefsson  <jas@extundo.com>
66102
66103         * modules/socklen (Depends-on): Depend on sys_socket.
66104
66105 2006-01-18  Simon Josefsson  <jas@extundo.com>
66106
66107         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66108         modules/des-tests, modules/gc-arcfour-tests,
66109         modules/gc-arctwo-tests, modules/gc-des-tests,
66110         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66111         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66112         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66113         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66114         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66115         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66116         $(EXEEXT) to automake TESTS variable, for mingw32.
66117
66118 2006-01-17  Simon Josefsson  <jas@extundo.com>
66119
66120         * modules/socklen (Include): Need sys/socket.h.
66121
66122 2006-01-17  Bruno Haible  <bruno@clisp.org>
66123
66124         * modules/ssize_t (Include): Add <sys/types.h>.
66125
66126 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66129         it's not portable and it doesn't work with cross-compiles.
66130         Problem reported by Bruno Haible.  Fix missing-$ typo in
66131         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66132         -zignore from being used with Sun's C compiler.
66133
66134 2006-01-12  Simon Josefsson  <jas@extundo.com>
66135
66136         * lib/base64.c: Fix warning, reported by Bruno Haible
66137         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66138
66139 2006-01-12  Bruno Haible  <bruno@clisp.org>
66140
66141         * modules/ldd: New file.
66142         * build-aux/ldd.sh.in: New file.
66143         * MODULES.html.sh (Support for building libraries and executables): Add
66144         ldd.
66145
66146 2006-01-12  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/ldd.m4: New file.
66149
66150 2006-01-12  Bruno Haible  <bruno@clisp.org>
66151
66152         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66153         endless loop while replacing $auxdir with build-aux.
66154
66155 2006-01-11  Simon Josefsson  <jas@extundo.com>
66156
66157         * lib/stdint_.h (SIZE_MAX): Add missing (.
66158
66159 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66160
66161         Sync from coreutils.
66162         * lib/md5.c: Fix commentary typos.
66163         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66164         * lib/md5.h (__attribute__): Remove; unused.
66165         * lib/sha1.c: Fix commentary to match md5 better.
66166         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66167         so that we don't need to worry about alignment.  All uses changed.
66168         This merges the 2005-10-28 md5 change into sha1.
66169
66170 2006-01-11  Jim Meyering  <jim@meyering.net>
66171
66172         Sync from coreutils.
66173         * lib/md5.c (OP): Fix spacing.
66174
66175 2006-01-11  Bruno Haible  <bruno@clisp.org>
66176
66177         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66178         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66179         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66180
66181 2006-01-11  Bruno Haible  <bruno@clisp.org>
66182
66183         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66184         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66185         the "early" section as well.
66186
66187 2006-01-11  Bruno Haible  <bruno@clisp.org>
66188
66189         Avoid "ar: no archive members specified" error on MacOS X.
66190         * gnulib-tool (func_modules_add_dummy): New function.
66191         (func_import, func_create_testdir): Invoke it.
66192
66193 2006-01-11  Bruno Haible  <bruno@clisp.org>
66194
66195         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66196         with $auxdir in AC_CONFIG_FILES statements.
66197
66198 2006-01-11  Bruno Haible  <bruno@clisp.org>
66199
66200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66201         Initialize also noinst_HEADERS to empty.
66202
66203 2006-01-11  Bruno Haible  <bruno@clisp.org>
66204
66205         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66206         variables.
66207         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66208         autoreconf.
66209
66210 2006-01-11  Bruno Haible  <bruno@clisp.org>
66211
66212         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66213         overridable by the user.
66214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66215
66216 2006-01-10  Simon Josefsson  <jas@extundo.com>
66217
66218         * modules/sys_socket: New file.
66219
66220 2006-01-10  Simon Josefsson  <jas@extundo.com>
66221
66222         * m4/sys_socket_h.m4: New file.
66223
66224 2006-01-10  Simon Josefsson  <jas@extundo.com>
66225
66226         * lib/socket_.h: New file.
66227
66228 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * modules/readutmp (Maintainer): Add myself.
66231
66232 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66233
66234         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66235         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66236         People who are still concerned with buggy memcmp implementations
66237         can invoke gl_FUNC_MEMCMP themselves.
66238
66239 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * lib/regex_internal.h (BITSET_WORD_BITS):
66242         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66243         preprocessor mishandles large unsigned values as if they were signed.
66244         Problem reported by Claudio Fontana in
66245         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66246
66247 2006-01-10  Jim Meyering  <jim@meyering.net>
66248
66249         Avoid the double-free (first in fts_read, second in fts_close) that
66250         would occur when an `active' directory is made inaccessible (e.g.,
66251         via chmod a-x) during a traversal.
66252         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66253         before returning.  Reproduce this failure by
66254         mkdir -p a/b; cd a; chmod a-x . b
66255         Reported by Stavros Passas.
66256
66257         Sync from coreutils.
66258         * lib/sha1.c: Tweak grammar in a comment.
66259
66260 2006-01-10  Jim Meyering  <jim@meyering.net>
66261
66262         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66263         Patch by Joerg Sonnenberger.
66264
66265 2006-01-10  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/readutmp: Depend on module free.
66268         * modules/strtok_r: Depend on module restrict.
66269
66270 2006-01-10  Bruno Haible  <bruno@clisp.org>
66271
66272         * modules/gettext (configure.ac): Add an invocation of
66273         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66274
66275 2006-01-10  Bruno Haible  <bruno@clisp.org>
66276
66277         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66278         Reported by Werner Lemberg <wl@gnu.org>.
66279
66280 2006-01-10  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/localcharset.c: Update from GNU gettext.
66283
66284 2006-01-10  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/argp.h (__const): Remove macro. Use const instead.
66287         * lib/argp-fmtstream.h (__const): Likewise.
66288         * lib/glob_.h (__const): Remove macro.
66289         * lib/glob-libc.h: Use const instead of __const.
66290
66291 2006-01-10  Bruno Haible  <bruno@clisp.org>
66292
66293         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66294         variable.
66295         Needed to avoid an automake error regarding the 'gettext' module.
66296
66297 2006-01-09  Simon Josefsson  <jas@extundo.com>
66298
66299         * modules/inet_ntop (Depends-on): Add restrict.
66300
66301 2006-01-09  Simon Josefsson  <jas@extundo.com>
66302
66303         * modules/gc-rijndael-tests (License): Put under LGPL.
66304
66305         * modules/gc-des-tests (License): Likewise.
66306
66307         * modules/gc-arcfour-tests (License): Likewise.
66308
66309         * modules/gc-arctwo-tests (License): Likewise.
66310
66311         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66312
66313         * modules/gc-hmac-sha1-tests (Files): Likewise.
66314
66315         * modules/gc-hmac-md5-tests (License): Likewise.
66316
66317         * modules/gc-sha1-tests (License): Likewise.
66318
66319         * modules/gc-md5-tests (License): Likewise.
66320
66321         * modules/gc-md4-tests (License): Likewise.
66322
66323         * modules/gc-md2-tests (License): Likewise.
66324
66325         * modules/gc-tests (License): Likewise.
66326
66327         * modules/des-tests (License): Likewise.
66328
66329         * modules/md4-tests (License): Likewise.
66330
66331         * modules/md2-tests (License): Likewise.
66332
66333 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         Sync from coreutils:
66336
66337         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66338         * modules/lib-ignore: New file.
66339         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66340         chdir-safer.m4, lchmod.m4.
66341         * modules/openat: Add mkdirat.c, openat-priv.h.
66342
66343 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         Sync from coreutils.
66346         * m4/lib-ignore.m4: New file.
66347         * m4/lchmod.m4: New file.
66348
66349 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66350
66351         Sync from coreutils.
66352         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66353         for write access: POSIX says that must fail.
66354         * lib/fts.c (diropen): Likewise.
66355         * lib/save-cwd.c (save_cwd): Likewise.
66356         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66357         well, for minor improvements on hosts that lack O_DIRECTORY.
66358         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66359         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66360         Fall back on chown if open failed with EACCES.
66361
66362         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66363         Report an error at compile-time if only a 1-second nominal clock
66364         resolution is found.
66365
66366         * lib/lchmod.h: New file.
66367         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66368         (make_dir_parents): Use lchown rather than chown, and
66369         lchmod rather than chmod.
66370
66371         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66372         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66373         "proc" reported by n0dalus.
66374
66375         * lib/mountlist.c: Include <limits.h>.
66376         (dev_from_mount_options)
66377         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66378         New function.  It no longer assumes "dev=" has the System V meaning
66379         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66380         (read_file_system_list)
66381         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66382         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66383         dev= in that case.
66384
66385         * lib/posixtm.h (PDS_PRE_2000): New macro.
66386         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66387         allow_century.  All usages changed.  Reject dates outside the range
66388         1969-1999 if PDS_PRE_2000 is used.
66389
66390 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         Sync from coreutils.
66393         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66394         (Time of day items): Mention the possibility of leap seconds.
66395         Problem reported by Dr. David Alan Gilbert.
66396
66397 2006-01-09  Jim Meyering  <jim@meyering.net>
66398
66399         Sync from coreutils.
66400
66401         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66402
66403         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66404
66405         * lib/modechange.c (mode_compile): Reject an invalid mode string
66406         that starts with an octal digit.  From Andreas Gruenbacher.
66407
66408         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66409         and dup to open_safer and dup_safer, respectively.
66410         (openat_permissive): Fix typo in comment.
66411
66412         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66413         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66414         (_): Remove; no longer needed.
66415         (openat): Renamed from rpl_openat; no need for rpl_openat
66416         since openat.h renames openat for us.
66417         Replace most of the body with a call to openat_permissive,
66418         to avoid duplicate code.
66419         Port to (probably hypothetical) environments were mode_t is
66420         wider than int.
66421         (openat_permissive): Require mode arg, so that we can check
66422         types better.  Put it just after flags.  Change cwd failure
66423         indicator from pointer-to-bool to pointer-to-errno-value.
66424         All callers changed.
66425         Invoke openat_save_fail and/or openat_restore_fail if
66426         cwd_errno is null, so that openat can call us.
66427         (openat_permissive, fdopendir, fstatat, unlinkat):
66428         Simplify errno handling to avoid some duplicate code,
66429         as it's OK to set errno on success.
66430         * lib/openat.h: Revamp code so that function macros depend on
66431         __OPENAT_PREFIX only, not also on AT_FDCWD.
66432         (openat_ro): Remove.  Caller changed to use openat_permissive.
66433         (openat_permissive): Now a macro, if not a function.
66434         (openat_restore_fail, openat_save_fail): Now always functions,
66435         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66436
66437         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66438         and openat.c.
66439         * lib/mkdirat.c: Include openat-priv.h.
66440         Remove definitions of macros defined therein.
66441         * lib/openat.c: Likewise.
66442
66443         * lib/mkdirat.c (mkdirat): New file and function.
66444         * lib/openat.h (mkdirat): Declare.
66445
66446         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66447
66448         * lib/openat.h (openat_permissive): Declare.
66449         (openat_ro): Define.
66450
66451         * lib/openat.c (EXPECTED_ERRNO): New macro.
66452         (openat_permissive): New function -- used in remove.c rewrite.
66453         (all functions): Set errno just before returning, only if there
66454         was an actual failure.
66455         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66456
66457         Emulate openat-family functions using Linux's procfs, if possible.
66458         Idea and some code based on Ulrich Drepper's glibc changes.
66459
66460         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66461         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66462         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66463         before falling back on save_cwd and restore_cwd.
66464         (fdopendir, fstatat, unlinkat): Likewise.
66465
66466         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66467         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66468
66469         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66470         as second argument to va_arg.  Otherwise, some versions of gcc
66471         warn that `if this code is reached, the program will abort'.
66472
66473 2006-01-09  Jim Meyering  <jim@meyering.net>
66474
66475         Sync from coreutils.
66476         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66477         Require openat-priv.h.
66478
66479 2006-01-09  Bruno Haible  <bruno@clisp.org>
66480
66481         * modules/strnlen (Include): Use strnlen.h.
66482
66483 2006-01-09  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66486
66487 2006-01-09  Bruno Haible  <bruno@clisp.org>
66488
66489         * lib/sysexit_.h (EX_OK): New macro.
66490         Suggested by Martin Lambers <marlam@marlam.de>.
66491
66492 2006-01-09  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66495         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66496
66497 2006-01-09  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66500         numbers.
66501
66502 2006-01-09  Bruno Haible  <bruno@clisp.org>
66503
66504         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66505         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66506         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66507         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66508
66509 2006-01-09  Bruno Haible  <bruno@clisp.org>
66510
66511         * build-aux/javacomp.sh.in: New file, moved from lib/.
66512         * modules/javacomp-script (Files): Update.
66513         (configure.ac): Add AC_CONFIG_FILES invocation.
66514         (EXTRA_DIST): Remove variable.
66515
66516         * build-aux/javaexec.sh.in: New file, moved from lib/.
66517         * modules/javaexec (Files): Update.
66518         (configure.ac): Add AC_CONFIG_FILES invocation.
66519         (EXTRA_DIST): Remove javaexec.sh.in.
66520
66521         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66522         * modules/csharpcomp-script (Files): Update.
66523         (configure.ac): Add AC_CONFIG_FILES invocation.
66524         (EXTRA_DIST): Remove variable.
66525
66526         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66527         * modules/csharpexec (Files): Update.
66528         (configure.ac): Add AC_CONFIG_FILES invocation.
66529         (EXTRA_DIST): Remove csharpexec.sh.in.
66530
66531 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66532
66533         Sync from coreutils.
66534
66535         Add POSIX ACL support
66536         * lib/acl.h (copy_acl, set_acl): Add declarations.
66537         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66538         systems other than Linux.
66539         (chmod_or_fchmod): New function: use fchmod when possible,
66540         and chmod otherwise.
66541         (file_has_acl): Add a POSIX ACL implementation, with a
66542         Linux-specific subcase.
66543         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66544         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66545         acls are unsupported.
66546         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66547         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66548         are unsupported.
66549
66550 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66551
66552         Sync from coreutils.
66553         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66554
66555 2006-01-07  Bruno Haible  <bruno@clisp.org>
66556
66557         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66558         gl_EARLY.
66559
66560 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66563         Problem reported for Mingw by Mark Junker.
66564
66565 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66566
66567         * README: Gnulib normally doesn't generate a tarball.
66568
66569 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66570
66571         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66572         long int, not int, for nanosecond counts, so that people who are
66573         used to POSIX struct timespec won't be surprised.  Reported by Jim
66574         Meyering.
66575
66576 2005-12-28  Bruno Haible  <bruno@clisp.org>
66577
66578         * build-aux/config.rpath: Update from GNU gettext.
66579
66580 2005-12-16  Jim Meyering  <jim@meyering.net>
66581
66582         * modules/fprintftime: New module.
66583         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66584
66585 2005-12-16  Jim Meyering  <jim@meyering.net>
66586
66587         * m4/fprintftime.m4: New file.
66588
66589 2005-12-16  Jim Meyering  <jim@meyering.net>
66590
66591         * lib/fprintftime.c, lib/fprintftime.h: New files.
66592
66593 2005-12-15  Simon Josefsson  <jas@extundo.com>
66594
66595         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66596         new m4/socklen.m4.
66597
66598 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66599
66600         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66601         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66602
66603 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66604
66605         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66606         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66607         struct uparams is valid. Fall back to the default values if it is
66608         not.
66609
66610 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66611
66612         * modules/argp (Files): Add argp-pin.c
66613         (Depends-on): dirname
66614         (lib_SOURCES): Add argp-pin.c
66615
66616 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66617
66618         * m4/argp.m4:  Check if program_invocation_name and
66619         program_invocation_short_name are declared and define appropriate
66620         macros if they are not.
66621
66622 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66623
66624         * lib/argp-help.c (__argp_base_name): New function
66625         (__argp_short_program_name): Rewrite using __argp_base_name
66626         * lib/argp-namefrob.h: Define program_invocation_name and
66627         program_invocation_short_name if requested
66628         (__argp_base_name): Add prototype
66629         * lib/argp-parse.c (argp_def): Use gettext wrappers
66630         (argp_default_parser): Use __argp_base_name
66631         * lib/argp-pin.c: New file. Defines program_invocation_name and
66632         program_invocation_short_name on systems that lack them.
66633
66634 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66637         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66638         porting problem reported by Georg Schwarz in
66639         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66640
66641 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66642
66643         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66644         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66645         porting problem reported by Georg Schwarz in
66646         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66647
66648 2005-12-05  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66651         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66652         Reported by Mark Junker <mjscod@gmx.de>.
66653
66654 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66655
66656         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66657         Use implementation from Albert Chin, with some
66658         comments/corrections by Stepan Kasal and myself.
66659
66660 2005-12-02  Bruno Haible  <bruno@clisp.org>
66661
66662         * gnulib-tool (func_import): Accept GPLed build tool modules when
66663         --lgpl is given.
66664         * modules/csharpcomp-script: New file.
66665         * modules/csharpcomp: Depend on it.
66666         * modules/javacomp-script: New file.
66667         * modules/javacomp: Depend on it.
66668         Suggested by Simon Josefsson.
66669
66670 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66671
66672         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66673         statement, to work around an HP-UX 10.20 compiler bug reported by
66674         Peter O'Gorman.
66675
66676 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66677
66678         * modules/savedir (Depends-on): Add openat.
66679
66680 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66681
66682         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66683         (uintmax_t) [defined uintmax_t]: Do not declare.
66684         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66685         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66686         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66687         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66688         sake of portability to weird hosts that C allows (though we don't
66689         know of any practical examples).
66690
66691         * lib/savedir.h (fdsavedir): New decl.
66692         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66693         contains most of the former guts of savedir.
66694         (savedir): Use savedirstream.
66695         Include "openat.h".
66696
66697 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66698
66699         * modules/obstack (Files): Add m4/ulonglong.m4.
66700         Problem reported by Davide Angelocola.
66701
66702 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66705         coreutils no longer futzes with rounding modes.
66706
66707 2005-11-14  Jim Meyering  <jim@meyering.net>
66708
66709         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66710         replacement of mkstemp.
66711
66712 2005-11-10  Simon Josefsson  <jas@extundo.com>
66713
66714         * lib/readline.c: Remove EOL.
66715
66716 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * modules/gethrxtime (Depends-on): Add gettime.
66719
66720 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66723         or gettimeofday; no longer needed.
66724
66725 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66728         time business.
66729         (gethrxtime) [! (HAVE_NANOUPTIME
66730         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66731         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66732         our own approximation.
66733
66734 2005-11-08  Eric Blake  <ebb9@byu.net>
66735
66736         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66737
66738 2005-11-08  Eric Blake  <ebb9@byu.net>
66739
66740         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66741
66742 2005-11-04  Bruno Haible  <bruno@clisp.org>
66743
66744         * gnulib-tool: Implement --update mode.
66745
66746 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         Fix porting problem reported by Theodoros V. Kalamatianos.
66749         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66750         Don't assume that futimes failing means we must fail.
66751
66752 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66753
66754         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66755         variables to suggest the intended function of the PATH_MAX check.
66756
66757 2005-10-30  Kean Johnston  <jkj@sco.com>
66758
66759         Trivial changes to support SCO systems.
66760         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66761         as PATH_MAX.
66762         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66763         where __ptr is null when no I/O is pending.
66764
66765 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66766
66767         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66768         leave errno alone.  Problem reported by Dmitry V. Levin.
66769
66770 2005-10-28  Simon Josefsson  <jas@extundo.com>
66771
66772         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66773         Test more.
66774
66775         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66776
66777         * modules/md2, modules/md2-tests: New files.
66778
66779 2005-10-28  Simon Josefsson  <jas@extundo.com>
66780
66781         * m4/inet_ntop.m4: More tests.
66782
66783         * m4/gc-md2.m4, md2.m4: New file.
66784
66785 2005-10-28  Simon Josefsson  <jas@extundo.com>
66786
66787         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66788         "restrict" keywords, as per POSIX.  Protect the function
66789         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66790         Don't use K&R prototypes.  Check the sprintf return values.
66791         Re-define EAFNOSUPPORT if not present.  Indent.
66792
66793         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66794         suggested by Bruno Haible <bruno@clisp.org>.
66795
66796         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66797
66798         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66799
66800         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66801         libgcrypt).
66802
66803         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66804
66805         * lib/md2.h, lib/md2.c: New files.
66806
66807 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66810         errno alone.  Problem reported by Frederic Jolliton.
66811
66812 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66813
66814         * modules/verify (License): Change from GPL to LGPL.  This is a
66815         tiny module and there are apparently near-equivalents that are
66816         under the BSD license.
66817
66818 2005-10-24  Simon Josefsson  <jas@extundo.com>
66819
66820         * modules/sha1: Relicense to LGPL.
66821
66822 2005-10-24  Simon Josefsson  <jas@extundo.com>
66823
66824         * lib/md4.h: Shrink buffer size, now that we changed the type.
66825
66826 2005-10-23  Simon Josefsson  <jas@extundo.com>
66827
66828         * gnulib-tool (func_import): Fix --tests-base.
66829
66830 2005-10-22  Simon Josefsson  <jas@extundo.com>
66831
66832         * modules/arcfour (Depends-on): Need stdint.
66833
66834 2005-10-22  Simon Josefsson  <jas@extundo.com>
66835
66836         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66837         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66838
66839 2005-10-22  Simon Josefsson  <jas@extundo.com>
66840
66841         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66842         suggested by Bruno Haible <bruno@clisp.org>.
66843
66844 2005-10-22  Simon Josefsson  <jas@extundo.com>
66845
66846         * lib/crc.h: Include stddef.h, for size_t.
66847
66848 2005-10-22  Simon Josefsson  <jas@extundo.com>
66849
66850         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66851         arcfour_context struct (simplify test vector testing in GNU
66852         Shishi).
66853
66854 2005-10-21  Simon Josefsson  <jas@extundo.com>
66855
66856         * modules/des, modules/des-tests: New files.
66857
66858         * modules/gc-des, modules/gc-des-tests: New files.
66859
66860         * tests/test-des.c, tests/test-gc-des.c: New file.
66861
66862 2005-10-21  Simon Josefsson  <jas@extundo.com>
66863
66864         * modules/arctwo, modules/arctwo-tests: New files.
66865
66866         * tests/test-arctwo.c: New file.
66867
66868         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66869
66870         * tests/test-gc-arctwo.c: New file.
66871
66872 2005-10-21  Simon Josefsson  <jas@extundo.com>
66873
66874         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66875         Bruno Haible <bruno@clisp.org>.
66876
66877         * m4/gc-des.m4: New file.
66878
66879 2005-10-21  Simon Josefsson  <jas@extundo.com>
66880
66881         * m4/arctwo.m4: New file.
66882
66883         * m4/gc-arctwo.m4: New file.
66884
66885 2005-10-21  Simon Josefsson  <jas@extundo.com>
66886
66887         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66888         block.
66889
66890 2005-10-21  Simon Josefsson  <jas@extundo.com>
66891
66892         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66893         <bruno@clisp.org>.
66894
66895         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66896
66897         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66898         Bruno Haible <bruno@clisp.org>.
66899
66900         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66901         <bruno@clisp.org>.
66902
66903 2005-10-21  Simon Josefsson  <jas@extundo.com>
66904
66905         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66906
66907 2005-10-21  Simon Josefsson  <jas@extundo.com>
66908
66909         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66910
66911 2005-10-21  Simon Josefsson  <jas@extundo.com>
66912
66913         * lib/des.h, lib/des.c: New files.
66914
66915         * lib/gc-gnulib.c: Support DES.c
66916
66917 2005-10-21  Simon Josefsson  <jas@extundo.com>
66918
66919         * lib/arctwo.h, lib/arctwo.c: New files.
66920
66921         * lib/gc-gnulib.c: Support ARCTWO.
66922
66923 2005-10-21  Simon Josefsson  <jas@extundo.com>
66924
66925         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66926         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66927
66928 2005-10-21  Simon Josefsson  <jas@extundo.com>
66929
66930         * gnulib-tool (func_import, func_create_testdir): Define automake
66931         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66932         Makefile.am snippet),
66933         suggested by Bruno Haible <bruno@clisp.org>.
66934
66935         * modules/gc (Makefile.am): Use it.
66936
66937 2005-10-21  Bruno Haible  <bruno@clisp.org>
66938
66939         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66940         patch.
66941
66942 2005-10-19  Simon Josefsson  <jas@extundo.com>
66943
66944         * tests/test-gc-rijndael.c: New file.
66945
66946         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66947
66948 2005-10-19  Simon Josefsson  <jas@extundo.com>
66949
66950         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66951         interface too.
66952
66953 2005-10-19  Simon Josefsson  <jas@extundo.com>
66954
66955         * tests/test-gc-arcfour.c: New file.
66956
66957         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66958
66959 2005-10-19  Simon Josefsson  <jas@extundo.com>
66960
66961         * modules/gc-md4, modules/gc-md4-tests: New file.
66962
66963         * tests/test-gc-md4.c: New file.
66964
66965 2005-10-19  Simon Josefsson  <jas@extundo.com>
66966
66967         * m4/gc-md4.m4: New file.
66968
66969 2005-10-19  Simon Josefsson  <jas@extundo.com>
66970
66971         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66972         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66973         <kasal@ucw.cz>.
66974
66975 2005-10-19  Simon Josefsson  <jas@extundo.com>
66976
66977         * m4/gc-arcfour.m4: New file.
66978
66979         * m4/gc-rijndael.m4: New file.
66980
66981 2005-10-19  Simon Josefsson  <jas@extundo.com>
66982
66983         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66984
66985 2005-10-19  Simon Josefsson  <jas@extundo.com>
66986
66987         * lib/gc-gnulib.c: Support ARCFOUR.
66988
66989 2005-10-19  Simon Josefsson  <jas@extundo.com>
66990
66991         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66992         support.
66993
66994         * lib/gc.h: Add ECB enum type.
66995
66996         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66997
66998 2005-10-18  Simon Josefsson  <jas@extundo.com>
66999
67000         * tests/test-md5.c: New file.
67001
67002         * modules/md5-tests: New file.
67003
67004 2005-10-18  Simon Josefsson  <jas@extundo.com>
67005
67006         * tests/test-md4.c: New file.
67007
67008         * modules/md4, modules/md4-tests: New files.
67009
67010 2005-10-18  Simon Josefsson  <jas@extundo.com>
67011
67012         * m4/md4.m4: New file.
67013
67014 2005-10-18  Simon Josefsson  <jas@extundo.com>
67015
67016         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67017
67018 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67019
67020         * gnulib-tool (func_create_testdir): Omit the second check whether
67021         BUILT_SOURCES in nonempty.
67022
67023 2005-10-17  Simon Josefsson  <jas@extundo.com>
67024
67025         * tests/test-rijndael.c: New file.
67026
67027 2005-10-17  Simon Josefsson  <jas@extundo.com>
67028
67029         * modules/sha1: Depend on stdint instead of md5.
67030
67031         * modules/md5: Depend on stdint, remove uint32_t.
67032
67033 2005-10-17  Simon Josefsson  <jas@extundo.com>
67034
67035         * modules/gc-sha1-tests: New file.
67036
67037         * tests/test-gc-sha1.c: New file.
67038
67039 2005-10-17  Simon Josefsson  <jas@extundo.com>
67040
67041         * m4/md5.m4: Remove call to uint32_t.m4.
67042
67043 2005-10-17  Simon Josefsson  <jas@extundo.com>
67044
67045         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67046
67047         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67048         md5.h.
67049
67050         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67051
67052         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67053
67054 2005-10-17  Simon Josefsson  <jas@extundo.com>
67055
67056         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67057
67058 2005-10-17  Simon Josefsson  <jas@extundo.com>
67059
67060         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67061
67062 2005-10-17  Simon Josefsson  <jas@extundo.com>
67063
67064         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67065
67066         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67067
67068 2005-10-17  Bruno Haible  <bruno@clisp.org>
67069
67070         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67071         that it can also be used in a test.
67072
67073 2005-10-16  Bruno Haible  <bruno@clisp.org>
67074
67075         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67076         TESTS_ENVIRONMENT, so that individual tests can augment it.
67077
67078         * gnulib-tool (func_create_testdir): Use an intermediate target for
67079         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67080         macros, like $(ALLOCA_H), which cannot be passed through the command
67081         line.
67082
67083 2005-10-15  Simon Josefsson  <jas@extundo.com>
67084
67085         * modules/rijndael-tests: New file.
67086
67087         * modules/rijndael: New file.
67088
67089 2005-10-15  Simon Josefsson  <jas@extundo.com>
67090
67091         * m4/rijndael.m4: New file.
67092
67093 2005-10-15  Simon Josefsson  <jas@extundo.com>
67094
67095         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67096
67097         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67098
67099 2005-10-14  Simon Josefsson  <jas@extundo.com>
67100
67101         * tests/test-arcfour.c: New file.
67102
67103         * modules/arcfour, modules/arcfour-tests: New files.
67104
67105 2005-10-14  Simon Josefsson  <jas@extundo.com>
67106
67107         * m4/arcfour.m4: New file.
67108
67109 2005-10-14  Simon Josefsson  <jas@extundo.com>
67110
67111         * lib/arcfour.h, lib/arcfour.c: New files.
67112
67113 2005-10-14  Roland McGrath  <roland@redhat.com>
67114
67115         Import from libc.  [BZ #1331]
67116         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67117         macro argument.
67118         Reported by Matej Vela <vela@debian.org>.
67119
67120 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67121
67122         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67123         include <wchar.h>; no longer needed.
67124
67125 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67126
67127         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67128
67129 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67130         and  Ulrich Drepper  <drepper@redhat.com>
67131
67132         Import from libc.
67133         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67134         instead of inline stream orientation test and two separate
67135         function calls.  Pay no attention to USE_IN_LIBIO.
67136
67137 2005-10-13  Simon Josefsson  <jas@extundo.com>
67138
67139         * modules/gc-hmac-md5-tests: New file.
67140
67141         * tests/test-gc-hmac-sha1.c: New file.
67142
67143         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67144
67145         * modules/gc-hmac-md5-tests: New file.
67146
67147         * tests/test-gc-md5.c: New file.
67148
67149         * modules/gc-md5-tests: New file.
67150
67151 2005-10-13  Simon Josefsson  <jas@extundo.com>
67152
67153         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67154         Move memory allocation outside of loop.
67155
67156 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67159         intermediate directory is in a read-only file system.  Problem
67160         reported by Eric Blake.
67161
67162 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67163
67164         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67165
67166 2005-10-12  Simon Josefsson  <jas@extundo.com>
67167
67168         * tests/test-hmac-sha1.c: New file.
67169
67170         * modules/hmac-sha1-tests: New file.
67171
67172         * modules/hmac-sha1: New file.
67173
67174 2005-10-12  Simon Josefsson  <jas@extundo.com>
67175
67176         * modules/gc-sha1: New file.
67177
67178 2005-10-12  Simon Josefsson  <jas@extundo.com>
67179
67180         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67181
67182         * tests/test-gc-pbkdf2-sha1.c: New file.
67183
67184 2005-10-12  Simon Josefsson  <jas@extundo.com>
67185
67186         * modules/gc-md5, modules/gc-hmac-md5: New files.
67187
67188         * modules/gc (Files): Remove md5, memxor and hmac files.
67189
67190 2005-10-12  Simon Josefsson  <jas@extundo.com>
67191
67192         * m4/gc-pbkdf2-sha1.m4: New file.
67193
67194         * m4/gc-hmac-sha1.m4: New file.
67195
67196         * m4/gc-sha1: New file.
67197
67198         * m4/hmac-sha1.m4: New file.
67199
67200 2005-10-12  Simon Josefsson  <jas@extundo.com>
67201
67202         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67203
67204         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67205
67206 2005-10-12  Simon Josefsson  <jas@extundo.com>
67207
67208         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67209         suggested by Bruno Haible <bruno@clisp.org>.
67210
67211 2005-10-12  Simon Josefsson  <jas@extundo.com>
67212
67213         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67214
67215 2005-10-12  Simon Josefsson  <jas@extundo.com>
67216
67217         * lib/gc-pbkdf2-sha1.c: New file.
67218
67219         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67220
67221 2005-10-12  Simon Josefsson  <jas@extundo.com>
67222
67223         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67224
67225         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67226
67227 2005-10-12  Simon Josefsson  <jas@extundo.com>
67228
67229         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67230         GC_USE_HMAC_MD5, respectively.
67231
67232         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67233         (gc_md5): Fix typo.
67234
67235         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67236
67237         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67238
67239         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67240
67241 2005-10-12  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67244         Reported by Stepan Kasal <kasal@ucw.cz>.
67245
67246 2005-10-11  Simon Josefsson  <jas@extundo.com>
67247
67248         * tests/test-crc.c: New file.
67249
67250         * modules/crc, modules/crc-tests: New files.
67251
67252 2005-10-11  Simon Josefsson  <jas@extundo.com>
67253
67254         * m4/crc.m4: New file.
67255
67256 2005-10-11  Simon Josefsson  <jas@extundo.com>
67257
67258         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67259
67260         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67261
67262         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67263
67264 2005-10-11  Simon Josefsson  <jas@extundo.com>
67265
67266         * lib/crc.h, lib/crc.c: New files.
67267
67268         * lib/gc.h (gc_hash_buffer): Add doc.
67269
67270 2005-10-11  Bruno Haible  <bruno@clisp.org>
67271
67272         * modules/c-strcasestr: New file.
67273         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67274
67275 2005-10-11  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/c-strcase: New file.
67278         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67279
67280 2005-10-11  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/strcasecmp.c: Include limits.h.
67283         (strcasecmp): Avoid integer overflow on exotic platforms.
67284         * lib/strncasecmp.c: Include limits.h.
67285         (strncasecmp): Avoid integer overflow on exotic platforms.
67286         Reported by Paul Eggert.
67287
67288 2005-10-11  Bruno Haible  <bruno@clisp.org>
67289
67290         * lib/c-strcasestr.h: New file, from GNU gettext.
67291         * lib/c-strcasestr.c: New file, from GNU gettext.
67292
67293 2005-10-11  Bruno Haible  <bruno@clisp.org>
67294
67295         * lib/c-strcase.h: New file, from GNU gettext.
67296         * lib/c-strcasecmp.c: New file, from GNU gettext.
67297         * lib/c-strncasecmp.c: New file, from GNU gettext.
67298
67299 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67300
67301         * modules/mempcpy (License): GPL -> LGPL.
67302         * modules/strchrnul (License): Likewise.
67303         * modules/sysexits (License): Likewise.
67304
67305 2005-10-08  Simon Josefsson  <jas@extundo.com>
67306
67307         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67308
67309 2005-10-07  Simon Josefsson  <jas@extundo.com>
67310
67311         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67312
67313 2005-10-06  Simon Josefsson  <jas@extundo.com>
67314
67315         * tests/test-hmac-md5.c: New file.
67316
67317         * modules/hmac-md5-tests: New file.
67318
67319         * modules/hmac-md5: New file.
67320
67321 2005-10-06  Simon Josefsson  <jas@extundo.com>
67322
67323         * m4/hmac-md5.m4: New file.
67324
67325         * m4/memxor.m4: Require gl_C_RESTRICT.
67326
67327 2005-10-06  Simon Josefsson  <jas@extundo.com>
67328
67329         * lib/memxor.c (memxor): Avoid casts and warnings.
67330
67331 2005-10-06  Simon Josefsson  <jas@extundo.com>
67332
67333         * lib/hmac-md5.c: New file.
67334
67335         * lib/hmac.h: New file.
67336
67337 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67340         promotes to int, not unsigned int, to catch the AIX 5.3
67341         compiler bug.
67342
67343 2005-10-05  Simon Josefsson  <jas@extundo.com>
67344
67345         * modules/memxor: New file.
67346
67347         * modules/iconv (Files): Move config.rpath to havelib, it is used
67348         there.
67349
67350         * modules/havelib (Files): Add config.rpath.
67351
67352 2005-10-05  Simon Josefsson  <jas@extundo.com>
67353
67354         * m4/memxor.m4: New file.
67355
67356 2005-10-05  Simon Josefsson  <jas@extundo.com>
67357
67358         * lib/memxor.c (memxor): Fix compiler error.
67359
67360         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67361         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67362
67363         * lib/memxor.h, lib/memxor.c: New files.
67364
67365         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67366         we assume all systems have it, suggested by Jim Meyering
67367         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67368         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67369         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67370         same reasons.
67371
67372 2005-10-05  Simon Josefsson  <jas@extundo.com>
67373
67374         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67375
67376 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67377
67378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67379         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67380         needed, since the source code now assumes these .h files.
67381
67382 2005-10-05  Derek Price  <derek@ximbiot.com>
67383
67384         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67385
67386 2005-10-05  Bruno Haible  <bruno@clisp.org>
67387
67388         * modules/stdint (License): Change to LGPL.
67389
67390 2005-10-04  Simon Josefsson  <jas@extundo.com>
67391
67392         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67393         D. Baushke" <mdb@gnu.org>.
67394
67395 2005-10-04  Bruno Haible  <bruno@clisp.org>
67396
67397         * lib/verify.h (verify_true): Provide alternative definition for C++.
67398
67399 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67402         (SSIZE_MAX): New macro, if not already defined.
67403         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67404         than 2 GiB.
67405
67406 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         Sync from coreutils.
67409         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67410         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67411         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67412         ULLONG_MAX doesn't work with 2.7.2.1.
67413
67414 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67417         From Ben Pfaff.
67418
67419         * modules/exclude (Depends-on): Depend on verify.
67420         * modules/strtoimax (Depends-on): Likewise.
67421         * modules/utimecmp (Depends-on): Likewise.
67422
67423 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67424
67425         * lib/exclude.c: Include verify.h.
67426         (verify): Remove.  All callers changed to use verify.h's version.
67427         * lib/strtoimax.c: Likewise.
67428         * lib/utimecmp.c: Likewis.e
67429
67430         Sync from coreutils.
67431         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67432         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67433         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67434         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67435         bother returning ENOSYS if settimeofday or stime fails; just let
67436         them return whatever errno they want to return.
67437         * lib/utimens.c: Include unistd.h, for dup2.
67438         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67439         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67440
67441 2005-10-02  Jim Meyering  <jim@meyering.net>
67442
67443         Sync from coreutils.
67444         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67445         from glibc-2.2.5 that fails for read-only files.
67446
67447 2005-10-02  Jim Meyering  <jim@meyering.net>
67448
67449         Sync from coreutils.
67450         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67451         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67452         `#if HAVE_CONFIG_H'.
67453         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67454         Remove AT_FDCWD test.
67455         Do not consume the fd unless successful.
67456         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67457         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67458         block, so that we don't even try to compile it if settimeofday is
67459         available.  This works around a compilation failure on OSF1 V5.1,
67460         due to stime requiring a `long int*' while tv_sec is `int'.
67461
67462 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67463
67464         Sync from coreutils.
67465         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67466         against `yes', rather than just testing for nonempty.
67467
67468 2005-10-01  Simon Josefsson  <jas@extundo.com>
67469
67470         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67471         and Darwin.
67472
67473         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67474         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67475         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67476         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67477         Check if struct addrinfo is declared.
67478
67479 2005-10-01  Simon Josefsson  <jas@extundo.com>
67480
67481         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67482         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67483         AI_* and EAI_* definitions.  Protect function declarations.
67484
67485 2005-10-01  Jim Meyering  <jim@meyering.net>
67486
67487         Sync from coreutils.
67488
67489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67490         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67491         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67493         in the inet and nsl libraries.  Required on Solaris 5.7.
67494
67495 2005-10-01  Jim Meyering  <jim@meyering.net>
67496
67497         Sync from coreutils.
67498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67499         in the inet and nsl libraries.  Required on Solaris 5.7.
67500
67501 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67502
67503         * lib/getdelim.c (getdelim): Remove unused variables.
67504
67505 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67506
67507         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67508         so that the code works even with ancient cpp.  Portability problem
67509         with GCC 2.7.2.1 reported by Thomas M.Ott.
67510
67511 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * modules/regex (Depends-on): Add strcase.
67514
67515         * modules/gethostname (Licence): Change from GPL to LGPL, since
67516         gethostname.c is a trivial implementation of a standard library
67517         function.
67518         * modules/poll (License): Change from GPL to LGPL, since it's
67519         derived from LGPL code.
67520
67521 2005-09-27  Jim Meyering  <jim@meyering.net>
67522
67523         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67524         HAVE_CONFIG_H.
67525
67526         * lib/intprops.h (signed_type_or_expr__): Define.
67527         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67528         for unsigned types.
67529
67530 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * lib/verify.h (verify_expr): Remove, replacing with:
67533         (verify_true): New macro that returns true instead of void.
67534         (verify_type__): Remove.
67535         (verify): Use verify_true rather than verify_type__.
67536
67537 2005-09-26  Bruno Haible  <bruno@clisp.org>
67538
67539         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67540         is necessary.
67541         (lib_SOURCES): Remove mbchar.c.
67542         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67543         (Files): Add m4/mbrtowc.m4.
67544         * modules/mbiter: Likewise.
67545         * modules/mbuiter: Likewise.
67546
67547 2005-09-26  Bruno Haible  <bruno@clisp.org>
67548
67549         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67550         compile mbchar.c if they are not both present.
67551         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67552         * m4/mbiter.m4 (gl_MBITER): Likewise.
67553         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67554         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67555         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67556
67557 2005-09-25  Jim Meyering  <jim@meyering.net>
67558
67559         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67560         also uses socklen_t.
67561
67562 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * lib/utimens.c (ENOSYS): Define if not already defined.
67565         (futimens): Support having a null PATH if the file descriptor
67566         is nonnegative.
67567
67568         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67569         Remove.
67570         (__attribute): Define to empty unless GCC 3.1 or later.
67571         This works around a core dump on OpenBSD 3.4, which has GCC
67572         2.95.3, which dumps core when given __attribute__(()).  It also
67573         simplifies other tests, since we really don't want to bother with
67574         worrying about which ancient version of GCC supported what.
67575         Original problem reported by Yoann Vandoorselaere, with part of
67576         the fix suggested by Derek Price.
67577
67578 2005-09-24  Jim Meyering  <jim@meyering.net>
67579
67580         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67581         so we can once again use a positive bitfield width of 1 -- now we
67582         don't have to explain why we were using a bitfield width of 2.
67583
67584 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67587         and similarly for the other external symbols.  Problem reported
67588         by James Gallager.
67589
67590         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67591         bug reported by Jim Meyering.
67592
67593         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67594         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67595         not needed, since socklen is a prerequisite module.
67596
67597 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67598
67599         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67600         Problem reported by Eric Blake.
67601         (getaddrinfo): Initialize se so that it's not garbage.
67602         Redo internal storage allocation so that it doesn't make unportable
67603         assumptions about alignment.
67604         Fix a memory leak.
67605
67606         * lib/utimens.c (futimens): Use futimesat if available.
67607         Prefer it to futimes since it doesn't have the futimes bug.
67608
67609         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67610         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67611         Instead, declare a function that returns a pointer to an array,
67612         and use verify_type__ to declare the size of the array.
67613         Problem and germ of a solution reported by Bruno Haible.
67614         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67615         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67616
67617 2005-09-23  Jim Meyering  <jim@meyering.net>
67618
67619         Sync from coreutils.
67620         Correct build failure (socklen_t not defined) on at least
67621         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67622         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67623
67624 2005-09-23  Jim Meyering  <jim@meyering.net>
67625
67626         * modules/getaddrinfo (Depends-on): Add socklen.
67627
67628 2005-09-23  Bruno Haible  <bruno@clisp.org>
67629
67630         * tests/test-verify.c: New file.
67631
67632 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         Sync from coreutils.
67635
67636         * modules/argmatch (Depends-on): Add verify.
67637         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67638         unistd-safer.
67639         * modules/save-cwd (Depends-on): Likewise.
67640
67641         * modules/openat (Files): Add lib/openat-die.c.
67642         (Depends-on): Remove error, exitfail.
67643         Add dirname.
67644
67645         * modules/verify: New file.
67646         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67647         with "verify" module.
67648
67649 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67650
67651         Sync from coreutils.
67652
67653         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67654         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67655         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67656         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67657         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67658         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67659         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67660         Don't bother checking for string.h, stdlib.h, unistd.h.
67661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67663         module's job.
67664         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67665         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67666
67667         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67668         (gl_GETDATE): Use it.
67669
67670         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67671
67672 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         Sync from coreutils.
67675
67676         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67677         stat-time.h.
67678         * lib/argmatch.h: Include verify.h
67679         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67680         (ARGMATCH_ASSERT): Remove; unused.
67681         * lib/canonicalize.c: Assume STDC_HEADERS.
67682         * lib/exclude.c: Include "strcase.h".
67683         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67684         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67685         and stdio-safer.h.
67686         (getusershell): Call fopen, not fopen_safer.
67687         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67688         Do not include unistd-safer.h.
67689         (save_cwd): Don't call fd_safer; no longer needed
67690         now that we include fcntl--.h.
67691
67692         * lib/getdate.y (relative_time): New type.
67693         (RELATIVE_TIME_0): New constant.
67694         (parser_control): Use relative_time instead of doing it ourselves.
67695         (%union): Add new relative_time rel member.
67696         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67697         Now typeless.
67698         (relunit, relunit_snumber): Now of type rel.
67699         (zone, rel, relunit, get_date): Adjust to above changes.
67700
67701         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67702         Do not include unistd-safer.h.
67703         (getloadavg): Don't call fd_safer; no longer needed
67704         now that we include fcntl--.h.
67705
67706         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67707         (make_dir_parents): Treat ENOSYS like EEXIST.
67708
67709         Improve quality of diagnostics on restore_cwd failure.
67710         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67711         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67712         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67713         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67714         each time through the loop.  Do not diagnose restore_cwd failure;
67715         that is the caller's job (and perhaps the caller does not care).
67716
67717         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67718         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67719         If the file already exists but is not a directory, don't bother
67720         to try to make its parents.
67721         Close potential file descriptor leak if we can't chdir("/") (!).
67722         Don't always return true if chdir($PWD) fails; return true only
67723         if the requested action was done successfully (except for the
67724         chdir($PWD)).
67725         Don't log final directory unless we actually made it.
67726         Refactor to avoid duplicate code to fix up permissions.
67727         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67728
67729         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67730         to make it a bit faster and (I hope) clearer.
67731         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67732         Fix bug in formats like %2N.
67733
67734         * lib/verify.h: New file.
67735
67736 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67737
67738         Sync from coreutils.
67739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67740
67741 2005-09-22  Jim Meyering  <jim@meyering.net>
67742
67743         Sync from coreutils.
67744
67745         * m4/lstat.m4 (gl_FUNC_LSTAT):
67746         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67747         Remove obsolete comment.
67748         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67749         * m4/xstrtod.m4: Likewise.
67750
67751         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67752
67753 2005-09-22  Jim Meyering  <jim@meyering.net>
67754
67755         Sync from coreutils.
67756
67757         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67758
67759         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67760         the .tm_year member, since otherwise gcc-4.0 would now warn about
67761         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67762
67763         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67764         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67765
67766         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67767         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67768         when run in a time zone for which daylight savings time is in effect
67769         for the starting date.
67770
67771         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67772         stop us from restricting permissions of just-created absolute-named
67773         directories.
67774         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67775         to restore initial working directory.
67776         * lib/mkdir-p.c (make_dir_parents): New parameter:
67777         different_working_dir, to tell caller if/when we change the working
67778         directory and are unable to return to the initial one.
67779         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67780         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67781         `return false'.  This fixes a bug introduced on 2004-07-30.
67782
67783         * lib/openat.c (fdopendir): Be sure to close the supplied
67784         file descriptor before returning.  This makes our replacement
67785         implementation a little closer to Solaris's, where fdopendir
67786         ties the file descriptor to the returned DIR* pointer.
67787         * lib/openat.c (unlinkat): New function.
67788         * lib/openat.h (unlinkat): Add prototype.
67789         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67790         (openat_restore_fail): Rename from openat_restore_die.
67791         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67792
67793         Provide an alternative to exiting immediately upon save_cwd or
67794         restore_cwd failure.  Now, an application can arrange e.g.,
67795         to perform a longjump in that case.
67796         * lib/openat.c: Include dirname.h.
67797         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67798         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67799         and openat_restore_die rather than calling error directly.
67800         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67801
67802         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67803         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67804         define.
67805
67806         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67807         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67808                             int utc, int nanoseconds);
67809         Background:
67810         date should not have to allocate a megabyte of virtual memory to
67811         handle a format argument like +%1048575T.  When implemented with
67812         strftime, it must allocate such a buffer, use strftime to fill it
67813         in, print it, then free it.
67814         With fprintftime, it simply prints everything and exits.
67815         With no need for memory allocation, that's one fewer way to fail.
67816         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67817         optional field width, not before, so we accept %9:z, not %:9z.
67818         (my_strftime): Be sure to use L_('x') for literals.
67819
67820         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67821         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67822         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67823         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67824         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67825         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67826         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67827         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67828         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67829         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67830         * lib/xgethostname.c, lib/xreadlink.c:
67831         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67832
67833         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67834         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67835         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67836         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67837         and don't include <sys/file.h>).
67838
67839 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67840
67841         Sync from coreutils.
67842
67843         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67844         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67845         [!LDAV_DONE]: Avoid unused variable warning.
67846
67847 2005-09-21  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/unicodeio.h (unicode_to_mb): New declaration.
67850
67851 2005-09-20  Derek Price  <derek@ximbiot.com>
67852
67853         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67854         getaddrinfo.h.
67855
67856 2005-09-20  Bruno Haible  <bruno@clisp.org>
67857
67858         * gnulib-tool: Remove trailing slashes from the values specified for
67859         --source-base, --m4-base, --tests-base, --aux-dir.
67860         Suggested by Simon Josefsson <jas@extundo.com>.
67861
67862 2005-09-20  Bruno Haible  <bruno@clisp.org>
67863
67864         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67865         func_modules_to_filelist, func_import, func_create_testdir): Make all
67866         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67867         change when gnulib-tool is invoked in a different locale.
67868
67869 2005-09-19  Simon Josefsson  <jas@extundo.com>
67870
67871         * m4/socklen.m4: Fix typo.
67872
67873 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67874
67875         Use a consistent style for including <config.h>.
67876         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67877         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67878         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67879         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67880         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67881         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67882         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67883         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67884         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67885         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67886         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67887         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67888         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67889         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67890         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67891         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67892         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67893         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67894         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67895         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67896         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67897         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67898         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67899         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67900         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67901         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67902         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67903         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67904         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67905         lib/xstrtoumax.c, lib/yesno.c:
67906         Standardize inclusion of config.h.
67907         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67908         lib/inttostr.h:  Removed inclusion of config.h from header files.
67909         * lib/inttostr.c:  Adjusted in-tree users.
67910         * lib/timespec.h: Remove superfluous warning to include config.h.
67911         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67912         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67913         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67914         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67915         config.h with HAVE_CONFIG_H.
67916
67917 2005-09-19  Jim Meyering  <jim@meyering.net>
67918
67919         * modules/pathmax (License): Change to LGPL.
67920
67921 2005-09-19  Derek Price  <derek@ximbiot.com>
67922
67923         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67924
67925 2005-09-19  Bruno Haible  <bruno@clisp.org>
67926
67927         * gnulib-tool (import): Provide default for --tests-base.
67928
67929 2005-09-19  Bruno Haible  <bruno@clisp.org>
67930
67931         * doc/quote.texi: New file, extracted from gnulib.texi.
67932         * doc/ctime.texi: New file, extracted from gnulib.texi.
67933         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67934         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67935         * doc/gnulib.texi: Include them.
67936
67937 2005-09-18  Bruno Haible  <bruno@clisp.org>
67938
67939         Portability fix.
67940         * gnulib-tool (func_readlink): New function.
67941         (func_ln_if_changed): Use it.
67942
67943 2005-09-18  Bruno Haible  <bruno@clisp.org>
67944
67945         * gnulib-tool: Support --with-tests also with --import.
67946         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67947         (func_import): Use variables $testsbase and $inctests. Emit a
67948         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67949         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67950         SUBDIRS += $testsdir.
67951         (func_create_testdir): Update.
67952
67953 2005-09-18  Bruno Haible  <bruno@clisp.org>
67954
67955         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67956         instead of $dry_run.
67957         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67958         (func_ln_if_changed): Don't handle dry-run here.
67959         (func_import): In dry-run mode, detect more precisely which actions
67960         would be performed, and don't use "...ing" verbs.
67961
67962 2005-09-18  Bruno Haible  <bruno@clisp.org>
67963
67964         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67965         (func_import): Use join on two temporary files instead of three nested
67966         loops, in order to determine which files are new or old.
67967
67968 2005-09-18  Bruno Haible  <bruno@clisp.org>
67969
67970         * gnulib-tool (func_import): Comment out code that spits out the
67971         new files with --dry-run.
67972
67973 2005-09-18  Bruno Haible  <bruno@clisp.org>
67974
67975         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67976
67977 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67978
67979         * lib/stat-time.h: New file.
67980         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67981         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67982         in a different way.
67983         (timespec_cmp): New function.
67984         * lib/utimecmp.c: Include stat-time.h.
67985         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67986         members exist, not on the obsolescent ST_MTIM_NSEC.
67987         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67988
67989 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67992
67993 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         * MODULES.html.sh (File system functions): Add stat-time.
67996         * modules/stat-time: New file.
67997         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67998         is now done in a different way, by the stat-time module.
67999         * modules/utimecmp (Depends-on): Add stat-time.
68000
68001 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * m4/st_mtim.m4: Remove.  Superseded by...
68004         * m4/stat-time.m4: New file.
68005         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68006         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68007
68008 2005-09-15  Derek Price  <derek@ximbiot.com>
68009
68010         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68011
68012 2005-09-15  Derek Price  <derek@ximbiot.com>
68013
68014         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68015         * lib/regex_internal.c: Ditto, using this...
68016         (__GNUC_PREREQ): ...new macro.
68017         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68018         using...
68019         (__GNUC_PREREQ): ...this new macro.
68020
68021         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68022
68023 2005-09-15  Derek Price  <derek@ximbiot.com>
68024             Paul Eggert  <eggert@cs.ucla.edu>
68025
68026         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68027         changes, consolidating in...
68028         * lib/regex_internal.h: ...this file.
68029
68030 2005-09-13  Jim Meyering  <jim@meyering.net>
68031
68032         * lib/canon-host.c: Filter through gnu indent and reword comments
68033         slightly.
68034         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68035
68036 2005-09-13  Derek Price  <derek@ximbiot.com>
68037
68038         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68039         failure.
68040         Reported by Jim Meyering  <jim@meyering.net>.
68041
68042 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68043
68044         * lib/base64.c: Typo.
68045         (base64_encode): Put b64str in initialized data section.
68046
68047 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         Merge glibc and coreutils changes into gnulib, plus a few
68050         extra fixes.
68051         * lib/md5.c: Use #error rather than a string.
68052         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68053         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68054         (__attribute__): Define to empty for non recent-GCC.
68055         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68056         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68057         Renamed from their non-__ counterparts, with new macros replacing
68058         them if not _LIBC.  Add __THROW attribute.
68059         (rol): Remove.
68060         (struct md5_ctx): Align buffer if using GCC.
68061         * lib/sha1.h (struct sha1_ctx): Likewise.
68062         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68063         The old name was backwards.
68064         (NOTSWAP): Remove; not used.
68065         (rol): New macro, moved here from md5.h.
68066         (sha1_process_block): Remove a FIXME that doesn't make sense.
68067
68068 2005-09-12  Derek Price  <derek@ximbiot.com>
68069
68070         Return usable errors from canon-host.
68071         * lib/canon-host.h: New file.
68072         * lib/canon-host.c (canon_host): Wrap...
68073         (canon_host_r): ...this new function, which now relies exclusively on
68074         getaddrinfo.
68075         (ch_strerror): New function.
68076         (last_cherror): New global.
68077         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68078         interface.
68079         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68080         void *.
68081         (freeaddrinfo): Free ai->ai_canonname when set.
68082
68083 2005-09-12  Derek Price  <derek@ximbiot.com>
68084
68085         Make canon-host require getaddrinfo.
68086         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68087         AC_LIBSOURCE canon-host.h.  Call...
68088         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68089         gl_GETADDRINFO.
68090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68091
68092 2005-09-12  Derek Price  <derek@ximbiot.com>
68093
68094         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68095         LGPL.
68096         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68097
68098 2005-09-12  Derek Price  <derek@ximbiot.com>
68099
68100         * lib/gai_strerror.c: Include config.h when available.  Include
68101         getaddrinfo.h before other headers to test interface.
68102         Reported by Larry Jones <lawrence.jones@ugs.com>.
68103
68104 2005-09-12  Derek Price  <derek@ximbiot.com>
68105             Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         * modules/glob (Files): Add glob-libc.h.
68108
68109 2005-09-12  Derek Price  <derek@ximbiot.com>
68110             Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68113         glob_.h, glob-libc.h.
68114         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68115
68116 2005-09-12  Derek Price  <derek@ximbiot.com>
68117             Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68120         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68121         protecting things that should be done only in gnulib contexts.
68122         * lib/glob_.h: New file, containing only the glob things needed for
68123         gnulib.
68124         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68125         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68126         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68127         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68128         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68129         and to respect the namespace rules better.
68130
68131 2005-09-08  Simon Josefsson  <jas@extundo.com>
68132
68133         * modules/socklen: New file.
68134
68135 2005-09-08  Simon Josefsson  <jas@extundo.com>
68136
68137         * m4/socklen.m4: New file.
68138
68139 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * modules/utimens (Files): Add m4/utimbuf.m4, since
68142         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68143         Reported by Sergey Poznyakoff.
68144
68145 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68146
68147         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68148         definitions, since that's the preferred style in glibc.
68149         Fix a minor spacing issue, and update copyright notice to match
68150         glibc's.
68151
68152 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68155
68156 2005-09-06  Simon Josefsson  <jas@extundo.com>
68157
68158         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68159         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68160
68161 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68162
68163         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68164         warning.
68165
68166 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         * config/srclist.txt: Add glibc bug 1302.
68169
68170 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         Change bitset word type from unsigned int to unsigned long int,
68173         as this has better performance on typical 64-bit hosts.
68174         Port bitset code to hosts with unusual word sizes.
68175         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68176         (build_collating_symbol):
68177         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68178         argument is a bitset.  This is merely a style issue, but it makes
68179         it clearer that an entire array is expected.
68180         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68181         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68182         Port to the case where bitset_word is not the same as unsigned int.
68183         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68184         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68185         Likewise.
68186         * lib/regexec.c (check_dst_limits_calc_pos_1,
68187         check_subexp_matching_top):
68188         (build_trtable, group_nodes_into_DFAstates):
68189         Likewise.
68190         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68191         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68192         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68193         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68194         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68195         * lib/regcomp.c (optimize_subexps, lower_subexp):
68196         Work even if bitset_word has holes in its bitwise representation.
68197         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68198         * lib/regexec.c (check_dst_limits_calc_pos_1,
68199         check_subexp_matching_top):
68200         Likewise.
68201         * lib/regex_internal.c (re_string_reconstruct):
68202         Don't assume UCHAR_MAX == 255.
68203         * lib/regex_internal.h (bitset_set_all): Likewise.
68204         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68205         All uses changed.
68206         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68207         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68208         All uses changed.
68209         (BITSET_WORD_MAX): New macro.
68210         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68211         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68212         (bitset_empty, bitset_copy):
68213         Prefer sizeof (bitset) to multiplying it out ourselves.
68214         (bitset_not_merge): Remove; unused.
68215         (bitset_contain): Return bool, not unsigned int with one bit on.
68216         All callers changed.
68217         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68218         alignment than re_node_set; do this by defining a new internal
68219         type struct dests_alloc and using it to allocate memory.
68220
68221 2005-09-05  Bruno Haible  <bruno@clisp.org>
68222
68223         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68224         links.
68225
68226 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68227
68228         * modules/size_max (Makefile.am): Add size_max.h
68229
68230 2005-09-04  Derek Price  <derek@ximbiot.com>
68231
68232         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68233
68234 2005-09-03  Simon Josefsson  <jas@extundo.com>
68235
68236         * gnulib-tool: Fix typo.
68237
68238 2005-09-03  Simon Josefsson  <jas@extundo.com>
68239
68240         * config/srclist.txt: Add glibc bug 1293.
68241
68242 2005-09-03  Derek Price  <derek@ximbiot.com>
68243
68244         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68245         From Larry Jones <lawrence.jones@ugs.com>.
68246
68247 2005-09-02  Simon Josefsson  <jas@extundo.com>
68248
68249         * modules/socklen: New file.
68250
68251 2005-09-02  Simon Josefsson  <jas@extundo.com>
68252
68253         * modules/havelib: New module.
68254
68255         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68256         Use havelib.
68257
68258 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68259
68260         Check for arithmetic overflow when calculating sizes, to prevent
68261         some buffer-overflow issues.  These patches are conservative, in the
68262         sense that when I couldn't determine whether an overflow was possible,
68263         I inserted a run-time check.
68264         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68265         macros.
68266         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68267         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68268         (re_xnrealloc, re_x2nrealloc): New inline functions.
68269         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68270         parse_bracket_exp):
68271         (build_equiv_class, build_charclass): Check for arithmetic overflow
68272         in size expression calculations.
68273         * lib/regex_internal.c (re_string_realloc_buffers):
68274         (build_wcs_upper_buffer, re_node_set_add_intersect):
68275         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68276         (re_dfa_add_node, register_state): Likewise.
68277         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68278         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68279         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68280         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68281
68282 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68285         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68286
68287 2005-09-02  Bruno Haible  <bruno@clisp.org>
68288
68289         Support for lib vs. lib64 distinction on biarch platforms.
68290         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68291         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68293
68294 2005-09-02  Bruno Haible  <bruno@clisp.org>
68295
68296         * gnulib-tool (import): In the other first-use case, provide defaults
68297         as well.
68298
68299 2005-09-02  Bruno Haible  <bruno@clisp.org>
68300
68301         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68302         patches not yet found in the latest gettext release.
68303
68304 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68307         to avoid a collision with bits/local_lim.h in glibc.
68308         All uses changed.  Problem reported by Dmitry V. Levin in
68309         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68310
68311         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68312         bugs in int versus size_t comparisons.
68313         (re_string_context_at): Fix bug where the code assumed that
68314         Idx is signed.
68315
68316         Use bool where appropriate.
68317         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68318         All callers changed.
68319         (calc_eclosure_iter): Likewise, for ROOT arg.
68320         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68321         (build_charclass_op): Likewise, for NON_MATCH arg.
68322         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68323         (re_string_construct_common): Likewise, for ICASE arg.
68324         * lib/regexec.c (re_search_2_stub, re_search_stub):
68325         Likewise, for RET_LEN arg.
68326         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68327         (set_regs): Likewise, for FL_BACKTRACK arg.
68328         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68329         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68330         (calc_eclosure_iter, parse_bracket_exp):
68331         Use bool for internal variables that are booleans.
68332         * lib/regexec.c (re_search_internal, check_matching,
68333         proceed_next_node):
68334         (set_regs, build_sifted_states, sift_states_bkref):
68335         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68336         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68337         (find_collation_sequence_value):
68338         Likewise.
68339         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68340         (re_node_set_compare):
68341         Return bool, not int. All callers changed.
68342         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68343         (build_trtable, check_node_accept): Likewise.
68344         * lib/regex_internal.h: Include stdbool.h.
68345
68346         Fix bugs uncovered when converting to bool.
68347         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68348         failure instead of charging ahead blindly.
68349         * lib/regex_internal.c (register_state): Likewise.
68350         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68351         for freeing internal storage.
68352         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68353         bitset pieces used as boolean, to avoid undefined behavior
68354         on hosts that do int overflow checking.
68355
68356 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * config/srclist.txt: Add glibc bugs 1285-1287.
68359
68360 2005-09-01  Jim Meyering  <jim@meyering.net>
68361
68362         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68363         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68364         Require gl_STAT_MACROS, too.
68365
68366 2005-09-01  Bruno Haible  <bruno@clisp.org>
68367
68368         * gnulib-tool (import): In the first-use case, provide defaults.
68369
68370 2005-09-01  Bruno Haible  <bruno@clisp.org>
68371
68372         * gnulib-tool (func_import): Remove the .tmp files.
68373
68374 2005-09-01  Bruno Haible  <bruno@clisp.org>
68375
68376         * gnulib-tool (func_import): Fix handling of symbolic links.
68377
68378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68379
68380         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68381         old glibc regex code mishandles strings longer than 2**31 bytes.
68382         This patch fixes this when the regex code is used in gnulib
68383         (i.e., outside glibc).
68384
68385         This patch should not affect the use of the regex code inside
68386         glibc.  No doubt this problem also needs to be handled for glibc
68387         as well, but the result will be an incompatible change to the
68388         glibc ABI, and the old ABI will have to be supported too.  That
68389         can be the the subject for another patch.
68390
68391         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68392         governing whether the rest of this patch is active.  By default,
68393         the macro is disabled and the patch has no effect.
68394         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68395         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68396         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68397         (re_match_2, re_set_registers): Use the new types.
68398         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68399         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68400         New macros.
68401         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68402         (re_string_context_at, bin_tree_t, re_dfastate_t):
68403         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68404         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68405         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68406         (re_string_char_size_at, re_string_wchar_at):
68407         (re_string_elem_size_at):
68408         Use the new types and macros to port to 64-bit hosts.
68409         Use unsigned types for internal values, so that the code
68410         mostly works even for arrays larger than SSIZE_MAX.
68411         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68412         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68413         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68414         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68415         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68416         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68417         (calc_inveclosure, parse_dup_op, build_range_exp):
68418         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68419         (fetch_number, create_token_tree, mark_opt_subexp):
68420         Likewise.
68421         * lib/regex_internal.c (re_string_construct_common,
68422         create_ci_newstate):
68423         (create_cd_newstate, re_string_allocate, re_string_construct):
68424         (re_string_realloc_buffers, build_wcs_upper_buffer):
68425         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68426         (re_string_reconstruct, re_string_peek_byte_case):
68427         (re_string_fetch_byte_case, re_string_context_at):
68428         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68429         (re_node_set_init_copy, re_node_set_add_intersect):
68430         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68431         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68432         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68433         (re_acquire_state, re_acquire_state_context, register_state):
68434         Likewise.
68435         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68436         search_cur_bkref_entry):
68437         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68438         (re_search_internal, re_search_2_stub, re_search_stub)
68439         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68440         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68441         (update_cur_sifted_state, check_dst_limits):
68442         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68443         (check_subexp_limits, sift_states_bkref, merge_state_array):
68444         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68445         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68446         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68447         (expand_bkref_cache, check_node_accept_bytes):
68448         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68449         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68450         (acquire_init_state_context, check_halt_node_context):
68451         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68452         (sift_states_backward, clean_state_log_if_needed):
68453         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68454         (find_recover_state, transit_state_sb, transit_state_mb):
68455         (transit_state_bkref, build_trtable, match_ctx_clean):
68456         Likewise.
68457         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68458         to work around an assumption that REG_MISSING is negative.
68459
68460         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68461         (seek_collating_symbol_entry) [defined _LIBC]:
68462         (lookup_collation_sequence_value) [defined _LIBC]:
68463         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68464         Use prototypes rather than old-style function definitions.
68465         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68466         (transit_state_sb) [0]:
68467         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68468
68469         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68470         rm_eo.
68471
68472         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68473         (optimize_subexps, lower_subexp):
68474         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68475         since the signed shift might overflow.  Use 1u<<31 instead.
68476         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68477         Likewise.
68478         * lib/regexec.c (check_dst_limits_calc_pos_1,
68479         check_subexp_matching_top): Likewise.
68480
68481         * lib/regcomp.c (optimize_subexps, lower_subexp):
68482         Use CHAR_BIT rather than 8, for clarity.
68483         * lib/regexec.c (check_dst_limits_calc_pos_1):
68484         (check_subexp_matching_top): Likewise.
68485         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68486         have to worry about portability issues when shifting it left.
68487         Remove no-longer-needed test for table_size > 0.
68488         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68489         in a word, as the resulting behavior is undefined.
68490         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68491         in one case, a <= should have been an <, and in another case the
68492         whole test was missing.
68493         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68494         the standard name CHAR_BIT.
68495         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68496         this is not true on one's complement and signed-magnitude hosts.
68497
68498         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68499         next_last_offset.
68500         (struct re_dfa_t): Remove unused member states_alloc.
68501         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68502
68503 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68504
68505         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68506         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68507         and large-file glibc and in 32-bit large-file Solaris.
68508
68509 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68510
68511         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68512         lengths fit in regoff_t; this isn't true if regoff_t is the same
68513         width as size_t.
68514         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68515         (= START + RANGE) instead of RANGE.  This avoids overflow
68516         problems when regoff_t is the same width as size_t.
68517         All callers changed.
68518         (re_search_2_stub): Check for overflow when adding the
68519         sizes of the two strings.
68520         (re_search_stub): Check for overflow when adding START
68521         to RANGE; if it occurs, substitute the extreme value.
68522
68523 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68526
68527 2005-08-31  Jim Meyering  <jim@meyering.net>
68528
68529         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68530         a pointer-to-const.
68531         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68532         (register_state): Likewise.
68533         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68534         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68535         (group_nodes_into_DFAstates): Likewise.
68536
68537 2005-08-31  Jim Meyering  <jim@meyering.net>
68538
68539         * check-module: Add a FIXME comment.
68540
68541 2005-08-31  Eric Blake  <ebb9@byu.net>
68542
68543         * modules/unistd-safer (Files): Add unistd--.h.
68544         * modules/stdio-safer (Files): Add stdio--.h.
68545
68546 2005-08-31  Derek Price  <derek@ximbiot.com>
68547
68548         * lib/getdelim.c (getdelim): Return EOF on EOF.
68549         Reported by Larry Jones <lawrence.jones@ugs.com>.
68550
68551 2005-08-31  Bruno Haible  <bruno@clisp.org>
68552
68553         Avoid unnecessary diffs in the generated lib/Makefile.am.
68554         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68555         the generated files.
68556         (func_import): Don't set cmd.
68557
68558 2005-08-31  Bruno Haible  <bruno@clisp.org>
68559
68560         * lib/strstr.c: Include <stddef.h>, for NULL.
68561         * lib/strcasestr.c: Likewise.
68562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68563
68564 2005-08-31  Bruno Haible  <bruno@clisp.org>
68565
68566         * gnulib-tool: New option --macro-prefix.
68567         (func_import): Use macro_prefix.
68568         (import): Handle option --macro-prefix.
68569
68570 2005-08-31  Bruno Haible  <bruno@clisp.org>
68571
68572         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68573         Also use new variables cached_lgpl, cached_libtool.
68574
68575 2005-08-31  Bruno Haible  <bruno@clisp.org>
68576
68577         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68578         always instantiating them.
68579
68580 2005-08-31  Bruno Haible  <bruno@clisp.org>
68581
68582         * gnulib-tool (func_import): Read the previous cached settings
68583         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68584         earlier added by gnulib but are now dropped. Warn when a gnulib file
68585         overwrites a non-gnulib file.
68586
68587 2005-08-31  Bruno Haible  <bruno@clisp.org>
68588
68589         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68590         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68591         projects that don't keep autogenerated files in CVS. Put into
68592         actioncmd only the specified modules, not the transitive closure.
68593
68594 2005-08-31  Bruno Haible  <bruno@clisp.org>
68595
68596         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68597         Create directories that shall be filled.
68598         (import): Don't look for gl_* macros in configure.ac. Recurse across
68599         all directories containing a gnulib-cache.m4 files, if meaningful.
68600
68601 2005-08-31  Bruno Haible  <bruno@clisp.org>
68602
68603         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68604         (import): Set seen_libtool when we see gl_LIBTOOL.
68605
68606 2005-08-31  Bruno Haible  <bruno@clisp.org>
68607
68608         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68609         declaration macro definitions from generated gnulib.m4.
68610
68611 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68612
68613         * lib/iconvme.h: Add prototype for iconv_alloc.
68614
68615 2005-08-29  Simon Josefsson  <jas@extundo.com>
68616
68617         * lib/iconvme.c: Fix errno.
68618
68619 2005-08-29  Bruno Haible  <bruno@clisp.org>
68620
68621         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68622         that it works when the directory contains spaces.
68623
68624 2005-08-29  Bruno Haible  <bruno@clisp.org>
68625
68626         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68627
68628 2005-08-29  Bruno Haible  <bruno@clisp.org>
68629
68630         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68631         Emit more advice.
68632
68633 2005-08-29  Bruno Haible  <bruno@clisp.org>
68634         and Stepan Kasal  <kasal@ucw.cz>
68635
68636         * check-module: If more parameters are given, check each of them
68637         separately; add more exceptions, as noted by Jim Meyering.
68638         (check_module): New procedure.
68639         (%exempt_header): Now contains all exceptions.
68640
68641 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68642
68643         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68644
68645 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68646
68647         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68648
68649 2005-08-28  Bruno Haible  <bruno@clisp.org>
68650
68651         * m4/gnulib-tool.m4: New file.
68652
68653 2005-08-27  Jim Meyering  <jim@meyering.net>
68654
68655         * modules/unistd-safer (Files): Add pipe-safer.c.
68656         * modules/fcntl-safer (Files): Add creat-safer.c.
68657
68658 2005-08-27  Jim Meyering  <jim@meyering.net>
68659
68660         * m4/stdlib-safer.m4: New file.  From coreutils.
68661         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68662         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68663         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68664         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68665         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68666
68667 2005-08-27  Jim Meyering  <jim@meyering.net>
68668
68669         * lib/fopen-safer.c: Merge minor changes from coreutils.
68670         * lib/dup-safer.c: Likewise.
68671         * lib/fd-safer.c: Likewise.
68672
68673         Merge from coreutils.
68674         * lib/stdio--.h: New file.
68675         * lib/stdlib--.h: New file.
68676         * lib/mkstemp-safer.c: New file.
68677
68678         GNU tar needs these.
68679         * lib/pipe-safer.c: New file.
68680         * lib/creat-safer.c: New file.
68681         * lib/fcntl--.h (creat): Define to creat_safer.
68682         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68683         * lib/unistd--.h (pipe): Define to pipe_safer.
68684         * lib/unistd-safer.h: Declare pipe_safer.
68685
68686 2005-08-26  Simon Josefsson  <jas@extundo.com>
68687
68688         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68689         Haible <bruno@clisp.org>.
68690
68691 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * lib/regex_internal.h: Remove all references to
68694         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68695         or better.
68696         (bitset_not, bitset_merge, bitset_not_merge):
68697         (bitset_mask, re_string_allocate, re_string_construct):
68698         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68699         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68700         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68701         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68702         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68703         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68704         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68705         (re_acquire_state_context):
68706         Remove unnecessary forward decls.
68707         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68708         Put __attribute at function definition,
68709         now that the function decl has been removed.
68710         * lib/regex_internal.c (re_string_peek_byte_case):
68711         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68712         Likewise.
68713
68714 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68715
68716         * m4/regex.m4: Add AC_PREREQ(2.50).
68717         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68718
68719 2005-08-25  Simon Josefsson  <jas@extundo.com>
68720
68721         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68722         __fsetlocking.
68723
68724 2005-08-25  Simon Josefsson  <jas@extundo.com>
68725
68726         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68727         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68728         GLIBC specific code.
68729
68730 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         Make regex safe for g++.  This fixes one real bug (an "err"
68733         that should have been "*err").  g++ problem reported by
68734         Sam Steingold.
68735         * lib/regex_internal.h (re_calloc): New macro, consistent with
68736         re_malloc etc.  All callers of calloc changed to use re_calloc.
68737         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68738         not int.  All callers changed.
68739         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68740         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68741         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68742         (find_recover_state): Change "err" to "*err"; this fixes what
68743         appears to be a real bug.
68744         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68745         versus int.
68746
68747 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * modules/regex (Depends-on): Add malloc, since the code
68750         assumes that !malloc(0) means failure.
68751
68752 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68755
68756         alloca modernization/simplification for regex.
68757         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68758         needs to be at the start of the file, and can be moved into
68759         regex_internal.h and simplified.
68760         * lib/regex_internal.h: Include <alloca.h>.
68761         (__libc_use_alloca) [!defined _LIBC]: New macro.
68762         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68763         now works outside glibc.
68764
68765 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * config/srclist.txt: Add glibc bugs 1241, 1245.
68768
68769 2005-08-25  Jim Meyering  <jim@meyering.net>
68770
68771         * lib/open-safer.c: Include <config.h>.
68772         Otherwise, we'd lose LARGEFILE support in any file using
68773         e.g. "fcntl--.h"
68774
68775 2005-08-25  Bruno Haible  <bruno@clisp.org>
68776
68777         * m4/minmax.m4: Require autoconf 2.52.
68778         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68779         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68780         alternatives of translit over the alphabet.
68781         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68782
68783 2005-08-24  Simon Josefsson  <jas@extundo.com>
68784
68785         * tests/test-getpass.c: New file.
68786
68787 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68788
68789         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68790         for GNU regex features.
68791
68792 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68795         * lib/regex.h (regerror): Likewise.
68796
68797         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68798         requires this.  (The code never needed it.)
68799
68800         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68801         All uses of recently-renamed identifiers changed to use the new,
68802         POSIX-compliant names.  The code will build and run just fine
68803         without these changes, but it's better to eat our own dog food
68804         and use the standard-conforming names.
68805
68806         * lib/regex.h: Fix a multitude of POSIX name space violations.
68807         These changes have an effect only for programs that define
68808         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68809         do not change anything for programs compiled in the normal way.
68810         Also, there is no effect on the ABI.
68811
68812         (_REGEX_SOURCE): New macro.
68813         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68814         defined and _GNU_SOURCE is not; this fixes a name space violation.
68815
68816         Rename the following macros to obey POSIX requirements.
68817         The old names are still visible as macros if _REGEX_SOURCE is defined.
68818         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68819         RE_BACKSLASH_ESCAPE_IN_LISTS.
68820         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68821         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68822         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68823         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68824         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68825         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68826         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68827         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68828         (REG_INTERVALS): renamed from RE_INTERVALS.
68829         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68830         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68831         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68832         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68833         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68834         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68835         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68836         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68837         RE_UNMATCHED_RIGHT_PAREN_ORD.
68838         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68839         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68840         (REG_DEBUG): renamed from RE_DEBUG.
68841         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68842         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68843         unusual, since we can't clash with the POSIX REG_ICASE.
68844         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68845         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68846         (REG_NO_SUB): renamed from RE_NO_SUB.
68847         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68848         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68849         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68850         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68851         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68852         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68853         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68854         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68855         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68856         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68857         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68858         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68859         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68860         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68861         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68862         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68863         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68864         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68865         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68866         (REG_FIXED): Renamed from REGS_FIXED.
68867         (REG_NREGS): Renamed from RE_NREGS.
68868
68869         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68870         of other REG_* macros, since POSIX says the user is allowed to
68871         #undef these macros selectively.
68872
68873         (reg_errcode_t): Update comment stating what other tables need
68874         to be consistent.
68875
68876         Rename the following enum values to obey POSIX requirements.
68877         The old names are still visible as macros.
68878         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68879         is not defined, since GNU is supposed to be a superset of POSIX as
68880         much as possible, and since we want reg_errcode_t to be a signed
68881         type for implementation consistency.
68882         (_REG_NOERROR): Renamed from REG_NOERROR.
68883         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68884         (_REG_BADPAT): Renamed from REG_BADPAT.
68885         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68886         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68887         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68888         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68889         (_REG_EBRACK): Renamed from REG_EBRACK.
68890         (_REG_EPAREN): Renamed from REG_EPAREN.
68891         (_REG_EBRACE): Renamed from REG_EBRACE.
68892         (_REG_BADBR): Renamed from REG_BADBR.
68893         (_REG_ERANGE): Renamed from REG_ERANGE.
68894         (_REG_ESPACE): Renamed from REG_ESPACE.
68895         (_REG_BADRPT): Renamed from REG_BADRPT.
68896         (_REG_EEND): Renamed from REG_EEND.
68897         (_REG_ESIZE): Renamed from REG_ESIZE.
68898         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68899         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68900         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68901         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68902         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68903
68904         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68905         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68906         changed.  But support the old name if the new one is not defined
68907         and if _REGEX_SOURCE.
68908
68909         Change the following member names in struct re_pattern_buffer.
68910         The old names are still supported if !_REGEX_SOURCE.
68911         The new names are always supported, regardless of _REGEX_SOURCE.
68912         (re_buffer): Renamed from buffer.
68913         (re_allocated): Renamed from allocated.
68914         (re_used): Renamed from used.
68915         (re_syntax): Renamed from syntax.
68916         (re_fastmap): Renamed from fastmap.
68917         (re_translate): Renamed from translate.
68918         (re_can_be_null): Renamed from can_be_null.
68919         (re_regs_allocated): Renamed from regs_allocated.
68920         (re_fastmap_accurate): Renamed from fastmap_accurate.
68921         (re_no_sub): Renamed from no_sub.
68922         (re_not_bol): Renamed from not_bol.
68923         (re_not_eol): Renamed from not_eol.
68924         (re_newline_anchor): Renamed from newline_anchor.
68925
68926         Change the following member names in struct re_registers.
68927         The old names are still supported if !_REGEX_SOURCE.
68928         The new names are always supported, regardless of _REGEX_SOURCE.
68929         (rm_num_regs): Renamed from num_regs.
68930         (rm_start): Renamed from start.
68931         (rm_end): Renamed from end.
68932
68933         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68934         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68935         Prepend __ to parameter names.
68936
68937         Undo yesterday's changes.
68938
68939 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68942         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68943         lib/regex.c.
68944
68945 2005-08-24  Jim Meyering  <jim@meyering.net>
68946
68947         Sync from coreutils.
68948         * m4/fcntl-safer.m4: New file.
68949
68950         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68951         and object files for this module.
68952
68953 2005-08-24  Jim Meyering  <jim@meyering.net>
68954
68955         Sync from coreutils.
68956         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68957
68958 2005-08-24  Jim Meyering  <jim@meyering.net>
68959
68960         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68961         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68962
68963 2005-08-24  Jim Meyering  <jim@meyering.net>
68964
68965         * modules/fcntl-safer: New module.
68966         * modules/fts (Depends-on): Add fcntl-safer.
68967         * MODULES.html.sh (File descriptor based Input/Output):
68968         Add fcntl-safer.
68969
68970 2005-08-24  Bruno Haible  <bruno@clisp.org>
68971
68972         Support for unit test modules.
68973         * modules/README: Mention tests modules.
68974         * modules/TEMPLATE-TESTS: New file.
68975         * gnulib-tool: New options --extract-tests-module, --with-tests and
68976         --tests-base (unused for the moment).
68977         (testsbase, inctests): New variables.
68978         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68979         (func_verify_module): Exclude TEMPLATE-TESTS.
68980         (func_verify_nontests_module, func_verify_tests_module): New functions.
68981         (func_get_dependencies): Add implicit dependency for tests modules.
68982         (func_get_tests_module): New function.
68983         (func_modules_transitive_closure): When --with-tests was specified,
68984         include the unit tests as well, unless explicitly avoided.
68985         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68986         (func_emit_tests_Makefile_am): New function.
68987         (func_create_testdir): When --with-tests was specified, emit a
68988         tests/ directory.
68989         * MODULES.html.sh (Future developments): Update.
68990
68991 2005-08-24  Bruno Haible  <bruno@clisp.org>
68992
68993         * modules/tls-tests: New file.
68994         * tests/test-tls.c: New file, from GNU gettext.
68995
68996 2005-08-24  Bruno Haible  <bruno@clisp.org>
68997
68998         * modules/lock-tests: New file.
68999         * tests/test-lock.c: New file, from GNU gettext.
69000
69001 2005-08-24  Bruno Haible  <bruno@clisp.org>
69002
69003         * lib/lock.h: Add multiple inclusion guard.
69004         * lib/tls.h: Add multiple inclusion guard.
69005
69006 2005-08-24  Bruno Haible  <bruno@clisp.org>
69007
69008         * gnulib-tool: Add support for the --aux-dir option to
69009         --create-testdir, --create-megatestdir, --test, --megatest.
69010         (func_create_testdir, func_create_megatestdir): Optionally emit a
69011         AC_CONFIG_AUX_DIR directive.
69012         (create-testdir, create-megatestdir, test, megatest): Provide a
69013         default value for $auxdir.
69014
69015 2005-08-24  Bruno Haible  <bruno@clisp.org>
69016
69017         * gnulib-tool (import): Use compound statement instead of subshell
69018         where possible.
69019
69020 2005-08-24  Bruno Haible  <bruno@clisp.org>
69021
69022         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69023
69024 2005-08-24  Bruno Haible  <bruno@clisp.org>
69025
69026         * gnulib-tool (func_version): Update.
69027
69028 2005-08-24  Bruno Haible  <bruno@clisp.org>
69029
69030         * gnulib-tool (func_import, func_create_testdir,
69031         func_create_megatestdir): Quote all autoconf macro arguments.
69032
69033 2005-08-24  Bruno Haible  <bruno@clisp.org>
69034
69035         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69036         option --force, because --force causes the aclocal.m4 of each
69037         subdirectory to be newer than the corresponding config.h.in.
69038
69039 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69042         All contents moved to gl_REGEX.
69043         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69044         assume that it does.
69045
69046 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * lib/regex.h (REG_NOSYS)
69049         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69050         Define, since POSIX requires it as of 2001.
69051         (_REG_ENOSYS)
69052         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69053         New private symbol, used to keep the enum signed in all cases.
69054         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69055         Youngman in
69056         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69057
69058         * lib/regex_internal.c (re_string_skip_chars, register_state):
69059         (calc_state_hash):
69060         Remove forward decls; no longer needed now that we use prototypes.
69061         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69062         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69063         (clean_state_log_if_needed): Likewise.
69064
69065 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * config/srclist.txt: Add glibc bugs 1231-1233.
69068
69069 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         Fix problems reported by Sam Steingold in
69072         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69073         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69074         assumed that reg_errcode_t is a signed type, which is not
69075         necessarily true if _XOPEN_SOURCE is not defined.
69076         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69077         since some compilers warn about it otherwise.
69078
69079 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69082         (init_word_char, create_initial_state, duplicate_node_closure):
69083         (fetch_token, peek_token_bracket, build_range_exp):
69084         (build_collating_symbol): Remove forward decls; no longer needed
69085         now that we use prototypes.
69086
69087         * lib/regcomp.c:
69088         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69089         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69090         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69091         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69092         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69093         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69094         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69095         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69096         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69097         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69098         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69099         (build_charclass, build_charclass_op, fetch_number, create_tree):
69100         (create_token_tree, mark_opt_subexp, duplicate_tree):
69101         Use prototypes rather than old-style definitions.
69102
69103         * lib/regex_internal.c:
69104         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69105         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69106         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69107         (re_string_reconstruct, re_string_peek_byte_case):
69108         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69109         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69110         (re_node_set_init_copy, re_node_set_add_intersect):
69111         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69112         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69113         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69114         (re_acquire_state, re_acquire_state_context, register_state):
69115         (create_ci_newstate, create_cd_newstate, free_state):
69116         Likewise.
69117         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69118         re_search_2):
69119         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69120         (re_search_internal, prune_impossible_nodes):
69121         (acquire_init_state_context, check_matching, static):
69122         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69123         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69124         (update_regs, sift_states_backward, build_sifted_states):
69125         (clean_state_log_if_needed, merge_state_array):
69126         (update_cur_sifted_state, add_epsilon_src_nodes):
69127         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69128         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69129         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69130         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69131         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69132         (check_arrival, check_arrival_add_next_nodes):
69133         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69134         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69135         (check_node_accept_bytes, check_node_accept, extend_buffers):
69136         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69137         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69138         (sift_ctx_init):
69139         Likewise.
69140
69141         * lib/regex_internal.h:
69142         (re_string_allocate, re_string_construct, re_string_reconstruct):
69143         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69144         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69145         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69146         (re_string_context_at, re_string_peek_byte_case):
69147         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69148         is defined, since we now use prototypes always.
69149
69150         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69151         C89 or better.  All uses removed.
69152
69153 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * config/srclist.txt: Add glibc bugs 1220-1227.
69156
69157 2005-08-20  Jim Meyering  <jim@meyering.net>
69158
69159         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69160         of unused local, dfa.
69161
69162 2005-08-20  Bruno Haible  <bruno@clisp.org>
69163
69164         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69165
69166 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69169         (re_node_set_insert_last, re_dfa_add_node):
69170         Rename local variables to avoid GCC shadowing warnings.
69171
69172 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69175         [defined lint]: Suppress bogus uninitialized-variable warnings.
69176
69177         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69178         and let the caller return REG_ESPACE if out of space.  This
69179         removes an uninitialied-variable warning with GCC 4.0.1, and also
69180         avoids taking the address of a local variable.  All callers
69181         changed.
69182
69183 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69186         $LIBCSRC/posix/regexec.c.
69187         Add glibc bug 1217 for regcomp.c.
69188
69189 2005-08-19  Jim Meyering  <jim@meyering.net>
69190
69191         * lib/regexec.c (proceed_next_node): Redo local variables to
69192         avoid GCC shadowing warnings.
69193
69194 2005-08-18  Bruno Haible  <bruno@clisp.org>
69195
69196         * lib/strstr.c (strstr): Fix return value in multibyte case.
69197         * lib/strcasestr.c (strcasestr): Likewise.
69198
69199 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69202
69203 2005-08-17  Jim Meyering  <jim@meyering.net>
69204
69205         Make the %s format (seconds since the epoch) work for a negative
69206         number and when used with a zero-padded field width, e.g. %015s.
69207
69208         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69209         label so that it precedes the code to set `digits'.  Otherwise,
69210         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69211         print `00-22'.  Now, it prints `-0022', as it should.
69212
69213 2005-08-17  Bruno Haible  <bruno@clisp.org>
69214
69215         * modules/strstr (Files): Add m4/mbrtowc.m4.
69216         (Depends-on): Add mbuiter.
69217
69218 2005-08-17  Bruno Haible  <bruno@clisp.org>
69219
69220         * modules/strcasestr: New file.
69221         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69222         strcasestr.
69223
69224 2005-08-17  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69227
69228 2005-08-17  Bruno Haible  <bruno@clisp.org>
69229
69230         * modules/mbuiter: New file.
69231         * MODULES.html.sh (Extended multibyte and wide character utilities):
69232         Add mbuiter.
69233
69234 2005-08-17  Bruno Haible  <bruno@clisp.org>
69235
69236         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69237         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69238
69239 2005-08-17  Bruno Haible  <bruno@clisp.org>
69240
69241         * m4/strcasestr.m4: New file.
69242
69243 2005-08-17  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69246         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69247
69248 2005-08-17  Bruno Haible  <bruno@clisp.org>
69249
69250         * lib/strcasestr.h: New file.
69251         * lib/strcasestr.c: New file.
69252
69253 2005-08-17  Bruno Haible  <bruno@clisp.org>
69254
69255         * lib/strcasecmp.c: Use mbuiter.h.
69256
69257 2005-08-17  Bruno Haible  <bruno@clisp.org>
69258
69259         * lib/mbuiter.h: New file.
69260
69261 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69264         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69265         and gl_GETOPT are both invoked via different paths (as happens
69266         with GNU tar CVS because it uses both argp and getopt), the former
69267         wins.
69268
69269 2005-08-16  Bruno Haible  <bruno@clisp.org>
69270
69271         * modules/tls: New file.
69272         * MODULES.html.sh (Multithreading): Add tls.
69273
69274 2005-08-16  Bruno Haible  <bruno@clisp.org>
69275
69276         * modules/strnlen1: New file.
69277         * MODULES.html.sh (String handling): Add strnlen1.
69278
69279 2005-08-16  Bruno Haible  <bruno@clisp.org>
69280
69281         * modules/strcase (Files): Add m4/mbrtowc.m4.
69282         (Depends-on): Add strnlen1, mbchar.
69283
69284 2005-08-16  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/mbiter: New file.
69287         * MODULES.html.sh (Extended multibyte and wide character utilities):
69288         Add mbiter.
69289
69290 2005-08-16  Bruno Haible  <bruno@clisp.org>
69291
69292         * modules/mbfile: New file.
69293         * MODULES.html.sh (Extended multibyte and wide character utilities):
69294         Add mbfile.
69295
69296 2005-08-16  Bruno Haible  <bruno@clisp.org>
69297
69298         * modules/mbchar: New file.
69299         * MODULES.html.sh (Extended multibyte and wide character utilities):
69300         New section.
69301
69302 2005-08-16  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/tls.m4: New file, from GNU gettext.
69305
69306 2005-08-16  Bruno Haible  <bruno@clisp.org>
69307
69308         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69309         always.
69310         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69311
69312 2005-08-16  Bruno Haible  <bruno@clisp.org>
69313
69314         * m4/mbiter.m4: New file.
69315
69316 2005-08-16  Bruno Haible  <bruno@clisp.org>
69317
69318         * m4/mbfile.m4: New file.
69319
69320 2005-08-16  Bruno Haible  <bruno@clisp.org>
69321
69322         * m4/mbchar.m4: New file.
69323
69324 2005-08-16  Bruno Haible  <bruno@clisp.org>
69325
69326         * lib/tls.h: New file, from GNU gettext.
69327         * lib/tls.c: New file, from GNU gettext.
69328
69329 2005-08-16  Bruno Haible  <bruno@clisp.org>
69330
69331         * lib/strnlen1.h: New file.
69332         * lib/strnlen1.c: New file.
69333
69334 2005-08-16  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69337         (mbi_init): Update.
69338         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69339         NUL byte, not after it.
69340
69341 2005-08-16  Bruno Haible  <bruno@clisp.org>
69342
69343         * lib/strcase.h (strcasecmp): Add note in comments.
69344         * lib/strncasecmp.c: Use code from strcasecmp.c.
69345         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69346         (strcasecmp): Work correctly in multibyte locales.
69347
69348 2005-08-16  Bruno Haible  <bruno@clisp.org>
69349
69350         * lib/mbiter.h: New file.
69351
69352 2005-08-16  Bruno Haible  <bruno@clisp.org>
69353
69354         * lib/mbfile.h: New file.
69355
69356 2005-08-16  Bruno Haible  <bruno@clisp.org>
69357
69358         * lib/mbchar.h: New file.
69359         * lib/mbchar.c: New file.
69360
69361 2005-08-16  Bruno Haible  <bruno@clisp.org>
69362
69363         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69364         the valid ones. Makes the comparison operations transitive:
69365         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69366         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69367
69368 2005-08-15  Simon Josefsson  <jas@extundo.com>
69369
69370         * modules/ssize_t (License): Change to 'unlimited'.
69371
69372         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69373
69374 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69377         Add comments for each pending glibc patch.
69378
69379 2005-08-15  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69382         __cplusplus is defined.
69383
69384 2005-08-14  Jim Meyering  <jim@meyering.net>
69385
69386         Sync from coreutils.
69387
69388         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69389         Use the hash-table-based cycle-detection code not just when
69390         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69391         Reported by James Youngman in
69392         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69393         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69394         FTS_TIGHT_CYCLE_CHECK.
69395         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69396         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69397         once again.
69398         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69399         * lib/fts.c (fd_safer): Remove decl.
69400         Include fcntl--.h rather than unistd-safer.h
69401         (fts_safe_changedir): Don't call fd_safer; no longer needed
69402         now that we include fcntl--.h.
69403
69404 2005-08-12  Simon Josefsson  <jas@extundo.com>
69405
69406         * modules/getndelim2: Use ssize_t module.
69407         * modules/getnline: Likewise.
69408         * modules/safe-read: Likewise.
69409         * modules/xreadlink: Likewise.
69410
69411         * modules/ssize_t: New file.
69412
69413 2005-08-12  Simon Josefsson  <jas@extundo.com>
69414
69415         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69416
69417 2005-08-12  Simon Josefsson  <jas@extundo.com>
69418
69419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69420         ssize_t.
69421
69422 2005-08-12  Simon Josefsson  <jas@extundo.com>
69423
69424         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69425         readline, getdelim and check_version.
69426         (Support for systems lacking ISO C 99: Sizes of integer types):
69427         Add size_max.
69428
69429 2005-08-12  Bruno Haible  <bruno@clisp.org>
69430
69431         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69432
69433 2005-08-11  Simon Josefsson  <jas@extundo.com>
69434
69435         * modules/readline: New file.
69436
69437         * modules/strnlen (Files): Add strnlen.h.
69438
69439 2005-08-11  Simon Josefsson  <jas@extundo.com>
69440
69441         * m4/readline.m4: New file.
69442
69443 2005-08-11  Simon Josefsson  <jas@extundo.com>
69444
69445         * lib/readline.h, readline.c: New file.
69446
69447 2005-08-11  Simon Josefsson  <jas@extundo.com>
69448
69449         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69450         gl_AVOID.
69451
69452 2005-08-11  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69455
69456 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69457
69458         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69459
69460 2005-08-10  Simon Josefsson  <jas@extundo.com>
69461
69462         * tests/test-iconvme.c: New file.
69463
69464 2005-08-10  Simon Josefsson  <jas@extundo.com>
69465
69466         * m4/strnlen.m4: New file.
69467
69468         * m4/strndup.m4: Don't check for strnlen declaration, done in
69469         strnlen.m4.
69470
69471 2005-08-10  Simon Josefsson  <jas@extundo.com>
69472
69473         * lib/strndup.c: Use strnlen.h.
69474
69475         * lib/strnlen.h: New file.
69476
69477 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69478
69479         * README: Typos.
69480
69481 2005-08-02  Simon Josefsson  <jas@extundo.com>
69482
69483         * modules/readline: New file.
69484
69485 2005-08-02  Simon Josefsson  <jas@extundo.com>
69486
69487         * modules/getdelim: New file.
69488
69489         * modules/getline: Rewrite, don't use getndelim2.
69490
69491 2005-08-02  Simon Josefsson  <jas@extundo.com>
69492
69493         * m4/getline.m4: Separate out getdelim stuff into separate module.
69494
69495         * m4/getdelim.m4: New file.
69496
69497 2005-08-02  Simon Josefsson  <jas@extundo.com>
69498
69499         * lib/getline.h, getline.c: Rewrite.
69500
69501         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69502
69503 2005-07-31  Bruno Haible  <bruno@clisp.org>
69504
69505         * lib/lock.h (gl_lock_initializer): New macro.
69506         (gl_lock_define_initialized): Use it.
69507         (gl_rwlock_initializer): New macro.
69508         (gl_rwlock_define_initialized): Use it.
69509         (gl_recursive_lock_initializer): New macro.
69510         (gl_recursive_lock_define_initialized): Use it.
69511
69512 2005-07-30  Karl Berry  <karl@gnu.org>
69513
69514         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69515         Report from Ben Pfaff, regarding getopt.
69516
69517 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69520         normal way.
69521         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69522         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69523         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69524         (gl_GETOPT): Use the new macros.  Most of the implementation
69525         is moved to the new macros.  This is for programs like Emacs
69526         that don't want all the functionality of gl_GETOPT.
69527
69528 2005-07-26  Bruno Haible  <bruno@clisp.org>
69529
69530         * m4/lock.m4: Update from GNU gettext.
69531
69532 2005-07-26  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/lock.h: Update from GNU gettext.
69535         * lib/lock.c: Update from GNU gettext.
69536
69537 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69540         obsolescent AC_TRY_RUN.  Include the default includes files, for
69541         'exit'.
69542
69543 2005-07-24  Bruno Haible  <bruno@clisp.org>
69544
69545         * modules/visibility: New file.
69546         * MODULES.html.sh (Misc): Add visibility.
69547
69548 2005-07-24  Bruno Haible  <bruno@clisp.org>
69549
69550         * m4/visibility.m4: New file.
69551
69552 2005-07-24  Bruno Haible  <bruno@clisp.org>
69553
69554         * doc/visibility.texi: New file.
69555
69556 2005-07-22  Bruno Haible  <bruno@clisp.org>
69557
69558         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69559         $(ALLOCA_H), redundant through BUILT_SOURCES.
69560         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69561         redundant through BUILT_SOURCES.
69562         * modules/byteswap (Makefile.am): Remove explicit dependency on
69563         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69564         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69565         $(FNMATCH_H), redundant through BUILT_SOURCES.
69566         * modules/getopt (Makefile.am): Remove explicit dependency on
69567         $(GETOPT_H), redundant through BUILT_SOURCES.
69568         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69569         redundant through BUILT_SOURCES.
69570         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69571         redundant through BUILT_SOURCES.
69572         * modules/stdbool (Makefile.am): Remove explicit dependency on
69573         $(STDBOOL_H), redundant through BUILT_SOURCES.
69574         * modules/stdint (Makefile.am): Remove explicit dependency on
69575         $(STDINT_H), redundant through BUILT_SOURCES.
69576         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69577         Remove explicit dependency on $(SYSEXITS_H).
69578         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69579
69580 2005-07-18  Simon Josefsson  <jas@extundo.com>
69581
69582         * lib/check-version.c (check_version): Accept identical versions too.
69583
69584 2005-07-18  Bruno Haible  <bruno@clisp.org>
69585
69586         * modules/lock: New file.
69587         * MODULES.html.sh (Multithreading): New section.
69588
69589 2005-07-18  Bruno Haible  <bruno@clisp.org>
69590
69591         * m4/lock.m4: New file, from GNU gettext.
69592
69593 2005-07-18  Bruno Haible  <bruno@clisp.org>
69594
69595         * lib/lock.h: New file, from GNU gettext.
69596         * lib/lock.c: New file, from GNU gettext.
69597
69598 2005-07-18  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/lock.h (gl_once_t): New type.
69601         (gl_once_define, gl_once): New macros.
69602         * lib/lock.c (fresh_once): New variable.
69603         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69604         functions.
69605
69606 2005-07-16  Simon Josefsson  <jas@extundo.com>
69607
69608         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69609         workaround, suggested by Bruno.
69610
69611 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * modules/xalloc (Depends-on): Add xalloc-die.
69614         * modules/xvasprintf (Depends-on): Add xalloc-die.
69615
69616 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69619         with a minor change.
69620
69621 2005-07-15  Bruno Haible  <bruno@clisp.org>
69622
69623         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69624         When using lib/poll.c, define poll as rpl_poll.
69625
69626 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * modules/argp (Depends-on): Remove unlocked-io.
69629
69630 2005-07-14  Derek Price  <derek@ximbiot.com>
69631
69632         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69633         for glob symlink bug.
69634
69635 2005-07-14  Bruno Haible  <bruno@clisp.org>
69636
69637         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69638         Instead, test for *_unlocked function declarations directly.
69639
69640 2005-07-11  Simon Josefsson  <jas@extundo.com>
69641
69642         * modules/size_max: New file.
69643
69644         * modules/xsize: Depend on size_max module for size_max.m4.
69645
69646 2005-07-11  Simon Josefsson  <jas@extundo.com>
69647
69648         * lib/size_max.h: New file.
69649
69650 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69653         copyright symbol and the year.
69654         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69655         (version_etc_va): Use parameterized copyright notice.
69656         Reword to conform to the current GNU coding standards.
69657
69658 2005-07-11  Karl Berry  <karl@gnu.org>
69659
69660         * doc/gnulib.texi (Quoting): new node.
69661         (Initial import): more info, from Patrice.
69662
69663 2005-07-11  Bruno Haible  <bruno@clisp.org>
69664
69665         * gnulib-tool (func_usage): Document option --avoid.
69666         (Command line options): Handle --avoid.
69667         (func_acceptable): New function.
69668         (func_modules_transitive_closure): Use it.
69669
69670 2005-07-11  Bruno Haible  <bruno@clisp.org>
69671
69672         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69673         Reported by Jim Meyering.
69674
69675 2005-07-10  Bruno Haible  <bruno@clisp.org>
69676
69677         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69678         Needed when size_t is smaller than 'unsigned int'.
69679         Reported by Paul Eggert.
69680
69681 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69682
69683         * modules/argp (Depends-on): Add unlocked-io
69684
69685 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69686
69687         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69688         block of defines.
69689
69690 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69693         fix now.
69694
69695 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69696         and Paul Eggert  <eggert@cs.ucla.edu>
69697
69698         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69699         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69700
69701 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * modules/regex (Files): Add lib/regex_internal.c,
69704         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69705         (Depends-on): Add extensions.
69706         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69707
69708 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69709
69710         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69711         pathconf.
69712         * m4/same.m4 (gl_SAME): Likewise.
69713         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69714
69715         * m4/regex.m4: Adjust to new libc regex implementation.
69716         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69717         all the .c and .h parts of (the new) regex.
69718         Quote the m4 stuff better.
69719         Check for RE_ICASE bug of old gnulib.
69720         Check for REG_STARTEND of recent libc.
69721         Rename local variables from jm_* to gl_*.
69722         Quote operand of "test -f".
69723         Say "recent enough" version of libc, not "version 2".
69724         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69725         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69726         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69727         Remove check for btowc, isascii.
69728         Require AM_LANGINFO_CODESET.
69729
69730 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         * lib/regex.c, regex.h: Sync from libc.
69733         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69734         * lib/regexec.c:
69735         New files, synced from libc, except that regex_internal.h
69736         currently has a small porting fix.
69737
69738 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69741         regex_internal.c, regexec.c.
69742         Add regex_internal.h too, but as a comment, since the libc version
69743         is currently broken in gnulib mode.
69744
69745 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69746
69747         Support programs like Emacs that use gnulib but not gettext.
69748         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69749         * modules/gettext-h: New file.
69750         * modules/gettext (Files): Remove lib/gettext.h.
69751         (Depends-on): Add gettext-h.
69752         (Makefile.am): Remove lib_SOURCES.
69753         * modules/argmatch, modules/c-stack, modules/closeout:
69754         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69755         * modules/execute, modules/file-type, modules/getaddrinfo:
69756         * modules/getopt, modules/human, modules/javacomp:
69757         * modules/javaexec, modules/mkdir-p, modules/obstack:
69758         * modules/openat, modules/pagealign_alloc, modules/pipe:
69759         * modules/quotearg, modules/regex, modules/rpmatch:
69760         * modules/unicodeio, modules/userspec, modules/version-etc:
69761         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69762         * modules/xsetenv:
69763         Depend on gettext-h, not gettext.
69764
69765 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * gnulib-tool (func_import): Add support for 'public domain' license.
69768         * modules/alloca, modules/atexit, modules/memmove:
69769         Now public domain, not GPL.
69770         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69771         * modules/realloc, modules/strerror, modules/strtod:
69772         Now LGPL, not GPL.
69773
69774 2005-07-05  Bruno Haible  <bruno@clisp.org>
69775
69776         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69777         autoconf CVS. Needed for mingw.
69778
69779 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         Remove the dependency of the strftime module on the tzset module.
69782         * modules/strftime (Depends-on): Remove dependency on tzset.
69783
69784 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         Remove the dependency of the strftime module on the tzset module.
69787         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69788         gl_FUNC_TZSET_CLOBBER.
69789
69790 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Remove the dependency of the strftime module on the tzset module.
69793         * lib/strftime.c (my_strftime)
69794         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69795         Copy the input structure, to work around some of the bug with
69796         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69797         Solaris releases, you should also use the tzset module, but we won't
69798         require it as a dependency any more since we don't want LGPLed code
69799         to depend on GPLed code.
69800
69801 2005-07-02  Jim Meyering  <jim@meyering.net>
69802
69803         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69804         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69805         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69806         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69807
69808 2005-07-02  Jim Meyering  <jim@meyering.net>
69809
69810         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69811
69812 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69815         declares only 'struct timespec;' (!).
69816
69817 2005-07-01  Jim Meyering  <jim@meyering.net>
69818
69819         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69820         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69821         * lib/save-cwd.c, tempname.c:
69822         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69823         and don't include <sys/file.h>).
69824
69825 2005-06-29  Jim Meyering  <jim@meyering.net>
69826
69827         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69828         type name.  Use the variable name instead.
69829         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69830         Likewise.
69831
69832 2005-06-28  Simon Josefsson  <jas@extundo.com>
69833
69834         * modules/check-version (Files): Add check-version.m4.
69835
69836 2005-06-28  Simon Josefsson  <jas@extundo.com>
69837
69838         * m4/check-version.m4: New file, suggested by Jim Meyering
69839         <jim@meyering.net>.
69840
69841 2005-06-28  Simon Josefsson  <jas@extundo.com>
69842
69843         * lib/check-version.h, lib/check-version.c: New files.
69844
69845 2005-06-28  Simon Josefsson  <jas@extundo.com>
69846
69847         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69848         collision with global variable.  Better indentation.  Don't
69849         increment buffer pointer beyond buffer end.  Based on comments
69850         from Paul Eggert <eggert@cs.ucla.edu>.
69851
69852         * lib/base64.h: Indent.
69853
69854 2005-06-28  Simon Josefsson  <jas@extundo.com>
69855
69856         * doc/gnulib.texi (Library version handling): New section.
69857
69858 2005-06-28  Jim Meyering  <jim@meyering.net>
69859
69860         * check-module (find_included_lib_files): Hard-code another
69861         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69862         but modules/fts-lgpl (correctly) does not list those files.
69863
69864         * modules/canonicalize (Files): Add lib/pathmax.h.
69865
69866 2005-06-25  Simon Josefsson  <jas@extundo.com>
69867
69868         * modules/check-version: New file.
69869
69870 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69873         initializer of struct addrinfo, as an indication that we don't
69874         care how many members the structure has.
69875
69876 2005-06-24  Derek Price  <derek@ximbiot.com>
69877         and Bruno Haible  <bruno@clisp.org>
69878
69879         Remove stat module & update lstat.
69880         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69881         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69882         * m4/stat.m4: Remove this file.
69883
69884 2005-06-24  Derek Price  <derek@ximbiot.com>
69885         and Bruno Haible  <bruno@clisp.org>
69886
69887         Remove stat module & update lstat.
69888         * lib/stat.c: Remove this file...
69889         (slash_aware_lstat): ...moving this content and its support...
69890         * lib/lstat.c (rpl_lstat): ...into here.
69891         * lib/lstat.h: New file.
69892
69893 2005-06-24  Derek Price  <derek@ximbiot.com>
69894         and Bruno Haible  <bruno@clisp.org>
69895
69896         Remove stat module & update lstat.
69897         * config/srclist.txt (libc sources): Remove stat.
69898
69899 2005-06-24  Derek Price  <derek@ximbiot.com>
69900         and Bruno Haible  <bruno@clisp.org>
69901
69902         Remove stat module & update lstat.
69903         * MODULES.html.sh (stat): Remove.
69904         * MODULES.html: Regenerated.
69905         * modules/lstat (Description): Correct function name.
69906         (Files): Add "lstat.h".
69907         (Depends-on): Remove stat, add xalloc, stat-macros.
69908         * modules/stat: Remove this file.
69909         (Include): Add "lstat.h", remove <sys/stat.h>.
69910
69911 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69914         (ranged_convert): Don't save conversion in a temporary struct.
69915         This causes a warning with GCC 4.0.0, and anyway in the typical
69916         case it's not worth the extra 100 bytes or so of code.
69917         (ranged_convert, __mktime_internal): When calling a function via a
69918         pointer P, use P () rather than (*P) (), as we now assume C89 or
69919         better.
69920
69921 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69924         "who -r" failed to give output.  Problem reported by Tim Waugh.
69925
69926         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69927         (xcalloc): Use it to avoid needless tests.
69928         Problem reported by Jim Meyering.
69929
69930 2005-06-20  Derek Price  <derek@ximbiot.com>
69931
69932         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69933         unnecessary for Autoconfs > 2.59c.
69934
69935 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69936
69937         * lib/argp.h (__option_is_short): Check upper limit of
69938         __key. Isprint() requires its argument to have the value
69939         of an unsigned char or EOF.
69940
69941 2005-06-16  Jim Meyering  <jim@meyering.net>
69942
69943         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69944         when either N or S is zero.
69945
69946 2005-06-16  Derek Price  <derek@ximbiot.com>
69947
69948         * m4/bison.m4: Declare YACC & YFLAGS precious.
69949
69950 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69951
69952         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69953         multibyte string or pattern, fall back on unibyte matching.
69954         Problem reported by James Youngman.
69955
69956 2005-06-08  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/csharpcomp: New file.
69959         * MODULES.html.sh (C#): Add csharpcomp.
69960
69961 2005-06-08  Bruno Haible  <bruno@clisp.org>
69962
69963         * m4/csharpcomp.m4: New file, from GNU gettext.
69964
69965 2005-06-08  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/csharpcomp.h: New file, from GNU gettext.
69968         * lib/csharpcomp.c: New file, from GNU gettext.
69969         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69970
69971 2005-06-08  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69974         warning on mingw.
69975
69976 2005-06-07  Derek Price  <derek@ximbiot.com>
69977
69978         Sync from CVS.
69979         * lib/glob_.h: Indent nested #ifdef.
69980
69981 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         Sync from coreutils.
69984         Use "file name" when talking about file names, instead of "filename"
69985         or "path", as per the GNU coding standards.
69986         * lib/mkdir-p.c: Renamed from makepath.c.
69987         (make_dir_parents): Renamed from make_path.  All callers changed.
69988         * lib/mkdir-p.h: Likewise.  All includers changed.
69989         * lib/filenamecat.c: Renamed from path-concat.c.
69990         (file_name_concat): Renamed from path_concat.  All callers changed.
69991         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69992         * lib/filenamecat.h: Likewise.  All includers changed.
69993         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69994         in comments or local variable names.
69995         * lib/basename.c: Likewise.
69996         * lib/canonicalize.c, canonicalize.h: Likewise.
69997         * lib/dirname.c, dirname.h: Likewise.
69998         * lib/euidaccess.c: Likewise.
69999         * lib/exclude.c: Likewise
70000         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70001         * lib/fsusage.c, fsuage.h: Likewise.
70002         * lib/fts.c, fts_.h: Likewise.
70003         * lib/getcwd.c: Likewise.
70004         * lib/getloadavg.c: Likewise.
70005         * lib/mkstemp.c: Likewise.
70006         * lib/mountlist.c, mountlist.h: Likewise.
70007         * lib/openat.c, openat.h: Likewise.
70008         * lib/readlink-stub.c: Likewise.
70009         * lib/readutmp.c, readutmp.h: Likewise.
70010         * lib/rename.c: Likewise.
70011         * lib/rmdir.c: Likewise.
70012         * lib/same.c: Likewise.
70013         * lib/savedir.c: Likewise.
70014         * lib/stripslash.c: Likewise.
70015         * lib/tempname.c: Likewise.
70016         * lib/xreadlink.c: Likewise.
70017         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70018         All uses changed.
70019         * lib/exclude.h: Likewise.
70020
70021         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70023         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70024         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70025         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70026         files have been getting away with it for years (MORE/BSD 4.3
70027         is extinct now).
70028         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70029         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70030
70031         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70032         Define to 256, not 255, as per modern POSIX.
70033
70034 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         Sync from coreutils.
70037         Use "file name" when talking about file names, instead of "filename"
70038         or "path", as per the GNU coding standards.
70039         * MODULES.html.sh: mkdir-p renamed from makepath.
70040         filenamecat renamed from path-concat.
70041         * modules/filenamecat: Renamed from modules/path-concat.
70042         (Files): filenamecat.h and filenamecat.c renamed from
70043         path-concat.h and path-concat.c.
70044         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70045         (Include): filenamecat.h, not path-concat.h.
70046         * modules/mkdir-p: Renamed from modules/makepath.
70047         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70048         makepath.c.
70049         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70050         (Include): mkdir-p.h, not makepath.h.
70051
70052 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         Sync from coreutils.
70055         * m4/mkdir-p.m4: Renamed from makepath.m4.
70056         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70057         Rename files from makepath.c to mkdir-p.c, and from
70058         makepath.h to mkdir-p.h.
70059         * m4/filenamecat.m4: Renamed from path-concat.m4.
70060         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70061         Rename files from path-concat.c to filenamecat.c,
70062         and from path-concat.h to filenamecat.h.
70063         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70064         "file name" in local variables or comments.
70065         * m4/rename.m4: Likewise.
70066
70067 2005-06-01  Bruno Haible  <bruno@clisp.org>
70068
70069         * modules/csharpexec: New file.
70070         * MODULES.html.sh (C#): New section.
70071
70072 2005-06-01  Bruno Haible  <bruno@clisp.org>
70073
70074         * m4/csharp.m4: New file, from GNU gettext.
70075         * m4/csharpexec.m4: New file, from GNU gettext.
70076
70077 2005-06-01  Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/csharpexec.h: New file, from GNU gettext.
70080         * lib/csharpexec.c: New file, from GNU gettext.
70081         * lib/csharpexec.sh.in: New file, from GNU gettext.
70082
70083 2005-05-31  Derek Price  <derek@ximbiot.com>
70084             Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         Sync from cvs.
70087         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70088
70089 2005-05-31  Derek Price  <derek@ximbiot.com>
70090             Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         Sync from cvs.
70093         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70094
70095 2005-05-29  Derek Price  <derek@ximbiot.com>
70096
70097         * config/srclist.txt (glob_.h, glob.c): Add these files.
70098
70099 2005-05-29  Derek Price  <derek@ximbiot.com>
70100
70101         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70102         * modules/glob: New file.
70103         * modules/getlogin_r: Add link to POSIX spec in description.
70104
70105 2005-05-29  Derek Price  <derek@ximbiot.com>
70106             Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/glob.m4: New file.
70109
70110 2005-05-29  Derek Price  <derek@ximbiot.com>
70111             Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * lib/glob_.h, lib/glob.c: New files.
70114
70115 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70118         * modules/fts-lgpl (Depends-on): Remove gettext.
70119
70120 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70123         and don't require gt_INTTYPES_PRI.
70124
70125 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70128
70129         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70130         the configuration hassle isn't worth it.
70131         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70132         (LONGEST_MODIFIER, PRIuMAX): Remove.
70133
70134 2005-05-27  Bruno Haible  <bruno@clisp.org>
70135
70136         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70137
70138 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70141         _POSIX_PTHREAD_SEMANTICS for Solaris.
70142
70143 2005-05-25  Derek Price  <derek@ximbiot.com>
70144
70145         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70146
70147 2005-05-25  Derek Price  <derek@ximbiot.com>
70148             Paul Eggert  <eggert@cs.ucla.edu>
70149
70150         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70151         * lib/getlogin_r.c, getlogin_r.h: New files.
70152
70153 2005-05-25  Bruno Haible  <bruno@clisp.org>
70154             Derek Price  <derek@ximbiot.com>
70155
70156         * lib/getlogin_r.h: Simplify API documentation.
70157
70158 2005-05-23  Derek Price  <derek@ximbiot.com>
70159
70160         * modules/minmax (Files): Add m4/minmax.m4.
70161         (configure.ac): Add gl_MINMAX.
70162
70163 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70164
70165         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70166         so that unistd-safer.h (GPL'ed code) need not be included.
70167
70168 2005-05-22  Bruno Haible  <bruno@clisp.org>
70169
70170         * m4/minmax.m4: New file.
70171         Based on a patch by Derek Price <derek@ximbiot.com>.
70172
70173 2005-05-22  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70176         (INT64_MIN): Fix definition.
70177         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70178
70179         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70180         NEED_SIGNED_INT_TYPES.
70181
70182         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70183         HAVE_SYSTEM_INTTYPES.
70184
70185 2005-05-22  Bruno Haible  <bruno@clisp.org>
70186
70187         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70188         Also include <sys/param.h> if it defines MIN, MAX.
70189         Based on a patch by Derek Price <derek@ximbiot.com>.
70190
70191 2005-05-21  Jim Meyering  <jim@meyering.net>
70192
70193         * modules/fts (Files): Add m4/inttypes-pri.m4.
70194         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70195
70196 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70197
70198         New fts module.
70199         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70200         (setup_dir, free_dir): New functions.
70201         (enter_dir, leave_dir): Define trivial
70202         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70203         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70204         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70205         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70206         Move to fts-cycle.c.
70207         (fts_open): Use setup_dir.
70208         (fts_close): Use free_dir.
70209         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70210         This adds a label and some gotos, but the alternatives were messier.
70211         Check for memory allocation failure when entering a dir.
70212         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70213         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70214         (FTS): New member fts_cycle, that is a union that contains the
70215         old active_dir_ht and cycle_state.  All uses changed to mention
70216         fts_cycle.ht and fts_cycle.state.
70217         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70218         fts.c, with the following changes:
70219         (setup_dir, free_dir): New functions.
70220         (enter_dir): Now returns bool.  Return true if successful, false
70221         if memory exhausted.  All callers changed.
70222         Do not bother partly cleaning up on
70223         memory allocation failure; that is free_dir's job.
70224         However, free ad if hash_insert fails, to avoid memory leak.
70225         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70226         fts->fts_options to see which union member to use.
70227
70228 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70229
70230         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70231         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70232
70233 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70234
70235         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70236
70237 2005-05-20  Jim Meyering  <jim@meyering.net>
70238
70239         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70240         Now a macro, to pacify GCC.
70241
70242 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70243
70244         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70245         of -1.
70246
70247 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70248
70249         * lib/chown.c (rpl_chown): Return -1 on failure.
70250
70251 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70252
70253         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70254         Don't check for stddef.h.
70255         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70256         don't use its results.
70257         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70258         since we include them unconditionally.  Don't require
70259         AM_STDBOOL_H, since stdbool is a prerequisite.
70260         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70261         since we assume C89 or better.
70262         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70263         as we don't use their results.
70264         Don't check for fchdir, memmove, memset, strrchr, as we use
70265         them unconditionally.
70266         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70267         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70268
70269 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70272         Include <stddef.h> unconditionally, since we assume C89 now.
70273         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70274         * lib/fts.c: Include fts_.h first, to check interface.
70275         Do not include intprops.h; no longer needed.
70276         Include cycle-check.h and hash.h, since fts_.h no longer does.
70277         Remove unnecessary casts of closedir to void.
70278         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70279         decide whether to decrement nlinks.
70280         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70281         (FTS): Use struct hash_table * instead of Hash_table, so that
70282         we no longer need to include hash.h here.
70283
70284 2005-05-18  Jim Meyering  <jim@meyering.net>
70285
70286         * modules/dirfd (License): Change to LGPL.  Most of the code
70287         is already in the public domain.
70288
70289 2005-05-18  Jim Meyering  <jim@meyering.net>
70290
70291         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70292         Reported by Yoann Vandoorselaere.
70293
70294 2005-05-17  Jim Meyering  <jim@meyering.net>
70295
70296         * m4/fts.m4: New file, from coreutils.
70297
70298 2005-05-17  Jim Meyering  <jim@meyering.net>
70299
70300         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70301
70302 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70303
70304         Sync from coreutils.
70305         * m4/unlinkdir.m4: New file.
70306
70307 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         Sync from coreutils.
70310         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70311         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70312         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70313         White space changes only.
70314         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70315         special.
70316         * lib/yesno.c: Include getline.h, not ctype.h.
70317         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70318         Use getline to remove arbitrary restriction on response length.
70319
70320 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * config/srclist-update: Spell out "Street" in FSF postal
70323         mail address; this is the style the FSF seems to prefer.
70324
70325         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70326         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70327         this updates FSF postal mail address.
70328
70329         Sync from coreutils.
70330         * modules/unlinkdir: New file.
70331         * modules/yesno (Depends-on): Add getline.
70332         * MODULES.html.sh (File system functions): Add unlinkdir.
70333
70334 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70337         lib/strsep.h:
70338         Change the initial comment to refer to GPL, not LGPL.
70339         gnulib-tool will change it to LGPL as needed.
70340
70341         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70342         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70343         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70344         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70345         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70346         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70347         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70348         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70349         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70350         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70351         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70352         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70353         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70354         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70355         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70356         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70357         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70358         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70359         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70360         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70361         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70362         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70363         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70364         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70365         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70366         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70367         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70368         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70369         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70370         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70371         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70372         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70373         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70374         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70375         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70376         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70377         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70378         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70379         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70380         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70381         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70382         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70383         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70384         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70385         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70386         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70387         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70388         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70389         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70390         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70391         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70392         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70393         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70394         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70395         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70396         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70397         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70398         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70399         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70400         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70401         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70402         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70403         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70404         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70405         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70406         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70407         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70408         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70409         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70410         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70411         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70412         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70413         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70414         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70415         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70416         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70417         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70418         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70419         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70420         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70421         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70422         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70423         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70424         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70425         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70426         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70427         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70428         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70429         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70430         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70431         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70432         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70433         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70434         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70435         lib/yesno.c, lib/yesno.h:
70436         Update FSF postal mail address.
70437
70438 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70441         tests/test-memmem.c, tests/test-stpncpy.c:
70442         Update FSF postal mail address.
70443
70444 2005-05-13  Bruno Haible  <bruno@clisp.org>
70445
70446         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70447         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70448         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70449         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70450         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70451         Add support for 64-bit integers in the MSVC compiler.
70452
70453 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70454
70455         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70456
70457 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70458
70459         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70460
70461 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * doc/getdate.texi (General date syntax): Don't say that date
70464         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70465         Problem reported by Nic Ferrier.
70466
70467 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70468
70469         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70470         specified in ai_socktype. Fix invalid ai_protocol
70471         check. ai_protocol is usually set to 0 or depending on
70472         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70473         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70474         ai_socktype / ai_protocol in the returned addrinfo structure.
70475
70476 2005-05-10  Simon Josefsson  <jas@extundo.com>
70477
70478         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70479         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70480
70481 2005-05-10  Karl Berry  <karl@gnu.org>
70482
70483         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70484         (from http://www.gnu.org/licenses).
70485         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70486         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70487         fdl.texi suffices.
70488
70489 2005-05-10  Karl Berry  <karl@gnu.org>
70490
70491         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70492         (COPYING.DOC): remove.
70493
70494         * config/srclist-update: new FSF address.
70495
70496 2005-05-10  Derek Price  <derek@ximbiot.com>
70497
70498         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70499         possible.
70500
70501 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70502             Bruno Haible  <bruno@clisp.org>
70503
70504         * modules/inet_ntop: New file.
70505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70506         inet_ntop.
70507
70508 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70509             Bruno Haible  <bruno@clisp.org>
70510
70511         * m4/inet_ntop.m4: New file.
70512
70513 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70514             Bruno Haible  <bruno@clisp.org>
70515
70516         * lib/inet_ntop.h: New file.
70517         * lib/inet_ntop.c: New file, from glibc with modifications.
70518
70519 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * modules/time_r (License): Change to LGPL.
70522         * modules/extensions (License): Change to LGPL.  Actually,
70523         the license is more permissive than that, but currently gnulib-tool
70524         doesn't know how to handle more-permissive licenses.
70525
70526         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70527         Problem reported by Dave Love.
70528
70529 2005-05-08  Jim Meyering  <jim@meyering.net>
70530
70531         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70532         blank.
70533
70534 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * modules/argmatch (Depends-on): Add stdbool.
70537         * modules/backupfile (Depends-on): Likewise.
70538         * modules/chdir-long (Depends-on): Likewise.
70539         * modules/closeout (Depends-on): Likewise.
70540         * modules/cycle-check (Depends-on): Likewise.
70541         * modules/dirname (Depends-on): Likewise.
70542         * modules/fnmatch (Depends-on): Likewise.
70543         * modules/fsusage (Depends-on): Likewise.
70544         * modules/fwriteerror (Depends-on): Likewise.
70545         * modules/getcwd (Depends-on): Likewise.
70546         * modules/getloadavg (Depends-on): Likewise.
70547         * modules/hard-locale (Depends-on): Likewise.
70548         * modules/makepath (Depends-on): Likewise.
70549         * modules/mountlist (Depends-on): Likewise.
70550         * modules/nanosleep (Depends-on): Likewise.
70551         * modules/posixtm (Depends-on): Likewise.
70552         * modules/quotearg (Depends-on): Likewise.
70553         * modules/readtokens (Depends-on): Likewise.
70554         * modules/readtokens0 (Depends-on): Likewise.
70555         * modules/readutmp (Depends-on): Likewise.
70556         * modules/save-cwd (Depends-on): Likewise.
70557         * modules/strftime (Depends-on): Likewise.
70558         * modules/userspec (Depends-on): Likewise.
70559         * modules/utimecmp (Depends-on): Likewise.
70560         * modules/xgetcwd (Depends-on): Likewise.
70561         * modules/xnanosleep (Depends-on): Likewise.
70562         * modules/xstrtod (Depends-on): Likewise.
70563         * modules/yesno (Depends-on): Likewise.
70564
70565 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70566
70567         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70568         needless checks.
70569
70570 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70571
70572         Merge from coreutils.  Among other things,
70573         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70574         * lib/fd-safer.c: New file.
70575         * lib/fcntl-safer.h, open-safer.c: Remove.
70576         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70577         * lib/dup-safer.c: Include unistd-safer.h first.
70578         Don't include errno.h.
70579         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70580         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70581         * lib/file-type.c: Rely on file-type.h change.
70582         * lib/getloadavg.c: Include unistd-safer.h.
70583         (getloadavg): Use safer open.
70584         * lib/getusershell.c: Include "stdio-safer.h".
70585         (getusershell): Use safer fopen.
70586         * lib/long-options.c (long_options): Use NULL rather than 0.
70587         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70588         'free'.
70589         * lib/modechange.c: Likewise.
70590         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70591         (MODE_DONE): New constant.
70592         (struct mode_change): Remove 'next' member.
70593         (make_node_op_equals): New function; like the old one of the
70594         same name, except it allocates an array.
70595         (mode_compile, mode_create_from_ref): Use it.
70596         (mode_compile): Allocate result as an array, not a linked list.
70597         Parse octal string ourself, so that we catch mistakes like "+0".
70598         (mode_adjust): Arg is an array, not a linked list.
70599         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70600         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70601         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70602         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70603         Remove.  This is now stat-macros.h's job.
70604         (talloc): Remove.  All callers replaced by xalloc, so that
70605         our invokers don't have to worry about reporting memory failures.
70606         (make_node_op_equals): Remove.
70607         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70608         New constants.
70609         (struct mode_change): Moved here from modechange.h.
70610         (mode_append_entry): Remove.
70611         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70612         apps to have incorrect behavior.  Use simpler algorithm for head
70613         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70614         Detect more invalid usages rather than having somewhat-random behavior.
70615         Don't insert an "a=" action, as that leads to incorrect behavior.
70616         (mode_compile, mode_create_from_ref): Return NULL on error instead
70617         of an enum, since now there's only one way to have an error.  All
70618         callers changed.
70619         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70620         at the correct time.  Simplify calculation of "+u" and its ilk.
70621         Don't mishandle "+X".
70622         (mode_free): Remove "register" and localize decls.
70623         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70624         (struct mode_change): Move to modechange.c; callers don't
70625         need to see this stuff.
70626         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70627         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70628         (mode_change, mode_adjust): Reflect the new signatures noted above.
70629         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70630         that might redefine system include files.
70631         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70632         (my_usleep): Use NULL rather than (void *) 0.
70633         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70634         Use siginterrupt to specify that system calls should be interrupted.
70635         (rpl_nanosleep): Move initialization of suspended closer to call of
70636         my_usleep.
70637         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70638         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70639         (desirable_utmp_entry): New function.
70640         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70641         using x2nrealloc, to simplify logic.
70642         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70643         size calculation.  Do not assume utmp file is a regular file.
70644         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70645         (READ_UTMP_CHECK_PIDS): New constant.
70646         * lib/save-cwd.c: Include unistd-safer.h.
70647         (save_cwd): Use fd_safer.
70648         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70649         [!_LIBC] Include "stat-macros.h" instead.
70650         * lib/unistd-safer.h (fd_safer): New decl.
70651
70652 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * modules/getloadavg (Depends-on): Add unistd-safer.
70655         * modules/getusershell (Depends-on): Add stdio-safer.
70656         * modules/lstat (Depends-on): Remove xalloc.
70657         * modules/mkstemp (Depends-on): Add stat-macros.
70658         * modules/modechange (Depends-on): Remove xstrtol.
70659         Add stat-macros, xalloc.
70660         * modules/save-cwd (Depends-on): Add unistd-safer.
70661         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70662         * modules/unistd-safer (Files): Add lib/fd-safer.c
70663         (Makefile.am): Remove lib_SOURCES.
70664
70665         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70666         Remove fcntl-safer; unistd-safer supersedes it.
70667
70668 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70671         AC_HEADER_STAT.
70672         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70673         (gl_PREREQ_CHOWN): Remove.
70674         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70675         it.  Don't require AC_HEADER_STAT.
70676         (gl_PREREQ_LSTAT): Remove.
70677         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70678         Don't require AC_HEADER_STAT.
70679         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70680         (gl_PREREQ_RMDIR): Remove.
70681         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70682         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70683         the stat-macros module a prerequisite.
70684         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70685         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70686         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70687         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70688         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70689         variable names.
70690         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70691         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70692         variable prefixes.
70693         * m4/fcntl-safer.m4: Remove.
70694         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70695         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70696         Invoke gl_PREREQ_FD_SAFER.
70697         (gl_PREREQ_FD_SAFER): New macro.
70698         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70699         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70700         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70701         Remove duplicate call to AC_LIBOBJ(readutmp).
70702         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70703
70704         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70705         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70706
70707 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70708
70709         * MODULES.html.sh (Misc): Add byteswap.
70710
70711 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70712
70713         * modules/getcwd (Depends-on): Add extensions.
70714         * modules/openat (Depends-on): Likewise.
70715
70716 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70717
70718         * modules/byteswap: New file.
70719
70720 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70721
70722         * m4/byteswap.m4: New file.
70723
70724 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70725
70726         * lib/byteswap_.h: New file.
70727
70728 2005-04-25  Karl Berry  <karl@gnu.org>
70729
70730         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70731
70732 2005-04-25  Albert Chin  <china@thewrittenword.com>
70733
70734         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70735         Toolkit C bug.
70736
70737 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70738
70739         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70740         (func_ln_if_changed): Remove forcibly for no error message
70741         in case file does not exist.
70742
70743 2005-04-19  Simon Josefsson  <jas@extundo.com>
70744
70745         * gnulib-tool (Options): Make --symlink mean --symbolic.
70746
70747 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70748
70749         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70750
70751 2005-04-16  Simon Josefsson  <jas@extundo.com>
70752
70753         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70754
70755 2005-04-15  Simon Josefsson  <jas@extundo.com>
70756
70757         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70758
70759 2005-04-15  Simon Josefsson  <jas@extundo.com>
70760
70761         * gnulib-tool: Rename --symlink to --symbolic.
70762
70763 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70764
70765         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70766         symbolic links to files instead of copying/moving.  Add --aux-dir,
70767         specifying directory relative --dir where auxiliary build tools
70768         are placed.
70769
70770 2005-04-14  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/allocsa (License): Change to LGPL.
70773         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70774
70775 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70776
70777         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70778         that "UTC +1 second" continues to work.  Problem reported
70779         by Dmitry V. Levin.
70780         (relunit_snumber): New rule.
70781         (relunit): Use it.
70782
70783 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70784
70785         * lib/getdate.y (universal_time_zone_table): New constant.
70786         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70787         universal_time_zone_table.
70788         (lookup_zone): Prefer universal_time_zone_table to
70789         local_time_zone_table, so that "GMT" time stamps are allowed in
70790         London during the summer.  Problem reported by Ian Abbott.
70791
70792 2005-04-12  Jim Meyering  <jim@meyering.net>
70793
70794         * lib/human.c (humblock): Set *options even when returning due to
70795         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70796         warning from gcc-4.
70797
70798 2005-04-09  Jim Meyering  <jim@meyering.net>
70799
70800         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70801         -Wuninitialized: initialize tm0.tm_year.
70802
70803 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70806         count, since there's no maximum.  All uses changed.
70807         Add member dsts_seen.
70808         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70809         not being INT_MAX.
70810         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70811         Use pc_rels_seen to decide whther a date is absolute.
70812
70813         * lib/getdate.y (number): Don't overwrite year.
70814         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70815         check.
70816
70817 2005-04-02  Simon Josefsson  <jas@extundo.com>
70818
70819         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70820         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70821
70822 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70823
70824         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70825         where no absolute path name can be longer than PATH_MAX.
70826
70827 2005-03-27  Jim Meyering  <jim@meyering.net>
70828
70829         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70830
70831 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70834         "one's complement" -> "ones' complement" in comment, as per Knuth.
70835         "value of type" -> "type or expression" in comment.
70836         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70837
70838 2005-03-26  Jim Meyering  <jim@meyering.net>
70839
70840         Comment nits.
70841         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70842         Correct typos: s/or/of/.
70843
70844 2005-03-26  Jim Meyering  <jim@meyering.net>
70845
70846         * modules/check-include-files: Move to ../ and rename to...
70847         * check-module: ...this.
70848
70849 2005-03-25  Jim Meyering  <jim@meyering.net>
70850
70851         * modules/xvasprintf (Files): Add xalloc.h.
70852
70853 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * modules/gettext (Files): config/config.rpath ->
70856         build-aux/config.rpath
70857         * modules/iconv (Files): Likewise.
70858         Problem reported by Oskar Liljeblad.
70859
70860 2005-03-23  Jim Meyering  <jim@meyering.net>
70861
70862         * modules/check-include-files: New script to check for
70863         missing dependencies, multiple includes, etc.
70864
70865         * modules/c-strtold (Depends-on): Add xalloc.
70866         * modules/c-strtod (Depends-on): Add xalloc.
70867         * modules/hash (Depends-on): Add xalloc.
70868         (Files): Remove lib/xalloc.h.
70869
70870         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70871         * modules/userspec (Files): Add lib/inttostr.h.
70872
70873 2005-03-23  Jim Meyering  <jim@meyering.net>
70874
70875         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70876
70877 2005-03-22  Jim Meyering  <jim@meyering.net>
70878
70879         * modules/stat-macros: New module.
70880         * modules/canonicalize, modules/euidaccess, modules/file-type,
70881         * modules/filemode, modules/lchown, modules/makepath,
70882         * modules/rmdir, modules/stat: Depend on new stat-macros module
70883         rather than listing lib/stat-macros.h manually.
70884         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70885
70886 2005-03-22  Jim Meyering  <jim@meyering.net>
70887
70888         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70889
70890 2005-03-22  Bruno Haible  <bruno@clisp.org>
70891
70892         * config/srclist.txt: Replace target directory 'config' with
70893         'build-aux'.
70894         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70895         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70896         ../build-aux/.
70897
70898 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * modules/chdir-long (Depends-on): Add mempcpy.
70901
70902         * modules/acl, modules/backupfile, modules/c-strtod,
70903         modules/c-strtold, modules/canon-host, modules/canonicalize,
70904         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70905         modules/exclude, modules/exitfail, modules/file-type,
70906         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70907         modules/getdate, modules/getline, modules/getpagesize,
70908         modules/getpass, modules/getugroups, modules/group-member,
70909         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70910         modules/inttostr, modules/long-options, modules/makepath,
70911         modules/md5, modules/memcasecmp, modules/memcoll,
70912         modules/modechange, modules/mountlist, modules/path-concat,
70913         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70914         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70915         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70916         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70917         modules/strftime, modules/strndup, modules/strverscmp,
70918         modules/timespec, modules/unlocked-io, modules/userspec,
70919         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70920         modules/yesno:
70921         Remove lib_SOURCES line from Makefile.am section, as this is now
70922         done automatically by the corresponding Autoconf macro.
70923
70924 2005-03-21  Jim Meyering  <jim@meyering.net>
70925
70926         Changes imported from coreutils.
70927
70928         * lib/cycle-check.c: Don't include xalloc.h.
70929
70930         * lib/path-concat.c: Don't include assert.h.
70931         (path_concat): Remove assertion that would have triggered
70932         for ABASE starting with more than one slash.
70933         Reported by Andreas Schwab.
70934
70935         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70936         properly when ABASE is an absolute file name.
70937         Correct the description of this function.
70938         Include <assert.h>.
70939         Add an assertion and a test driver.
70940         This fixes a bug introduced on 2004-07-02.
70941         Andreas Schwab reported the resulting failure of cp --parents:
70942         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70943
70944 2005-03-21  Jim Meyering  <jim@meyering.net>
70945
70946         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70947         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70948
70949 2005-03-21  Jim Meyering  <jim@meyering.net>
70950         and  Paul Eggert  <eggert@cs.ucla.edu>
70951
70952         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70953         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70954         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70955         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70956         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70957         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70958         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70959         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70960         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70961         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70962         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70963         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70964         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70965         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70966         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70967         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70968         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70969         for these modules.
70970
70971 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70972
70973         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70974         (which shouldn't happen), generate nothing instead of returning 0
70975         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70976
70977 2005-03-16  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70980         HAVE_LONGLONG_64BIT.
70981
70982 2005-03-16  Bruno Haible  <bruno@clisp.org>
70983
70984         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70985         HAVE_LONGLONG_64BIT.
70986
70987 2005-03-16  Bruno Haible  <bruno@clisp.org>
70988
70989         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70990         HAVE_LONGLONG_64BIT.
70991
70992 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70995         reliably distinguish strftime failure from empty output on POSIX
70996         hosts.
70997
70998 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71001         (iconv_string): Don't guess a size-zero buffer, as that might cause
71002         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71003         result would be 'too large', where 'too large' is (heuristically)
71004         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71005         overflow concerns.  This will prevent some unwanted malloc failures
71006         when the inputs are very large.
71007
71008 2005-03-15  Karl Berry  <karl@gnu.org>
71009
71010         * config/srclist.txt (config.rpath): from gettext.
71011         * config/config.rpath: update.
71012
71013 2005-03-15  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71016         to 'negate'.
71017
71018         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71019         variable.
71020
71021         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71022         results.
71023
71024 2005-03-14  Simon Josefsson  <jas@extundo.com>
71025
71026         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71027         <fx@gnu.org>.
71028
71029 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71032         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71033         intprops.h.
71034         * lib/strtol.c: Likewise.
71035
71036 2005-03-14  Jim Meyering  <jim@meyering.net>
71037
71038         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71039         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71040         to be nonzero so that we (and caller) can detect the difference
71041         between a valid zero-length expansion and an error return, even
71042         when the underlying strftime fails before writing anything into
71043         that location.
71044
71045 2005-03-14  Bruno Haible  <bruno@clisp.org>
71046
71047         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71048         Update from GNU gettext 0.14.3.
71049
71050 2005-03-10  Jim Meyering  <jim@meyering.net>
71051
71052         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71053
71054 2005-03-10  Jim Meyering  <jim@meyering.net>
71055
71056         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71057         so that this module works on systems without fchdir.
71058
71059 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         Factor int-properties macros into a single file, except for
71062         glibc-related files.
71063         * lib/intprops.h: New file.
71064         * lib/getloadavg.c: Include it instead of limits.h.
71065         (INT_STRLEN_BOUND): Remove.
71066         * lib/human.c: Include intprops.h.
71067         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71068         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71069         302/1000.
71070         * lib/inttostr.h: Include intprops.h instead of limits.h.
71071         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71072         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71073         for consistency with intprops.h.
71074         (time_t_is_integer, twos_complement_arithmetic): Use them.
71075         * lib/sig2str.h: Include <signal.h>, intprops.h.
71076         (INT_STRLEN_BOUND): Remove.
71077         * lib/strftime.c (TYPE_SIGNED): Remove.
71078         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71079         * lib/strtol.c: Adjust comments to match intprops.h.
71080         * lib/userspec.c: Include intprops.h.
71081         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71082         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71083         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71084         instead of rolling our own expressions.
71085         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71086
71087         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71088         instead of int.
71089         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71090         the right thing even if adding 1900 would overflow.  Similarly
71091         for tm_mon + 1 and tm_yday + 1.
71092         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71093         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71094         (DO_SIGNED_NUMBER): New macro.
71095         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71096
71097 2005-03-07  Bruno Haible  <bruno@clisp.org>
71098
71099         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71100
71101 2005-03-07  Bruno Haible  <bruno@clisp.org>
71102
71103         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71104
71105 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71106
71107         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71108         (func_import): Only replace files via --import when they have actually
71109         changed.
71110
71111 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71112
71113         * m4/mmap-anon.m4: New file.
71114         * m4/pagealign_alloc.m4: New file.
71115
71116 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71117             Bruno Haible  <bruno@clisp.org>
71118
71119         * modules/pagealign_alloc: New file.
71120         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71121
71122 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71123             Bruno Haible  <bruno@clisp.org>
71124
71125         * lib/pagealign_alloc.h: New file.
71126         * lib/pagealign_alloc.c: New file.
71127
71128 2005-03-03  Bruno Haible  <bruno@clisp.org>
71129
71130         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71131         Use an all-permissive copyright notice, recommended by RMS.
71132
71133 2005-03-02  Bruno Haible  <bruno@clisp.org>
71134
71135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71136         of AIX, the replacement has to be done only after <string.h> is
71137         included, therefore not in config.h. stpncpy.h does the replacement,
71138         and stpncpy.c uses it.
71139
71140 2005-03-02  Bruno Haible  <bruno@clisp.org>
71141
71142         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71143         stpncpy.c uses it.
71144
71145 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71148         The workaround isn't strictly needed for POSIX conformance, and
71149         it's too much of a pain to configure and maintain.  We'll ask
71150         people to fix their kernels instead.
71151         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71152         (NANOSLEEP_BUG_WORKAROUND): Remove.
71153         (xnanosleep): Remove the workaround.
71154
71155 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71156
71157         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71158         Reported by Derek Price.
71159         (Include): Add "timespec.h".
71160
71161         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71162
71163 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71164
71165         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71166         to detect nanosleep bug.
71167
71168 2005-03-01  Bruno Haible  <bruno@clisp.org>
71169
71170         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71171
71172 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         * modules/gethrxtime: New file.
71175         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71176         (Depends-on): Add gethrxtime.
71177         (configure.ac): Add gl_XNANOSLEEP.
71178         (Makefile.am): Remove lib_SOURCES line.
71179
71180 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71183         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71184
71185 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71188         * lib/timespec.h (gettime): Return void, since it always
71189         succeeds now.  All uses changed.
71190         * lib/gettime.c (gettime): Likewise.
71191         [HAVE_NANOTIME]: Prefer nanotime.
71192         Assume gettimeofday succeeds, as POSIX requires.
71193         Assime time () succeeds, since other code already does.
71194         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71195         (timespec_subtract): Remove.
71196         (NANOSLEEP_BUG_WORKAROUND): New constant.
71197         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71198         things considerably.  Use it only on GNU/Linux hosts, since the
71199         workaround shouldn't be needed elsewhere.
71200
71201 2005-02-24  Bruno Haible  <bruno@clisp.org>
71202
71203         * modules/gettext (Files): Add m4/glibc2.m4.
71204
71205 2005-02-24  Bruno Haible  <bruno@clisp.org>
71206
71207         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71208         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71209         * m4/progtest.m4:
71210         Update from GNU gettext 0.14.2.
71211         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71212
71213 2005-02-24  Bruno Haible  <bruno@clisp.org>
71214
71215         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71216         * lib/config.charset: Update from GNU gettext 0.14.2.
71217
71218 2005-02-24  Bruno Haible  <bruno@clisp.org>
71219
71220         * lib/gettext.h: Update from GNU gettext 0.14.2.
71221
71222 2005-02-23  Simon Josefsson  <jas@extundo.com>
71223
71224         * m4/iconvme.m4: New file.
71225
71226 2005-02-23  Jim Meyering  <jim@meyering.net>
71227
71228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71229         change.
71230         Thanks to Bruno Haible for catching it.
71231
71232 2005-02-22  Simon Josefsson  <jas@extundo.com>
71233
71234         * modules/iconvme: New file.
71235
71236         * MODULES.html.sh: Add iconvme.
71237
71238 2005-02-22  Simon Josefsson  <jas@extundo.com>
71239
71240         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71241
71242 2005-02-22  Simon Josefsson  <jas@extundo.com>
71243
71244         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71245
71246 2005-02-22  Jim Meyering  <jim@meyering.net>
71247
71248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71249         s/ifndef/ifdef/.
71250
71251 2005-02-20  Neil Conway  <neilc@samurai.com>
71252
71253         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71254         returned by OSX/Darwin if the specified buffer is not large
71255         enough for the hostname.
71256
71257 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71258
71259         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71260         pass it to _help, otherwise the latter coredumps trying to
71261         dereference state.root_argp.
71262
71263 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         * modules/chdir-long (Depends-on): Add memrchr.
71266         * modules/memrchr (Files): Add lib/memrchr.h.
71267         (Include): "memrchr.h".
71268
71269 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71270
71271         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71272
71273 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * lib/memrchr.h: New file.
71276         * lib/chdir-long.c: Include it.
71277         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71278         Don't bother including stddef.h.
71279
71280 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71283         inclusion.
71284         Include <sys/types.h>, for dev_t.
71285         (ME_DUMMY, ME_REMOTE): Move from here....
71286         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71287         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71288         Dmitry V. Levin.
71289         Include mountlist.h first, to test the interface.
71290
71291 2005-01-29  Bruno Haible  <bruno@clisp.org>
71292
71293         * lib/progname.c (program_name): Initialize.
71294         Needed when linking statically on MacOS X.
71295
71296 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         Sync from coreutils.
71299         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71300         (Depends-on): Add c-strtod.
71301         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71302
71303 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         Sync from coreutils.
71306         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71307
71308         Remove files that are specific to coreutils.
71309         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71310
71311 2005-01-28  Bruno Haible  <bruno@clisp.org>
71312
71313         * modules/javacomp: New file.
71314         * MODULES.html.sh (Java): Add javacomp.
71315
71316 2005-01-28  Bruno Haible  <bruno@clisp.org>
71317
71318         * m4/javacomp.m4: New file, from GNU gettext.
71319
71320 2005-01-28  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/javacomp.sh.in: New file, from GNU gettext.
71323         * lib/javacomp.h: New file, from GNU gettext.
71324         * lib/javacomp.c: New file, from GNU gettext.
71325
71326 2005-01-26  Simon Josefsson  <jas@extundo.com>
71327
71328         * lib/gai_strerror.c: Use GPL in header.
71329
71330 2005-01-26  Bruno Haible  <bruno@clisp.org>
71331
71332         * modules/javaexec: New file.
71333         * MODULES.html.sh (Java): Add javaexec.
71334
71335 2005-01-26  Bruno Haible  <bruno@clisp.org>
71336
71337         * m4/javaexec.m4: New file, from GNU gettext.
71338
71339 2005-01-26  Bruno Haible  <bruno@clisp.org>
71340
71341         * lib/javaexec.sh.in: New file, from GNU gettext.
71342         * lib/javaexec.h: New file, from GNU gettext.
71343         * lib/javaexec.c: New file, from GNU gettext.
71344
71345 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71346
71347         * modules/lchown (Depends-on): Remove lchown.h
71348
71349 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71350
71351         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71352         must be defined if the header file was not found, in order
71353         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71354
71355 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71356
71357         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71358         initializers for struct pentry_state.
71359         (__argp_error): Check return value of __asprintf
71360         (__argp_failure): Translate error message
71361
71362         * lib/argp-parse.c: Removed braces around the expansion of N_()
71363
71364 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71365
71366         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71367         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71368         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71369         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71370         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71371         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71372         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71373         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71374         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71375         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71376         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71377         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71378         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71379         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71380         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71381         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71382         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71383         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71384         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71385         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71386         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71387         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71388         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71389         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71390         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71391         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71392         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71393         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71394         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71395         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71396         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71397         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71398         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71399         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71400         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71401         Use an all-permissive copyright notice, recommended by RMS.
71402
71403 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71404
71405         * modules/chdir-long (Depends-on): Remove mempcpy.
71406
71407 2005-01-21  Jim Meyering  <jim@meyering.net>
71408
71409         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71410         same value as for Solaris 9.
71411
71412         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71413         component length.  This included changing the parameter to be
71414         of type `char *' rather than `char const *'.
71415         * lib/chdir-long.h (chdir_long): Update prototype.
71416
71417         * lib/openat.c (fdopendir, fstatat): New functions.
71418         * lib/openat.h: Include headers required for use of DIR and struct
71419         stat.
71420         [AT_SYMLINK_NOFOLLOW]: Define.
71421         (fdopendir, fstatat): Add prototypes.
71422
71423 2005-01-21  Bruno Haible  <bruno@clisp.org>
71424
71425         * modules/classpath: New file.
71426         * MODULES.html.sh (Java): Add classpath.
71427
71428 2005-01-21  Bruno Haible  <bruno@clisp.org>
71429
71430         * lib/classpath.h: New file, from GNU gettext.
71431         * lib/classpath.c: New file, from GNU gettext.
71432
71433 2005-01-20  Simon Josefsson  <jas@extundo.com>
71434
71435         * modules/version-etc-fsf: New file.
71436
71437 2005-01-20  Simon Josefsson  <jas@extundo.com>
71438
71439         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71440         * lib/version-etc.c: Remove version_etc_copyright.
71441         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71442         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71443
71444 2005-01-20  Simon Josefsson  <jas@extundo.com>
71445
71446         * lib/base64.h (isbase64): Add.
71447
71448         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71449         using a unsigned prototype, don't inline.
71450         (base64_decode): Use it.
71451
71452 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71455         it.
71456
71457 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         * lib/save-cwd.c (save_cwd): Remove code to support the case
71460         where fchdir is missing or flaky.
71461
71462 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71465
71466 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71469         AC_LIBSOURCES now does this.
71470         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71471         with new ullong_max module.
71472
71473 2005-01-19  Bruno Haible  <bruno@clisp.org>
71474
71475         * modules/sh-quote: New file.
71476         * MODULES.html.sh (Executing programs): Add sh-quote.
71477
71478 2005-01-19  Bruno Haible  <bruno@clisp.org>
71479
71480         * lib/sh-quote.h: New file, from GNU gettext.
71481         * lib/sh-quote.c: New file, from GNU gettext.
71482
71483 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         Merge from coreutils.
71486         * m4/ullong_max.m4: New file.
71487         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71488         (gl_MACROS): Assume localeconv exists.
71489
71490 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         Merge changes from coreutils, as described below in several
71493         changelogs dated today.
71494
71495         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71496         (O_DIRECTORY): Remove; not needed here, since "." must be
71497         a directory.  All uses removed.
71498         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71499         universal on Suns, and we also need to test for IRIX.
71500         Revamp code to use 'if' rather than '#if'.
71501         Avoid unnecessary comparison of cwd->desc to 0.
71502
71503         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71504         for known valid error numbers rather than observed invalid ones.
71505
71506 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71507
71508         * modules/ullong_max: New file.
71509
71510         * modules/chdir-long, modules/openat: New files.
71511         * modules/save-cwd (Depends-on): Depend on chdir-long.
71512         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71513
71514 2005-01-18  Jim Meyering  <jim@meyering.net>
71515
71516         Merge from coreutils.
71517         * m4/chdir-long.m4, m4/openat.m4: New files.
71518         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71519         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71520         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71521         is sane and DOES follow symlinks.  Besides, testing 20 different
71522         systems found no broken chown implementations.
71523         Prompted by a change in rsync's copy of this macro.
71524         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71525
71526         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71527
71528         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71529         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71530         NULL-means-set-to-current-time semantics.
71531         Remove temporary file immediately, rather than waiting
71532         for configure's at-exit trap code to do it.
71533
71534 2005-01-18  Jim Meyering  <jim@meyering.net>
71535
71536         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71537
71538         * lib/utimens.c (futimens): Account for the fact that futimes
71539         can also fail with errno == ENOSYS or errno == ENOENT.
71540         Patch from Dmitry V. Levin.
71541
71542         Change the name of the robust chdir function from chdir to chdir_long.
71543         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71544         (restore_cwd): Use chdir_long, not chdir.
71545         * lib/chdir-long.c: Renamed from chdir.c.
71546         * lib/chdir-long.h: Renamed from chdir.h.
71547         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71548         Hurd.
71549
71550 2005-01-18  Bruno Haible  <bruno@clisp.org>
71551
71552         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71553         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71554         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71555         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71556         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71557         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71558         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71559         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71560         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71561         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71562         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71563         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71564         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71565         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71566         Use an all-permissive copyright notice, recommended by RMS.
71567
71568 2005-01-18  Bob Proulx  <bob@proulx.com>
71569
71570         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71571         simplify offsetof() macro construct to avoid compile failure with
71572         native HP-UX 11.0 ANSI C compiler.
71573
71574 2005-01-17  Bruno Haible  <bruno@clisp.org>
71575
71576         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71577         redundant because stpncpy.m4 takes care of it.
71578
71579 2005-01-17  Bruno Haible  <bruno@clisp.org>
71580
71581         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71582
71583 2005-01-17  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71586         used.
71587
71588 2005-01-17  Bruno Haible  <bruno@clisp.org>
71589
71590         * lib/fwriteerror.h (fwriteerror): Change specification to include
71591         fclose.
71592         * lib/fwriteerror.c: Include <stdbool.h>.
71593         (fwriteerror): At the end, close the file stream. Record whether
71594         stdout was already closed.
71595
71596 2005-01-17  Bruno Haible  <bruno@clisp.org>
71597
71598         * lib/execute.c (environ): Declare if needed.
71599         * lib/pipe.c (environ): Likewise.
71600         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71601
71602 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71603
71604         * modules/argp: Depend on vsnprintf
71605
71606 2005-01-10  Jim Meyering  <jim@meyering.net>
71607
71608         * modules/closeout (Depends-on): Add atexit.
71609
71610 2005-01-06  Bruno Haible  <bruno@clisp.org>
71611
71612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71613
71614 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71615
71616         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71617         definitions to be after all include files, to avoid collisions.
71618         Problem reported by Bob Proulx.
71619
71620 2005-01-04  Jim Meyering  <jim@meyering.net>
71621
71622         Changes imported from coreutils.
71623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71624         as the mkstemp template, use a temporary directory and an
71625         8.3-friendly template to avoid trouble on systems like DJGPP.
71626         Reported by Juan M. Guerrero via Stepan Kasal.
71627         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71628         close. Remove the temporary directory right away, rather than waiting
71629         for configure's at-exit trap code to do it.
71630         Suggestion from Stepan Kasal.
71631
71632 2005-01-01  Simon Josefsson  <jas@extundo.com>
71633
71634         * gnulib-tool: Print #include directives when --import'ing.
71635
71636 2004-12-28  Simon Josefsson  <jas@extundo.com>
71637
71638         * tests/test-base64.c: Include required header files.  Remove
71639         unused variables.
71640
71641 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * modules/error (Depends-on): Remove gettext.
71644
71645 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71648         not needed.  This removes a dependency on the gettext module.
71649         [defined _LIBC]: Do not include <libintl.h>; not needed.
71650
71651 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71652
71653         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71654         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71655
71656 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71657
71658         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71659         HAVE_DECL_STRTOLD.
71660
71661 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * modules/getdate (Depends-on): Remove alloca-opt.
71664
71665 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71668
71669 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71670
71671         * lib/argp-parse.c: Include <stddef.h>.
71672         (alignof, alignto): New macros.
71673         (parser_init): Don't assume that void * is aligned sufficiently
71674         for struct option.
71675
71676         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71677         need to extend the stack.
71678         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71679         large.
71680
71681 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71682
71683         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71684
71685 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71686
71687         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71688         (2004-10-24) change.  Apparently this was a false alarm.
71689
71690         * modules/getdate: Depend on alloca-opt, not alloca.
71691
71692 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71695         Remove now-obsolete comment about AIX.
71696         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71697         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71698         (YYMAXDEPTH): New macro.
71699
71700 2004-12-18  Simon Josefsson  <jas@extundo.com>
71701
71702         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71703
71704 2004-12-18  Bruno Haible  <bruno@clisp.org>
71705
71706         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71707
71708 2004-12-18  Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/fatal-signal.c (fatal_signals): Make non-const.
71711         (init_fatal_signals): New function.
71712         (uninstall_handlers, install_handlers): Ignore signals that were set to
71713         SIG_IGN.
71714         (at_fatal_signal): Call init_fatal_signals.
71715         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71716         SIG_IGN.
71717         Reported by Paul Eggert.
71718
71719 2004-12-18  Bruno Haible  <bruno@clisp.org>
71720
71721         * doc/alloca.texi: New file.
71722         * doc/alloca-opt.texi: New file.
71723
71724 2004-12-17  Jim Meyering  <jim@meyering.net>
71725
71726         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71727         Otherwise, install-sh could exit with improper exit status when
71728         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71729
71730 2004-12-16  Simon Josefsson  <jas@extundo.com>
71731
71732         * tests/test-base64.c: Add license.
71733
71734 2004-12-15  Stepan Kasal  <address@hidden>
71735
71736         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71737
71738 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * modules/getcwd (Files): Add m4/d-ino.m4.
71741         Suggested by Mark D. Baushke.
71742
71743 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * lib/getdate.y (textint): New member "negative".
71746         (time_zone_hhmm): New function.
71747         Expect 14 shift-reduce conflicts, not 13.
71748         (o_colon_minutes): New rule.
71749         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71750         (yylex): Set the "negative" member of signed numbers.
71751
71752 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * doc/getdate.texi (Time of day items, Time zone items):
71755         Describe new formats +00:00, UTC+00:00.
71756
71757 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71760         spurious "-l"s.  Problem reported by Stepan Kasal.
71761
71762 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71763
71764         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71765         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71766
71767 2004-12-04  Simon Josefsson  <jas@extundo.com>
71768
71769         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71770         Vandoorselaere <yoann@prelude-ids.org>.
71771
71772 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         Changes imported from coreutils.
71775         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71776         exist.
71777         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71778
71779 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         Changes imported from coreutils.
71782         * lib/hard-locale.c: Assume <locale.h> exists.
71783         Include "strdup.h".
71784         (GLIBC_VERSION): New macro.
71785         (hard_locale): Assume setlocale exists.
71786         Rewrite to avoid #ifdef.
71787         Use strdup rather than malloc + strcpy.
71788         * lib/human.c: Assume <locale.h> exists.
71789         (human_readable): Assume localeconv exists.
71790
71791 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71792
71793         * modules/hard-locale (Depends-on): Add strdup.
71794
71795 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71796
71797         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71798         convert T2, not T.  (Imported from libc.)
71799
71800 2004-11-30  Simon Josefsson  <jas@extundo.com>
71801
71802         * modules/restrict (License): Change to LGPL.
71803
71804 2004-11-30  Simon Josefsson  <jas@extundo.com>
71805
71806         * m4/restrict.m4: Add copyright and copying conditions.
71807
71808 2004-11-30  Simon Josefsson  <jas@extundo.com>
71809
71810         * m4/base64.m4: New file.
71811
71812 2004-11-30  Simon Josefsson  <jas@extundo.com>
71813
71814         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71815         base64.
71816
71817         * tests/test-base64.c: New file.
71818
71819         * modules/base64: New file.
71820
71821 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71822
71823         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71824         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71825
71826         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71827
71828 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71829
71830         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71831         (__getcwd.c): Don't restore errno; glibc doesn't.
71832         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71833         first, falling back to our code only if its results look suspicious.
71834         Ensure that the resulting buffer is only as large as necessary.
71835
71836         * lib/readutmp.c: Include readutmp.h first.
71837         Include <errno.h>, since readutmp.h no longer does that.
71838         * lib/readutmp.h: Don't include <errno.h>,
71839         <sys/param.h>, <time.h>; not needed to establish interface.
71840         (errno): Remove decl.
71841         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71842         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71843         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71844
71845 2004-11-28  Simon Josefsson  <jas@extundo.com>
71846
71847         * lib/base64.h, base64.c: New file.
71848
71849 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71850
71851         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71852
71853 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71854
71855         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71856         (Depends-on): Remove pathmax, same.  Add mempcpy.
71857         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71858         (Makefile.am): Append getcwd.h to lib_SOURCES.
71859         (Include): Add getcwd.h.
71860         (Maintainer): Change from Jim Meyering to "all, glibc",
71861         since getdate now uses intended-for-glibc code.
71862         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71863         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71864
71865 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71868         HP's ANSI C compiler.
71869         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71870         Declaring int functions causes warnings on some modern systems and
71871         shouldn't be needed to compile on ancient ones.
71872         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71873         defined.
71874
71875         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71876         with the following changes.
71877         (__set_errno): Parenthesize properly.
71878         Include <stdbool.h>.
71879         (MIN, MAX, MATCHING_INO): New macros.
71880         (__getcwd): Define with prototype, not K&R form.
71881         Use heuristics to allocate default buffer on stack if possible.
71882         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71883         behavior, and to avoid the PATH_MAX limit when computing
71884         ../../../../...
71885         Use MATCHING_INO to compare inode number to file.
71886         Check for arithmetic overflow in size calculations.
71887         Fix bug in reallocation of dot array that caused getcwd to fail
71888         on directories nested deeper than 75.
71889         Be more careful about saving errno on error.
71890         Do not use realloc; use only free+malloc, as this is a bit
71891         more flexible and avoids a needless copy operation.
71892         Do not inspect st_dev and st_ino for symbolic links; POSIX
71893         doesn't specify the latter.
71894         Check for closedir errors.
71895         Avoid needless casts.
71896         Use "#ifdef weak_alias" around weak_alias, to be like other
71897         glibc code.
71898         The following changes to getcwd.c have effect only when used in
71899         gnulib; they have no effect inside glibc proper.
71900         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71901         as alloca isn't used.
71902         (alloca, __alloca): Likewise.
71903         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71904         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71905         unconditionally, as gnulib assumes C89 or better.
71906         Do not include <sys/param.h>.
71907         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71908         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71909         better.
71910         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71911         Include <dirent.h> in a way that is compatible with modern Autoconf.
71912         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71913         New macros, if not already defined.
71914         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71915         Use "_LIBC", not "defined _LIBC", for consistency.
71916         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71917         a mempcpy module.
71918         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71919         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71920         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71921         credit only to Jim Meyering and adjust the copyright dates.
71922         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71923         <stdlib.h>, <unistd.h>, "pathmax.h".
71924         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71925         (INITIAL_BUFFER_SIZE): Remove.
71926         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71927
71928 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71929
71930         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71931         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71932         Use the _ONCE methods, for efficiency.
71933         Check for fcntl.h.  In test program, include <errno.h>
71934         and <fcntl.h> if available.  Remove old K&R cruft from
71935         test program.  Check for common errors in GNU/Linux,
71936         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71937         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71938         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71939         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71940         name accordingly.
71941         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71942         accommodate new getcwd.c.
71943         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71944         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71945         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71946         that's all we need now.
71947
71948 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71949
71950         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71951         argp-parse.c depends on getopt internals, that means we should
71952         always use our getopt, to be on the safe side.
71953         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71954         order not to spoil the result of an eventual previous invocation
71955         of gl_GETOPT_SUBSTITUTE.
71956
71957 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71958
71959         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71960         redefinition warnings. To avoid them, include the defines
71961         in `#if !defined __need_getopt ... #endif'. The only place
71962         where __getopt_argv_const is used is in definitions
71963         of getopt_long and getopt_long_only below, which are as well
71964         protected by `#ifndef __need_getopt'.
71965         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71966         __need_getopt after including <stdio.h> and <unistd.h> These
71967         headers might have defined it.
71968
71969 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71972
71973 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71976         (futimens): New function, which uses futimes if available.
71977         (futimens, utimens): Support timespec==NULL, with same semantics
71978         as utime and utimens.
71979         * lib/utimens.h (futimens): New decl.
71980
71981 2004-11-23  Jim Meyering  <jim@meyering.net>
71982
71983         * lib/getopt_.h: Remove trailing blanks.
71984
71985 2004-11-23  Jim Meyering  <jim@meyering.net>
71986
71987         * lib/__fpending.c: Add comment.
71988
71989 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71990
71991         * modules/canonicalize (Depends-on): Add xreadlink.
71992         Problem reported by James Youngman.
71993
71994 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71995
71996         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71997         New macros.
71998         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71999         optopt): Use them instead of invoking ## directly; otherwise, the
72000         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72001
72002 2004-11-19  Bruno Haible  <bruno@clisp.org>
72003
72004         * lib/strtok_r.c: Move comments from here...
72005         * lib/strtok_r.h: ... to here.
72006
72007 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72010         implementations that mishandle size_t overflow.
72011
72012 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72013
72014         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72015         might fail.  Problem reported by Yoann Vandoorselaere.
72016         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72017         implementations that mishandle size_t overflow.
72018
72019 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72020
72021         * modules/canon-host (Depends-on): Add strdup.
72022
72023 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72026
72027 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * lib/canon-host.c: Include "strdup.h".
72030         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72031         Use strdup instead of malloc/strcpy to duplicate strings.
72032
72033         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72034         (human_space_before_unit): New constant.
72035         * lib/human.c (human_readable): Support it.
72036
72037         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72038         (xgetcwd): Set errno correctly when failing.
72039         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72040         the failure is actually due to a PATH_MAX problem.
72041
72042         Further getopt changes to make it more likely that glibc will
72043         buy the changes back.
72044         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72045         (getopt): Use it, so to preserve glibc semantic
72046         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72047         when compiling for libc.
72048         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72049         (getopt_long, getopt_long_only): Use it.
72050
72051         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72052         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72053         (getopt): Argv is now char * const *, as per standard.
72054         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72055         not char *__getopt_argv_const *.
72056         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72057         _getopt_long_only_r): Likewise.
72058         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72059         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72060         _getopt_long_r, _getopt_long_only_r): Likewise.
72061         * lib/getopt_.h (__getopt_argv_const): Remove.
72062         (getopt): Argv is now char * const *, as per standard.
72063
72064         * lib/getdate.y (tORDINAL): New token.
72065         (day, relunit): Allow it for relative times.
72066         (relative_time_table): Use tORDINAL for ordinals.
72067
72068 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72071         Document that "second" isn't allowed as an ordinal number.
72072
72073 2004-11-16  Jim Meyering  <jim@meyering.net>
72074
72075         * modules/closeout (Depends-on): Add fpending.
72076
72077 2004-11-15  Jim Meyering  <jim@meyering.net>
72078
72079         * lib/closeout.c: Include "__fpending.h" once again.
72080         Include <stdbool.h>.
72081         (close_stdout): Don't fail just because stdout was closed initially,
72082         since some programs don't write to stdout in the normal course of
72083         operation (other than --version and --help), and we don't want this
72084         function to make e.g. `touch file >&-' fail.
72085         But do fail if it was closed and someone has tried to write to it.
72086         E.g., `printf foo >&-' must fail.
72087
72088 2004-11-13  Jim Meyering  <jim@meyering.net>
72089
72090         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72091
72092 2004-11-12  Simon Josefsson  <jas@extundo.com>
72093
72094         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72095         small doc fix is still pending.
72096
72097 2004-11-11  Simon Josefsson  <jas@extundo.com>
72098
72099         * modules/strtok_r: New file.
72100
72101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72102         strtok_r.
72103
72104 2004-11-11  Simon Josefsson  <jas@extundo.com>
72105
72106         * m4/strtok_r.m4: New file.
72107
72108         * m4/getopt.m4: Replace opterr.
72109
72110 2004-11-11  Simon Josefsson  <jas@extundo.com>
72111
72112         * lib/strtok_r.h, strtok_r.c: New file.
72113
72114 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72117         of replacing opterr, getopt, etc.  This should handle the
72118         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72119
72120 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72123         we can stop lying to compilers about the constness of argv when we
72124         are compiled outside glibc.
72125         (getopt, getopt_long, getopt_long_only): Use it.
72126         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72127         _getopt_internal, getopt): Likewise.
72128         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72129         _getopt_long_only_r): Likewise.
72130         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72131         _getopt_long_r, _getopt_long_only_r): Likewise.
72132
72133         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72134         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72135         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72136         the other external symbols.
72137         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72138         declaration, since the above renaming now works around collisions.
72139
72140 2004-11-11  Jim Meyering  <jim@meyering.net>
72141
72142         * lib/linebreak.c: Remove trailing blanks.
72143         * lib/alloca_.h: Likewise.
72144         * lib/acosl.c: Likewise.
72145         * lib/euidaccess.c: Likewise.
72146         * lib/allocsa.h: Likewise.
72147
72148 2004-11-10  Simon Josefsson  <jas@extundo.com>
72149
72150         * m4/getaddrinfo.m4: New file.
72151
72152 2004-11-10  Simon Josefsson  <jas@extundo.com>
72153
72154         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72155
72156 2004-11-10  Simon Josefsson  <jas@extundo.com>
72157
72158         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72159         getaddrinfo.
72160
72161         * modules/getaddrinfo: New file.
72162
72163 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72166
72167 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72168
72169         * lib/mktime.c (SHR): New macro, which is a portable
72170         substitute for >> that should work even on Crays.
72171         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72172         Problem reported by Mark D. Baushke in
72173         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72174         * lib/getdate.y (SHR): Likewise.
72175         (tm_diff): Use it.
72176         * lib/strftime.c (SHR): Likewise.
72177         (tm_diff): Use it.
72178         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72179         quote_these_too, so that right shifts are well defined.  All uses
72180         changed.
72181
72182 2004-11-10  Jim Meyering  <jim@meyering.net>
72183
72184         Ensure that no close failure goes unreported.
72185         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72186         return early when it seems there's nothing to flush.
72187         Don't include __fpending.h.
72188
72189 2004-11-10  Jim Meyering  <jim@meyering.net>
72190
72191         * modules/closeout (Depends-on): Remove fpending.
72192
72193 2004-11-10  Jim Meyering  <jim@meyering.net>
72194
72195         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72196
72197 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72200         gl_FUNC_STRFTIME.
72201         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72202         and AC_REQUIRE when possible, to avoid duplicate checks.
72203         Check for <wchar.h>.
72204
72205 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72208
72209 2004-11-09  Bruno Haible  <bruno@clisp.org>
72210
72211         * m4/sockpfaf.m4: New file.
72212
72213 2004-11-05  Bruno Haible  <bruno@clisp.org>
72214
72215         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72216         Reported by Mark D. Baushke <mdb@cvshome.org>.
72217
72218 2004-11-04  Bruno Haible  <bruno@clisp.org>
72219
72220         2004-09-11  Bruno Haible  <bruno@clisp.org>
72221                 * allocsa.valgrind: New file.
72222         2004-02-06  Bruno Haible  <bruno@clisp.org>
72223                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72224                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72225                 Reported by Christopher Seip <chris.seip@hp.com>.
72226
72227 2004-11-04  Bruno Haible  <bruno@clisp.org>
72228
72229         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72230         (Makefile.am): Distribute it.
72231
72232 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72233
72234         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72235         with errno == ERANGE if the buffer is too small.
72236         Problem reported by Mark D. Baushke.
72237
72238 2004-11-03  Albert Chin  <china@thewrittenword.com>
72239             Paul Eggert  <eggert@cs.ucla.edu>
72240
72241         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72242         equivalent, substitute $ac_type for equivalent type rather than
72243         blindly using uint32_t *always* which won't work if uint32_t is not
72244         available.  Define _UINT32_T to work around typedef of uint32_t if
72245         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72246         2.5.1.
72247
72248 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72249
72250         * m4/jm-macros.m4: Sync from coreutils.
72251         (gl_MACROS): Check for mbrlen, for pathchk.
72252         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72253
72254 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * lib/xreadlink.c (MAXSIZE): New macro.
72257         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72258         size does not exceed MAXSIZE.  Avoid cast.
72259         As suggested by Mark D. Baushke in
72260         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72261         if readlink fails with buffer size just under MAXSIZE, try again
72262         with MAXSIZE.
72263
72264 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72267
72268 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72269         and  Paul Eggert  <eggert@cs.ucla.edu>
72270
72271         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72272         (get_date): Overparenthesize to avoid GCC warning.
72273
72274 2004-11-02  Bruno Haible  <bruno@clisp.org>
72275
72276         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72277         returns void.
72278
72279 2004-11-02  Bruno Haible  <bruno@clisp.org>
72280
72281         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72282         function returns void.
72283
72284 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72287         fflush_unlocked, flockfile, funlockfile, funlockfile,
72288         fputs_unlocked, putc_unlocked.
72289
72290 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72293         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72294         already declared.
72295
72296 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72297
72298         * modules/getdate (Files): Add doc/getdate.texi.
72299         (Depends-on): Add setenv, xalloc.
72300
72301 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * lib/getdate.y: Add support for TZ="foo" within a date string.
72304         Fix some bugs near time_t boundaries.  Reject dates with
72305         out-of-range components, e.g., "Sept 31".
72306         Include <stdlib.h>, "setenv.h", "xalloc.h".
72307         (ISDIGIT_LOCALE): Remove; unused.
72308         Note that the TZ and time functions used here are not reentrant.
72309         (mktime_ok, get_tz): New functions.
72310         (TZBUFSIZE): New constant.
72311         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72312         This requires that we sometimes generate our own TZ="XXX..." setting.
72313
72314 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * doc/getdate.texi: New file, from coreutils with modifications for
72317         the new TZ parsing.
72318
72319 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72320
72321         * lib/mktime.c (not_equal_tm): Remove redundant check.
72322
72323 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * modules/regex (lib_SOURCES): Add regex.c.
72326         Reported by James Youngman in
72327         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72328
72329 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * lib/getdate.y: Use Bison 1.875 features, and some minor
72332         code cleanups.  This change does not affect semantics.
72333         Don't include <stdlib.h>; no longer needed.
72334         Don't include unlocked-io.h; only the "#if TEST" code uses
72335         stdio, and performance isn't crucial there.
72336         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72337         Bison 1.875 features as described below.
72338         All uses of "PC." replaced by "pc->".
72339         (YYSTYPE): Add a forward declaration.
72340         (yylex, yyerror): Use full prototypes in forward decls.
72341         Use "%pure-parser" rather than obsolescent "%pure_parser".
72342         Use %parse-param and %lex-param instead of obsolescent
72343         YYPARSE_PARAM and YYLEX_PARAM.
72344         (meridian_table, month_and_day_table, time_units_table,
72345         relative_time_table, time_zone_table, military_table,
72346         lookup_zone, lookup_word, get_date):
72347         Use NULL instead of 0 where appropriate.
72348         (to_hour): Avoid abort (), to avoid a dependency on
72349         stdlib.h.
72350         (yyerror, yylex): Now accepts parser_control * arg.
72351         (main) [TEST]: Use '\0' rather than 0 for char.
72352
72353 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72354
72355         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72356
72357 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72358
72359         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72360         It's now the caller's responsibility to handle the case where
72361         !HAVE_GETPAGESIZE && !defined getpagesize.
72362
72363         * lib/mktime.c (leapyear): Arg is long int, not int.
72364
72365 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72368
72369 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72372         missing.  Problem reported by James Youngman.
72373
72374 2004-10-16  Simon Josefsson  <jas@extundo.com>
72375
72376         * gnulib-tool: Fix comments.  Fix parse problem.
72377         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72378
72379 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72382         implementation of getopt_long.  Problem reported by Alexander Taler in:
72383         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72384
72385 2004-10-15  Bruno Haible  <bruno@clisp.org>
72386
72387         * gnulib-tool: Untabify. Initialize supplied_libname.
72388         (func_usage): More homogenous output.
72389         (func_modules_transitive_closure, func_modules_to_filelist,
72390         func_emit_lib_Makefile_am): New functions.
72391         (func_import): New function, extracted from big case statement. Use
72392         func_get_license, func_modules_transitive_closure,
72393         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72394         opt_lgpl. Don't use test -a, as it's not portable.
72395         (func_create_testdir): Use func_modules_transitive_closure,
72396         func_modules_to_filelist, func_emit_lib_Makefile_am.
72397
72398 2004-10-15  Bruno Haible  <bruno@clisp.org>
72399
72400         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72401
72402 2004-10-15  Bruno Haible  <bruno@clisp.org>
72403
72404         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72405         the portions belonging to each module.
72406         Suggested by Derek Robert Price <derek@ximbiot.com>.
72407
72408 2004-10-12  Simon Josefsson  <jas@extundo.com>
72409
72410         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72411         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72412         to real functions.
72413
72414 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72415
72416         * modules/vsnprintf: New file.
72417
72418 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72419
72420         * m4/vsnprintf.m4: New file.
72421
72422 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72423
72424         * lib/vsnprintf.h: New file.
72425         * lib/vsnprintf.c: New file.
72426
72427 2004-10-11  Bruno Haible  <bruno@clisp.org>
72428
72429         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72430         vsnprintf.
72431
72432 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72435
72436 2004-10-07  Bruno Haible  <bruno@clisp.org>
72437
72438         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72439         fits into the provided buffer.
72440
72441 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * lib/diacrit.c, diacrit.h: Add GPL notice.
72444
72445         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72446         notice.
72447         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72448         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72449         This avoids a potential constant-folding bug.
72450
72451 2004-10-05  Bruno Haible  <bruno@clisp.org>
72452
72453         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72454         for the declaration of strsep.
72455
72456 2004-10-05  Bruno Haible  <bruno@clisp.org>
72457
72458         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72459
72460 2004-10-04  Simon Josefsson  <jas@extundo.com>
72461
72462         * modules/memmem: New file.
72463         * tests/test-memmem.c: New file.
72464         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72465
72466 2004-10-04  Simon Josefsson  <jas@extundo.com>
72467
72468         * m4/memmem.m4: New file.
72469
72470 2004-10-04  Simon Josefsson  <jas@extundo.com>
72471
72472         * lib/memmem.h: New file.
72473         * lib/memmem.c: New file, taken from glibc.
72474
72475 2004-10-04  Simon Josefsson  <jas@extundo.com>
72476
72477         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72478         '#ifdef USE_UNLOCKED_IO'.
72479
72480 2004-10-04  Simon Josefsson  <jas@extundo.com>
72481
72482         * config/srclist.txt: Add memmem from glibc.
72483
72484 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72485
72486         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72487
72488         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72489         modules/exclude, modules/getdate, modules/getline,
72490         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72491         modules/getusershell, modules/linebuffer, modules/md5,
72492         modules/mountlist, modules/posixtm, modules/readtokens,
72493         modules/readutmp, modules/regex, modules/sha1,
72494         modules/version-etc, modules/yesno:
72495         Remove dependency on unlocked-io.
72496
72497 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72498
72499         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72500
72501         * m4/unlocked-io.m4: Add copyright notice.
72502         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72503
72504 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72505
72506         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72507         * lib/xmalloc.c (xmemdup): Likewise.
72508         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72509         XFREE): Remove these long-obsolescent macros.
72510         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72511         * lib/xstrdup.c: Remove.
72512
72513         * lib/regex.c (re_comp): Cast gettext return value to char *,
72514         Problem reported by Martin Neitzel via Mark D. Baushke.
72515
72516 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72519         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72520         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72521         regex.c, sha1.c, version-etc.c, yesno.c:
72522         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72523         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72524         the includer's responsibility.
72525
72526         Sync from coreutils.
72527
72528         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72529         points to the start of a string, as the C Standard says the
72530         resulting behavior is undefined.
72531
72532         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72533         simple -> simple_backups, numbered_existing ->
72534         numbered_existing_backups, numbered -> numbered_backups
72535         to avoid shadowing problems.  All uses changed.
72536         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72537         * lib/backupfile.c (check_extension, numbered_backup):
72538         Rename locals to avoid shadowing 'basename'.
72539         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72540         once.
72541
72542         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72543         * lib/.cvsignore: Add getopt.h.
72544
72545 2004-10-04  Bruno Haible  <bruno@clisp.org>
72546
72547         * modules/README: New file.
72548         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72549         not a module.
72550
72551 2004-10-02  Jim Meyering  <jim@meyering.net>
72552
72553         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72554
72555 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72556
72557         * modules/strsep: New file.
72558
72559 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72560
72561         * m4/strsep.m4: New file.
72562
72563 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72564
72565         * lib/strsep.h: New file.
72566         * lib/strsep.c: New file.
72567
72568 2004-10-01  Simon Josefsson  <jas@extundo.com>
72569
72570         * lib/snprintf.c (snprintf): Handle size==0.
72571
72572 2004-10-01  Simon Josefsson  <jas@extundo.com>
72573             Bruno Haible  <bruno@clisp.org>
72574
72575         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72576         (snprintf): Declare 'args'.
72577
72578 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72579
72580         * lib/snprintf.c: Remove comments as to why each header is needed.
72581
72582 2004-10-01  Bruno Haible  <bruno@clisp.org>
72583
72584         * MODULES.html.sh: Add strsep.
72585
72586 2004-09-30  Simon Josefsson  <jas@extundo.com>
72587
72588         * modules/snprintf: New file.
72589
72590 2004-09-30  Simon Josefsson  <jas@extundo.com>
72591
72592         * m4/snprintf.m4: New file.
72593
72594 2004-09-30  Simon Josefsson  <jas@extundo.com>
72595
72596         * lib/snprintf.h, lib/snprintf.c: New files.
72597
72598 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72599
72600         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72601         (hol_entry_help): Never translate an empty string.
72602         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72603         * lib/argp.h (OPTION_NO_TRANS): New option.
72604
72605 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72606
72607         * modules/argp (Maintainer): Replace Simon Josefsson
72608         by Sergey Poznyakoff.
72609
72610 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72611
72612         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72613         changes merged back into glibc.
72614
72615 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72618
72619 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72620
72621         * lib/xvasprintf.c: Include xalloc.h.
72622         (xvasprintf): Use xalloc_die, not xmalloc_die.
72623
72624 2004-09-29  Bruno Haible  <bruno@clisp.org>
72625
72626         * modules/alloca-opt: New file, derived from modules/alloca.
72627         * modules/allocsa: Depend on alloca-opt instead of alloca.
72628         * modules/setenv: Likewise.
72629         * modules/vasnprintf: Likewise.
72630         * MODULES.html.sh: Add alloca-opt.
72631
72632 2004-09-28  Simon Josefsson  <jas@extundo.com>
72633
72634         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72635         LGPL, and to replace license template from GPL to LGPL.
72636
72637 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72638
72639         * modules/dummy: Change license to LGPL.
72640
72641 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72644
72645 2004-09-24  Simon Josefsson  <jas@extundo.com>
72646
72647         * modules/minmax (License): Change from GPL to LGPL.
72648
72649 2004-09-23  Simon Josefsson  <jas@extundo.com>
72650
72651         * gnulib-tool (--import): Typo.
72652
72653 2004-09-23  Simon Josefsson  <jas@extundo.com>
72654
72655         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72656
72657 2004-09-22  Bruno Haible  <bruno@clisp.org>
72658
72659         * modules/*: Add 'License' field.
72660         * gnulib-tool: Accept --extract-license option.
72661         (func_get_license): New function.
72662
72663 2004-09-21  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72666         Reported by Simon Josefsson.
72667
72668 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72669
72670         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72671         gl_AC_TYPE_LONG_LONG.
72672
72673 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72674
72675         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72676
72677 2004-09-18  Simon Josefsson  <jas@extundo.com>
72678         and  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72681         calls with autoreconf.  Define GL_LIB.
72682
72683 2004-09-14  Karl Berry  <karl@gnu.org>
72684
72685         * config/srclist.txt: unsync setenv.c, sigh.
72686
72687 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72690         Problem reported by Bruno Haible in:
72691         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72692
72693 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72694
72695         * config/srclist.txt: Comment out argp-pvh.c.
72696
72697 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72700         in case some system header has #define'd it.  Problem reported by
72701         Soeren D. Schulze in
72702         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72703
72704 2004-09-09  Karl Berry  <karl@gnu.org>
72705
72706         * regex.[ch]: delete from the root.  These were supposed to be
72707                 synced with emacs cvs, but this has not happened for about
72708                 a year, and anyway nothing else uses emacs regex.[ch].
72709                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72710                 lib/regex[.ch] is untouched.
72711
72712 2004-09-09  Bruno Haible  <bruno@clisp.org>
72713
72714         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72715
72716 2004-09-09  Bruno Haible  <bruno@clisp.org>
72717
72718         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72719         modifications.
72720         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72721
72722 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72723
72724         * modules/xvasprintf: New file.
72725         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72726
72727 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72728
72729         * lib/xvasprintf.h: New file.
72730         * lib/xvasprintf.c: New file.
72731         * lib/xasprintf.c: New file.
72732
72733 2004-09-08  Bruno Haible  <bruno@clisp.org>
72734
72735         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72736
72737 2004-09-08  Bruno Haible  <bruno@clisp.org>
72738
72739         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72740         length is > INT_MAX.
72741         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72742         more.
72743
72744 2004-09-08  Bruno Haible  <bruno@clisp.org>
72745
72746         * lib/stdint_.h: New file, taken from GNU clisp.
72747
72748 2004-09-08  Bruno Haible  <bruno@clisp.org>
72749             Oskar Liljeblad  <oskar@osk.mine.nu>
72750
72751         * modules/stdint: New file.
72752         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72753
72754 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72755
72756         Import from coreutils.
72757         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72758         strings on unbounded length.  alloca's performance benefits aren't
72759         that important here.
72760         (V_STRDUP): Remove.
72761         (parse_with_separator): New function, with most of the internals
72762         of the old parse_user_spec.  Allow user to omit both user and group,
72763         for compatibility with FreeBSD.
72764         Clone only the user name, not the entire spec.
72765         Do not set *uid, *gid unless entirely successful.
72766         Avoid memory leak in some failing cases.
72767         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72768         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72769         (parse_user_spec): Rewrite to use parse_with_separator.
72770
72771 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         * modules/userspec: Don't depend on alloca.
72774
72775 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72776
72777         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72778
72779 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72782         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72783         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72784
72785 2004-08-16  Simon Josefsson  <jas@extundo.com>
72786
72787         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72788         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72789         Add --dry-run for --import.
72790         Let user provided command line parameters override configure.ac
72791         settings.
72792
72793 2004-08-12  Simon Josefsson  <jas@extundo.com>
72794
72795         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72796         as discussed with Paul Eggert in threads rooted at
72797         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72798         and
72799         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72800         Before, the test was empty, and relied on ELIDE_CODE in source
72801         code.)
72802         (gl_PREREQ_GETOPT): New macro.
72803         (gl_GETOPT): Use them.
72804
72805 2004-08-12  Simon Josefsson  <jas@extundo.com>
72806
72807         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72808         * lib/getopt_.h: Renamed from getopt.h.
72809
72810 2004-08-12  Simon Josefsson  <jas@extundo.com>
72811
72812         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72813         Change default library name from libfoo to libgnu.
72814         Now, if you have a configure.ac that says:
72815                 gl_SOURCE_BASE(gl)
72816                 gl_M4_BASE(gl/m4)
72817                 gl_MODULES(error getopt etcetera)
72818                 gl_INIT
72819         you can import all you need by running:
72820                 ../gnulib/gnulib-tool --import
72821
72822         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72823         (Makefile.am): Rewrite, use logic from argz.
72824         (Include): Use <getopt.h> instead of "getopt.h".
72825
72826 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * modules/argp (Files): Add m4/unlocked-io.m4.
72829         (Depends-on): Add extensions.
72830
72831 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72834         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72835         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72836         Check for program_invocation_name, program_invocation_short_name,
72837         flockfile, funlockfile, features.h, _getopt_long_only_r.
72838
72839 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72842         its complicated substitute.
72843         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72844         and program_invocation_name.
72845         (__argp_basename) [!_LIBC]: Remove; the only use was
72846         replaced by its body.
72847         (__argp_short_program_name): Change condition from
72848         !defined __argp_short_program_name to
72849         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72850         to match argp-namefrob.h.
72851         (__argp_failure): Don't assume strerror_r returns char *.
72852         * lib/argp-parse.c (N_): Define unconditionally.
72853         (argp_default_options): Fill out initializers with 0 to avoid
72854         gcc warnings.
72855
72856 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72859         getopt1.c.
72860
72861 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         Merge from coreutils.
72864
72865         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72866
72867         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72868         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72869
72870 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         Merge from coreutils.
72873
72874         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72875         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72876         for Reliant Unix 5.43.
72877
72878         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72879         (union fooround): Use uintmax_t, not long int.
72880         The rest is a merge from libc:
72881         [defined _LIBC]: Include <shlib-compat.h>.
72882         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72883
72884         * lib/settime.c (settime): Recode to avoid warning with
72885         Sun Forte C 6U2.
72886
72887         * lib/strverscmp.c: Convert to UTF-8.
72888
72889 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72892         m4/uintmax_t.m4.
72893
72894 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         * modules/xalloc-die: New file.
72897         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72898
72899         * modules/md5 (Files): Add m4/uint32_t.m4.
72900         * modules/sha1: Renamed from modules/sha.
72901         (Files):
72902         Rename lib/sha.h to lib/sha1.h.
72903         Rename lib/sha.c to lib/sha1.c.
72904         Rename m4/sha.m4 to m4/sha1.m4.
72905         (lib_SOURCES): Likewise.
72906         (configure.ac): Rename gl_SHA to gl_SHA1.
72907         (Include): sha.h -> sha1.h.
72908
72909 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72912         * m4/sha1.m4: Renamed from sha.m4.
72913         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72914
72915 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/obstack.h (obstack_empty_p):
72918         Don't assume that chunk->contents is suitably aligned.
72919         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72920         Likewise. Problem reported by Benno in
72921         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72922
72923         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72924         readable.  This could be improved further but it'd take some work.
72925
72926 2004-08-08  Simon Josefsson  <jas@extundo.com>
72927
72928         * modules/xgethostname (Depends-on): Remove exit and error (not
72929         used).
72930
72931         * modules/getpass-gnu: Add getpass.h.
72932         (Depends-on): Add stdbool.
72933         * modules/getpass: Add getpass.h.
72934
72935 2004-08-08  Simon Josefsson  <jas@extundo.com>
72936
72937         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72938         Check getpass declaration.
72939
72940 2004-08-08  Simon Josefsson  <jas@extundo.com>
72941
72942         * lib/xgethostname.c: Don't include error.h (not used).
72943
72944         * lib/getpass.h: Add.
72945         * lib/getpass.c: Include getpass.h first.
72946
72947 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * lib/xalloc-die.c: New file.
72950         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72951         All uses removed.
72952         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72953         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72954         xalloc-die.c.
72955         (_, N_, xalloc_die): Move to xalloc-die.c.
72956         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72957         so that we needn't mess with xalloc_msg_memory_exhausted.
72958
72959         * lib/sha1.h: Renamed from sha.h.
72960         (SHA1_H): Renamed from _SHA_H.
72961         (sha1_ctx): Renamed from sha_ctx.
72962         (sha1_init_ctx): Renamed from sha_init_ctx.
72963         (sha1_process_block): Renamed from sha_process_block.
72964         (sha1_process_bytes): Renamed from sha_process_bytes.
72965         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72966         (sha1_read_ctx): Renamed from sha_read_ctx.
72967         (sha1_stream): Renamed from sha_stream.
72968         (sha1_buffer): Renamed from sha_buffer.
72969         * lib/sha1.c: Likewise; renamed from sha.c.
72970         Do not include <sys/types.h>.
72971         Include <stddef.h> rather than <stdlib.h>.
72972
72973 2004-08-08  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72976         FILESYSTEM_PREFIX_LEN.
72977         * lib/progreloc.c: Likewise.
72978         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72979
72980 2004-08-06  Simon Josefsson  <jas@extundo.com>
72981
72982         * modules/progname (Depends-on): Don't depend on stdbool.
72983
72984 2004-08-06  Simon Josefsson  <jas@extundo.com>
72985
72986         * modules/getsubopt: New file.
72987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72988         getsubopt.
72989
72990 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72991
72992         More merge from coreutils.
72993
72994         * m4/utimens.m4, m4/utimecmp.m4: New files.
72995         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72996         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72997         prereq.m4, sha.m4: Import changes from coreutils.
72998
72999 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         More merge from coreutils.
73002         * modules/raise, modules/readtokens0, modules/utimens:
73003         * modules/utimecmp, module/xnanosleep: New files.
73004         * modules/strftime: Add lib/strftime.h.
73005         Change include from <time.h> to "strftime.h".
73006         * modules/yesno: Add lib/yesno.h.
73007         * modules/backupfile: Remove lib/addext.c.
73008         * modules/euidaccess: Add stat-macros.h.
73009         * modules/canonicalize, modules/euidaccess,
73010         modules/filemode, modules/lchown, modules/makepath,
73011         modules/rmdir, modules/stat: Likewise.
73012
73013 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73014
73015         Merge from tar.
73016         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73017         SIZE_MAX is a valid preprocessor constant.
73018         (__argp_basename): Change from "#ifndef _LIBC"
73019         to "#ifndef __argp_short_program_name", so that
73020         we don't compile these functions for tar.
73021
73022         More merges from coreutils.
73023         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73024         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73025         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73026         * lib/addext.c: Remove; no longer needed.
73027         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73028         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73029         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73030         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73031         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73032         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73033         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73034         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73035         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73036         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73037         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73038         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73039         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73040         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73041         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73042         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73043         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73044         Import changes from coreutils.
73045
73046 2004-08-05  Simon Josefsson  <jas@extundo.com>
73047
73048         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73049
73050 2004-08-05  Simon Josefsson  <jas@extundo.com>
73051
73052         * m4/getsubopt.m4: New file.
73053
73054 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         Merge from coreutils.
73057
73058         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73059         * m4/getcwd-path-max.m4: New files.
73060
73061         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73062         FILESYSTEM_PREFIX_LEN ->
73063         FILE_SYSTEM_PREFIX_LEN.
73064         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73065         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73066         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73067         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73068
73069         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73070         prerequisite modules now handle the DOS stuff.
73071         Don't check for unistd.h.
73072
73073 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73074
73075         Merge from coreutils.
73076
73077         * lib/.gdb-history: Remove; this doesn't belong here.
73078
73079         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73080         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73081         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73082         * lib/getcwd.c: New files.
73083
73084         * lib/dirname.h: Include <stdbool.h>.
73085         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73086         for consistency with POSIX terminology.  All uses changed.
73087         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73088         (strip_trailing_slashes): Use bool for booleans.
73089         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73090
73091         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73092         sometimes returns a positive errno value even when it succeeds.
73093         (print_errno_message) [!LIBC]: Fall back on strerror if
73094         __strerror_r fails.
73095
73096         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73097         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73098         (longest_relative_suffix): New function.
73099         (path_concat): Use it.  Assume first argument is not NULL.
73100         Port to DOS.  Omit redundant separators.
73101         Report an error instead of returning NULL.
73102         Use mempcpy instead of memcpy.
73103         (xpath_concat): Remove: not declared or used.
73104
73105         * lib/same.h: Include <stdbool.h>
73106         (same_name): Return bool, not int.
73107         * lib/same.c (same_name): Likewise.
73108         (errno): Don't declare; we assume C89 or better now.
73109
73110         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73111         if not already defined.
73112
73113         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73114         * lib/dup-safer.c (errno): Likewise.
73115
73116 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         Merge from coreutils.
73119         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73120         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73121         * modules/path-concat: Don't depend on strdup.
73122
73123 2004-08-03  Simon Josefsson  <jas@extundo.com>
73124
73125         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73126         * lib/progname.h: Don't include stdbool.h.
73127
73128 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73131         * MODULES.html.sh (func_all_modules): Remove fatal.
73132
73133 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73136
73137 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73140         working.
73141
73142 2004-08-02  Simon Josefsson  <jas@extundo.com>
73143
73144         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73145         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73146         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73147
73148 2004-08-01  Simon Josefsson  <jas@extundo.com>
73149
73150         * lib/xgetdomainname.c: Include stdlib.h, for free().
73151
73152 2004-07-19  Bruno Haible  <bruno@clisp.org>
73153
73154         * MODULES.html.sh (func_all_modules): Add dummy.
73155
73156 2004-07-16  Simon Josefsson  <jas@extundo.com>
73157
73158         * modules/dummy: New file.
73159
73160 2004-07-16  Simon Josefsson  <jas@extundo.com>
73161
73162         * lib/dummy.c: New file.
73163
73164 2004-07-16  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/backupfile.h: Add extern "C" for C++.
73167         * lib/closeout.h: Likewise.
73168         * lib/copy-file.h: Likewise.
73169         * lib/findprog.h: Likewise.
73170         * lib/full-write.h: Likewise.
73171         * lib/pathname.h: Likewise.
73172         * lib/progname.h: Likewise.
73173         * lib/stpcpy.h: Likewise.
73174         * lib/stpncpy.h: Likewise.
73175         * lib/strcase.h: Likewise.
73176         * lib/strstr.h: Likewise.
73177         * lib/xalloc.h: Likewise.
73178
73179         * lib/mbswidth.h: Add extern "C" for C++.
73180         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73181
73182 2004-07-13  Robert Millan  <robertmh@gnu.org>
73183
73184         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73185
73186 2004-07-09  Simon Josefsson  <jas@extundo.com>
73187
73188         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73189         failed without this.)
73190
73191 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * modules/chown (Files): Add lib/fchown-stub.c, since
73194         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73195
73196 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * lib/fchown-stub.c: New file.
73199
73200 2004-06-24  Jim Meyering  <jim@meyering.net>
73201
73202         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73203
73204 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * modules/argz: Omit "#include".
73207
73208         * MODULES.html.sh (func_all_modules): Add calloc, to match
73209         2004-06-01 addition of calloc module.
73210
73211 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * m4/argz.m4: New file, which is autoupdated from libtool.
73214
73215 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73218         libtool.
73219
73220 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * config/srclist-update: Don't insist on "USA." before the
73223         close-comment, as libtool omits the period and puts the */ on a
73224         separate line.
73225         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73226         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73227
73228 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73229
73230         * modules/argz: New file.
73231         * MODULES.html.sh (func_all_modules): Add argz.
73232
73233 2004-06-12  Jim Meyering  <jim@meyering.net>
73234         and  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * modules/hash (Files): Add lib/xalloc.h.
73237         * modules/pipe (Depends-on): Add wait-process.
73238         * modules/stat (Depends-on): Add xalloc.
73239         * modules/userspec (Files): Add lib/userspec.h.
73240         * modules/xstrto
73241
73242         Upgrade from gettext-0.13.
73243         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73244         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73245         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73246
73247 2004-06-10  Jim Meyering  <jim@meyering.net>
73248
73249         * lib/calloc.c: New file.
73250
73251 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73252
73253         * lib/getdate.y (yylex): Allow space between sign and number.
73254         Problem reported by Dan Jacobson.
73255
73256 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         Merge from coreutils CVS.
73259
73260         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73261         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73262         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73263         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73264         xstrtol.m4: Fix copyright date and/or serial number.
73265
73266         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73267         See if we need an fchown replacement.
73268         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73269         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73270         and use the replacement function if we detect either defect.
73271
73272         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73273         gl_UTIMECMP.
73274
73275 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73276         and  Jim Meyering  <jim@meyering.net>
73277
73278         Merge from coreutils CVS.
73279
73280         * lib/stat-macros.h: New file, with contents from file-type.h
73281         and coreutils' system.h.
73282         * lib/file-type.c: Include "stat-macros.h".
73283         * lib/file-type.h (file_type): Move all macro definitions to new file,
73284         stat-macros.h.
73285
73286         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73287         Wrap old code with this conditional.
73288         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73289         function that does not dereference symlinks.
73290         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73291
73292         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73293         dependency problems.
73294         (xreadlink): Accept new arg SIZE, for efficiency.
73295         All decls and uses changed.
73296         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73297
73298         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73299         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73300
73301         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73302         sysexits.h.
73303
73304 2004-06-01  Jim Meyering  <jim@meyering.net>
73305
73306         * m4/calloc.m4: New file.
73307
73308 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73309
73310         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73311         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73312         Also, fix a typo in a diagnostic.
73313
73314 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73317         or AC_FUNC_REALLOC.
73318
73319 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73322         macros to be defined.
73323         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73324         the allocator returns NULL because the requested size is zero.
73325
73326 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73329         var.  Add comment explaining why libc still defines it.  This
73330         merges the following patch from glibc:
73331         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73332
73333 2004-05-20  Andreas Schwab  <schwab@suse.de>
73334
73335         * m4/free.m4: Replace free if it not known to work, not the other
73336         way round.
73337
73338 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73341         present in glibc since revision 1.1 of this file.
73342         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73343         obstack_alignment_mask, obstack_alloc, obstack_base,
73344         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73345         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73346         obstack_grow0, obstack_init, obstack_int_grow,
73347         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73348         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73349         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73350         nonexistent functions.
73351
73352 2004-05-18  Karl Berry  <karl@gnu.org>
73353
73354         * config/srclist.txt: break link for vasnprintf.c.
73355
73356 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         Port obstack to the AS/400, where pointers are 16 bytes wide and
73359         you cannot cast an integer to a valid pointer.  This patch is
73360         currently waiting to be integrated into glibc; see
73361         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73362
73363         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73364         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73365         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73366         (struct obstack): temp member is now a union of a pointer and
73367         an integer, instead of an integer.  All integer uses changed.
73368         This does not affect the physical layout of struct obstack,
73369         except on hosts (like the AS/400) where the size or alignment of
73370         void * is greater than that of ptrdiff_t.
73371         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73372         __STDC__)]: Store temporary in pointer member of union, not
73373         integer member.
73374         * lib/obstack.c: Include <stddef.h>, for offsetof.
73375         (struct fooalign): Remove; it doesn't need a name.
73376         (union fooround): Change double to long double, and add void *.
73377         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73378         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73379         not a macro.  Hence the values are always int; so remove all
73380         casts-to-int in uses.
73381
73382 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73385         we can get this patch merged into glibc.
73386
73387 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73388             Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * m4/argp: Depend on alloca.
73391
73392 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73393             Paul Eggert  <eggert@cs.ucla.edu>
73394
73395         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73396         freecoding.
73397
73398 2004-05-17  Bruno Haible  <bruno@clisp.org>
73399
73400         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73401         precision that consists of a '.' followed by an empty digit string.
73402         Patch by Tor Lillqvist <tml@iki.fi>.
73403
73404 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73407         for backward compatibility with older code.  We need our own
73408         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73409         it under some other name, and our alloca.h will define it.
73410
73411 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73412             Derek Price  <derek@ximbiot.com>
73413
73414         * lib/alloca.c: Include <alloca.h>, to get our interface.
73415         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73416         include <alloca.h> first.  Use C89 prototype for alloca; this
73417         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73418         Use #elif for simplicity, since we can assume C89 now.
73419         Don't try to source the system alloca.h since it will not be found
73420         and to prevent recursively including its replacement.
73421         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73422         * lib/regex.c: Likewise.
73423
73424 2004-05-16  Derek Price  <derek@ximbiot.com>
73425             Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         getline cleanup.  This changes the getndelim2 API: both order of
73428         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73429         no delimiter).
73430
73431         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73432         interface does that.
73433         (getline): Always use getdelim, so that we don't have two
73434         copies of this code.
73435         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73436         if available.
73437         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73438         (GETNDELIM2_MAXIMUM): New macro.
73439         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73440         instead of the old practice of delim2==0.  All callers changed.
73441         Return -1 on overflow, instead of returning junk.
73442         Do not set *linesize unless allocation succeeds.
73443         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73444         that we include sys/types.h.
73445         * lib/getnline.h: Likewise.
73446         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73447         (getndelim2): Reorder arguments.
73448         * lib/getnline.c (getnline, getndelim):
73449         Don't discard the NMAX argument.
73450         (getnline): Invoke getndelim, to avoid code duplication.
73451         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73452         of (size_t) -1 by callers of the getnline family.
73453
73454 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73457         Check for gettimeofday.
73458         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73459         Check for settimeofday, stime.
73460
73461 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73462
73463         * lib/nanosleep.c (suspended): Change its type from int to
73464         sig_atomic_t volatile.
73465         (first_call): Make it private to rpl_nanosleep, and have it
73466         be zero initially as that's a bit faster.
73467         (my_usleep): Round up fractional times instead of truncating them,
73468         as this is the usual meaning for 'sleep'.
73469
73470         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73471         doesn't work.
73472         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73473         (ENOSYS): Define if not defined.
73474         (settime): Fall back on stime if it exists and settimeofday fails.
73475         But don't bother with fallbacks if a method fails with errno == EPERM.
73476
73477 2004-05-11  Jim Meyering  <jim@meyering.net>
73478
73479         Prior to this change, the save_cwd caller required read access to the
73480         current directory on most systems (ones with the fchdir function).
73481
73482         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73483         fails, try write-only, and finally, resort to using xgetcwd.
73484
73485 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73486
73487         * lib/obstack.c, obstack.h: Import changes from libc.
73488
73489 2004-04-28  Bruno Haible  <bruno@clisp.org>
73490
73491         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73492         also implicitly appends .exe to executables.
73493         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73494         accepts Windows pathnames.
73495         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73496         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73497         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73498         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73499         Reported by Derek Robert Price <derek@ximbiot.com>.
73500
73501 2004-04-21  Karl Berry  <karl@gnu.org>
73502
73503         * config/srclist.txt (localcharset.c): break sync.
73504
73505 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73506
73507         * m4/host-os.m4: Add a copyright notice.
73508
73509 2004-04-20  Jim Meyering  <jim@meyering.net>
73510
73511         Change UTILS_ to gl_ in AC_DEFINE'd names.
73512         Change utils_- and jm_-prefixed variables, too.
73513         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73514         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73516
73517         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73518         Don't emit trailing blanks.
73519         Also rename jm_-prefixed variables to have gl_ prefix.
73520
73521         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73522         Also rename jm_-prefixed variables to have gl_ prefix.
73523
73524         * m4/jm-macros.m4: Reflect the renamings.
73525         * m4/prereq.m4: Likewise.
73526
73527 2004-04-20  Jim Meyering  <jim@meyering.net>
73528
73529         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73530         memory.
73531
73532 2004-04-20  Jim Meyering  <jim@meyering.net>
73533             Bruno Haible  <bruno@clisp.org>
73534
73535         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73536         memory when realloc fails.
73537
73538 2004-04-19  Jim Meyering  <jim@meyering.net>
73539
73540         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73541         now that readutmp.c may call `free (0)'.
73542
73543 2004-04-19  Bruno Haible  <bruno@clisp.org>
73544
73545         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73546         * m4/inttypes_h.m4: Likewise.
73547         * m4/stdint_h.m4: Likewise.
73548         * m4/intmax_t.m4: Likewise.
73549         * m4/uintmax_t.m4: Likewise.
73550
73551 2004-04-18  Jim Meyering  <jim@meyering.net>
73552
73553         * m4/prereq.m4: Don't forbid jm_ prefix.
73554
73555         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73556         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73557         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73558         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73559         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73560         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73561         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73562         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73563         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73564         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73565         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73566         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73567         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73568         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73569         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73570         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73571         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73572         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73573         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73574
73575 2004-04-18  Jim Meyering  <jim@meyering.net>
73576
73577         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73578         failure, don't leak memory and do call END_UTMP_ENT.
73579
73580 2004-04-16  Jim Meyering  <jim@meyering.net>
73581
73582         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73583         coreutils' stat program.
73584         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73585
73586 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73587
73588         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73589         C89.
73590         (CHAR_BIT): Remove, since we assume C89.
73591         Include <stdint.h> if available, as per current Autoconf CVS advice.
73592
73593 2004-03-31  Jim Meyering  <jim@meyering.net>
73594
73595         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73596         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73597         * m4/xalloc.m4: Likewise.
73598
73599 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73600
73601         Merge from coreutils.
73602
73603         * m4/inttostr.m4: New file.
73604         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73605         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73606         Require gl_CLOCK_TIME.
73607         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73608
73609 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73610
73611         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73612         not bool, to be more consistent with Unix conventions.
73613         Suggested by Bruno Haible.
73614
73615         Merge from coreutils.
73616
73617         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73618         * lib/umaxtostr.c: New files.
73619
73620         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73621         the usual <time.h> dance.
73622         (get_date): Change signature to support fractional time stamps.
73623         All callers changed.
73624         * lib/getdate.y: Include "getdate.h" first, as we can now
73625         assume C89 and don't need to worry about 'const'.
73626         Similarly, include "unlocked-io.h" near start, not in middle.
73627         Include <limits.h>.
73628         (textint.value): Use long int rather than int.
73629         (textint.digits): Use size_t rather than int.
73630         (BILLION, LOG10_BILLION): New constants.
73631         (parser_control): New member rel_ns.  Members day_ordinal,
73632         time_zone, month, day, hour, minutes, rel_year, rel_month,
73633         rel_day, rel_hour, rel_minutes, rel_seconds
73634         are now long int, not int.  Member seconds is now struct timespec,
73635         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73636         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73637         not int.
73638         (%union.intval): Now long int, not int.
73639         New member timespec.
73640         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73641         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73642         (spec): Now is a timespec or an item list.
73643         (timespec, items): New nonterminals.
73644         (time, rel, relunit, number, get_date):
73645         Add support for fractional seconds.
73646         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73647         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73648         (to_hour): First arg is now long int, not int.
73649         (to_year): Returns long int, not int.
73650         Don't treat year -70 like 70.
73651         (tm_diff): Returns long int, not int.
73652         (lookup_word): Use bool instead of int when appropriate.
73653         (yylex): Use size_t for count, not int.
73654         Detect overflow when parsing large integer constants.
73655         Add support for fractions.
73656         (get_date): Make pointers 'const' if possible.
73657         Use more-portable code to detect integer overflow.
73658         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73659         Don't use ctime; it's not reliable if the year has >4 digits.
73660
73661         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73662         This is for compatibility with BSD.
73663
73664         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73665         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73666         From coreutils' system.h.
73667
73668         * lib/userspec.c: Don't include "posixver.h".
73669         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73670         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73671         compatible extension.  Simplify code by removing a boolean int
73672         that was always nonzero if a string was nonnull.
73673
73674 2004-03-30  Jim Meyering  <jim@meyering.net>
73675
73676         Merge from coreutils.
73677
73678         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73679         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73680         on some systems one must include <grp.h> before it.
73681         Reported by Christian Krackowizer.
73682
73683 2004-03-30  Jim Meyering  <jim@meyering.net>
73684
73685         Merge from coreutils.
73686
73687         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73688
73689         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73690         an empty input stream.
73691
73692         * lib/readtokens.c: Include <stdbool.h>.
73693         (readtoken): Use `size_t' rather than int/long.
73694         All callers adjusted.
73695         Use `bool' rather than `int' where appropriate.
73696         Use memset rather than an explicit loop.
73697         Use x2nrealloc rather than xrealloc.
73698         Allow the use of `\0' as a delimiter.
73699         (readtokens): Likewise.
73700         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73701
73702 2004-03-30  Jim Meyering  <jim@meyering.net>
73703
73704         * m4/realloc.m4: Remove file, since now it does no more than
73705         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73706         the `configure.ac' section of module/realloc.
73707         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73708
73709 2004-03-30  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73712         nonnull.
73713
73714 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73715
73716         Merge changes to getloadavg.c from coreutils and Emacs.
73717
73718         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73719         Define to an expression, not to the empty string.
73720         Include cloexec.h and xalloc.h.
73721         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73722         Use set_cloexec_flag rather than rolling our own.
73723         * lib/cloexec.c, lib/cloexec.h: New files.
73724
73725 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73726
73727         * m4/cloexec.m4: New file.
73728
73729 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73730
73731         * lib/getopt.h: Sync with libc CVS.
73732
73733 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73734             Bruno Haible  <bruno@clisp.org>
73735
73736         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73737         mbswidth.
73738
73739 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73740             Bruno Haible  <bruno@clisp.org>
73741
73742         * lib/mbswidth.h: Include <wchar.h> only if
73743         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73744         <wchar.h>.
73745         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73746
73747 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73748
73749         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73750         Sync with libc CVS.
73751         * lib/getopt_int.h: New file, also synced from libc.
73752
73753 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73754
73755         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73756         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73757         Bring back getopt.c, getopt.h, getopt1.c.
73758
73759 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73760
73761         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73762         All uses changed.  Check for sa_sigaction member; this fixes
73763         a bug first reported by Jason Andrade in
73764         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73765
73766 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73767
73768         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73769         '#if' expressions.  Unlike the code it replaces, it does not
73770         depend on (defined _SC_PAGESIZE).  However, it does depend on
73771         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73772         first reported by Jason Andrade in
73773         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73774
73775 2004-02-25  Simon Josefsson  <jas@extundo.com>
73776
73777         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73778
73779 2004-02-25  Simon Josefsson  <jas@extundo.com>
73780
73781         * lib/strdup.h: New file.
73782         * lib/strdup.c: Include it.
73783         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73784         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73785
73786 2004-02-23  Karl Berry  <karl@gnu.org>
73787
73788         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73789         (from fencepost.gnu.org:/gd/gnuorg).
73790
73791 2004-02-23  Karl Berry  <karl@gnu.org>
73792
73793         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73794         * config/srclist.txt: add maintain/standards documents.
73795
73796 2004-02-18  Bruno Haible  <bruno@clisp.org>
73797
73798         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73799         Reported by Derek Robert Price <derek@ximbiot.com>.
73800
73801 2004-02-16  Karl Berry  <karl@gnu.org>
73802
73803         * config/mkinstalldirs, install-sh: update from automake.
73804
73805 2004-02-06  Karl Berry  <karl@gnu.org>
73806
73807         * m4/po.m4: update from gettext 0.14.1.
73808
73809 2004-02-06  Karl Berry  <karl@gnu.org>
73810
73811         * lib/config.charset: update from gettext 0.14.1.
73812
73813 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73814
73815         Add comments and code, prompted by suggestions from Bruno Haible
73816         for sh-quote.
73817         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73818         describing the enum quoting_style values.
73819         * lib/quotearg.c (quotearg_alloc): New function.
73820         (quotearg_buffer_restyled): Treat lone { and } as special.
73821         Treat = as special.  Work around bug with older shells
73822         that "see" a '\' that is really the 2nd byte of a multibyte char.
73823         Quote empty string with shell_quoting_style.
73824
73825 2004-02-03  Bruno Haible  <bruno@clisp.org>
73826
73827         * m4/pipe.m4: New file, from GNU gettext.
73828
73829 2004-02-03  Bruno Haible  <bruno@clisp.org>
73830
73831         * lib/pipe.h: New file, from GNU gettext.
73832         * lib/pipe.c: New file, from GNU gettext.
73833
73834 2004-01-27  Bruno Haible  <bruno@clisp.org>
73835
73836         * m4/execute.m4: New file, from GNU gettext.
73837
73838 2004-01-27  Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/execute.h: New file, from GNU gettext.
73841         * lib/execute.c: New file, from GNU gettext.
73842         * lib/w32spawn.h: New file, from GNU gettext.
73843
73844 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73845
73846         Merge from diffutils.
73847
73848         * lib/file-type.c (file_type): Add typed memory objects.
73849         * lib/file-type.h (S_TYPEISTMO): New macro.
73850
73851         * lib/c-stack.h (c_stack_action): Remove argv argument.
73852         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73853         (die): Don't calculate message unless segv_action returns.
73854         (get_stack_location, min_address_from_argv, max_address_from_argv,
73855         volatile stack_base, volatile_stack_size): Remove.
73856         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73857         that every segmentation violation is a stack overflow.  (Ouch!)
73858         See Debian bug 136249 (still outstanding) for more info about why
73859         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73860
73861 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73862
73863         Exit-status fix from coreutils.
73864
73865         Use exit_failure consistently in place of EXIT_FAILURE,
73866         so that program exit statuses are consistent on failure.
73867
73868         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73869         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73870         * lib/argmatch.h: Comment fix to match the above.
73871         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73872         Now a macro referring to exit_failure, instead of a separate
73873         variable.  Include "exitfail.h" to get it.
73874         * lib/xstrtol.h: Include "exitfail.h".
73875         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73876
73877         * lib/long-options.c (parse_long_options): Use prototype
73878         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73879         for clarity.
73880
73881 2004-01-21  Jim Meyering  <jim@meyering.net>
73882
73883         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73884         so as not to conflict with a different-sized __mktime_internal
73885         function in GNU libc.
73886         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73887         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73888
73889 2004-01-20  Karl Berry  <karl@gnu.org>
73890
73891         * config/config.guess: update from config.
73892
73893         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73894
73895 2004-01-20  Bruno Haible  <bruno@clisp.org>
73896
73897         Safer stack allocation.
73898         * lib/setenv.c: Include allocsa.h.
73899         (alloca): Remove fallback definition.
73900         (freea): Remove macro.
73901         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73902         instead of freea.
73903
73904 2004-01-20  Bruno Haible  <bruno@clisp.org>
73905
73906         * m4/eealloc.m4: New file, from GNU gettext.
73907
73908 2004-01-20  Bruno Haible  <bruno@clisp.org>
73909
73910         * m4/allocsa.m4: New file, from GNU gettext.
73911
73912 2004-01-20  Bruno Haible  <bruno@clisp.org>
73913
73914         * lib/xallocsa.h: New file, from GNU gettext.
73915         * lib/xallocsa.c: New file, from GNU gettext.
73916
73917 2004-01-20  Bruno Haible  <bruno@clisp.org>
73918
73919         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73920
73921 2004-01-20  Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73924         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73925         specially.
73926
73927 2004-01-20  Bruno Haible  <bruno@clisp.org>
73928
73929         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73930         patch.
73931
73932 2004-01-20  Bruno Haible  <bruno@clisp.org>
73933
73934         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73935
73936 2004-01-20  Bruno Haible  <bruno@clisp.org>
73937
73938         * lib/eealloc.h: New file.
73939
73940 2004-01-20  Bruno Haible  <bruno@clisp.org>
73941
73942         * lib/binary-io.h: Avoid warnings on Cygwin.
73943
73944 2004-01-20  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/allocsa.h: New file, from GNU gettext.
73947         * lib/allocsa.c: New file, from GNU gettext.
73948
73949 2004-01-18  Karl Berry  <karl@gnu.org>
73950
73951         * doc/gpl.texi, doc/lgpl.texi: new files.
73952
73953 2004-01-18  Karl Berry  <karl@gnu.org>
73954
73955         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73956         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73957
73958 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73959
73960         Merge from coreutils.
73961
73962         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73963         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73964         (gl_DEFAULT_POSIX2_VERSION): Move
73965         the documentation from 'configure' into 'config.hin',
73966         so that 'configure --help' isn't burdened by it and
73967         we don't have to worry about its formatting there.
73968         Reword the documentation so that it's more succinct
73969         and can be run together into a single paragraph.
73970         * m4/same.m4 (gl_SAME): Check for pathconf.
73971
73972 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73973
73974         Merge from coreutils.
73975
73976         * lib/posixver.c: Include posixver.h.
73977
73978         * lib/same.c: Include <stdbool.h>, <limits.h>.
73979         (_POSIX_NAME_MAX): Define if not defined.
73980         (MIN): New macro.
73981         (same_name): If file names are silently truncated, report
73982         that the file names are the same if they are the same after
73983         the silent truncation.
73984
73985         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73986         conversion function.
73987         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73988         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73989         longer needed.
73990
73991 2004-01-15  Jim Meyering  <jim@meyering.net>
73992
73993         Merge from coreutils.
73994
73995         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73996         if no library is required.
73997         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73998         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73999         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74000         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74001         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74002         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74003         value, $ac_cv_search_crypt, if it's "none required".
74004         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74005         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74006         not gl_FUNC_GETLOADAVG.
74007         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74008         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74009
74010 2004-01-15  Jim Meyering  <jim@meyering.net>
74011
74012         Merge from coreutils.
74013
74014         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74015         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74016         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74017
74018         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74019         optional configure-time default.
74020
74021         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74022
74023         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74024
74025 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74026
74027         Merge from coreutils.
74028
74029         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74030         value, $ac_cv_search_nanosleep, if it's "none required".
74031
74032 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74033
74034         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74035         with like-named macro in fnmatch.c.
74036         (EXT): Use an internal constant instead.
74037
74038         Merge fnmatch patches from glibc.
74039         * lib/fnmatch.c (mbsinit): Remove define.
74040         Add libc_hidden_ver (__fnmatch, fnmatch).
74041         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74042         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74043
74044 2004-01-14  Karl Berry  <karl@gnu.org>
74045
74046         * config/install-sh: update from automake.
74047
74048 2004-01-13  Karl Berry  <karl@gnu.org>
74049
74050         * config/install-sh: update from automake.
74051
74052 2004-01-09  Karl Berry  <karl@gnu.org>
74053
74054         * config/install-sh: update from automake.
74055
74056 2004-01-05  Karl Berry  <karl@gnu.org>
74057
74058         * config/config.{sub,guess}: update from config.
74059
74060 2003-12-31  Karl Berry  <karl@gnu.org>
74061
74062         * config/depcomp: update from automake.
74063
74064 2003-12-14  Karl Berry  <karl@gnu.org>
74065
74066         * lib/config.charset: update from gettext-runtime.
74067
74068 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74071         Bug reported by Alfred M. Szmidt.
74072
74073 2003-12-03  Bruno Haible  <bruno@clisp.org>
74074
74075         * m4/gettext.m4: Upgrade from gettext-0.13.
74076         * m4/po.m4: Upgrade from gettext-0.13.
74077         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74078         * m4/intmax.m4: New file, from gettext-0.13.
74079         * m4/printf-posix.m4: New file, from gettext-0.13.
74080
74081 2003-11-29  Karl Berry  <karl@gnu.org>
74082
74083         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74084
74085 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74086             Bruno Haible  <bruno@clisp.org>
74087
74088         * lib/printf-parse.h: Don't include sys/types.h.
74089         (ARG_NONE): New macro.
74090         (char_directive): Change type of *arg_index fields to size_t.
74091         * lib/printf-parse.c: Don't include sys/types.h.
74092         (SSIZE_MAX): Remove macro.
74093         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74094         Remove unnecessary overflow check.
74095         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74096         fields.
74097
74098 2003-11-25  Bruno Haible  <bruno@clisp.org>
74099
74100         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74101
74102 2003-11-25  Bruno Haible  <bruno@clisp.org>
74103
74104         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74105         gt_TYPE_SSIZE_T.
74106
74107 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74108
74109         * modules/alloca: Remove dependency on xalloc.
74110
74111 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74112
74113         * lib/alloca.c: Remove dependency on xalloc module.
74114         (xalloc_die): Remove.
74115         (memory_full) [!defined emacs]: New macro.
74116         [!defined emacs]: Don't include xalloc.h.
74117         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74118         address arithmetic overflows.  Change datatypes a bit to avoid
74119         unnecessary casts.
74120
74121 2003-11-22  Jim Meyering  <jim@meyering.net>
74122
74123         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74124         s/size/size_t/.
74125
74126 2003-11-21  Karl Berry  <karl@gnu.org>
74127
74128         * config/config.{sub,guess}: update from config.
74129
74130 2003-11-18  Karl Berry  <karl@gnu.org>
74131
74132         * config/config.{sub,guess}: update from config.
74133
74134         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74135
74136 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74137
74138         * README: Mention that S+T cannot overflow if S is the size of
74139         an existing object and T is sufficiently small.
74140
74141 2003-11-17  Jim Meyering  <jim@meyering.net>
74142
74143         On systems without utime and without a utimes function capable of
74144         dealing with a NULL struct utimbuf* argument, this utime replacement
74145         could -- in unusual circumstances -- leak a file descriptor.
74146         * lib/utime.c: Include <unistd.h> and <errno.h>.
74147         (utime_null): Be sure to close `fd' and to preserve errno.
74148         Reported by Geoff Collyer via Arnold Robbins.
74149
74150 2003-11-17  Bruno Haible  <bruno@clisp.org>
74151
74152         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74153         (Depends-on): Add xsize.
74154
74155 2003-11-17  Bruno Haible  <bruno@clisp.org>
74156
74157         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74158
74159 2003-11-17  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/vasnprintf.c (alloca): Remove fallback definition.
74162         (freea): Remove definition.
74163         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74164         Reported by Paul Eggert.
74165
74166 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74167             Bruno Haible  <bruno@clisp.org>
74168
74169         Protect against address arithmetic overflow.
74170         * lib/printf-args.h: Include stddef.h.
74171         (arguments): Change type of field 'count' to size_t.
74172         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74173         'unsigned int' where appropriate.
74174         * lib/printf-parse.h: Include sys/types.h.
74175         (char_directive): Change type of *arg_index fields to ssize_t.
74176         (char_directives): Change type of fields 'count', max_*_length to
74177         size_t.
74178         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74179         (SSIZE_MAX): Define fallback value.
74180         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74181         instead of 'int' where appropriate. Check a_allocated, d_allocated
74182         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74183         * lib/vasnprintf.c: Include xsize.h.
74184         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74185         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74186         overflow. Avoid wraparound when converting a width or precision from
74187         decimal to binary.
74188
74189 2003-11-16  Bruno Haible  <bruno@clisp.org>
74190
74191         Update from GNU gettext.
74192         * lib/printf-parse.c: Generalize to it can be compiled for wide
74193         strings.
74194         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74195         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74196         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74197         SNPRINTF): New macros.
74198         Don't include <alloca.h> if the file is used inside libintl.
74199         (local_wcslen): New function, for Solaris 2.5.1.
74200         (VASNPRINTF): Use it instead of wcslen.
74201
74202 2003-11-16  Bruno Haible  <bruno@clisp.org>
74203
74204         * lib/xsize.h (xmax): New function.
74205         (xsum, xsum3, xsum4): Declare as "pure" functions.
74206
74207 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74208
74209         * modules/xalloc (Files): Undo latest change, since xalloc.h
74210         no longer needs SIZE_MAX or PTRDIFF_MAX.
74211
74212 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74213
74214         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74215         gl_PTRDIFF_MAX.
74216
74217 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74218
74219         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74220         "return", to pacify some unknown compiler.  Problem reported
74221         by Joerg Schilling.
74222
74223 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74224
74225         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74226         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74227         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74228         heuristic is just as accurate as far as we know, and it removes a
74229         dependency on size_max.m4 and ptrdiff_max.m4.
74230
74231 2003-11-11  Bruno Haible  <bruno@clisp.org>
74232
74233         * modules/xsize (Files): Add m4/size_max.m4.
74234         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74235
74236 2003-11-11  Bruno Haible  <bruno@clisp.org>
74237
74238         * m4/size_max.m4: New file.
74239         * m4/ptrdiff_max.m4: New file.
74240         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74241         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74242         (gl_XALLOC): Invoke it.
74243
74244 2003-11-11  Bruno Haible  <bruno@clisp.org>
74245
74246         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74247         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74248         defined.
74249
74250 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74251
74252         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74253         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74254         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74255         From Bruno Haible.
74256         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74257         not (size_t) -1, since it's defined here.
74258
74259 2003-11-09  Karl Berry  <karl@gnu.org>
74260
74261         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74262
74263 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74264
74265         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74266         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74267         Reject sizes of exactly SIZE_MAX bytes.
74268         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74269         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74270
74271 2003-11-05  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74274         SIZE_MAX defined in <limits.h> on Solaris.
74275
74276 2003-11-04  Jim Meyering  <jim@meyering.net>
74277
74278         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74279         variable names, rather than @VAR@.
74280         * modules/poll: Likewise.
74281
74282 2003-11-04  Bruno Haible  <bruno@clisp.org>
74283
74284         * modules/xsize: New file.
74285         * modules/linebreak: Depend on xsize.
74286         * MODULES.html.sh (func_all_modules): Add xsize.
74287
74288 2003-11-04  Bruno Haible  <bruno@clisp.org>
74289
74290         * m4/xsize.m4: New file.
74291
74292 2003-11-04  Bruno Haible  <bruno@clisp.org>
74293
74294         * lib/xsize.h: New file.
74295         * lib/linebreak.c: Include xsize.h.
74296         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74297         argument for overflow.
74298         Suggested by Paul Eggert.
74299
74300 2003-11-03  Karl Berry  <karl@gnu.org>
74301
74302         * config/config.{guess,sub}: update from config.
74303
74304 2003-11-03  Jim Meyering  <jim@meyering.net>
74305
74306         * modules/userspec (lib_SOURCES): Add userspec.h.
74307         (Include): Add "userspec.h".
74308         Improve description.
74309
74310 2003-11-03  Jim Meyering  <jim@meyering.net>
74311
74312         * lib/userspec.c: Include "userspec.h".
74313         * lib/userspec.h: New file.
74314
74315 2003-11-03  Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74318
74319 2003-11-03  Bruno Haible  <bruno@clisp.org>
74320
74321         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74322         available, to avoid (extremely rare) race condition.
74323         Suggested by Paul Eggert.
74324
74325 2003-11-02  Karl Berry  <karl@gnu.org>
74326
74327         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74328
74329 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74330
74331         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74332         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74333         (read_filesystem_list): Set and use me_type_malloced.
74334         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74335         whatever the type happens to be), for brevity and consistency.
74336         Check for size calculation overflow on Alphas running OSF/1.
74337
74338 2003-10-31  Jim Meyering  <jim@meyering.net>
74339
74340         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74341
74342         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74343
74344 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74345             Bruno Haible  <bruno@clisp.org>
74346
74347         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74348         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74349
74350 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74351
74352         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74353         netbsd*-gnu*.  Suggested by Robert Millan.
74354
74355 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74356
74357         * modules/group-member: Depend on stdbool.
74358
74359 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74360
74361         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74362
74363 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74364
74365         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74366         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74367         after the 'gnu' in these cases.  This fixes some bugs in the
74368         previous change, and is based on suggestions by Robert Millan.
74369
74370 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74371
74372         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74373         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74374         no longer needed.
74375         * lib/quotearg.c (quotearg_n_options): Use it.
74376         * lib/group-member.c: Include <stdbool.h>.
74377         (free_group_info): Arg is now const *; don't free arg.
74378         (get_group_info): Now returns bool and accepts struct group_info *,
74379         rather than returning a malloc'ed struct group_info *.
74380         All uses changed.  Check for overflow in internal size calculation.
74381
74382         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74383         rather than xmalloc/xrealloc.
74384         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74385         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74386         conformance bug: the old code used a pointer after freeing the
74387         storage that it addressed.
74388         * lib/hash.c (hash_initialize): Simplify the code by using
74389         xalloc_oversized rather than doing it by hand.
74390         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74391         the buffer preserved.  Use free and xmalloc instead.
74392         * lib/quotearg.c (quotearg_n_options): Likewise.
74393         Use a simpler test for size overflow.  Don't use xalloc_oversized
74394         because unsigned int might be wider than size_t (!); this suggests
74395         that we should switch from unsigned int to size_t for slot numbers.
74396
74397 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74398
74399         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74400         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74401         NetBSD kernels.  Requested by Richard Stallman.
74402
74403 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74404
74405         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74406         to allocate the returned structure.  Do not allocate a subarray,
74407         as x2nrealloc will do that.
74408         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74409         instead of xnrealloc.
74410         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74411
74412 2003-10-27  Bruno Haible  <bruno@clisp.org>
74413
74414         * lib/stdbool_.h: Better support for BeOS.
74415
74416 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74417
74418         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74419         now uses inline.
74420
74421 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74422
74423         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74424         callers that want to do their own size-overflow checking.  Include
74425         <stdbool.h>, since xalloc_oversized returns bool.
74426         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74427         to use xalloc_oversized.
74428
74429         Add two functions x2realloc, x2nrealloc, for programs that grow
74430         arrays dynamically by doubling their sizes.
74431         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74432         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74433         New functions.
74434
74435         Port to C99 semantics for 'inline' of external functions.
74436         Bug reported by Bruno Haible.
74437         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74438         with the old contents of xnmalloc.
74439         (xnmalloc, xmalloc): Use it.
74440         (xnrealloc_inline): New static inline function,
74441         with the old contents of xnrealloc.
74442         (xnrealloc, xrealloc): Use it.
74443
74444         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74445         that.
74446
74447 2003-10-26  Karl Berry  <karl@gnu.org>
74448
74449         * config/srclist.txt (COPYING.DOC): no longer available from
74450         /gd/gnuorg; don't know where the ultimate source is.
74451
74452 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74453
74454         Fix several address-calculation bugs in the hash modules,
74455         plus some minor code cleanup.
74456
74457         * lib/hash.h: Include <stdbool.h>, for bool.
74458         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74459         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74460         hash_get_n_entries, hash_get_max_bucket_length,
74461         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74462         hash_rehash): Use size_t rather than unsigned.
74463         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74464         hash_get_n_buckets_used, hash_get_n_entries,
74465         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74466         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74467         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74468         Likewise.
74469         (SIZE_MAX): Define if not defined.
74470         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74471         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74472         hash_print):
74473         Use const * when possible.
74474         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74475         (check_tuning): Fix bug: if tuning parameters were very close to
74476         0 or 1, rounding errors could have caused subscript violations.
74477         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74478         (hash_initialize): Add 'fail:' label
74479         to free table and return NULL, and use it to simplify code.
74480         Use calloc rather than clearing the storage ourself.
74481         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74482         buffer size calculations.
74483         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74484         Include <stddef.h>, for size_t.
74485         * lib/hash-pjw.c (hash_pjw): Likewise.
74486         Switch to method described by Bruno Haible.
74487         Include <limits.h>, for CHAR_BIT.
74488         (SIZE_BITS): New macro.
74489
74490 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74491
74492         * m4/getline.m4 (AM_FUNC_GETLINE):
74493         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74494         hosts.  Problem reported by Derek Robert Price in
74495         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74496         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74497         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74498
74499 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74500
74501         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74502         ceiling the allocation at NMAX bytes rather than silently
74503         discarding input bytes before NMAX is reached.  This makes
74504         a difference only if NMAX exceeds SIZE_MAX / 2.
74505
74506         * lib/obstack.c: Merge from glibc.
74507         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74508         Add libc_hidden_def (_obstack_newchunk).
74509         (_obstack_free) [! defined _LIBC]: Remove.
74510         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74511         a clone of the function body.
74512         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74513         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74514
74515         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74516         glibc.
74517         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74518         arg to memcpy.
74519
74520         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74521         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74522         Don't use lvalue casts, as GCC plans to remove support for them
74523         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74524         was also present in the non-GCC version, indicating that this
74525         code had always been buggy and had never been widely used.
74526         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74527         Use the fast variant of each macro, rather than copying the
74528         definiens of the fast variant; that way, we'll be more likely to
74529         catch future bugs in the fast variants.
74530
74531 2003-10-20  Bruno Haible  <bruno@clisp.org>
74532
74533         * modules/wait-process: New file.
74534         * MODULES.html.sh (func_all_modules): Add wait-process.
74535
74536 2003-10-20  Bruno Haible  <bruno@clisp.org>
74537
74538         * m4/wait-process.m4: New file.
74539
74540 2003-10-20  Bruno Haible  <bruno@clisp.org>
74541
74542         * lib/wait-process.h: New file, from GNU gettext.
74543         * lib/wait-process.c: New file, from GNU gettext.
74544
74545 2003-10-19  Jim Meyering  <jim@meyering.net>
74546
74547         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74548         HPUX 10.20.
74549
74550 2003-10-18  Karl Berry  <karl@gnu.org>
74551
74552         * config/config.guess: update from config.
74553
74554 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74555
74556         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74557         (getgroups): First arg is int, not size_t.
74558         Don't let 'free' mangle errno.
74559
74560 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74561
74562         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74563
74564 2003-10-16  Karl Berry  <karl@gnu.org>
74565
74566         * config/config.{guess,sub}: update from config.
74567
74568 2003-10-16  Jim Meyering  <jim@meyering.net>
74569
74570         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74571         memcpy.
74572
74573 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74574
74575         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74576         (SIZE_MAX): Remove.
74577         (new_exclude, add_exclude_file): Initial size no longer needs to
74578         be a power of 2.
74579         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74580         our own address arithmetic overflow checking.
74581
74582         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74583         (fnmatch): Do not alloca more than 2000 wide characters;
74584         instead, use malloc for large buffers.
74585         Check for address arithmetic overflow, and return -1
74586         with errno set to ENOMEM in that case.
74587         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74588         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74589         instead, return -1.  Check for address arithmetic overflow.
74590
74591 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74592
74593         Handle invalid suffixes and overflow independently, so that
74594         callers can treat them independently as needed.  Fix some bugs in
74595         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74596         suffix for a human-readable blocksize.  The major caller-visible
74597         change is the addition of a new
74598         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74599         that both overflow and suffix chars were found.
74600
74601         * lib/human.c (humblock): Don't check separately for invalid suffix
74602         char; that is xstrtoumax's job (now that its bug is fixed).
74603         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74604         INTMAX_MAX]: New macros.
74605         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74606         TYPE_MAXIMUM): New macros.
74607         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74608         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74609         if overflow occurs, as it's what __strtol does and it's more useful
74610         in practice.
74611         (__xstrtol): If __strtol reports some error other than ERANGE,
74612         reflect it to the caller as LONGINT_INVALID.  If it reports
74613         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74614         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74615         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74616         value.
74617         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74618         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74619         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74620         [defined UINTMAX_MAX]: New macros.
74621
74622 2003-10-14  Bruno Haible  <bruno@clisp.org>
74623
74624         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74625
74626 2003-10-14  Bruno Haible  <bruno@clisp.org>
74627
74628         * m4/sig_atomic_t: New file, from GNU gettext.
74629         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74630
74631 2003-10-14  Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74634         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74635         Also use volatile where needed.
74636
74637 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74638
74639         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74640         Change maintainer from Bruno Haible to 'all'.
74641
74642 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74643
74644         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74645
74646 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74647
74648         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74649         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74650         and define in terms of the other primitives.
74651         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74652         (SIZE_MAX): Define if not already defined.
74653         (array_size_overflow): New function.
74654         (xalloc_die): Abort instead of exiting if 'error' returns.
74655         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74656         (xmalloc, xrealloc): Use them.
74657         (xcalloc): Check for address arithmetic overflow.
74658         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74659         a bit faster than strcpy.
74660
74661 2003-10-10  Simon Josefsson  <jas@extundo.com>
74662
74663         * modules/argp (Depends-on): Add restrict and strcase.
74664
74665 2003-10-10  Simon Josefsson  <jas@extundo.com>
74666
74667         * m4/argp.m4: Add AC_C_INLINE.
74668
74669 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74670
74671         Merge getpass from libc, plus a few fixes.
74672
74673         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74674         Include <stdbool.h>.
74675         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74676         __fsetlocking to empty.
74677         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74678         do include <bits/libc-lock.h>.
74679         Do not include <fcntl.h>; not needed.
74680         [_LIBC]: Include <wchar.h>.
74681         (NOTCANCEL_MODE): New macro.
74682         (flockfile, funlockfile) [_LIBC]: New macros.
74683         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74684         [!_LIBC]: New macros.
74685         (call_fclose): New function.
74686         (getpass): Use it.  Save tty stream separately; this simplifies the
74687         code and makes it more reliable if stdin happens to equal stdout.
74688         Invoke __fsetlocking on tty.
74689         Handle thread cancellation if needed.
74690         Namespace cleanup (use __tcgetattr, __getline).
74691         Use bool for Booleans.
74692         [USE_IN_LIBIO]: Handle wide streams.
74693         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74694         stream might go where.
74695
74696         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74697         doesn't have to include <stdio.h> before us.
74698         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74699         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74700         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74701         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74702         if not declared, so that we can use getpass.c code from libc without
74703         rewriting it.
74704         (flockfile, ftrylockfile, funlockfile): New macros.
74705
74706 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74707
74708         * modules/getpass: Depend on stdbool.
74709
74710 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74711
74712         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74713
74714 2003-10-07  Karl Berry  <karl@gnu.org>
74715
74716         * config/config.{guess,sub}: update from config.
74717
74718 2003-10-06  Jim Meyering  <jim@meyering.net>
74719             Bruno Haible  <bruno@clisp.org>
74720
74721         This lets translators provide better translations for the
74722         "Written by ..." part of --version output.
74723         * lib/version-etc.h: Include stdarg.h.
74724         (version_etc_copyright): Declare as readonly.
74725         (version_etc): Make this function variadic with a NULL-terminated list
74726         of author name strings.
74727         (version_etc_va): New declaration.
74728         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74729         (version_etc_copyright): Declare as readonly.
74730         (version_etc_va): New function. Provide a different translatable string
74731         for each possible number of authors < 10. Abbreviate when there are 10
74732         authors or more.
74733         (version_etc): Make this function variadic. Call version_etc_va.
74734         Suggestion from Gary V. Vaughan.
74735
74736         * lib/long-options.h (parse_long_options): Change prototype: the
74737         authors string is moved to the end and becomes variadic.
74738         * lib/long-options.c: Include stdarg.h.
74739         (parse_long_options): Make this function variadic, too.
74740         Call version_etc_va, not version_etc.
74741
74742 2003-10-06  Bruno Haible  <bruno@clisp.org>
74743
74744         * modules/version-etc-2: Remove file.
74745         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74746
74747 2003-10-06  Bruno Haible  <bruno@clisp.org>
74748
74749         * modules/fatal-signal: New file.
74750         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74751
74752 2003-10-06  Bruno Haible  <bruno@clisp.org>
74753
74754         * m4/fatal-signal.m4: New file.
74755         * m4/signalblocking.m4: New file, from GNU gettext.
74756
74757 2003-10-06  Bruno Haible  <bruno@clisp.org>
74758
74759         * lib/version-etc-2.h: Remove file.
74760         * lib/version-etc-2.c: Remove file.
74761
74762 2003-10-06  Bruno Haible  <bruno@clisp.org>
74763
74764         * lib/fatal-signal.h: New file, from GNU gettext.
74765         * lib/fatal-signal.c: New file, from GNU gettext.
74766
74767 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74768
74769         * README: Rework advice for preventing empty .o files.
74770         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74771         not <sys/types.h>.
74772
74773 2003-10-04  Karl Berry  <karl@gnu.org>
74774
74775         * lib/argp*: update from libc.
74776
74777 2003-10-04  Karl Berry  <karl@gnu.org>
74778
74779         * config/config.{guess,sub}: update from config.
74780
74781 2003-10-02  Bruno Haible  <bruno@clisp.org>
74782
74783         * modules/lchown (Include): Add lchown.h.
74784         * modules/time_r (Include): Use "..." syntax.
74785         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74786
74787 2003-10-01  Simon Josefsson  <jas@extundo.com>
74788
74789         * MODULES.html.sh (func_all_modules): Move gethostname from section
74790         'based on' to section 'lacking' POSIX:2001.
74791
74792 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74793
74794         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74795         to output mode on the same stream.
74796
74797 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74798
74799         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74800         Fix arg typo in previous patch.
74801
74802 2003-09-28  Jim Meyering  <jim@meyering.net>
74803
74804         * lib/error.c: Correct cpp indentation.
74805
74806 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74807
74808         * modules/free: New file.
74809
74810 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74811
74812         * m4/free.m4: New file.
74813
74814 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74815
74816         * lib/minmax.h (MIN, MAX)
74817         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74818         Omit the special code that used __typeof__, since we worry that
74819         it could be more trouble than it's worth.  See:
74820         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74821         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74822
74823         * lib/free.c: New file.
74824
74825 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74826
74827         Trivial fixes to Makefile.am parts of module listings.
74828         * modules/strstr: Append strstr.h to lib_SOURCES.
74829         * modules/strcase: Likewise, for strcase.h.
74830
74831 2003-09-27  Karl Berry  <karl@gnu.org>
74832
74833         * config/mkinstalldirs: update from automake.
74834
74835 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74836
74837         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74838         (error_tail): Do not loop, reallocating temporary buffer, since
74839         the output cannot contain more wide characters than the input
74840         contains bytes, the size must be big enough already.  This avoids
74841         one potential size overflow calculation.  Check for size overflow
74842         when calculating temporary buffer size.  Free temporary buffer
74843         when done, if it was allocated with malloc; this plugs a memory
74844         leak.  Remove casts from void * to pointers, that are no longer
74845         needed now that we're assuming C89 or better.
74846
74847         Merge error changes from glibc.
74848
74849         * lib/error.c, error.h: Update copyright notice header to match glibc.
74850         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74851         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74852         Disable cancellation while printing error.
74853         * lib/error.h: Prepend __ to parameter names.
74854
74855 2003-09-26  Jim Meyering  <jim@meyering.net>
74856
74857         * lib/error.c (error_tail): Move some declarations
74858         into inner scope where the local variables are used.
74859
74860 2003-09-26  Bruno Haible  <bruno@clisp.org>
74861
74862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74863         stpncpy().
74864         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74865
74866 2003-09-26  Bruno Haible  <bruno@clisp.org>
74867
74868         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74869         (stpncpy): Define as alias for gnu_stpncpy.
74870         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74871
74872 2003-09-25  Simon Josefsson  <jas@extundo.com>
74873
74874         * lib/xgetdomainname.h: New file.
74875         * lib/xgetdomainname.c: New file.
74876
74877 2003-09-25  Simon Josefsson  <jas@extundo.com>
74878             Bruno Haible  <bruno@clisp.org>
74879
74880         * modules/getdomainname: New file.
74881         * modules/xgetdomainname: New file.
74882         * MODULES.html.sh (func_all_modules): Add getdomainname,
74883         xgetdomainname.
74884
74885 2003-09-25  Simon Josefsson  <jas@extundo.com>
74886             Bruno Haible  <bruno@clisp.org>
74887
74888         * m4/getdomainname.m4: New file.
74889
74890 2003-09-25  Simon Josefsson  <jas@extundo.com>
74891             Bruno Haible  <bruno@clisp.org>
74892
74893         * lib/getdomainname.h: New file.
74894         * lib/getdomainname.c: New file.
74895
74896 2003-09-25  Karl Berry  <karl@gnu.org>
74897
74898         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74899
74900 2003-09-25  Karl Berry  <karl@gnu.org>
74901
74902         * config/install-sh: update from automake.
74903
74904 2003-09-25  Bruno Haible  <bruno@clisp.org>
74905
74906         * modules/version-etc-2: New file, from modules/version-etc with
74907         modifications.
74908         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74909
74910 2003-09-25  Bruno Haible  <bruno@clisp.org>
74911
74912         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74913         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74914
74915 2003-09-24  Simon Josefsson  <jas@extundo.com>
74916
74917         * modules/xgethostname: Add xgethostname.h.
74918
74919 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74920
74921         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74922         the buffer associated with the argument.  Bug reported by
74923         Simon Josefsson.
74924
74925 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74926
74927         * README: Document assumptions that 'int' is at least 32 bits
74928         wide, that integer arithmetic is 2's complement without overflow,
74929         that there are no holes in integer values, that adding sizes of
74930         two nonoverlapping objects can't overflow, and that all-bits-zero
74931         yields scalar zero.  Fix spelling and capitalization typos.
74932
74933 2003-09-19  Karl Berry  <karl@gnu.org>
74934
74935         * lib/argp.h: update from libc.
74936
74937 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74938
74939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74940         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74941         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74942
74943 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74944
74945         * gnulib-tool: Use "test -h", not "test -L", for portability
74946         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74947         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74948         (sed_extract_prog): Issue s commands one-by-one, rather than
74949         using \| in one s command.
74950
74951 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74952
74953         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74954         input error, instead of returning NULL the next time we are called
74955         (and therefore losing track of errno).
74956
74957 2003-09-16  Bruno Haible  <bruno@clisp.org>
74958
74959         * gnulib-tool (func_create_testdir): Warn about duplicated
74960         dependencies.
74961
74962 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74963
74964         * modules/argmatch, modules/fatal, modules/obstack,
74965         modules/xalloc, modules/xgethostname: Sort dependencies by
74966         importance, not alphabetically.
74967
74968 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74969
74970         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74971         fails, so that the caller gets the proper errno.
74972
74973         * lib/readutmp.c (read_utmp): Likewise.
74974         Check for fstat error.  Close stream and free storage
74975         when failing.
74976
74977 2003-09-14  Karl Berry  <karl@gnu.org>
74978
74979         * config/srclist.txt (strdup.c): disable for c89 changes.
74980
74981 2003-09-14  Jim Meyering  <jim@meyering.net>
74982
74983         * lib/getloadavg.c: Correct cpp indentation.
74984         * lib/strdup.c: Likewise.
74985         * lib/vasnprintf.c: Likewise.
74986
74987 2003-09-14  Bruno Haible  <bruno@clisp.org>
74988
74989         * modules/fwriteerror: New file.
74990         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74991
74992 2003-09-14  Bruno Haible  <bruno@clisp.org>
74993
74994         * lib/fwriteerror.h: New file.
74995         * lib/fwriteerror.c: New file.
74996
74997 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74998
74999         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75000         modules/xgethostname, modules/xalloc: Depend on exit.
75001
75002 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75003
75004         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75005
75006         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75007         and AC_MINIX, too, so that their extensions are available.
75008
75009         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75010         This macro has been superseded by gl_BACKUPFILE.
75011
75012         More patches to assume C89 or better.
75013
75014         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75015
75016         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75017         unconditionally.
75018         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75019         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75020         Include <string.h>, <stdlib.h> unconditionally.
75021         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75022         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75023         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75024         headers or for string.h.
75025         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75026         or strtoul.
75027
75028         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75029         headers.
75030         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75031         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75032         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75033         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75034         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75035         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75036         memcpy, memset.
75037         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75038         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75039         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75040         strtol.
75041         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75042         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75044         strtoul.
75045
75046 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75047
75048         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75049         * lib/obstack.c [!defined _LIBC]: Likewise.
75050         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75051         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75052         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75053
75054         More changes to assume C89 or better.
75055
75056         * lib/error.c (error_tail): Assume vprintf.
75057
75058         * lib/argmatch.c (getenv): Remove decl.
75059         * lib/progreloc.c (get_full_program_name): Define via prototype.
75060         * lib/setenv.c (clearenv): Likewise.
75061         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75062         needed.
75063         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75064         (malloc, memcpy): Remove decls.
75065         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75066         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75067         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75068         (memcpy): Remove macro.
75069         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75070         (__P): Remove.  All uses removed.
75071         (PTR): Remove.  All uses changed to void *.
75072         (CHAR_BIT, NULL): Remove.
75073         (spaces, zeros, memset_space, memset_zero)
75074         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75075         Remove.
75076         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75077         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75078         Define with prototype.
75079         Remove now-unnecessary prototype decl.
75080         (extra_args_spec): Assume ANSI C.  All uses changed.
75081         (extra_args_spec_iso): Remove.
75082         (my_strftime, emacs_strftimeu): Define via prototype.
75083         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75084         unconditionally.
75085         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75086         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75087         (strtoul, strtol): Remove decls.
75088         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75089         LONG_MAX): Remove.
75090         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75091         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75092         (LOCALE_PARAM_PROTO): New macro.
75093         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75094         (INTERNAL (strtol), strtol): Define with a prototype.
75095         (PARAMS): Remove.  All uses removed.
75096         * lib/tempname.c: Include <string.h> unconditionally.
75097         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75098         * lib/xgethostname.c (main): Define with a prototype.
75099         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75100         Include <stdlib.h> unconditionally.
75101         (calloc, malloc, realloc, free): Remove decls.
75102         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75103         Include <stdlib.h> unconditionally.  Sort include file names.
75104         (strtod): Remove.
75105         (xstrtod): Define with a prototype.
75106         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75107         (strtol, strtoul): Remove decls.
75108
75109 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75110
75111         More patches to assume C89 or better.
75112         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75113         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75114         string.h, memchr, STDC_HEADERS.
75115
75116 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75117
75118         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75119         Include <stdlib.h>, <string.h> unconditionally.
75120         Remove now-unnecessary cast to char *.
75121         * lib/strnlen.c: Include <string.h> unconditionally.
75122         * lib/yesno.c (yesno): Define with a prototype.
75123
75124 2003-09-11  Bruno Haible  <bruno@clisp.org>
75125
75126         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75127
75128 2003-09-10  Jim Meyering  <jim@meyering.net>
75129
75130         * lib/error.c: Correct indentation of cpp directives.
75131
75132 2003-09-10  Bruno Haible  <bruno@clisp.org>
75133
75134         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75135         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75136         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75137         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75138         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75139         <stdlib.h> and <string.h> checks.
75140         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75141         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75142
75143 2003-09-10  Bruno Haible  <bruno@clisp.org>
75144
75145         * lib/strcspn.c: Include <string.h> unconditionally.
75146         * lib/strpbrk.c: Include <string.h> unconditionally.
75147         * lib/strstr.c: Include <string.h> unconditionally.
75148         * lib/unicodeio.c: Include <string.h> unconditionally.
75149         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75150         * lib/unsetenv.c: Likewise.
75151         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75152         * lib/yesno.c: Include <stdlib.h> unconditionally.
75153         (rpmatch): Add prototype.
75154
75155 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75156
75157         More patches to assume C89 or better.
75158         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75159         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75160         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75161         or for string.h.
75162         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75163         stdlib.h.
75164         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75165         C headers.
75166         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75167         string.h.
75168         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75169         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75170         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75171         or for string.h.
75172         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75173         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75174         C headers.
75175         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75176         memcpy.
75177         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75178         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75179         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75180         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75181         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75182         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75183         string.h, free.
75184         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75185         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75186         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75187         C headers, or for string.h.
75188         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75189         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75190         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75191         headers, memory.h, stdlib.h, string.h, strings.h.
75192         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75193         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75194         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75195         strchr.
75196         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75197         headers, memory.h, string.h.
75198         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75199         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75200         free.
75201         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75202         headers.
75203         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75204         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75205         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75206         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75207         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75208
75209 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75210
75211         More K&R removal.
75212
75213         * lib/acosl.c (main): Use a prototype.
75214         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75215         tanl.c: Likewise.
75216
75217         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75218
75219         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75220         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75221         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75222         with a prototype.
75223         * lib/getopt.c (const): Remove macro.
75224         Include <string.h> unconditionally.
75225         (my_index): Remove; all uses changed to strchr.
75226         (strlen): Remove decl.
75227         (exchange): Remove forward decl; no longer needed.
75228         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75229         Define with prototype.
75230         * lib/getopt1.c (const): Remove macro.
75231         (getopt_long, getopt_long_only, main): Define with prototype.
75232
75233         * lib/getugroups.c: Include <string.h> unconditionally.
75234
75235         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75236         (getusershell, setusershell, endusershell, readname, main):
75237         Define with prototypes.
75238
75239         * lib/group-member.c: Include group-member.h first.
75240         Include <stdlib.h> unconditionally.
75241
75242         * lib/hard-locale.c: Include hard-locale.h first.
75243         Include <stdlib.h>, <string.h> unconditionally.
75244
75245         * lib/hash.c (free, malloc): Remove decls.
75246         Include <stdlib.h> unconditionally.
75247
75248         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75249         (getenv): Do not declare.
75250
75251         * lib/idcache.c: Include <string.h> unconditionally.
75252
75253         * lib/long-options.c: Include long-options.h first, to test interface.
75254         Include <stdlib.h> unconditionally.
75255
75256         * lib/makepath.c: Include makepath.h first, to test interface.
75257         Include <stdlib.h> and <string.h> unconditionally.
75258
75259         * lib/linebuffer.c: Include <stdlib.h>.
75260         (free): Remove decl.
75261
75262         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75263         stddef.h. rpl_malloc returns void *, not char *.
75264         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75265         prototype.
75266
75267         * lib/md5.h: Include <limits.h> unconditionally.
75268         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75269         (__P): Remove; all uses removed.
75270         * lib/md5.c: Include "md5.h" first.
75271         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75272         md5_buffer, md5_process_bytes, md5_process_block):
75273         Define with prototypes.
75274         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75275         * lib/sha.c: Include "sha.h" first.
75276         Include <stdlib.h>, <string.h> unconditionally.
75277
75278         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75279         * lib/memcmp.c (__ptr_t): Likewise.
75280         * lib/memrchr.c (__ptr_t): Likewise.
75281         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75282         Include <string.h> unconditionally.
75283         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75284         * lib/memchr.c: Include <stdlib.h> unconditionally.
75285         * lib/memchr.c (LONG_MAX): Remove.
75286         * lib/memrchr.c (LONG_MAX): Likewise.
75287         * lib/memchr.c (__memchr): Define via a prototype.
75288         * lib/memrchr.c (__memrchr): Likewise.
75289         * lib/memcmp.c (__P): Remove, and remove all uses.
75290         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75291         Remove forward decls; no longer needed.
75292         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75293         Use types required by C89 in prototype.
75294
75295         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75296         * lib/savedir.c: Likewise.
75297         * lib/mkdir.c (free): Remove decl.
75298         * lib/rmdir.c (rmdir): Define with a prototype.
75299         * lib/savedir.c: Include savedir.h first, to test interface.
75300
75301         * lib/mktime.c (STDC_HEADERS): Remove.
75302         Include <stdlib.h>, <string.h> unconditionally.
75303
75304         * lib/modechange.c: Include <stdlib.h> unconditionally.
75305         (malloc): Remove decl.
75306
75307         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75308         (free): Remove decl.
75309
75310         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75311         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75312         (This type really should be intptr_t, but that's a C99ism.)
75313         (_obstack_memcpy): Remove: all uses changed to memcpy.
75314         Include <string.h> unconditionally.
75315         (struct obstack): Assume __STDC__ for types of members
75316         chunkfun, freefun, extra_arg.
75317         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75318         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75319         obstack_begin, obstack_specify_allocation,
75320         obstack_specify_allocation_with_arg, obstack_chunkfun,
75321         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75322         Remove unprototyped decls and the macros that use them.
75323         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75324         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75325         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75326         (defined __STDC__ && __STDC__)]:
75327         Remove nonprototyped code.
75328         Include <stdlib.h> unconditionally.
75329         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75330         _obstack_allocated_p, _obstack_free, obstack_free,
75331         _obstack_memory_used, print_and_abort):
75332         Define using prototypes.
75333         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75334         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75335         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75336         obstack_next_free, obstack_object_size, obstack_room) [0]:
75337         Remove unused, unprototyped code.
75338
75339         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75340
75341         * lib/physmem.c (physmem_total, physmem_available, main): Define
75342         with prototypes.
75343
75344         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75345         (main): Define with a prototype.
75346
75347         * lib/posixver.c (getenv): Remove decl.
75348
75349         * lib/putenv.c (malloc): Returns void *, not char *.
75350         Include <string.h> unconditionally.
75351         (strchr, memcpy, NULL): Do not define.
75352
75353         * lib/readtokens.c: Include readtokens.h first, to test interface.
75354         Include <stdlib.h>, <string.h> unconditionally.
75355         (init_tokenbuffer): Define with a prototype.
75356
75357         * lib/regex.c (PARAMS): Remove.  All uses removed.
75358         All uses of _RE_ARGS removed, too.
75359         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75360         unconditionally.
75361         (bzero): Assume memset exists.
75362         (memcmp, memcpy, NULL): Remove.
75363         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75364         char, or assignments to local vars of type signed char.
75365         (init_syntax_once, PREFIX(extract_number_and_incr),
75366         PREFIX(print_partial_compiled_pattern),
75367         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75368         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75369         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75370         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75371         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75372         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75373         wcs_compile_range, byte_compile_range, truncate_wchar,
75374         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75375         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75376         count_mbs_length, wcs_re_match_2_internal,
75377         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75378         PREFIX(alt_match_null_string_p),
75379         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75380         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75381         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75382         now-unnecessary declaration, if any.
75383         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75384         regcomp, regexec):
75385         Remove now-unnecessary casts among pointer types.
75386         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75387
75388         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75389         (free): Remove decl.
75390
75391         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75392
75393         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75394         (free): Remove decl.
75395
75396         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75397         * lib/xgetcwd.c: Likewise.
75398
75399         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75400         (free): Remove decl.
75401
75402         * lib/strchrnul.c (strchrnul): Define with a prototype.
75403         Fix bug: c_in was not converted to char before searching.
75404
75405         The following changes are not K&R related:
75406
75407         * lib/group-member.h: Include <sys/types.h>, so that this file is
75408         self-contained.
75409         * lib/makepath.h: Likewise.
75410
75411         * lib/getusershell.c (readname, default_index, line_size, readname):
75412         Use size_t, not int, for sizes.
75413         (readname): If the size overflows, report an error instead of
75414         looping forever.
75415
75416 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75417
75418         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75419         libc.
75420
75421 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75422
75423         * README: New section: portability guidelines.
75424
75425 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75426
75427         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75428         C89 spec.
75429
75430 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75431
75432         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75433
75434 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75435
75436         Assume C89 or better; remove K&R cruft.
75437         A few of these changes were first proposed by Derek Robert Price
75438         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75439
75440         * lib/addext.c: Include <string.h> unconditionally.
75441         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75442         Don't declare getenv or malloc.
75443
75444         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75445         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75446         (NULL): Remove.
75447         (find_stack_direction, alloca): Use prototypes.
75448
75449         * lib/atexit.c (atexit): Define using a prototype.
75450
75451         * lib/basename.c, dirname.c, stripslash.c:
75452         Include <string.h> unconditionally.
75453
75454         * lib/bcopy.c: Include <stddef.h>.
75455         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75456
75457         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75458
75459         * lib/error.h (error, error_at_line, error_print_progname)
75460         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75461         * lib/error.c: Include error.h first, to check interface.
75462         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75463         (VA_START): Remove; all uses changeed to va_start.
75464         (exit, strerror): Remove decls.
75465         (error_print_progname): Prototype uncondionally.
75466         Don't include <errno.h>; no longer needed.
75467         (private_strerror): Remove.
75468         (error_tail): Always define.
75469         (error, error_at_line): Assume C89 or better; always use prototypes.
75470         * lib/fatal.c: Include "fatal.h" first, to test interface.
75471         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75472         (VA_START): Remove; all uses changed to va_start.
75473         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75474         this case.
75475         (exit): Remove decl.
75476         (fatal): Prototype unconditionally.  Assume va_start works.
75477         Abort at end, to pacify gcc.
75478
75479         * lib/euidaccess.c (main): Define with a prototype.
75480
75481         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75482
75483         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75484
75485         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75486         prototypes.
75487         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75488         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75489         (getenv): Remove decl.
75490         (fnmatch): Define using a prototype.
75491         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75492         (FCT): Define using a prototype.
75493
75494         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75495
75496         * lib/gethostname.c: Include <stddef.h>.
75497         (gethostname): Define with prototype.  Length is size_t, not int.
75498
75499 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75500
75501         Assume C89 or better; remove K&R cruft.
75502         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75503         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75504         string.h, getenv, malloc.
75505         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75506         headers.
75507         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75508         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75509         do not check for strerror.
75510         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75511         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75512         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75513         do not check for doprnt or vprintf.
75514         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75515         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75516
75517 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75518
75519         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75520         getversion.c should have been removed then, but was accidentally
75521         preserved.
75522
75523         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75524         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75525
75526 2003-09-08  Karl Berry  <karl@gnu.org>
75527
75528         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75529                 config, forget about prep.
75530
75531         * config/depcomp, missing: update from automake.
75532
75533 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75534
75535         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75536         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75537
75538 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75539
75540         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75541         copy_tm_result.  Bug reported by Simon Josefsson in
75542         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75543
75544 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75545
75546         * m4/time_r.m4: New file.
75547         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75548         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75549         is. Check for timegm declaration.
75550         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75551         Do not check for gmtime_r.
75552         Replace mktime if __mktime_internal does not exist and if mktime
75553         hasn't been replaced already.
75554
75555 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75556
75557         * lib/time_r.c, lib/time_r.h: New files.
75558
75559         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75560         __localtime_r.
75561         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75562         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75563
75564         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75565         __gmtime_r.
75566         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75567         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75568         Include <time_r.h>.
75569
75570         * lib/timegm.c: Switch to glibc implementation, with the following
75571         changes:
75572         [defined HAVE_CONFIG_H]: Include <config.h>.
75573         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75574         (__mktime_internal) [!defined _LIBC]: New decl.
75575         (__gmtime_r) [!defined _LIBC]: New macro and function.
75576         (timegm): Use a prototype, since gnulib assumes C89.
75577         Do not bother declaring tmp to be const, as it's not really usefu.
75578         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75579         (timegm): Declare only if HAVE_DECL_TIMEGM.
75580
75581 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75582
75583         * MODULES.html.sh (func_all_modules): Add time_r.
75584         * modules/time_r: New file.
75585         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75586         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75587
75588 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75589
75590         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75591         Bug reported by Lute Kamstra in
75592         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75593
75594         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75595         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75596         course with correspondingly smaller numbers for tomorrow and
75597         yesterday.  From Tadayoshi Funaba.  Originally installed into
75598         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75599         coreutils merge?).
75600
75601 2003-08-31  Simon Josefsson  <jas@extundo.com>
75602
75603         * modules/timegm: New file.
75604         * MODULES.html.sh (func_all_modules): Add timegm.
75605
75606 2003-08-31  Simon Josefsson  <jas@extundo.com>
75607
75608         * m4/timegm.m4: New file.
75609
75610 2003-08-31  Simon Josefsson  <jas@extundo.com>
75611
75612         * lib/timegm.h: New file.
75613         * lib/timegm.c: New file.  Based on
75614         wget-1.8.2/src/http.c:mktime_from_utc.
75615
75616 2003-08-31  Karl Berry  <karl@gnu.org>
75617
75618         * lib/argp.h: update from libc.
75619
75620 2003-08-28  Bruno Haible  <bruno@clisp.org>
75621
75622         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75623         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75624         followed by '#define fnmatch fnmatch_posix' gives an error.
75625
75626 2003-08-28  Bruno Haible  <bruno@clisp.org>
75627
75628         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75629         warning on QNX, which defines O_BINARY to 000000.
75630
75631 2003-08-27  Jim Meyering  <jim@meyering.net>
75632
75633         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75634         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75635         would fail after 32.  Reported by Danny Levinson.  Details here:
75636         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75637
75638 2003-08-24  Bruno Haible  <bruno@clisp.org>
75639
75640         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75641         MSVC7 <stdio.h> is included later.
75642
75643 2003-08-22  Simon Josefsson  <jas@extundo.com>
75644
75645         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75646
75647 2003-08-20  Karl Berry  <karl@gnu.org>
75648
75649         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75650
75651 2003-08-20  Bruno Haible  <bruno@clisp.org>
75652
75653         * modules/progname: New file.
75654         * MODULES.html.sh (func_all_modules): Add progname.
75655
75656 2003-08-20  Bruno Haible  <bruno@clisp.org>
75657
75658         * lib/progname.h: New file, from GNU gettext.
75659         * lib/progname.c: New file, from GNU gettext.
75660         * lib/progreloc.c: New file, from GNU gettext.
75661
75662 2003-08-19  Jim Meyering  <jim@meyering.net>
75663
75664         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75665         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75666
75667 2003-08-19  Bruno Haible  <bruno@clisp.org>
75668
75669         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75670         more.
75671
75672 2003-08-19  Bruno Haible  <bruno@clisp.org>
75673
75674         * lib/xstrdup.c: Assume <string.h> exists.
75675
75676 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75677
75678         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75679         in makefile rules.
75680
75681 2003-08-18  Jim Meyering  <jim@meyering.net>
75682
75683         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75684         * m4/lib-ld.m4: Likewise.
75685
75686 2003-08-18  Jim Meyering  <jim@meyering.net>
75687
75688         * lib/setenv.h: Indent nested cpp directive.
75689         * lib/vasnprintf.c: Remove trailing blanks.
75690
75691 2003-08-17  Simon Josefsson  <jas@extundo.com>
75692
75693         * modules/xstrndup: New file.
75694         * MODULES.html.sh (func_all_modules): Add xstrndup.
75695
75696 2003-08-17  Simon Josefsson  <jas@extundo.com>
75697
75698         * modules/argp: Fix autoconf macro name. Add more dependencies.
75699
75700 2003-08-17  Simon Josefsson  <jas@extundo.com>
75701
75702         * m4/xstrndup.m4: New file.
75703
75704 2003-08-17  Simon Josefsson  <jas@extundo.com>
75705
75706         * m4/argp.m4: New file.
75707
75708 2003-08-17  Simon Josefsson  <jas@extundo.com>
75709             Bruno Haible  <bruno@clisp.org>
75710
75711         * lib/xstrndup.h: New file.
75712         * lib/xstrndup.c: New file.
75713
75714 2003-08-17  Bruno Haible  <bruno@clisp.org>
75715
75716         * modules/strndup (Files, Include): Add lib/strndup.h.
75717
75718 2003-08-17  Bruno Haible  <bruno@clisp.org>
75719
75720         * modules/euidaccess (Files): Add lib/euidaccess.h.
75721
75722 2003-08-17  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/strndup.h: New file.
75725
75726 2003-08-17  Bruno Haible  <bruno@clisp.org>
75727
75728         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75729         like AC_GNU_SOURCE.
75730         * modules/extensions (configure.ac): Comment out the invocation of
75731         gl_USE_SYSTEM_EXTENSIONS.
75732
75733 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75734
75735         Merges from coreutils, etc.
75736         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75737         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75738         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75739         fixing a typo.
75740         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75741         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75742
75743 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75744
75745         Document merge from coreutils.
75746         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75747         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75748         * modules/utime: Add m4/utimes-null.m4.
75749
75750 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75751
75752         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75753         space, undoing this 2003-08-12 change:
75754         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75755
75756 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75757
75758         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75759         strtoul.c from libc, undoing this 2003-08-12 change:
75760         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75761
75762 2003-08-16  Jim Meyering  <jim@meyering.net>
75763
75764         Merges from coreutils.
75765         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75766         prefix.  Adjust cache variables similarly.  Create 500 rather than
75767         just 300 files, to exercise bug on Darwin6.5, too.
75768         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75769         $missing_dir.
75770         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75771         AM_SYS_POSIX_TERMIOS.
75772         Reported by mkc@mathdogs.com.
75773         Also change use of $am_cv_sys_posix_termios
75774         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75775         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75776         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75777         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75778         in /proc/mounts until it finds one with matching device number.  This
75779         is unnecessary when the FILE argument *is* a mount point.  No stat call
75780         is necessary in that case.  So, disable the statvfs-testing code on
75781         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75782         as RedHat bug# 84846.
75783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75784         to 1MB, so as not to render systems with no stack size limit (e.g.,
75785         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75786         Include <unistd.h>.  On some systems,
75787         it is required for the definition of _SC_PAGESIZE.
75788
75789 2003-08-16  Jim Meyering  <jim@meyering.net>
75790
75791         Merge from coreutils.
75792         * lib/xstrtoimax.c: #else #if -> #elif.
75793         * lib/xstrtoumax.c: Likewise.
75794
75795 2003-08-16  Jim Meyering  <jim@meyering.net>
75796
75797         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75798         * m4/utimes.m4: Removed.
75799         * m4/utimes-null.m4: Renamed from utimes.m4.
75800
75801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75802         to 1MB, so as not to render systems with no stack size limit (e.g.,
75803         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75804         Include <unistd.h>.  On some systems,
75805         it is required for the definition of _SC_PAGESIZE.
75806
75807 2003-08-16  Jim Meyering  <jim@meyering.net>
75808         and Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         Merges from coreutils, etc.
75811
75812         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75813         using the latest version from cvs.  This avoids problems with #line
75814         directives using a vendor (Sun) compiler.
75815         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75816         Don't set GETGROUPS_LIB here; now it's
75817         done via getgroups.m4's wrapper function.
75818         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75819         rather than just in sh-util/configure.in, so that the
75820         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75821         same.
75822         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75823         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75824         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75825         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75826         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75827         Remove code that is now done by the newly-required macros.
75828         Append $(EXEEXT) to DF_PROG.
75829         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75830         Do not invoke or require the following here,
75831         since prereq.m4 or some gnulib .m4 now does this for us:
75832         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75833         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75834         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75835         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75836         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75837         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75838         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75839         AC_FUNC_OBSTACK.
75840         Do not replace the following functions, as this is now the job
75841         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75842         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75843         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75844         atexit getpass, strdup, getpagesize.
75845         Replace 'raise'.
75846         Do not check for the following functions, as this is now the job
75847         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75848         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75849         setregid.
75850         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75851         Check for sys/sysctl.h.
75852         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75853         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75854         of checking for ssize_t ourselves.
75855
75856         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75857         Require every macro that gnulib/modules/* suggests for us.
75858         (jm_PREREQ_ADDEXT): New macro.
75859         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75860         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75861
75862         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75863         (gl_PHYSMEM): Use it.
75864         Also check for `table' function.
75865         Check for new headers and functions.
75866         Add check for sys/sysmp.h.
75867         With suggestions from Kaveh Ghazi.
75868         Ignore headers that are present but cannot be compiled.  This
75869         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75870         C 5.4.
75871
75872 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75873
75874         Document merge from coreutils.
75875         * modules/userspec: Depend on posixver.
75876         * modules/strftime: Depend on tzset.
75877
75878 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75879
75880         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75881         rather than tab, after '#' in shell-script copyright notices.
75882         Suggested by Bruno Haible.
75883
75884 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75885
75886         * config/srclist-update: Use three spaces, rather than tab, after '#'
75887         in shell-script copyright notices.  Suggested by Bruno Haible.
75888         Remove unnecessary parenthesization in regular expression.
75889
75890 2003-08-15  Jim Meyering  <jim@meyering.net>
75891
75892         Merge from coreutils.
75893         * lib/xgethostname.c: Include <stdlib.h>.
75894         (xghostname): Don't exit for anything other than memory-related
75895         failure; just return NULL.
75896         * lib/userspec.c: Include "posixver.h".
75897         (parse_user_spec): Accept `.' as a separator only
75898         in pre-POSIX-200112 mode.
75899         * lib/strtoimax.c: Use #elif rather than #else #if.
75900         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75901         Remove function, now that we can rely on a working tzset function.
75902         [!_LIBC]: Ensure that the required autoconf test has been run.
75903         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75904         Use underlying_strftime for %r.
75905         * lib/sha.c: Merge in some clean-up and optimization changes from
75906         glibc.
75907         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75908         Ensure that it is a multiple of 64.
75909         Rearrange loop exit tests so as to avoid performing an
75910         additional fread after encountering an error or EOF.
75911         * lib/realloc.c: Update copyright date.
75912
75913 2003-08-15  Jim Meyering  <jim@meyering.net>
75914         and Paul Eggert  <eggert@twinsun.com>
75915
75916         Merge from coreutils.
75917         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75918         member but strut utmpx does not.  Needed for AIX 4.3.3.
75919         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75920
75921 2003-08-15  Jim Meyering  <jim@meyering.net>
75922         and Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         Merges from coreutils, etc.
75925         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75926         Require gl_FUNC_TZSET_CLOBBER.
75927         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75928         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75929         members.
75930
75931 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75932
75933         Help the merge from coreutils.
75934         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75935         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75936         * m4/tzset.m4: Use it too.
75937
75938 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75939
75940         * modules/tzset: New file.
75941
75942 2003-08-14  Jim Meyering  <jim@meyering.net>
75943
75944         Merges from coreutils.
75945         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75946         variable names, rather than @FNMATCH_H@.
75947         * modules/alloca: Likewise for $(ALLOCA_H).
75948
75949         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75950         the three copies of the literal target, `fnmatch.h'.
75951         * modules/alloca (alloca.h): Likewise.
75952
75953 2003-08-14  Jim Meyering  <jim@meyering.net>
75954
75955         Merge from coreutils.
75956         * m4/tzset.m4: New file.
75957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75958         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75959         otherwise, AIX 5.1 systems would end up using the latter.
75960         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75961         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75962         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75963         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75964
75965 2003-08-14  Jim Meyering  <jim@meyering.net>
75966
75967         Merge from coreutils.
75968         * lib/obstack.h: Whitespace changes.
75969         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75970         and xcalloc return values.
75971         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75972         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75973         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75974         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75975         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75976         error from mntctl.
75977         Use mntctl's return value to drive the entry-processing loop, since
75978         we can't rely on the value of the vmt_length member in the last
75979         entry.  On some systems doing so could result in exhausting
75980         virtual memory.  Based in part on a patch from Mike Jetzer.
75981
75982 2003-08-14  Jim Meyering  <jim@meyering.net>
75983         and Paul Eggert  <eggert@twinsun.com>
75984
75985         Merges from coreutils, plus other fixes.
75986         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75987         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75988         for credits and details.  Thanks to Kaveh Ghazi for helping
75989         to keep these files in sync.
75990         (ARRAY_SIZE): Define it.
75991         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75992         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75993         (memcasecmp): Don't assume size_t fits in unsigned int.
75994         Remove casts and duplicate code.
75995         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75996         (memcpy): Remove definition.
75997         Merge in some clean-up and optimization changes from glibc.
75998         [BLOCKSIZE]: Move definition to top of file.
75999         Ensure that it is a multiple of 64.
76000         Rearrange loop exit tests so as to avoid performing an
76001         additional fread after encountering an error or EOF.
76002         * lib/md5.h (md5_uintptr): Define.
76003         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76004         return to the initial working directory.  Preserve errno
76005         for caller.
76006         * lib/idcache.c: Include "xalloc.h".
76007         (xmalloc, xrealloc): Remove decls.
76008         (getuser): Remove casts no longer required in C89.
76009         * lib/human.c: Include stdio.h, for sprintf.
76010         * lib/group-member.c: Include "xalloc.h".
76011         (xmalloc, xrealloc): Remove decls.
76012         (get_group_info): Remove casts no longer required in C89.
76013         * lib/getusershell.c (readname): Remove casts no longer required in
76014         C89.
76015         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76016         * lib/getline.c: Whitespace fix, from coreutils.
76017
76018 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76019
76020         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76021         Check for isascii.
76022
76023         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76024         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76025         Undo previous (whitespace-only) change.
76026
76027 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76028
76029         * lib/exclude.c: Include <ctype.h>
76030         (IN_CTYPE_DOMAIN): New macro.
76031         (is_space): New fn.
76032         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76033         and empty lines.
76034
76035         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76036         Undo previous (whitespace-only) change.
76037
76038 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76039
76040         * config/srclist-update: Change update back to the old behavior,
76041         leaving whitespace alone.  Use one 'sed' command rather than a
76042         pipeline.
76043         (fixlicense): Now a variable, not a function.
76044         (remove_trailing_blanks): Remove.
76045         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76046         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76047         Undo previous (whitespace-only) change.
76048
76049 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76050
76051         Merge from coreutils.
76052         * modules/euidaccess: Add lib_SOURCES, include for new
76053         file euidaccess.h
76054
76055 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76056
76057         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76058         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76059         Normalize leading white space and remove trailing white space.
76060
76061         Merge from coreutils
76062         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76063
76064         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76065         0.12.1.  These files are now being upgraded automatically by
76066         ../config/srclist-update.
76067
76068 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76069
76070         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76071         Normalize leading white space and remove trailing white space.
76072         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76073         notice, as per ../config/srclist-update.
76074
76075         Merge from coreutils.
76076         * lib/euidaccess.h: New file.
76077         * lib/euidaccess.c: Include it.
76078         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76079         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76080         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76081
76082 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76083
76084         * config/srclist-update: Add copyright notice.
76085         (remove_id_lines, remove_trailing_blanks): New constants.
76086         (fixfile): Use them to normalize spacing a bit in copied files.
76087         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76088         Normalize leading white space and remove trailing white space.
76089
76090         * config/texinfo.tex: Sync with texinfo.
76091
76092         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76093         strtoul.c from libc, to merge coreutils whitespace changes.
76094
76095         * config/srclist.txt: Get the following m4 files from gettext:
76096         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76097         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76098         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76099         wint_t.m4.
76100
76101 2003-08-12  Karl Berry  <karl@gnu.org>
76102
76103         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76104         been made.
76105
76106 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76107
76108         * modules/gnu-source, m4/gnu-source.m4:
76109         Remove; we're assuming Autoconf 2.54 or later now.
76110         Suggested by Bruno Haible.
76111         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76112
76113 2003-08-11  Bruno Haible  <bruno@clisp.org>
76114
76115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76116
76117 2003-08-11  Bruno Haible  <bruno@clisp.org>
76118
76119         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76120         (vasnprintf): Use it instead of wcslen.
76121
76122 2003-08-11  Bruno Haible  <bruno@clisp.org>
76123
76124         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76125         value to ensure that _Bool promotes to int. Use #define for _Bool when
76126         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76127
76128 2003-08-10  Karl Berry  <karl@gnu.org>
76129
76130         * lib/regex.h: update from libc (whitespace fix).
76131
76132 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76133
76134         Merge some files from coreutils.  These changes were
76135         originally made by Jim Meyering.
76136         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76137         many older Unixes require this.
76138         * lib/alloca.c (alloca): Remove cast to argument of free;
76139         no longer needed in C89.
76140         * lib/alloca_.h, regex.h: Fix white space to match
76141         what GNU indent does.
76142
76143 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76144
76145         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76146         apparently Emacs's Unicode mode got confused before my 2003-08-05
76147         checkin.
76148
76149 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76150
76151         * m4/extensions.m4: New file.
76152         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76153         Require gl_USE_SYSTEM_EXTENSIONS.
76154         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76155         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76156
76157 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76158
76159         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76160         * modules/extensions, modules/gnu-source: New files.
76161         * modules/timespec, modules/unlocked-io: Depend on extensions.
76162
76163 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76164
76165         * modules/restrict: New file.
76166         * MODULES.html.sh (func_all_modules): Add restrict.
76167         * modules/regex: Depend on restrict.
76168
76169 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76170
76171         * m4/restrict.m4: New file.
76172         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76173
76174 2003-08-07  Bruno Haible  <bruno@clisp.org>
76175
76176         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76177         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76178
76179 2003-08-07  Bruno Haible  <bruno@clisp.org>
76180
76181         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76182         makes the module 'getndelim2' compatible with the module 'getline'.
76183
76184 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76185
76186         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76187         byte with "\201" to avoid glitches when editing that source file
76188         with multi-gnome-terminal.
76189
76190 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76191
76192         * lib/bumpalloc.h: Remove.
76193
76194 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76195
76196         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76197         * modules/bumpalloc: Remove.
76198
76199 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76200
76201         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76202         GNU coding style.
76203
76204         Merge from coreutils.
76205         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76206         1. From glibc.
76207         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76208         from Karl Berry, implemented by Jim Meyering.
76209         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76210         from Dmitry V. Levin.
76211         Remove anachronistic cast of xrealloc.
76212         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76213         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76214         type. Otherwise, it wouldn't compile with at least /bin/cc on
76215         ymp-cray-unicos9.0.2.X.
76216         Combine two mostly-identical uses of alloca into one.
76217         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76218
76219 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76220
76221         [From Emacs.]
76222
76223         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76224         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76225         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76226         obsolete NLIST_NAME_UNION.
76227         [__GNU__]: Undef BSD and FSCALE.
76228         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76229
76230 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76231
76232         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76233         an enum type, so that it's guaranteed to promote to int.  See:
76234         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76235
76236 2003-08-03  Karl Berry  <karl@gnu.org>
76237
76238         * config/depcomp: update from automake.
76239
76240 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76241
76242         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76243         (strerror): Don't assume that a printable int fits in 14 bytes.
76244
76245 2003-07-31  Bruno Haible  <bruno@clisp.org>
76246
76247         * modules/getpass-gnu: New file.
76248         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76249
76250 2003-07-31  Bruno Haible  <bruno@clisp.org>
76251
76252         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76253
76254 2003-07-24  Karl Berry  <karl@gnu.org>
76255
76256         * config/missing: update from automake.
76257
76258 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76259             Bruno Haible  <bruno@clisp.org>
76260
76261         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76262         * lib/getline.c (getline, getdelim): Likewise.
76263         Remove _GNU_SOURCE define; now it's defined in config.h through
76264         m4/getline.m4.
76265
76266 2003-07-23  Karl Berry  <karl@gnu.org>
76267
76268         * config/config.sub: update from prep.
76269
76270 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76271
76272         * modules/xalloc (Depends-on): Add exitfail.
76273         * modules/xmemcoll: Likewise.
76274
76275 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76276
76277         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76278         over-parenthesization in macros.
76279
76280         Sync with coreutils.
76281
76282         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76283         required by C99.
76284
76285         Use `exit_failure' for xalloc and xmemcoll instead of their own
76286         private exit-failure variables.
76287         * lib/xalloc.h (xalloc_exit_failure): Remove.
76288         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76289         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76290         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76291         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76292         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76293
76294 2003-07-20  Jim Meyering  <jim@meyering.net>
76295
76296         * modules/closeout (Depends-on): Add exitfail.
76297         Suggestion from Bruno Haible.
76298
76299 2003-07-19  Karl Berry  <karl@gnu.org>
76300
76301         * config/config.sub: update from prep.
76302
76303 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76304
76305         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76306         Remove.
76307         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76308         to test that it can stand by itself.  Include "exitfail.h".
76309         Clients should set exit_failure instead.
76310         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76311
76312 2003-07-18  Bruno Haible  <bruno@clisp.org>
76313
76314         * modules/getndelim2: New file.
76315         * modules/getline: Share files with module getndelim2.
76316         * modules/getnline: Depend on getndelim2 instead of sharing files with
76317         it. Add getnline.c to lib_SOURCES.
76318         * MODULES.html.sh (func_all_modules): Add getndelim2.
76319
76320 2003-07-18  Bruno Haible  <bruno@clisp.org>
76321
76322         * m4/getndelim2.m4: New file.
76323         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76324         invoke gl_PREREQ_GETNDELIM2.
76325         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76326         gl_PREREQ_GETNDELIM2.
76327         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76328         gl_GETNDELIM2.
76329
76330 2003-07-18  Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/getndelim2.h: New file.
76333         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76334         getndelim2.h.
76335         (getndelim2): Make non-static. Change return type to ssize_t.
76336         * lib/getline.h: Change argument names.
76337         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76338         * lib/getnline.c: Include getndelim2.h.
76339
76340 2003-07-18  Andreas Schwab  <schwab@suse.de>
76341
76342         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76343
76344 2003-07-17  Karl Berry  <karl@gnu.org>
76345
76346         * config/config.sub: update from prep.
76347
76348 2003-07-17  Bruno Haible  <bruno@clisp.org>
76349
76350         * modules/getnline: New file.
76351         * modules/getline: Add lib/getndelim2.c to source file list.
76352         * MODULES.html.sh (func_all_modules): Add getnline.
76353
76354 2003-07-17  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/getnline.m4: New file.
76357
76358 2003-07-17  Bruno Haible  <bruno@clisp.org>
76359
76360         * m4/Makefile.am.in: Remove file.
76361         * m4/Makefile.am: Remove file.
76362         * m4/Makefile.in: Remove file.
76363
76364 2003-07-17  Bruno Haible  <bruno@clisp.org>
76365
76366         * lib/getnline.h: New file.
76367         * lib/getnline.c: New file.
76368         * lib/getndelim2.c: New file, extracted from getline.c.
76369         (getndelim2): Renamed from getdelim2, with added nmax argument.
76370         * lib/getline.c: Include getndelim2.c.
76371         (getdelim2): Moved out to getndelim2.c.
76372         (getline, getdelim): Update.
76373
76374 2003-07-17  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/Makefile.am: Remove file.
76377         * lib/Makefile.in: Remove file.
76378
76379 2003-07-17  Bruno Haible  <bruno@clisp.org>
76380
76381         * configure.in: Remove file.
76382         * Makefile.in: Remove file.
76383
76384 2003-07-17  Bruno Haible  <bruno@clisp.org>
76385
76386         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76387
76388 2003-07-16  Karl Berry  <karl@gnu.org>
76389
76390         * config/srclist-update: was running fixlicense twice, which caused
76391                 texinfo.tex to be nullified for some reason.  Simplify,
76392                 $gplsrc is no longer needed as far as I can see?
76393
76394 2003-07-16  Jim Meyering  <jim@meyering.net>
76395
76396         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76397
76398 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76399
76400         * config/srclist.txt: Get the following files from gettext-runtime/intl
76401         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76402         ref-del.sin.  From Bruno Haible.
76403         * config/srclist-update (fixfile): Change grep pattern again, since the
76404         previous fix didn't work (there was another trailing $).  Use
76405         '[$]' to escape the $s.
76406
76407 2003-07-15  Karl Berry  <karl@gnu.org>
76408
76409         * lib/vasnprintf.c: update from gettext.
76410
76411 2003-07-15  Karl Berry  <karl@gnu.org>
76412
76413         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76414         gets expanded when surrounded by '$'.
76415
76416 2003-07-15  Jim Meyering  <jim@meyering.net>
76417
76418         * modules/save-cwd: Don't depend on error.  From Derek Price.
76419
76420 2003-07-15  Jim Meyering  <jim@meyering.net>
76421
76422         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76423
76424 2003-07-14  Simon Josefsson  <jas@extundo.com>
76425
76426         * modules/mempcpy: New file.
76427         * MODULES.html.sh (func_all_modules): Add mempcpy.
76428
76429 2003-07-14  Simon Josefsson  <jas@extundo.com>
76430
76431         * m4/mempcpy.m4: New file.
76432
76433 2003-07-14  Simon Josefsson  <jas@extundo.com>
76434
76435         * lib/mempcpy.h: New file.
76436         * lib/mempcpy.c: New file.
76437
76438 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76439
76440         * modules/getdate, modules/posixtm: Depend on mktime.
76441
76442 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76443
76444         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76445         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76446         unicodeio.c, unicodeio.h, unlocked-io.h:
76447         Switch from LGPL to GPL.
76448
76449 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76450
76451         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76452         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76453         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76454         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76455         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76456         updated automatically by ../config/srclist-update.  This changes
76457         their license from LPGL to GPL.
76458
76459 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76460
76461         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76462         assumed to refer to the root of the most recent stable gettext version.
76463         * config/srclistvars.sh: Add defaults for eggert.
76464         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76465         Match "This program" as well as "The program".  This is needed
76466         for gettext.
76467
76468 2003-07-14  Jim Meyering  <jim@meyering.net>
76469
76470         Don't emit diagnostics.  Let callers do that.
76471         * lib/save-cwd.c: Don't include "error.h".
76472         (save_cwd): Don't call error.  Ensure that errno is valid
76473         when returning nonzero.
76474
76475         * lib/save-cwd.h (restore_cwd): Update prototype.
76476         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76477         Simplify.  Don't call error upon failure.  Let callers do that.
76478         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76479         when auditing is enabled.  But don't bother updating the #if.
76480
76481 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76482
76483         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76484         it breaks C++ compilation.
76485         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76486
76487 2003-07-10  Simon Josefsson  <jas@extundo.com>
76488
76489         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76490
76491 2003-07-10  Jim Meyering  <jim@meyering.net>
76492
76493         * m4/clock_time.m4: Remove trailing blank.
76494         * m4/intmax_t.m4: Likewise.
76495
76496 2003-07-10  Jim Meyering  <jim@meyering.net>
76497
76498         * lib/vasnprintf.c: Remove trailing blanks.
76499         Make cpp indentation consistent.
76500
76501 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76502
76503         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76504         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76505         Switch from LGPL to GPL.
76506
76507 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76508
76509         * config/srclist.txt: Sort sublists.  Add
76510         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76511         that differ from gnulib for one reason or another; we'd like this list
76512         to be smaller but for now let's document what we have.
76513
76514 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76515
76516         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76517         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76518         and sweeter "eval x=$x".
76519         * config/srclist.txt: Get lib/argp* from glibc.
76520
76521 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76522
76523         * lib/mktime.c: Fix some boundary cases and remove need for floating
76524         point.
76525
76526         Issue a compile-time diagnostic if time_t is floating point, or if
76527         two's complement arithmetic is not in effect, or if arithmetic
76528         right shift does not propagate the sign.  These assumptions were
76529         all in the original code but they weren't checked.
76530
76531         (TIME_T_MIDPOINT, verify): New macros.
76532         (__isleap): Remove; it has integer overflow problems.
76533         (leapyear): New function, without those problems.
76534         (ydhms_tm_diff): Remove; splitting into two parts.
76535         (ydhms_diff): New function, containing the arithmetic part of
76536         the old ydhms_tm_diff function.  Issue a compile-time
76537         diagnostic if we are not using C99 integer division.
76538         Avoid casts when possible.
76539         (guess_time_tm): New function, containing the checking part of
76540         the old ydhms_tm_diff function.  Return the new value, rather than
76541         the difference between it and the old.  Accept a new argument T
76542         so that *T specifies the old value.  Check for overflow in the result.
76543
76544         (__mktime_internal): Use a time_t offset, not a long int offset.
76545         This undoes the 2003-06-04 change, which is no longer needed now
76546         that we have better overflow checking.
76547         (localtime_offset): Likewise.
76548
76549         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76550         and long are 64-bit but int is only 32-bit.
76551         (ydhms_diff): Use long int to store year1 and yday1.
76552         Issue a compile-time diagnostic if long int is not wide enough.
76553
76554         (__mktime_internal): Use long int to store adjusted year and yday.
76555         Use plain C rather than preprocessor commands, if that doesn't
76556         affect efficiency.
76557         Check for overflow (and try to repair) after each probe
76558         rather than checking only at the very end.  This avoids some bugs
76559         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76560         does not equal GMT offset at maximum time).
76561         Use integer to check for overflow rather than floating point; this
76562         is more portable to non-IEEE hosts, and is a tad faster.
76563         When we detect that we are oscillating between two values,
76564         don't check whether tm_isdst has the requested value, since
76565         we already know the answer.  When tm_isdst has the wrong value,
76566         use a different heuristic to find the right one, based on the
76567         extreme values actually observed in practice in tz2003a,
76568         rather than the (overly optimistic) "previous 3 calendar quarters".
76569
76570         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76571         "T const" to accommodate glibc style.
76572         (check_result): Use less-confusing report format.  "long" -> "long int.
76573         (main): Likewise.
76574         Don't loop if the iteration overflows time_t.
76575         Allow a negative step in the iteration.
76576
76577 2003-07-06  Karl Berry  <karl@gnu.org>
76578
76579         * config/depcomp: update from automake.
76580         * config/config.sub: update from prep.
76581
76582 2003-07-03  Karl Berry  <karl@gnu.org>
76583
76584         * config/config.guess: update from prep.
76585
76586 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76587
76588         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76589         xreadlink.c now includes it unconditionally.
76590
76591 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76592
76593         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76594         having it depend on HAVE_SYS_TYPES_H.
76595
76596 2003-07-01  Bruno Haible  <bruno@clisp.org>
76597
76598         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76599         <sys/types.h> should be sufficient.
76600         Reported by Paul Eggert.
76601
76602 2003-06-26  Karl Berry  <karl@gnu.org>
76603
76604         * config/depcomp: update from automake.
76605
76606 2003-06-26  Bruno Haible  <bruno@clisp.org>
76607
76608         * modules/human: Depend on module stdbool.
76609
76610 2003-06-25  Bruno Haible  <bruno@clisp.org>
76611
76612         * modules/readlink: New file.
76613         * modules/xreadlink: Depend on it.
76614         * MODULES.html.sh (func_all_modules): Add readlink.
76615
76616 2003-06-25  Bruno Haible  <bruno@clisp.org>
76617
76618         * m4/readlink.m4: New file.
76619
76620 2003-06-25  Bruno Haible  <bruno@clisp.org>
76621
76622         * lib/readlink.c: New file.
76623
76624 2003-06-22  Karl Berry  <karl@gnu.org>
76625
76626         * config/srclist.txt: update mkinstalldirs from automake.
76627         * config/mkinstalldirs: update.
76628
76629 2003-06-22  Bruno Haible  <bruno@clisp.org>
76630
76631         Portability to mingw32.
76632         * m4/ssize_t.m4: New file, from GNU gettext.
76633         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76634         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76635
76636 2003-06-22  Bruno Haible  <bruno@clisp.org>
76637
76638         * modules/safe-read: Add m4/ssize_t.m4.
76639         * modules/xreadlink: Add m4/ssize_t.m4.
76640
76641 2003-06-20  Bruno Haible  <bruno@clisp.org>
76642
76643         Assume C89, so PARAMS isn't needed.
76644         * lib/unicodeio.h (PARAMS): Remove.
76645         * lib/unicodeio.c: Don't use PARAMS.
76646
76647 2003-06-18  Karl Berry  <karl@gnu.org>
76648
76649         * config/config.{guess,sub}: update from prep.
76650
76651 2003-06-18  Jim Meyering  <jim@meyering.net>
76652
76653         Merge changes from coreutils.
76654         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76655         Remove explicit declarations of xmalloc and realloc.
76656         Include xalloc.h.
76657         (read_utmp): Remove anachronistic cast of xmalloc.
76658
76659 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76660
76661         Assume C89, so PARAMS isn't needed.
76662         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76663         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76664         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76665         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76666         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76667         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76668         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76669         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76670         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76671         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76672         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76673         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76674         no longer needed. Anyway, config.h should always be included before any
76675         other file.
76676
76677 2003-06-11  Simon Josefsson  <jas@extundo.com>
76678
76679         * modules/sysexits: New file.
76680         * MODULES.html.sh (func_all_modules): Add sysexits.
76681
76682 2003-06-11  Simon Josefsson  <jas@extundo.com>
76683
76684         * lib/sysexit_.h: New file.
76685
76686 2003-06-11  Derek Price  <derek@ximbiot.com>
76687
76688         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76689         necessary.
76690
76691 2003-06-11  Bruno Haible  <bruno@clisp.org>
76692
76693         * m4/sysexits.m4: New file.
76694
76695 2003-06-10  Simon Josefsson  <jas@extundo.com>
76696
76697         * lib/argp.h: New file, from glibc.
76698         * lib/argp-ba.c: New file, from glibc.
76699         * lib/argp-eexst.c: New file, from glibc.
76700         * lib/argp-fmtstream.c: New file, from glibc.
76701         * lib/argp-fmtstream.h: New file, from glibc.
76702         * lib/argp-fs-xinl.c: New file, from glibc.
76703         * lib/argp-help.c: New file, from glibc.
76704         * lib/argp-namefrob.h: New file, from glibc.
76705         * lib/argp-parse.c: New file, from glibc.
76706         * lib/argp-pv.c: New file, from glibc.
76707         * lib/argp-pvh.c: New file, from glibc.
76708         * lib/argp-xinl.c: New file, from glibc.
76709
76710 2003-06-10  Simon Josefsson  <jas@extundo.com>
76711
76712         * modules/strchrnul: New file.
76713
76714 2003-06-10  Simon Josefsson  <jas@extundo.com>
76715
76716         * modules/argp: New file.
76717
76718 2003-06-10  Simon Josefsson  <jas@extundo.com>
76719
76720         * m4/strchrnul.m4: New file.
76721
76722 2003-06-10  Simon Josefsson  <jas@extundo.com>
76723
76724         * lib/strchrnul.h: New file.
76725         * lib/strchrnul.c: New file.
76726
76727 2003-06-10  Bruno Haible  <bruno@clisp.org>
76728
76729         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76730
76731 2003-06-07  Karl Berry  <karl@gnu.org>
76732
76733         * config/config.{guess,sub}: update from prep.
76734
76735 2003-06-07  Jim Meyering  <jim@meyering.net>
76736
76737         * modules/strtod: Use $(...) notation, not @...@ for
76738         AC_REPLACE'd variables.
76739         * modules/localcharset: Likewise.
76740
76741 2003-06-07  Jim Meyering  <jim@meyering.net>
76742
76743         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76744         in place of my name in the copyright comment.
76745         Remove definition and uses of __P.
76746
76747         From coreutils.
76748         * lib/stat.c: Don't declare xmalloc explicitly.
76749         Instead, include "xalloc.h".
76750         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76751         xrealloc, and xcalloc return values.
76752         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76753         Improve comment.
76754         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76755
76756 2003-06-07  Bruno Haible  <bruno@clisp.org>
76757
76758         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76759         avoid AC_CONFIG_LINKS.
76760         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76761         fnmatch.h, to avoid AC_CONFIG_LINKS.
76762         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76763
76764 2003-06-07  Bruno Haible  <bruno@clisp.org>
76765
76766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76767         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76768         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76769         directory.
76770         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76771         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76772         directory.
76773
76774 2003-06-06  Jim Meyering  <jim@meyering.net>
76775
76776         Merge from coreutils.
76777         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76778         Consolidate declarations and initializations of *_base* locals.
76779
76780         Merge from coreutils.
76781         This avoids a core dump on systems without GNU putenv,
76782         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76783         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76784         (unsetenv): New static function, from GNU libc.
76785         (rpl_putenv): Use it.
76786
76787         * lib/modechange.c: Remove trailing blanks.
76788
76789         Merge from coreutils.
76790         * lib/fsusage.c: Remove declaration of statfs.
76791         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76792
76793         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76794
76795 2003-06-06  Jim Meyering  <jim@meyering.net>
76796
76797         * lib/stdbool_.h: Renamed from stdbool.h.in.
76798
76799 2003-06-06  Jim Meyering  <jim@meyering.net>
76800             Bruno Haible  <bruno@clisp.org>
76801
76802         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76803         Adjust Makefile.am snippet not to redirect directly to target.
76804         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76805
76806 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76807
76808         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76809         mismatch, look in future quarters as well as past.  This fixes a
76810         bug when processing fall-backwards gaps immediately after a long
76811         period of daylight-saving time.
76812
76813         * lib/mktime.c: Assume freestanding C89 or better.
76814         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76815         (__P): Remove; not used.
76816         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76817         (mktime, not_equal_tm, print_tm, check_result,
76818         main): Use prototypes.  Use const * where appropriate.
76819         (main): Fix typo in testing code that uncovered by above changes.
76820         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76821
76822 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76823
76824         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76825         locale.h, localeconv.  This merges changes from coreutils.
76826
76827         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76828         It can be removed after the next Autoconf is released.
76829         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76830         needed.
76831
76832 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76833
76834         * lib/mktime.c: Fix Debian bug 177940
76835         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76836         (localtime_offset): Now long int, not time_t, because we want it
76837         to be guaranteed to be signed.  All uses changed.
76838         (__mktime_internal): If overflow would occur when adding offset,
76839         don't add it.
76840
76841         Merge 'human' changes from coreutils.  Rewrite to support
76842         locale-specific notations like thousands separators.
76843         * lib/human.c: Simplify authorship notice.
76844         Include human.h immediately after config.h.
76845         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76846         <limits.h>: Do not include, since human.h does.
76847         (SIZE_MAX, UINTMAX_MAX): New macros.
76848         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76849         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76850         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76851         (power_letter): Renamed from suffixes.
76852         (generate_suffix_backwards): Remove.
76853         (adjust_value): Now takes int style (because of human.h changes)
76854         and long double value (for greater precision on some platforms).
76855         (group_number): New function.
76856         (human_readable): Use it.  Use integer options, not enum.
76857         Put the options before the sizes in the arg list.
76858         Support all the new options.
76859         The old human_readable function has been removed;
76860         use inttostr.h instead.
76861         (human_readable, default_block_size, humblock):
76862         Use uintmax_t, not int, for block sizes.
76863         (human_readable_inexact, block_size_types): Remove.
76864         (block_size_opts): New constant.
76865         (human_options): Renamed from human_block_size, with new signature
76866         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76867         * lib/human.h: Add copyright and authorship notice.
76868         Include <limits.h> and <stdbool.h> unconditionally.
76869         (PARAMS): Remove.  All uses removed.
76870         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76871         (enum human_inexact_style): Remove tag; now a nameless enum.
76872         (human_floor, human_ceiling, human_round_to_even): Now have
76873         values 2, 0, 1 rather than -1, 1, 0.
76874         (human_group_digits, human_suppress_point_zero, human_autoscale,
76875         human_base_1024, human_SI, human_B): New constants.
76876         (human_readable_inexact, human_block_size): Remove.
76877         (human_readable): Size args are now uintmax_t, not int.
76878         (human_options): New decl.
76879
76880         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76881         unnecessary now that we assume C89 or better.  This change
76882         imported from coreutils.
76883
76884         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76885         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76886         in the 2003-05-30 sync from glibc.
76887
76888         .h files should stand alone, but we shouldn't include <sys/types.h>
76889         if we can get away with just <stddef.h>.
76890
76891         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76892         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76893         rather than <sys/types.h>, as we merely need size_t.
76894         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76895         to get size_t.
76896         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76897         Include <stdio.h>, to get FILE.
76898         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76899         memcasecmp.h has included <stddef.h> and all we need is size_t.
76900         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76901         our interface, instead of including <sys/types.h>
76902
76903 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76904
76905         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76906         now, as glibc mktime is buggy on non-glibc systems.
76907
76908 2003-06-03  Karl Berry  <karl@gnu.org>
76909
76910         * config/config.sub: update from prep.
76911
76912 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76913
76914         [from coreutils]
76915         Fix some minor time-related bugs with POSIX time arguments.
76916         Some valid time stamps were being rejected (notably -1, and
76917         time stamps before 1900 on 64-bit hosts).  And some invalid
76918         time stamps were being accepted, e.g. September 31.
76919
76920         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76921         that we can return (time_t) -1 successfully.
76922         * lib/posixtm.c: Likewise.
76923         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76924         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76925         (t): Remove static var.
76926         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76927         of static var.  All uses changed.
76928         (year): Do not reject years before 1900; they can occur with
76929         64-bit time_t.
76930         (posix_time_parse): Do not check for out-of-range components;
76931         that is now the caller's responsibility, since our checks were
76932         only approximations.
76933         (posixtime): Use mktime to check for out-of-range components,
76934         since it knows them exactly.
76935         If mktime returns (time_t) -1, check whether an error actually occurred
76936         by invoking localtime on -1.
76937         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76938         posixtime failures better.
76939         Improve the test data (in comments only).
76940
76941 2003-06-02  Karl Berry  <karl@gnu.org>
76942
76943         * config/mkinstalldirs (version): new variable.
76944         (--version): new option.
76945         (usage): improve message.
76946
76947 2003-05-30  Karl Berry  <karl@gnu.org>
76948
76949         * lib/mktime.c: update from libc.
76950
76951 2003-05-30  Bruno Haible  <bruno@clisp.org>
76952
76953         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76954         * config/config.rpath: Upgrade to gettext-0.12.1.
76955
76956 2003-05-30  Bruno Haible  <bruno@clisp.org>
76957
76958         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76959         * m4/nls.m4: New file, from gettext-0.12.1.
76960         * m4/po.m4: New file, from gettext-0.12.1.
76961         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76962
76963 2003-05-30  Bruno Haible  <bruno@clisp.org>
76964
76965         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76966         * lib/localcharset.h: Likewise.
76967         * lib/localcharset.c: Likewise.
76968
76969 2003-05-29  Karl Berry  <karl@gnu.org>
76970
76971         * config/config.rpath: update from gettext.
76972
76973 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76974
76975         Assume the headers required for C89 freestanding compilers.
76976         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76977         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76978         * m4/human.m4 (gl_HUMAN): Likewise.
76979         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76980         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76981         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76982         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76983         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76984         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76985
76986 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76987
76988         Assume the headers required for C89 freestanding compilers.
76989         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76990         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76991         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76992         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76993         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76994         define, since <limits.h> is guaranteed to do that.
76995         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76996         * lib/exclude.c: Include <stdbool.h> unconditionally.
76997         * lib/tempname.c: Include <stddef.h> unconditionally.
76998         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76999         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77000         <stddef.h> does that.
77001         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77002         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77003         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77004         needed.
77005         * lib/xstrtol.c: Likewise.
77006         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77007         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77008
77009         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77010         warnings on some platforms.
77011
77012         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77013         arbitrarily.
77014
77015 2003-05-26  Jim Meyering  <jim@meyering.net>
77016
77017         Merge in a change from coreutils:
77018         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77019         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77020         that condition, rather than `-1' which is slightly misleading.
77021         Change the name of the cache variable to have the gl_ prefix.
77022         Prompted by a patch from Richard Dawe for DJGPP.
77023
77024 2003-05-24  Karl Berry  <karl@gnu.org>
77025
77026         * config/config.guess: update from prep.
77027
77028 2003-05-22  Karl Berry  <karl@gnu.org>
77029
77030         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77031
77032 2003-05-20  Karl Berry  <karl@gnu.org>
77033
77034         * config/config.guess: update from prep.
77035
77036 2003-05-18  Karl Berry  <karl@gnu.org>
77037
77038         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77039         might actually be set by the user.
77040
77041         * config/depcomp, install-sh, mdate-sh: update from automake.
77042
77043 2003-05-17  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77046         invalid expansion for AC_EGREP_CPP.
77047         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77048         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77049         Suggested by Akim Demaille <akim@epita.fr> in
77050         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77051
77052 2003-05-12  Jim Meyering  <jim@meyering.net>
77053
77054         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77055         the space-padded-by-default conversion specifiers, %e, %k, %l.
77056
77057 2003-05-12  Bruno Haible  <bruno@clisp.org>
77058
77059         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77060         the string is longer than 4 KB.
77061
77062 2003-05-11  Karl Berry  <karl@gnu.org>
77063
77064         * config/config.{guess,sub}: update from prep.
77065
77066 2003-05-09  Bruno Haible  <bruno@clisp.org>
77067
77068         * modules/error: Add m4/strerror_r.m4 to file list.
77069
77070 2003-05-03  Bruno Haible  <bruno@clisp.org>
77071
77072         Upgrade to Unicode-4.0.
77073         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77074         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77075         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77076         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77077         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77078         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77079         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77080         Change width of U+E0100..U+E01EF from 1 to 0.
77081
77082 2003-04-25  Jim Meyering  <jim@meyering.net>
77083
77084         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77085         of type size_t, not int.
77086
77087 2003-04-25  Bruno Haible  <bruno@clisp.org>
77088
77089         * lib/copy-file.c: Include <stddef.h>, for size_t.
77090
77091 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77092
77093         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77094         code which expansion is under static control.  Patch imported from
77095         Akim Demaille's patch to Bison; see
77096         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77097
77098 2003-04-14  Bruno Haible  <bruno@clisp.org>
77099
77100         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77101
77102 2003-04-11  Jim Meyering  <jim@meyering.net>
77103
77104         Merge changes from Coreutils.
77105
77106         2003-03-22  Jim Meyering  <jim@meyering.net>
77107
77108         * lib/strftime.c (widen): Cast alloca return value to proper type.
77109
77110         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77111
77112         From GNU libc.
77113         * lib/strftime.c (my_strftime): Handle very large width
77114         specifications for numeric values correctly.  Improve checks for
77115         overflow.
77116
77117         2003-01-19  Jim Meyering  <jim@meyering.net>
77118
77119         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77120         definitions.
77121         (nl_get_alt_digit) [! defined my_strftime]: Define.
77122         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77123         _nl_get_alt_digit and _nl_get_walt_digit.
77124
77125         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77126         libc. These changes have no effect outside of _LIBC.
77127
77128 2003-04-10  Bruno Haible  <bruno@clisp.org>
77129
77130         * modules/findprog: New file.
77131         * MODULES.html.sh (func_all_modules): Add it.
77132
77133 2003-04-10  Bruno Haible  <bruno@clisp.org>
77134
77135         * m4/findprog.m4: New file.
77136         * m4/eaccess.m4: New file.
77137
77138 2003-04-10  Bruno Haible  <bruno@clisp.org>
77139
77140         * lib/findprog.h: New file, from GNU gettext.
77141         * lib/findprog.c: New file, from GNU gettext.
77142
77143 2003-04-05  Jim Meyering  <jim@meyering.net>
77144
77145         Merge changes from Coreutils.
77146
77147         * lib/exclude.h (PARAMS): Remove definition and uses.
77148         * lib/exclude.c: Remove uses of `PARAMS'.
77149
77150         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77151         Add test-cases for DOS filenames. Declare program_name.
77152         (main): Set up program_name.  Patch by Rich Dawe.
77153
77154         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77155         error from mntctl.
77156         Use mntctl's return value to drive the entry-processing loop, since
77157         we can't rely on the value of the vmt_length member in the last
77158         entry.  On some systems doing so could result in exhausting
77159         virtual memory.  Based in part on a patch from Mike Jetzer.
77160
77161 2003-04-04  Bruno Haible  <bruno@clisp.org>
77162
77163         * modules/linebreak: New file.
77164         * MODULES.html.sh (func_all_modules): Add it.
77165
77166 2003-04-04  Bruno Haible  <bruno@clisp.org>
77167
77168         * m4/linebreak.m4: New file.
77169
77170 2003-04-04  Bruno Haible  <bruno@clisp.org>
77171
77172         * lib/linebreak.h: New file, from GNU gettext.
77173         * lib/linebreak.c: New file, from GNU gettext with slight
77174         modifications.
77175         * lib/lbrkprop.h: New file, from GNU gettext.
77176
77177 2003-04-03  Bruno Haible  <bruno@clisp.org>
77178
77179         * modules/utf8-ucs4: New file.
77180         * modules/utf16-ucs4: New file.
77181         * modules/ucs4-utf8: New file.
77182         * modules/ucs4-utf16: New file.
77183         * MODULES.html.sh (func_all_modules): Add them.
77184
77185 2003-04-03  Bruno Haible  <bruno@clisp.org>
77186
77187         * m4/utf-ucs4.m4: New file.
77188         * m4/ucs4-utf.m4: New file.
77189
77190 2003-04-03  Bruno Haible  <bruno@clisp.org>
77191
77192         * lib/utf8-ucs4.h: New file, from GNU gettext.
77193         * lib/utf16-ucs4.h: New file, from GNU gettext.
77194         * lib/ucs4-utf8.h: New file, from GNU gettext.
77195         * lib/ucs4-utf16.h: New file, from GNU gettext.
77196
77197 2003-04-02  Bruno Haible  <bruno@clisp.org>
77198
77199         * modules/binary-io: New file.
77200         * MODULES.html.sh (func_all_modules): Add it.
77201
77202 2003-04-02  Bruno Haible  <bruno@clisp.org>
77203
77204         * lib/binary-io.h: New file, from GNU gettext.
77205
77206 2003-04-01  Bruno Haible  <bruno@clisp.org>
77207
77208         * modules/pathname: New file.
77209         * MODULES.html.sh (func_all_modules): Add it.
77210
77211 2003-04-01  Bruno Haible  <bruno@clisp.org>
77212
77213         * lib/pathname.h: New file, from GNU gettext.
77214         * lib/concatpath.c: New file, from GNU gettext.
77215
77216 2003-03-30  Bruno Haible  <bruno@clisp.org>
77217
77218         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77219
77220 2003-03-30  Bruno Haible  <bruno@clisp.org>
77221
77222         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77223         function chown() doesn't exist.
77224
77225 2003-03-28  Bruno Haible  <bruno@clisp.org>
77226
77227         * modules/copy-file: New file.
77228         * MODULES.html.sh (func_all_modules): Add it.
77229
77230 2003-03-28  Bruno Haible  <bruno@clisp.org>
77231
77232         * m4/copy-file.m4: New file.
77233
77234 2003-03-28  Bruno Haible  <bruno@clisp.org>
77235
77236         * lib/copy-file.h: New file, from GNU gettext.
77237         * lib/copy-file.c: New file, from GNU gettext.
77238
77239 2003-03-18  Jim Meyering  <jim@meyering.net>
77240
77241         * lib/quote.c (quote_n): Fix typo in comment.
77242
77243 2003-03-18  Bruno Haible  <bruno@clisp.org>
77244
77245         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77246         checking.
77247         * m4/onceonly_2_57.m4: Likewise.
77248
77249 2003-03-17  Bruno Haible  <bruno@clisp.org>
77250
77251         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77252         (m4_quote): Remove macro.
77253         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77254
77255 2003-03-14  Jim Meyering  <jim@meyering.net>
77256
77257         Merge changes from Coreutils.
77258         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77259         to be const, in order to avoid warnings.
77260         (obstack_room): Likewise.
77261         (obstack_empty_p): Likewise.
77262
77263 2003-03-14  Bruno Haible  <bruno@clisp.org>
77264
77265         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77266         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77267
77268 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77269
77270         Merge changes from Bison.
77271         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77272         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77273         when compiling Bison 1.875's `bitset bset = obstack_alloc
77274         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77275         * lib/hash.c: Include <stdbool.h> unconditionally.
77276
77277 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77278
77279         * m4/onceonly.m4 (m4_quote): New macro.
77280         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77281         Quote AC_FOREACH variable-expansions properly.
77282
77283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77284
77285         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77286
77287 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77288
77289         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77290         Reported by Bruce Becker; see:
77291         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77292
77293 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77294             Bruno Haible  <bruno@clisp.org>
77295
77296         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77297         Reported by John Hughes, see
77298         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77299
77300 2003-02-20  Bruno Haible  <bruno@clisp.org>
77301
77302         * MODULES.html.sh (func_all_modules): Add poll.
77303
77304 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77305
77306         * modules/poll: New file.
77307
77308 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77309
77310         * lib/poll_.h: New file.
77311         * lib/poll.c: New file.
77312
77313 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77314
77315         * m4/poll.m4: New file.
77316
77317 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77318
77319         * modules/mathl: New file.
77320
77321 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77322
77323         * lib/mathl.h: New file.
77324         * lib/acosl.c: New file.
77325         * lib/asinl.c: New file.
77326         * lib/atanl.c: New file.
77327         * lib/ceill.c: New file.
77328         * lib/cosl.c: New file.
77329         * lib/expl.c: New file.
77330         * lib/floorl.c: New file.
77331         * lib/frexpl.c: New file.
77332         * lib/ldexpl.c: New file.
77333         * lib/logl.c: New file.
77334         * lib/sincosl.c: New file.
77335         * lib/sinl.c: New file.
77336         * lib/sqrtl.c: New file.
77337         * lib/tanl.c: New file.
77338         * lib/trigl.c: New file.
77339         * lib/trigl.h: New file.
77340
77341 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77342
77343         * m4/mathl.m4: New file.
77344
77345 2003-02-18  Bruno Haible  <bruno@clisp.org>
77346
77347         * MODULES.html.sh (func_all_modules): Add mathl.
77348
77349 2003-02-17  Bruno Haible  <bruno@clisp.org>
77350
77351         * modules/mkdtemp: New module.
77352         * MODULES.html.sh (func_all_modules): Add it.
77353
77354 2003-02-17  Bruno Haible  <bruno@clisp.org>
77355
77356         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77357
77358 2003-02-17  Bruno Haible  <bruno@clisp.org>
77359
77360         * lib/mkdtemp.h: New file, from GNU gettext.
77361         * lib/mkdtemp.c: New file, from GNU gettext.
77362
77363 2003-02-02  Jim Meyering  <jim@meyering.net>
77364
77365         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77366         e.g. glibc-2.2.93.
77367
77368 2003-01-31  Bruno Haible  <bruno@clisp.org>
77369
77370         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77371         'rpl_rename'.
77372         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77373         'rpl_strnlen'.
77374         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77375         'rpl_strtod'.
77376         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77377         'rpl_utime'.
77378
77379 2003-01-31  Bruno Haible  <bruno@clisp.org>
77380
77381         * lib/rename.c: #undef rename before defining rpl_rename.
77382         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77383
77384 2003-01-30  Bruno Haible  <bruno@clisp.org>
77385
77386         * modules/vasnprintf, modules/vasprintf: New modules.
77387         * MODULES.html.sh (func_all_modules): Add them.
77388
77389 2003-01-30  Bruno Haible  <bruno@clisp.org>
77390
77391         * m4/signed.m4: New file, from GNU gettext.
77392         * m4/longdouble.m4: New file, from GNU gettext.
77393         * m4/wchar_t.m4: New file, from GNU gettext.
77394         * m4/wint_t.m4: New file, from GNU gettext.
77395         * m4/vasnprintf.m4: New file.
77396         * m4/vasprintf.m4: New file.
77397
77398 2003-01-30  Bruno Haible  <bruno@clisp.org>
77399
77400         * lib/printf-args.h: New file, from GNU gettext.
77401         * lib/printf-args.c: New file, from GNU gettext.
77402         * lib/printf-parse.h: New file, from GNU gettext.
77403         * lib/printf-parse.c: New file, from GNU gettext.
77404         * lib/vasnprintf.h: New file, from GNU gettext.
77405         * lib/vasnprintf.c: New file, from GNU gettext.
77406         * lib/asnprintf.c: New file, from GNU gettext.
77407         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77408         * lib/vasprintf.c: New file, from GNU gettext.
77409         * lib/asprintf.c: New file, from GNU gettext.
77410
77411 2003-01-29  Bruno Haible  <bruno@clisp.org>
77412
77413         * modules/stpncpy: New module.
77414         * MODULES.html.sh (func_all_modules): Add it.
77415
77416 2003-01-29  Bruno Haible  <bruno@clisp.org>
77417
77418         * m4/stpncpy.m4: New file.
77419
77420 2003-01-29  Bruno Haible  <bruno@clisp.org>
77421
77422         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77423         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77424
77425 2003-01-28  Bruno Haible  <bruno@clisp.org>
77426
77427         * modules/c-ctype: New module.
77428         * MODULES.html.sh (func_all_modules): Add it.
77429
77430 2003-01-28  Bruno Haible  <bruno@clisp.org>
77431
77432         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77433         Paul Eggert.
77434         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77435         Paul Eggert.
77436
77437 2003-01-27  Bruno Haible  <bruno@clisp.org>
77438
77439         * modules/xsetenv: New module.
77440         * MODULES.html.sh (func_all_modules): Add it.
77441
77442 2003-01-27  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/xsetenv.h: New file, from GNU gettext.
77445         * lib/xsetenv.c: New file, from GNU gettext.
77446
77447 2003-01-23  Jim Meyering  <jim@meyering.net>
77448
77449         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77450         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77451
77452 2003-01-23  Bruno Haible  <bruno@clisp.org>
77453
77454         * modules/minmax: New module.
77455         * MODULES.html.sh (func_all_modules): Add it.
77456
77457 2003-01-23  Bruno Haible  <bruno@clisp.org>
77458
77459         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77460         Eggert.
77461
77462 2003-01-22  Bruno Haible  <bruno@clisp.org>
77463
77464         * modules/exit: New module.
77465         * MODULES.html.sh (func_all_modules): Add it.
77466
77467 2003-01-22  Bruno Haible  <bruno@clisp.org>
77468
77469         * lib/exit.h: New file, from GNU gettext.
77470
77471 2003-01-19  Bruno Haible  <bruno@clisp.org>
77472
77473         * gnulib-tool: Recognize option --extract-maintainer.
77474         (func_get_maintainer): New function.
77475         * modules/*: Add Maintainer entry.
77476
77477 2003-01-16  Jim Meyering  <jim@meyering.net>
77478
77479         * m4/regex.m4: The `regex' struct is both input and output.
77480         Initialize it before each use.  Patch by Tim Waugh.
77481
77482 2003-01-16  Bruno Haible  <bruno@clisp.org>
77483
77484         * MODULES.html.sh: Add a table of contents. Add the module name as
77485         leftmost column. Add hyperlinks.
77486
77487 2003-01-15  Bruno Haible  <bruno@clisp.org>
77488
77489         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77490
77491 2003-01-15  Bruno Haible  <bruno@clisp.org>
77492
77493         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77494         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77495         suffix.
77496
77497 2003-01-15  Bruno Haible  <bruno@clisp.org>
77498
77499         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77500
77501 2003-01-15  Bruno Haible  <bruno@clisp.org>
77502
77503         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77504         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77505
77506 2003-01-14  Jim Meyering  <jim@meyering.net>
77507
77508         * lib/same.c (same_name): Tweak a comment.
77509
77510 2003-01-14  Bruno Haible  <bruno@clisp.org>
77511
77512         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77513         when a string comparison is sufficient.
77514
77515 2003-01-14  Bruno Haible  <bruno@clisp.org>
77516
77517         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77518         'unsigned int'.
77519
77520 2003-01-14  Bruno Haible  <bruno@clisp.org>
77521
77522         * lib/hash-pjw.c: Add comment about low quality of this function.
77523
77524 2003-01-13  Bruno Haible  <bruno@clisp.org>
77525
77526         * modules/stpcpy: Distribute lib/stpcpy.h.
77527         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77528
77529 2003-01-13  Bruno Haible  <bruno@clisp.org>
77530
77531         * modules/*: Add a description.
77532         * modules/strpbrk: Fix Makefile.am snippet.
77533         * modules/strtoimax: Fix dependencies.
77534         * modules/strtoumax: Likewise.
77535
77536 2003-01-13  Bruno Haible  <bruno@clisp.org>
77537
77538         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77539         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77540         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77541
77542 2003-01-13  Bruno Haible  <bruno@clisp.org>
77543
77544         * gnulib-tool (func_create_testdir): Store config/* files in the main
77545         directory.
77546         * config.rpath: Move to ...
77547         * config/config.rpath: ... here.
77548         * modules/gettext: Contains config/config.rpath, not config.rpath.
77549         * modules/iconv: Likewise.
77550
77551 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77552
77553         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77554         to avoid collisions with libcurses and libreadline.
77555
77556         * m4/getstr.m4: Remove.
77557         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77558
77559 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77560
77561         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77562         to avoid collisions with libcurses and libreadline.
77563
77564         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77565         * lib/getstr.h, getstr.c: Remove.
77566         * lib/getline.c: Include "getline.h", to check interface.
77567         Move body of old getstr.c here: this defines MIN_CHUNK and
77568         declares getdelim2, which is renamed from getstr.
77569         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77570
77571         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77572         All uses changed.
77573         * lib/linebuffer.h: Likewise.
77574         (readline): Remove backward-compatibility macro.
77575
77576 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77577
77578         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77579         to avoid collisions with libcurses and libreadline.
77580         * getstr: Remove.
77581         * MODULES.html.sh: Remove getstr.
77582         * modules/getline: Depend on unlocked-io, not getstr.
77583
77584 2003-01-12  Jim Meyering  <jim@meyering.net>
77585
77586         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77587
77588 2003-01-10  Bruno Haible  <bruno@clisp.org>
77589
77590         * modules/alloca: Change Makefile.am requirements. Simplify Include
77591         requirements. Add lib/alloca_.h to file list.
77592
77593 2003-01-10  Bruno Haible  <bruno@clisp.org>
77594
77595         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77596
77597 2003-01-10  Bruno Haible  <bruno@clisp.org>
77598
77599         * lib/alloca_.h: New file.
77600         * lib/getdate.y: Unconditionally include alloca.h.
77601         * lib/makepath.c: Likewise.
77602         * lib/setenv.c: Likewise.
77603         * lib/userspec.c: Likewise.
77604
77605 2003-01-09  Karl Berry  <karl@gnu.org>
77606
77607         * MODULES.html.sh: include `dirname $0` in PATH, to find
77608         gnulib-tool.
77609
77610 2003-01-09  Bruno Haible  <bruno@clisp.org>
77611
77612         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77613         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77614
77615 2003-01-09  Bruno Haible  <bruno@clisp.org>
77616
77617         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77618
77619 2003-01-09  Bruno Haible  <bruno@clisp.org>
77620
77621         * lib/stdbool.h.in: New file.
77622
77623 2003-01-09  Bruno Haible  <bruno@clisp.org>
77624
77625         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77626         * MODULES.html.sh: Likewise.
77627
77628 2003-01-08  Jim Meyering  <jim@meyering.net>
77629
77630         * lib/full-write.c: Undefine and define-away `const' after inclusion
77631         of errno.h, not before.  Suggestion from Bruno Haible.
77632
77633 2003-01-08  Bruno Haible  <bruno@clisp.org>
77634
77635         * modules/full-read: Depend on full-write.
77636
77637 2003-01-08  Bruno Haible  <bruno@clisp.org>
77638
77639         * lib/safe-read.c: Include specification header first, to ensure its
77640         selfcontainedness.
77641         * lib/full-write.c: Likewise.
77642
77643 2003-01-07  Jim Meyering  <jim@meyering.net>
77644
77645         * lib/full-write.c: Rework so that it may serve to define full_read,
77646         too.
77647         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77648
77649 2003-01-07  Bruno Haible  <bruno@clisp.org>
77650
77651         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77652         <inttypes.h>.
77653         * lib/xstrtol.h: Likewise.
77654         * lib/xstrtoimax.c: Likewise.
77655         * lib/xstrtoumax.c: Likewise.
77656         * lib/human.h: Likewise.
77657
77658         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77659         on systems that have <inttypes.h> but not <stdint.h>.
77660
77661 2003-01-07  Bruno Haible  <bruno@clisp.org>
77662
77663         * MODULES.html.sh: Add copyright notice.
77664         (missed_files): Omit CVS directory entries.
77665         (func_module): Make it work with sed-3.02.
77666         * MODULES.txt: Remove file.
77667
77668 2003-01-06  Jim Meyering  <jim@meyering.net>
77669
77670         * lib/version-etc.c: Update year in translatable copyright string.
77671
77672 2003-01-03  Karl Berry  <karl@gnu.org>
77673
77674         * config/config.{guess,sub}: update from prep.
77675
77676 2003-01-02  Karl Berry  <karl@gnu.org>
77677
77678         * doc/COPYING.DOC: belatedly updated to 1.2.
77679
77680 2003-01-01  Karl Berry  <karl@gnu.org>
77681
77682         * gnulib-tool (func_verify_module): report module name $module in
77683         error message, not $1.
77684         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77685         be created, only if it doesn't exist.
77686         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77687
77688 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77689
77690         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77691
77692 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77693
77694         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77695         memcmp if strcoll doesn't work.
77696
77697 2002-12-31  Bruno Haible  <bruno@clisp.org>
77698
77699         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77700         nonempty.
77701
77702 2002-12-31  Bruno Haible  <bruno@clisp.org>
77703
77704         * lib/memcoll.c (STRCOLL): New macro.
77705         (memcoll): Use it.
77706
77707 2002-12-31  Bruno Haible  <bruno@clisp.org>
77708
77709         * lib/localcharset.h: New file.
77710         * lib/localcharset.c: Include it.
77711         * lib/unicodeio.c: Likewise.
77712
77713 2002-12-31  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77716         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77717
77718 2002-12-31  Bruno Haible  <bruno@clisp.org>
77719
77720         * lib/getline.h: Include <stddef.h>, for size_t.
77721
77722         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77723         * lib/unicodeio.c: Don't include <stddef.h>.
77724
77725 2002-12-31  Bruno Haible  <bruno@clisp.org>
77726
77727         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77728         HAVE_TM_ZONE.
77729
77730 2002-12-24  Karl Berry  <karl@gnu.org>
77731
77732         * config/config.guess: update from prep.
77733
77734 2002-12-24  Bruno Haible  <bruno@clisp.org>
77735
77736         General infrasructure.
77737         * m4/README: Rewritten.
77738         * m4/onceonly.m4: New file.
77739         * m4/onceonly_2_57.m4: New file.
77740
77741         Module atexit.
77742         * m4/atexit.m4: New file.
77743
77744         Module strtod.
77745         * m4/strtod.m4: New file.
77746
77747         Module strtol.
77748         * m4/strtol.m4: New file.
77749
77750         Module strtoul.
77751         * m4/strtoul.m4: New file.
77752
77753         Module memchr.
77754         * m4/memchr.m4: New file.
77755
77756         Module memcmp.
77757         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77758         (jm_FUNC_MEMCMP): Invoke it.
77759
77760         Module memcpy.
77761         * m4/memcpy.m4: New file.
77762
77763         Module memmove.
77764         * m4/memmove.m4: New file.
77765
77766         Module memset.
77767         * m4/memset.m4: New file.
77768
77769         Module strcspn.
77770         * m4/strcspn.m4: New file.
77771
77772         Module strpbrk.
77773         * m4/strpbrk.m4: New file.
77774
77775         Module strstr.
77776         * m4/strstr.m4: New file.
77777
77778         Module strerror.
77779         * m4/strerror.m4: New file.
77780
77781         Module mktime.
77782         * m4/mktime.m4: Renamed from jm-mktime.m4.
77783         (gl_PREREQ_MKTIME): New macro.
77784         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77785
77786         Module malloc.
77787         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77788         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77789         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77790
77791         Module realloc.
77792         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77793         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77794         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77795
77796         Module strftime.
77797         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77798         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77799         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77800         gl_TM_GMTOFF.
77801         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77802
77803         Module xalloc.
77804         * m4/xalloc.m4: New file.
77805
77806         Module alloca.
77807         * m4/alloca.m4: New file.
77808
77809         Module putenv.
77810         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77811         (jm_FUNC_PUTENV): Invoke it.
77812
77813         Module setenv.
77814         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77815         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77816         when invoked twice.
77817         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77818         gt_FUNC_SETENV.
77819
77820         Module memrchr.
77821         * m4/memrchr.m4: New file.
77822
77823         Module stpcpy.
77824         * m4/stpcpy.m4: New file.
77825
77826         Module strcase.
77827         * m4/strcase.m4: New file.
77828
77829         Module strdup.
77830         * m4/strdup.m4: New file.
77831
77832         Module strnlen.
77833         * m4/strnlen.m4: New file.
77834
77835         Module strndup.
77836         * m4/strndup.m4: New file.
77837
77838         Module xstrtod.
77839         * m4/xstrtod.m4: New file.
77840
77841         Module xstrtol.
77842         * m4/xstrtol.m4: New file.
77843
77844         Module getdate.
77845         * m4/getdate.m4: New file.
77846
77847         Module unlocked-io.
77848         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77849         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77850         * m4/jm-glibc-io.m4n: Remove file.
77851
77852         Module long-options.
77853         * m4/long-options.m4: New file.
77854
77855         Module md5.
77856         * m4/md5.m4: New file.
77857
77858         Module sha.
77859         * m4/sha.m4: New file.
77860
77861         Module getstr.
77862         * m4/getstr.m4: New file.
77863
77864         Module getline.
77865         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77866         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77867         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77868         simply getline. Infoke gl_PREREQ_GETLINE.
77869
77870         Module obstack.
77871         * m4/obstack.m4: New file.
77872
77873         Module hash.
77874         * m4/hash.m4: New file.
77875
77876         Module readtokens.
77877         * m4/readtokens.m4: New file.
77878
77879         Module strverscmp.
77880         * m4/strverscmp.m4: New file.
77881
77882         Module stdbool.
77883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77884         OSF/1.
77885
77886         Module strtoll.
77887         * m4/strtoll.m4: New file.
77888
77889         Module strtoull.
77890         * m4/strtoull.m4: New file.
77891
77892         Module strtoimax.
77893         * m4/strtoimax.m4: New file.
77894
77895         Module strtoumax.
77896         * m4/strtoumax.m4: New file.
77897
77898         Module xstrtoimax.
77899         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77900         jm_AC_PREREQ_XSTRTOIMAX.
77901         Moved the strtol prerequisites to strtol.m4.
77902         Moved the strtoll prerequisites to strtoll.m4.
77903         Moved the strtoimax prerequisites to strtoimax.m4.
77904
77905         Module xstrtoumax.
77906         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77907         jm_AC_PREREQ_XSTRTOUMAX.
77908         Moved the strtoul prerequisites to strtoul.m4.
77909         Moved the strtoull prerequisites to strtoull.m4.
77910         Moved the strtoumax prerequisites to strtoumax.m4.
77911
77912         Module chown.
77913         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77914         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77915
77916         Module dup2.
77917         * m4/dup2.m4: New file.
77918
77919         Module ftruncate.
77920         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77921         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77922
77923         Module getgroups.
77924         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77925         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77926
77927         Module gettimeofday.
77928         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77929         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77930         gl_PREREQ_GETTIMEOFDAY.
77931
77932         Module mkdir.
77933         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77934         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77935
77936         Module mkstemp.
77937         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77938         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77939         jm_AC_TYPE_UINTMAX_T.
77940         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77941
77942         Module stat.
77943         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77944         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77945
77946         Module lstat.
77947         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77948         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77949
77950         Module timespec.
77951         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77952         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77953         * m4/st_mtim.m4: Indentation.
77954
77955         Module nanosleep.
77956         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77957         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77958         gl_PREREQ_NANOSLEEP.
77959
77960         Module regex.
77961         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77962         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77963         (gl_REGEX): New macro.
77964
77965         Module rename.
77966         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77967         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77968
77969         Module rmdir.
77970         * m4/rmdir.m4: New file.
77971
77972         Module utime.
77973         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77974         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77975         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77976
77977         Module dirname.
77978         * m4/dirname.m4: New file.
77979
77980         Module getopt.
77981         * m4/getopt.m4: New file.
77982
77983         Module unistd-safer.
77984         * m4/unistd-safer.m4: New file.
77985
77986         Module fnmatch.
77987         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77988         declaration.
77989         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77990         (gl_FUNC_FNMATCH_POSIX): New macro.
77991         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77992         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77993         simply fnmatch.
77994
77995         Module exclude.
77996         * m4/exclude.m4: New file.
77997
77998         Module human.
77999         * m4/human.m4: New file.
78000
78001         Module acl.
78002         * m4/acl.m4: Nop.
78003
78004         Module backupfile.
78005         * m4/backupfile.m4: New file.
78006         * m4/d-ino.m4: Indentation.
78007
78008         Module fsusage.
78009         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78010         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78011         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78012
78013         Module dirfd.
78014         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78015         requirements.
78016
78017         Module euidaccess.
78018         * m4/euidaccess.m4: New file.
78019
78020         Module file-type.
78021         * m4/file-type.m4: New file.
78022
78023         Module fileblocks.
78024         * m4/fileblocks.m4: New file.
78025
78026         Module filemode.
78027         * m4/filemode.m4: New file.
78028
78029         Module isdir.
78030         * m4/isdir.m4: New file.
78031
78032         Module lchown.
78033         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78034         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78035
78036         Module makepath.
78037         * m4/makepath.m4: New file.
78038
78039         Module modechange.
78040         * m4/modechange.m4: New file.
78041
78042         Module mountlist.
78043         * m4/mountlist.m4: New file.
78044         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78045         Indentation.
78046
78047         Module path-concat.
78048         * m4/path-concat.m4: New file.
78049
78050         Module pathmax.
78051         * m4/pathmax.m4: New file.
78052
78053         Module same.
78054         * m4/same.m4: New file.
78055
78056         Module save-cwd.
78057         * m4/save-cwd.m4: New file.
78058
78059         Module savedir.
78060         * m4/savedir.m4: New file.
78061
78062         Module xgetcwd.
78063         * m4/xgetcwd.m4: New file.
78064         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78065
78066         Module xreadlink.
78067         * m4/xreadlink.m4: New file.
78068
78069         Module safe-read.
78070         * m4/safe-read.m4: New file.
78071
78072         Module safe-write.
78073         * m4/safe-write.m4: New file.
78074
78075         Module closeout.
78076         * m4/closeout.m4: New file.
78077
78078         Module stdio-safer.
78079         * m4/stdio-safer.m4: New file.
78080
78081         Module getpass.
78082         * m4/getpass.m4: New file.
78083
78084         Module getugroups.
78085         * m4/getugroups.m4: New file.
78086
78087         Module group-member.
78088         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78089         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78090
78091         Module idcache.
78092         * m4/idcache.m4: New file.
78093
78094         Module userspec.
78095         * m4/userspec.m4: New file.
78096
78097         Module gettime.
78098         * m4/clock_time.m4: New file.
78099         * m4/gettime.m4: New file.
78100
78101         Module settime.
78102         * m4/settime.m4: New file.
78103
78104         Module posixtm.
78105         * m4/posixtm.m4: New file.
78106
78107         Module gethostname.
78108         * m4/gethostname.m4: New file.
78109
78110         Module canon-host.
78111         * m4/canon-host.m4: New file.
78112
78113         Module gettext.
78114         * m4/codeset.m4: New file, from gettext-0.11.5.
78115         * m4/gettext.m4: New file, from gettext-0.11.5.
78116         * m4/glibc21.m4: New file, from gettext-0.11.5.
78117         * m4/iconv.m4: New file, from gettext-0.11.5.
78118         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78119         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78120         * m4/inttypes.m4: New file, from gettext-0.11.5.
78121         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78122         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78123         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78124         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78125         * m4/lib-link.m4: New file, from gettext-0.11.5.
78126         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78127         * m4/progtest.m4: New file, from gettext-0.11.5.
78128         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78129         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78130         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78131
78132         Module localcharset.
78133         * m4/localcharset.m4: New file.
78134
78135         Module hard-locale.
78136         * m4/hard-locale.m4: New file.
78137
78138         Module mbswidth.
78139         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78140         onceonly macros.
78141         * m4/mbrtowc.m4: Add comment.
78142
78143         Module memcasecmp.
78144         * m4/memcasecmp.m4: New file.
78145
78146         Module memcoll.
78147         * m4/memcoll.m4: New file.
78148
78149         Module unicodeio.
78150         * m4/unicodeio.m4: New file.
78151
78152         Module rpmatch.
78153         * m4/rpmatch.m4: New file.
78154
78155         Module yesno.
78156         * m4/yesno.m4: New file.
78157
78158         Module exitfail.
78159         * m4/exitfail.m4: New file.
78160
78161         Module c-stack.
78162         * m4/c-stack.m4 (gl_C_STACK): New macro.
78163         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78164
78165         Module error.
78166         * m4/error.m4 (gl_ERROR): New macro.
78167         (jm_PREREQ_ERROR): Use onceonly macros.
78168
78169         Module fatal.
78170         * m4/fatal.m4: New file.
78171
78172         Module getloadavg.
78173         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78174         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78175
78176         Module getpagesize.
78177         * m4/getpagesize.m4: New file.
78178
78179         Module getusershell.
78180         * m4/getusershell.m4: New file.
78181
78182         Module physmem.
78183         * m4/physmem.m4: New file.
78184
78185         Module posixver.
78186         * m4/posixver.m4: New file.
78187
78188         Module quotearg.
78189         * m4/quotearg.m4: New file.
78190
78191         Module quote.
78192         * m4/quote.m4: New file.
78193
78194         Module readutmp.
78195         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78196
78197         Module sig2str.
78198         * m4/sig2str.m4: New file.
78199
78200         Other.
78201         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78202         ulonglong.m4.
78203         * m4/intmax_t.m4: New file.
78204         * m4/d-type.m4: Indentation.
78205         * m4/jm-macros.m4: Update.
78206         * m4/prereq.m4 (jm_PREREQ): Update.
78207         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78208         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78209         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78210         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78211         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78212         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78213         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78214         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78215         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78216         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78217         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78218         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78219         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78220         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78221         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78222         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78223         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78224         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78225         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78226
78227 2002-12-24  Bruno Haible  <bruno@clisp.org>
78228
78229         * MODULES.txt: Update according to m4/ changes.
78230
78231         Module gettext.
78232         * config.rpath: New file, from gettext-0.11.5.
78233
78234         * modules/*: New module descriptions.
78235         * gnulib-tool: New file.
78236         * MODULES.html.sh: New file.
78237
78238 2002-12-21  Karl Berry  <karl@gnu.org>
78239
78240         * doc/fdl.texi: update to version 1.2.
78241
78242 2002-12-19  Karl Berry  <karl@gnu.org>
78243
78244         * config/config.guess: update from prep.
78245
78246 2002-12-18  Bruno Haible  <bruno@clisp.org>
78247
78248         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78249         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78250
78251 2002-12-17  Bruno Haible  <bruno@clisp.org>
78252
78253         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78254         stdlib.h, string.h.
78255
78256 2002-12-17  Bruno Haible  <bruno@clisp.org>
78257
78258         * lib/canon-host.c (strdup): Remove unused declaration.
78259
78260         * lib/fsusage.c: Include full_read.h.
78261         (get_fs_usage): Use full_read instead of safe_read.
78262
78263         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78264
78265 2002-12-12  Karl Berry  <karl@gnu.org>
78266
78267         * config/config.guess: update from prep.
78268
78269 2002-12-11  Bruno Haible  <bruno@clisp.org>
78270
78271         * m4/setenv.m4: New file, from gettext-0.11.5.
78272
78273 2002-12-11  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78276         not unsetenv().
78277         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78278         modifications:
78279
78280         2002-12-11  Bruno Haible  <bruno@clisp.org>
78281
78282                 * setenv.c (alloca): Fall back to malloc.
78283                 (freea): New macro.
78284                 (setenv): Use freea() to free memory allocated with alloca().
78285
78286         2002-11-13  Bruno Haible  <bruno@clisp.org>
78287
78288                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78289                 function declarations.
78290                 * unsetenv.c (unsetenv): Likewise.
78291
78292         2002-03-04  Bruno Haible  <bruno@clisp.org>
78293
78294                 Portability to AIX 4.3.3.
78295                 * unsetenv.c: New file, extracted from setenv.c.
78296                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78297
78298         2001-12-20  Bruno Haible  <bruno@clisp.org>
78299
78300                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78301                 use malloc instead. For SunOS 4.
78302
78303         2001-12-11  Bruno Haible  <bruno@clisp.org>
78304
78305                 * setenv.c: Declare alloca.
78306                 (compar_fn_t): New typedef.
78307                 (KNOWN_VALUE, STORE_VALUE): Use it.
78308
78309         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78310         setenv.h.
78311
78312 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78313
78314         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78315         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78316         Choose values that are less likely to collide with system fnmatch
78317         options.
78318         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78319         defined (e.g., a pure POSIX system).
78320         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78321         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78322
78323 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78324
78325         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78326         a pain in practice to deal with generated m4 files.  This change
78327         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78328
78329         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78330         and jm-glibc-io.m4, as they are no longer a special case.
78331         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78332         kludge and the auto-generation stuff.  Check only whether the
78333         functions are declared, not whether they exist, since older hosts
78334         that don't declare the functions can't use the optimization anyway.
78335
78336 2002-12-06  Jim Meyering  <jim@meyering.net>
78337
78338         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78339
78340         Merge in changes from libc's misc/error.c, in preparation
78341         for the merge of gnulib's changes back into libc.
78342
78343         * lib/error.c (_): Define only if not already defined.
78344         Move definition to follow all #include directives.
78345         Include unlocked-io.h only if !_LIBC.
78346         [_LIBC]: Include <libio/libioP.h>.
78347         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78348         (fflush): Tweak definition to use INTUSE.
78349         (putc): Define.
78350
78351 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78352
78353         * lib/alloca.c [defined emacs]: Include "lisp.h".
78354         (xalloc_die) [defined emacs]: New macro.
78355         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78356         [! defined emacs]: Include <xalloc.h>.
78357         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78358         (pointer): Typedef to POINTER_TYPE *.
78359         (malloc): Remove decl; we now always use xmalloc.
78360         (alloca): Use old-style definition, since Emacs needs this.
78361         Check for arithmetic overflow when computing combined size.
78362
78363 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78364
78365         Do not generate unlocked-io.h automatically, since it's easier to
78366         maintain it by hand.
78367
78368         * lib/unlocked-io.h: New file, from GNU diffutils,
78369         but with proper copyright notice and attribution.
78370         * lib/gen-uio: Remove.
78371         * lib/Makefile.am: Add copyright notice.
78372         (libfetish_a_SOURCES): Add unlocked-io.h.
78373         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78374         (DISTCLEANFILES, io_functions): Remove macros.
78375         (EXTRA_DIST): Remove gen_uio.
78376         (unlocked-io.h): Remove rule.
78377
78378 2002-12-04  Jim Meyering  <jim@meyering.net>
78379
78380         Reflect the fact that stat.c and lstat.c are no longer generated.
78381         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78382         (DISTCLEANFILES): Likewise.
78383         (EXTRA_DIST): Likewise.
78384         (all_local): Don't depend on stat.c or lstat.c.
78385         (stat.c, lstat.c): Remove rules.
78386         (EXTRA_DIST): Remove xstat.in.
78387
78388         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78389         * lib/stat.c: New file.  Contents mostly from xstat.in.
78390         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78391         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78392
78393         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78394         too.
78395         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78396
78397 2002-12-03  Jim Meyering  <jim@meyering.net>
78398
78399         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78400         but not semantics, to minimize the differences between these two files.
78401         (safe_read): Change comment to mention SAFE_READ_ERROR.
78402
78403         * lib/safe-read.c (IS_EINTR): Define.
78404         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78405
78406 2002-12-02  Jim Meyering  <jim@meyering.net>
78407
78408         * lib/safe-read.c (EINTR): Define.
78409         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78410         (INT_MAX): Provide fallback.
78411         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78412
78413         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78414
78415 2002-12-02  Bruno Haible  <bruno@clisp.org>
78416
78417         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78418         Define, taken from safe-read.c.
78419         (INT_MAX): Provide fallback.
78420         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78421         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78422
78423         * lib/safe-read.c (EINTR): Remove definition.
78424         (safe_read): Don't use EINTR if it is absent.
78425
78426 2002-12-01  Jim Meyering  <jim@meyering.net>
78427
78428         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78429         zero.
78430         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78431
78432 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78433
78434         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78435         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78436         with `if (! (value < limit)) abort ();', for readability.
78437
78438 2002-11-26  Karl Berry  <karl@gnu.org>
78439
78440         * lib/strdup.c: copy from libc again, with jim's ok.
78441         * lib/.cppi-disable: re-add strdup.c
78442
78443 2002-11-25  Karl Berry  <karl@gnu.org>
78444
78445         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78446         instead of "strtol.c".
78447
78448 2002-11-25  Karl Berry  <karl@gnu.org>
78449
78450         * config/install-sh: update from automake for variable quoting, $0 in
78451         error msgs, etc.
78452
78453         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78454         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78455         entry.
78456
78457 2002-11-25  Jim Meyering  <jim@meyering.net>
78458
78459         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78460
78461 2002-11-24  Karl Berry  <karl@gnu.org>
78462
78463         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78464         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78465
78466 2002-11-24  Jim Meyering  <jim@meyering.net>
78467
78468         Update from coreutils:
78469
78470         * lib/mktime.c: Merge in changes from libc.
78471
78472         Avoid a link-time failure on some Linux systems.
78473         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78474         (otherwise).
78475         (__mon_yday): Declare with the STATIC attribute.
78476         (__mktime_internal): Likewise.
78477         Based on a report from Greg Schafer.
78478
78479 2002-11-23  Jim Meyering  <jim@meyering.net>
78480
78481         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78482         Use `unsigned', not `int', as type of index.
78483
78484         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78485
78486         * lib/fsusage.c: Remove unneeded parentheses around operands of
78487         `defined'.
78488
78489 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78490
78491         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78492         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78493         so that we can be included first.
78494         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78495         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78496         No need to include stddef.h or sys/types.h any more.
78497         Surround local include files with "", not "<>".
78498         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78499         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78500         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78501         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78502         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78503         (ISPRINT): Remove; no longer needed now that we assume C89.
78504
78505         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78506         Preserve errno.
78507
78508         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78509         quotearg_char): Use SIZE_MAX rather than
78510         (size_t) -1 when we are talking about "infinity".
78511
78512         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78513
78514 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78515
78516         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78517         hint that one should use `if (! x) abort ();' rather than `assert
78518         (x);', and anyway it's one less thing to worry about configuring.
78519         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78520         hash_rehash, hash_insert): Use abort rather than assert.
78521
78522 2002-11-22  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/safe-read.h: Assume C89. Add comments.
78525         (safe_read): Change return type to size_t.
78526         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78527         byte counts > SSIZE_MAX correctly.
78528         * lib/safe-write.h: New file.
78529         * lib/safe-write.c: New file.
78530         * lib/full-read.h: New file.
78531         * lib/full-read.c: New file.
78532         * lib/full-write.h: Assume C89. Add comments.
78533         * lib/full-write.c: Include safe-write.h.
78534         (full_write): Rewritten to use safe_write.
78535         Suggested by Jim Meyering and Paul Eggert.
78536
78537 2002-11-21  Jim Meyering  <jim@meyering.net>
78538
78539         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78540
78541         Merge in changes from the coreutils.
78542
78543         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78544         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78545         <stdint.h>.
78546         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78547         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78548         int.  Work more efficiently if X is the same width as uintmax_t.
78549         Do not compare X to -1, to avoid bogus compiler warning.
78550         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78551         Don't assume that f_frsize and f_bsize are the same type.
78552
78553         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78554         warning on FreeBSD.
78555
78556         * lib/makepath.c (make_path): Restore umask *before* creating the final
78557         component.
78558         (make_path): Minor reformatting.
78559
78560         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78561         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78562         HAVE_MALLOC/HAVE_REALLOC.
78563
78564         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78565         dummy ones.  At least on GNU/Linux systems, `auto' means something
78566         else.
78567         From Michael Stone.
78568
78569 2002-11-21  Bruno Haible  <bruno@clisp.org>
78570
78571         Remove case insensitive option matching.
78572         * lib/argmatch.h (argcasematch): Remove declaration.
78573         (ARGCASEMATCH): Remove macro.
78574         (__xargmatch_internal): Remove case_sensitive argument.
78575         (XARGMATCH): Update.
78576         (XARGCASEMATCH): Remove macro.
78577         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78578         case_sensitive argument.
78579         (argcasematch): Remove function.
78580         (__xargmatch_internal): Remove case_sensitive argument.
78581         (main): Use XARGMATCH instead of XARGCASEMATCH.
78582
78583         * lib/xmalloc.c: Change compile-time error message. Add comment about
78584         required autoconf version.
78585
78586 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78587
78588         Merge argmatch cleanups from Bison.  Assume C89.
78589
78590         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78591         Include stdlib.h, for EXIT_FAILURE.
78592         Always include <string.h>, since we assume C89.
78593         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78594         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78595         Include <stddef.h> instead, since it's all we need for size_t.
78596         (PARAMS): Remove.  All uses removed.
78597         (ARRAY_CARDINALITY): Do not bother to #undef.
78598         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78599         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78600         Remove unnecessary parentheses.
78601         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78602         Insert necessary parentheses.
78603         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78604         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78605
78606 2002-11-19  Bruno Haible  <bruno@clisp.org>
78607
78608         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78609         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78610
78611         * lib/mbswidth.h (PARAMS): Remove macro.
78612         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78613         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78614
78615         * lib/gcd.h (PARAMS): Remove macro.
78616         (gcd): Use ANSI C function declarations.
78617         * lib/gcd.c (gcd): Likewise.
78618
78619 2002-11-15  Bruno Haible  <bruno@clisp.org>
78620
78621         * lib/strcspn.c: Include <stddef.h>.
78622         (strcspn): Use ANSI C function declaration. Change return type to
78623         size_t. Use NULL.
78624         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78625         (strpbrk): Use NULL.
78626         * lib/strpbrk.h (PARAMS): Remove macro.
78627         (strpbrk): Use ANSI C function declaration.
78628         * lib/strstr.c: Don't include <sys/types.h>.
78629         * lib/strstr.h (PARAMS): Remove macro.
78630         (strstr): Use ANSI C function declarations.
78631
78632 2002-11-14  Karl Berry  <karl@gnu.org>
78633
78634         * config/mkinstalldirs: `do' on separate line, instead of
78635         `for var; do'.
78636
78637 2002-11-06  Bruno Haible  <bruno@clisp.org>
78638
78639         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78640         * lib/gcd.c (gcd): Likewise.
78641
78642 2002-11-05  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/gcd.h: New file, from gettext-0.11.5.
78645         * lib/gcd.c: New file, from gettext-0.11.5.
78646
78647 2002-11-05  Bruno Haible  <bruno@clisp.org>
78648
78649         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78650         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78651         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78652         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78653
78654         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78655         <libintl.h>.
78656         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78657         <libintl.h>.
78658
78659         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78660         * lib/human.c: Include gettext.h instead of <libintl.h>.
78661         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78662         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78663         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78664         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78665         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78666         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78667         (textdomain): Remove definition.
78668         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78669
78670         * lib/long-options.c: Remove include of <libintl.h> and definition of
78671         _.
78672         * lib/same.c: Remove include of <libintl.h> and definition of _.
78673
78674 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78675
78676         * lib/config.charset: A few additions for Solaris.
78677
78678 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78679
78680         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78681         * lib/localcharset.c (locale_charset): Declare as extern "C".
78682
78683 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78684
78685         * lib/config.charset: msdos in uk_UA uses CP1125.
78686
78687 2002-11-04  Bruno Haible  <bruno@clisp.org>
78688
78689         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78690         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78691         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78692         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78693         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78694
78695 2002-11-04  Bruno Haible  <bruno@clisp.org>
78696
78697         * lib/localcharset.c (locale_charset): Don't return an empty string.
78698
78699 2002-11-04  Bruno Haible  <bruno@clisp.org>
78700
78701         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78702         aliases.
78703
78704 2002-11-04  Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/config.charset: Update for newest glibc. Add canonical names
78707         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78708
78709 2002-11-04  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/config.charset: Add support for NetBSD.
78712
78713 2002-11-04  Bruno Haible  <bruno@clisp.org>
78714
78715         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78716
78717 2002-11-01  Bruno Haible  <bruno@clisp.org>
78718
78719         * configure.in: Add AC_CONFIG_AUX_DIR call.
78720         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78721         test/Makefile.
78722         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78723
78724 2002-09-28  Karl Berry  <karl@gnu.org>
78725
78726         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78727         installed automake until the next release, since changes have been
78728         made.
78729
78730 2002-09-25  Karl Berry  <karl@gnu.org>
78731
78732         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78733         * lib/getopt*: copy from libc/posix.
78734         * lib/gettext.h: copy from gettext.
78735         * lib/.cppi-disable: add strdup.c, gettext.h.
78736
78737 2002-09-25  Karl Berry  <karl@gnu.org>
78738
78739         * config/srclist.txt: enable gettext.h check.
78740         * config/config.{guess,sub}: update from prep.
78741         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78742                 from automake 1.6.3.
78743         See srclist*.
78744
78745 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78746
78747         * regex.c (PATFETCH): Remove the translating fetch.
78748         (PATFETCH_RAW): Rename to PATFETCH.
78749         (set_image_of_range): New fun.
78750         (SET_RANGE_TABLE_WORK_AREA): Use it.
78751         (regex_compile): Don't translate the pattern chars so eagerly.
78752         Only do it when inserting an `exactn' bytecode or when handling
78753         a char-range.
78754         (mutually_exclusive_p): Avoid empty statement.
78755
78756 2002-07-06  Jim Meyering  <meyering@lucent.com>
78757
78758         * m4/README: Don't mention Makefile.am.in.
78759         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78760
78761 2002-07-01  Jim Meyering  <meyering@lucent.com>
78762
78763         * lib/c-stack.c: Include sys/time.h.
78764         From Volker Borchert.
78765
78766 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78767
78768         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78769
78770 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78771
78772         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78773         New macro.  Use it uniformly instead of
78774         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78775         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78776         reported by Vin Shelton.
78777
78778 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78779
78780         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78781         Do not assume SA_SIGINFO behavior.
78782         Bug reported by Jim Meyering on NetBSD 1.5.2.
78783
78784 2002-06-22  Jim Meyering  <meyering@lucent.com>
78785
78786         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78788
78789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78790         now that configure.ac uses AC_GNU_SOURCE.
78791         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78792         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78793
78794         Update to latest tools.  Suggestions from Paul Eggert.
78795         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78796         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78797         * m4/fnmatch.m4: Likewise.
78798         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78799         to AC_HEADER_STDBOOL
78800
78801 2002-06-22  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78804         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78805
78806 2002-06-22  Jim Meyering  <meyering@lucent.com>
78807
78808         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78809
78810         * lib/exitfail.c, exitfail.h: Likewise.
78811         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78812
78813         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78814         of fnmatch.h.
78815         (EXTRA_DIST): Add fnmatch_loop.c.
78816         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78817
78818         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78819         * lib/fnmatch.c: Update from diffutils-2.8.2.
78820         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78821         * lib/fnmatch.h: Remove file.
78822
78823 2002-06-21  Jim Meyering  <meyering@lucent.com>
78824
78825         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78826         * m4/mbrtowc.m4: Likewise.
78827
78828         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78829         * m4/mbswidth.m4: Reflect name change:
78830         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78831         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78832
78833         * m4/lib-link.m4: Update from gettext-0.11.2.
78834         * m4/gettext.m4: Likewise.
78835
78836         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78837         From Alfred M. Szmidt.
78838
78839 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78840
78841         * lib/file-type.h: Report an error if neither S_ISREG nor
78842         S_IFREG is defined, instead of using a test specific to glibc
78843         2.2.  This should be safe, since POSIX requires S_ISREG and
78844         Unix Version 7 had S_IFREG.  We don't need to check for
78845         <sys/types.h> since we don't use any symbols that it defines.
78846
78847 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78848
78849         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78850         $@-t, so that each temporary file name is unique and valid in the first
78851         8 characters, for operation under DOS.
78852
78853 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78854
78855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78856
78857 2002-06-15  Jim Meyering  <meyering@lucent.com>
78858
78859         Work even with DJGPP 2.03, which lacks support for symlinks.
78860         From Richard Dawe.
78861         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78862         is defined.
78863         * lib/lchown.c (S_ISLNK): Likewise.
78864
78865 2002-06-15  Jim Meyering  <meyering@lucent.com>
78866
78867         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78868         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78869         have been included before this file.
78870
78871 2002-06-14  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/file-type.h: Use the version from diffutils-2.8.2.
78874         * lib/file-type.c: Likewise.
78875
78876 2002-06-07  Jim Meyering  <meyering@lucent.com>
78877
78878         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78879         They're needed at least for NetBSD 1.5.2.
78880         ($statxfs_includes): Include those same headers.
78881         ($statxfs_includes): Include sys/vfs.h if available.
78882         ($statxfs_includes): Likewise for sys/statvfs.h.
78883         Check for the following members in both structs statfs and statvfs:
78884         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78885
78886 2002-06-01  Jim Meyering  <meyering@lucent.com>
78887
78888         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78889         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78890
78891 2002-05-28  Jim Meyering  <meyering@lucent.com>
78892
78893         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78894         Reported by Volker Borchert.
78895
78896 2002-05-27  Jim Meyering  <meyering@lucent.com>
78897
78898         Fix a problem seen only on nonconforming systems whereby ls.c's
78899         use of localtime, and then of gettimeofday would cause trouble:
78900         the localtime call used to initialize rpl_gettimeofday's save
78901         mechanism would clobber ls's current local time information so
78902         that in any long listing the first file would always be listed
78903         with date 1970-01-01.  Analysis by Volker Borchert.
78904
78905         * lib/gettimeofday.c (localtime): Undefine.
78906         (rpl_localtime): New function.
78907
78908 2002-05-27  Jim Meyering  <meyering@lucent.com>
78909
78910         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78911         localtime.
78912
78913         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78914         use the replacement function; it wouldn't resolve at link time.
78915         Reported by Volker Borchert.
78916
78917 2002-05-22  Jim Meyering  <meyering@lucent.com>
78918
78919         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78920         file-type.h.
78921         * lib/file-type.h: New file.
78922         * lib/file-type.c (file_type): New file/function.  Extracted from
78923         diffutils.
78924
78925 2002-04-30  Jim Meyering  <meyering@lucent.com>
78926
78927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78928
78929 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78930
78931         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78932
78933 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78934
78935         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78936         Do not check for alloca.h (no longer used) or stdbool.h (was never
78937         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78938
78939 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78940
78941         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78942
78943 2002-04-29  Jim Meyering  <meyering@lucent.com>
78944
78945         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78946         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78947         Use AC_FUNC_STRNLEN here instead.
78948
78949         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78950         With autoconf-2.53a, it's part of AC_PROG_CC.
78951
78952 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78953
78954         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78955         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78956
78957 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78958
78959         * lib/sig2str.h, lib/sig2str.c: New files.
78960         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78961
78962 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78963
78964         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78965         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78966         of 127, since 64 is the largest conceivable number for ancient
78967         nonstandard hosts.
78968         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78969
78970 2002-04-28  Jim Meyering  <meyering@lucent.com>
78971
78972         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78973
78974 2002-04-24  Jim Meyering  <meyering@lucent.com>
78975
78976         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78977         (jm_PREREQ): Use it.
78978
78979         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78980         mach/mach.h fcntl.h.
78981         Check for this function: setlocale.
78982
78983 2002-04-24  Jim Meyering  <meyering@lucent.com>
78984
78985         * lib/gettext.h: New file, from Gettext.
78986         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78987         (libfetish_a_SOURCES): Add gettext.h.
78988
78989 2002-04-16  Jim Meyering  <meyering@lucent.com>
78990
78991         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78992         ut_pid, ut_id, ut_exit.
78993
78994 2002-04-16  Jim Meyering  <meyering@lucent.com>
78995
78996         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78997         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78998         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78999
79000 2002-04-12  Jim Meyering  <meyering@lucent.com>
79001
79002         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79003         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79004         existence of the getmntinfo function.  Needed for Darwin 5.3.
79005
79006         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79007         This is necessary at least on Darwin 5.3.
79008
79009         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79010         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79011         strnlen.o in the library, and that makes some versions of ranlib
79012         object.
79013
79014 2002-04-12  Jim Meyering  <meyering@lucent.com>
79015
79016         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79017
79018 2002-04-09  Jim Meyering  <meyering@lucent.com>
79019
79020         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79021         to be more precise.  Rather than saying we're checking whether the
79022         function `works', say what we're testing.
79023         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79024         Reported by Bruno Haible.
79025
79026 2002-03-10  Jim Meyering  <meyering@lucent.com>
79027
79028         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79029         Suggestion from Santiago Vila.
79030
79031 2002-03-08  Jim Meyering  <meyering@lucent.com>
79032
79033         * lib/rename.c: Mention that this wrapper is needed also on
79034         mips-dec-ultrix4.4 systems.
79035
79036 2002-03-02  Jim Meyering  <meyering@lucent.com>
79037
79038         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79039         not HAVE_CLOCK_SETTIME.
79040
79041 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79042
79043         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79044         Check for clock_settime.
79045
79046 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79047
79048         * lib/nanosleep.h: Rename to....
79049         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79050
79051         * lib/gettime.c: New file.
79052         * lib/settime.c: New file.
79053         * lib/stime.c: Remove.
79054
79055         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79056         timespec.h.  Remove nanosleep.h.
79057
79058 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79059
79060         * m4/acl.m4: New file.
79061         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79062         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79063
79064 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79065
79066         * lib/acl.c, lib/acl.h: New files.
79067         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79068
79069 2002-02-24  Jim Meyering  <meyering@lucent.com>
79070
79071         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79072         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79073         cause trouble.  Reported by Nelson Beebe.
79074
79075 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79076
79077         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79078         compilers that don't know that xalloc_die never returns.
79079
79080 2002-02-20  Jim Meyering  <meyering@lucent.com>
79081
79082         * lib/getdate.c: Regenerate using bison-1.33.
79083
79084 2002-02-17  Jim Meyering  <meyering@lucent.com>
79085
79086         * config/config.guess (main): Don't use `head -1'; it's no longer
79087         portable. Use `sed 1q' instead.
79088
79089 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79090
79091         * m4/codeset.m4: Upgrade to gettext-0.11.
79092         * m4/gettext.m4: Upgrade to gettext-0.11.
79093         * m4/glibc21.m4: Upgrade to gettext-0.11.
79094         * m4/iconv.m4: Upgrade to gettext-0.11.
79095         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79096         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79097         * m4/lib-ld.m4: New file, from gettext-0.11.
79098         * m4/lib-link.m4: New file, from gettext-0.11.
79099         * m4/lib-prefix.m4: New file, from gettext-0.11.
79100         * m4/progtest.m4: Upgrade to gettext-0.11.
79101
79102 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79103
79104         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79105         (jm_PREREQ): Use it.
79106
79107 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79108
79109         * lib/posixver.c, lib/posixver.h: New files.
79110         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79111
79112 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79113             Bruno Haible  <bruno@clisp.org>
79114
79115         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79116         (fwrite_success_callback): New declaration.
79117         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79118         print_unicode_char. Call failure callback instead of error.
79119         (fwrite_success_callback): New function.
79120         (exit_failure_callback): New function.
79121         (fallback_failure_callback): New function.
79122         (print_unicode_char): Call unicode_to_mb.
79123
79124 2002-01-26  Jim Meyering  <meyering@lucent.com>
79125
79126         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79127         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79128
79129 2002-01-26  Jim Meyering  <meyering@lucent.com>
79130
79131         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79132
79133 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79134
79135         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79136
79137 2002-01-22  Jim Meyering  <meyering@lucent.com>
79138
79139         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79140         Otherwise, some versions of automake would omit the rule that makes
79141         Makefile from Makefile.in.
79142
79143 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79144
79145         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79146         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79147         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79148         (memcoll): Set errno to zero if there is no error.
79149
79150         * lib/quotearg.c (quotearg_buffer_restyled):
79151         Fix bug with quoting buffers containing NUL when backslashing escapes.
79152         This bug was exposed by the other changes in this patch.
79153         (quotearg_n_options): New arg ARGSIZE.
79154         All callers changed.
79155         (quoting_options_from_style): New function.
79156         (quotearg_n_style): Use it.
79157         (quotearg_n_style_mem): New function.
79158
79159         * lib/quotearg.h (quotearg_n_style_mem): New function.
79160
79161 2002-01-19  Jim Meyering  <meyering@lucent.com>
79162
79163         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79164         Remove useless quotes: DF_PROG="df".
79165         * m4/strnlen.m4: New file.
79166
79167 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79168
79169         * lib/backupfile.c (ISDIGIT): Comment fix.
79170         * lib/getdate.y (ISDIGIT): Likewise.
79171         * lib/posixtm.c (ISDIGIT, year): Likewise.
79172         * lib/strverscmp.c (ISDIGIT): Likewise.
79173         * lib/userspec.c (ISDIGIT): Likewise.
79174
79175 2002-01-16  Jim Meyering  <meyering@lucent.com>
79176
79177         * lib/getdate.y: Add three semicolons, each just before a closing
79178         brace. Bison (as of version 1.31) no longer papers over that mistake.
79179
79180 2002-01-05  Jim Meyering  <meyering@lucent.com>
79181
79182         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79183
79184 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79185
79186         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79187         not silently exit merely because the output buffer happens to
79188         have nothing pending.
79189
79190 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79191
79192         See the big note in ../ChangeLog.
79193         * lib/human.c (suffixes): Prefer K to k for 1024.
79194         (generate_suffix_backwards): New function.
79195         (human_readable_inexact): Use it.
79196         * lib/xstrtol.c (__xstrtol): If there is no number but there
79197         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79198         Accept 'K' as well as 'k'.
79199
79200 2001-12-15  Jim Meyering  <meyering@lucent.com>
79201
79202         * lib/regex.h (__restrict_arr): Update from libc.
79203
79204         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79205         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79206         (STREQ): Define.
79207
79208 2001-12-14  Jim Meyering  <meyering@lucent.com>
79209
79210         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79211         Suggestion from Bruno Haible.
79212
79213 2001-12-10  Jim Meyering  <meyering@lucent.com>
79214
79215         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79216         xrealloc, Instead, include "xalloc.h".
79217         (initbuffer): Don't cast xmalloc return value to char*.
79218         (readline): Reword comment.
79219         Don't cast xrealloc return value to char*
79220         Return NULL, not 0.
79221
79222 2001-12-09  Jim Meyering  <meyering@lucent.com>
79223
79224         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79225         about `signed and unsigned type in conditional expression'.
79226         * lib/posixtm.c (posix_time_parse): Likewise.
79227
79228         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79229
79230         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79231         to avoid a pedantic warning.
79232
79233         * lib/getstr.c: Don't include assert.h.
79234         (getstr): Remove warning-evoking assertions.
79235         Return -1 if offset parameter is out of bounds.
79236         Change the type of a local from int to size_t.
79237
79238         * lib/strftime.c (my_strftime_localtime_r): Include this function
79239         definition in the `#if ! HAVE_TM_GMTOFF' block.
79240
79241         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79242         Include xalloc.h instead.
79243
79244 2001-12-02  Jim Meyering  <meyering@lucent.com>
79245
79246         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79247         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79248         included.
79249
79250         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79251         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79252
79253 2001-11-30  Akim Demaille  <akim@epita.fr>
79254
79255         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79256         before being defined.
79257
79258 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79259
79260         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79261         First arg is int, not unsigned.
79262         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79263         (SIZE_MAX, UINT_MAX): New macros.
79264         (quotearg_n_options): Abort if N is negative.
79265         Avoid overflow check on hosts where size_t is 64 bits and int
79266         is 32 bits, as overflow is impossible there.
79267         Fix off-by-one typo that caused unnecessary reallocation.
79268
79269 2001-11-27  Jim Meyering  <meyering@lucent.com>
79270
79271         * lib/tempname.c: Merge with version from libc.
79272         * lib/regex.c: Likewise.
79273
79274         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79275         systems for which STDC_HEADERS is 0, it was not included, resulting in
79276         a warning about an integer-to-pointer conversion problem with getenv.
79277         Reported by Volker Borchert.
79278
79279 2001-11-26  Jim Meyering  <meyering@lucent.com>
79280
79281         * lib/gtod.h: Remove file.
79282         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79283         * lib/gettimeofday.c: Don't include gtod.h.
79284         (GTOD_init): Remove function.
79285         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79286         Suggestion from Volker Borchert.
79287
79288 2001-11-23  Jim Meyering  <meyering@lucent.com>
79289
79290         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79291         it.
79292         * lib/hash.c (struct hash_table): Define it here instead.
79293
79294 2001-11-22  Jim Meyering  <meyering@lucent.com>
79295
79296         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79297
79298 2001-11-20  Jim Meyering  <meyering@lucent.com>
79299
79300         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79301         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79302
79303 2001-11-19  Jim Meyering  <meyering@lucent.com>
79304
79305         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79306         directory.  Use "conftestXXXXXX" as the template.
79307         Suggestion from Paul Eggert.
79308
79309         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79310         immediately, so the test doesn't mistakenly hit the max-open-files
79311         limit.
79312
79313 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79314
79315         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79316         (TEMPORARIES): New macro.
79317         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79318         removes an artificial limitation (e.g. HP-UX 10.20, where
79319         TMP_MAX is 17576).
79320
79321 2001-11-18  Jim Meyering  <meyering@lucent.com>
79322
79323         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79324
79325 2001-11-18  Jim Meyering  <meyering@lucent.com>
79326
79327         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79328         on SunOS 4.
79329
79330         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79331         files will be created before anything else.
79332
79333 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79334
79335         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79336         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79337
79338 2001-11-17  Jim Meyering  <meyering@lucent.com>
79339
79340         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79341         Prompted by a report from Bob Proulx.
79342
79343         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79344         Instead, require UTILS_FUNC_MKSTEMP.
79345
79346 2001-11-17  Jim Meyering  <meyering@lucent.com>
79347
79348         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79349         Now, that's done as part of AC_FUNC_STRTOD.
79350
79351 2001-11-17  Jim Meyering  <meyering@lucent.com>
79352
79353         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79354         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79355         rather than group writable.  Patch by Juan F. Codagnone.
79356
79357         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79358         xrealloc, Instead, include "xalloc.h".
79359
79360         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79361         Remove explicit declarations of xmalloc, xrealloc,
79362         and xstrdup.  Instead, include "xalloc.h".
79363
79364         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79365         unlocked-io.h.
79366         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79367         Likewise.
79368         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79369
79370         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79371         Reported by Padraig Brady.
79372
79373         * lib/mkstemp.c: #undef mkstemp.
79374         Include config.h.
79375         (rpl_mkstemp): Rename from mkstemp.
79376         Protoize.
79377
79378 2001-11-16  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79381         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79382         determine the amount of total physical memory, use pstat_getstatic.
79383         HPUX-11 doesn't define _SC_PHYS_PAGES.
79384         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79385         If sysconf couldn't be used to determine the amount of available
79386         physical memory, use both pstat_getstatic and pstat_getdynamic.
79387         Based on a patch from Bob Proulx.
79388
79389 2001-11-10  Jim Meyering  <meyering@lucent.com>
79390
79391         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79392         (jm_PREREQ): Use it.
79393
79394 2001-11-09  Jim Meyering  <meyering@lucent.com>
79395
79396         * m4/jm-macros.m4: Require autoconf-2.52f.
79397         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79398         Use these AC_-prefixed names, not the AM_-prefixed ones.
79399
79400         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79401
79402 2001-11-05  Jim Meyering  <meyering@lucent.com>
79403
79404         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79405
79406 2001-11-04  Jim Meyering  <meyering@lucent.com>
79407
79408         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79409         $DEFS.
79410
79411 2001-11-03  Jim Meyering  <meyering@lucent.com>
79412
79413         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79414         of AC_DEFUN.
79415
79416         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79417         know the name of the variable in the macro definition.
79418
79419 2001-11-03  Jim Meyering  <meyering@lucent.com>
79420
79421         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79422         in argmatch_to_argument call.
79423
79424         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79425         argument.
79426
79427         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79428         e.g., a fault due to an attempt to free a NULL pointer.
79429
79430 2001-11-01  Jim Meyering  <meyering@lucent.com>
79431
79432         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79433         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79434
79435 2001-11-01  Jim Meyering  <meyering@lucent.com>
79436
79437         * lib/dirfd.c, lib/dirfd.h: New files.
79438         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79439
79440         * lib/hash.c (hash_print) [TESTING]: Clean up.
79441
79442 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79443
79444         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79445         to avoid a warning if -Wall.
79446
79447 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79448
79449         * README: New file
79450         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79451         (per RMS's instructions, this is now the canonical source)
79452         * lgpl/, gpl/: New directories.
79453
79454 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79455
79456         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79457
79458 2001-10-21  Jim Meyering  <meyering@lucent.com>
79459
79460         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79461         this code would end up calling gettext even in packages built
79462         with --disable-nls.
79463         * lib/getopt.c (_): Likewise.
79464         * lib/regex.c (_): Likewise.
79465
79466 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79467
79468         * m4/error.m4 (jm_PREREQ_ERROR):
79469         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79470         AC_FUNC_STRERROR_R does that.
79471         Check for strerror declaration.
79472
79473         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79474         are supposed to have them these days.
79475         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79476         Merge changes from latest Autoconf CVS.
79477         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79478         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79479         POSIX decided to standardize on the int flavor of strerror_r.
79480
79481 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79482
79483         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79484         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79485         Use strerror_r that is only a macro, even if it is not a function.
79486         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79487         (private_strerror): Use prototypes, not old-style function definition.
79488         (print_errno_message): New function.
79489         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79490         char*-flavored one.
79491         (error_tail, error, error_at_line): Use it.
79492
79493 2001-10-11  Jim Meyering  <meyering@lucent.com>
79494
79495         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79496         and quote_n (1, ... to avoid clobbering a buffer.
79497
79498 2001-10-05  Jim Meyering  <meyering@lucent.com>
79499
79500         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79501         hash-pjw.h.
79502         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79503         * lib/hash-pjw.h: New file.
79504
79505 2001-09-30  Jim Meyering  <meyering@lucent.com>
79506
79507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79508         `struct fsstat' has the `f_fstypename' member.
79509         Use that to define FS_TYPE, which is now used to make
79510         the getfsstat link test tighter.
79511
79512 2001-09-30  Jim Meyering  <meyering@lucent.com>
79513
79514         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79515         Include <sys/ucred.h>, for Apple Darwin.
79516         Include sys/mount.h and sys/fs_types.h only if available.
79517         (FS_TYPE): Define.
79518         (read_filesystem_list): Use FS_TYPE.
79519
79520 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79521
79522         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79523         a boolean context.
79524
79525 2001-09-29  Jim Meyering  <meyering@lucent.com>
79526
79527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79528         [one-argument getmntent function]): Include stdio.h before mntent.h.
79529         SunOS 4.1.x needs it for the declaration of `FILE'.
79530         Patch by Volker Borchert.
79531
79532         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79533         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79534         sys/fs_types.h, and make the link-test for getfsstat guard #include
79535         directives with appropriate #if HAVE_*_H tests so that we can
79536         detect getfsstat on Apple Darwin1.3.7 systems.
79537         Reported by Nelson Beebe.
79538         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79539
79540 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79541
79542         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79543         #defines strtoimax.  Also treat the other strto* functions
79544         like strtoimax.
79545
79546         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79547         Check for strtoul and strtoumax,
79548         as those declarations are made even in the signed case.
79549         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79550         Likewise, for strtol and strtoimax.
79551
79552 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79553
79554         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79555         #defines strtoimax.  Also treat the other strto* functions
79556         like strtoimax.
79557
79558         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79559         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79560         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79561
79562 2001-09-26  Jim Meyering  <meyering@lucent.com>
79563
79564         Most macros in unlocked-io.h had the wrong number of arguments.
79565         * lib/gen-uio: New script.
79566         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79567         * lib/unlocked-io.hin: Remove file.
79568         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79569         rather than trying to embed it here.
79570         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79571         Reported by Padraig Brady.
79572
79573 2001-09-25  Volker Borchert  <bt@teknon.de>
79574
79575         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79576         `result'.
79577
79578 2001-09-24  Jim Meyering  <meyering@lucent.com>
79579
79580         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79581
79582 2001-09-23  Jim Meyering  <meyering@lucent.com>
79583
79584         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79585         instead of the mere test for existence of mntent.h.  The latter
79586         would get a false-positive on AIX 3.4 systems.
79587         In the outer getmntent if-block, don't die if neither of the getmntent
79588         tests succeeds.  Instead, just fall through and continue with the
79589         remaining tests.
79590
79591 2001-09-23  Jim Meyering  <meyering@lucent.com>
79592
79593         * lib/mountlist.c: Remove useless parentheses in #if directives.
79594         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79595         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79596
79597 2001-09-22  Jim Meyering  <meyering@lucent.com>
79598
79599         * m4/gettext.m4: New file.  From gettext.
79600         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79601         * m4/progtest.m4: Likewise
79602         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79603         * m4/glibc21.m4: Likewise.
79604
79605         * m4/libintl.m4: Remove.  No longer used.
79606
79607 2001-09-22  Jim Meyering  <meyering@lucent.com>
79608
79609         * lib/localcharset.c: Update from latest gettext.
79610         * lib/config.charset: Likewise.
79611
79612 2001-09-20  Jim Meyering  <meyering@lucent.com>
79613
79614         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79615         strtoimax.
79616         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79617         strtoumax.
79618
79619 2001-09-20  Jim Meyering  <meyering@lucent.com>
79620
79621         * lib/xstrtol.c (strtoimax): Guard declaration with
79622         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79623         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79624         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79625         (strtoumax): Likewise, for completeness (it wasn't necessary).
79626
79627 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79628
79629         * lib/strtoimax.c (HAVE_LONG_LONG):
79630         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79631         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79632         to work around bug in IBM C compiler.
79633
79634 2001-09-17  Jim Meyering  <meyering@lucent.com>
79635
79636         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79637         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79638         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79639         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79640         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79641         whenever the right hand side need not be expanded by the shell.
79642
79643 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79644
79645         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79646         library.  It's not correct, as some older glibcs are buggy.
79647         fnmatch wasn't fixed until glibc 2.2.
79648
79649         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79650         special shell magic here.
79651
79652 2001-09-16  Jim Meyering  <meyering@lucent.com>
79653
79654         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79655         * m4/jm-macros.m4: Require it.
79656
79657 2001-09-16  Jim Meyering  <meyering@lucent.com>
79658
79659         * lib/mkdir.c: New file.
79660
79661 2001-09-15  Jim Meyering  <meyering@lucent.com>
79662
79663         * m4/jm-macros.m4: Check for help2man.
79664
79665 2001-09-11  Jim Meyering  <meyering@lucent.com>
79666
79667         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79668         The body, by Paul Eggert, was moved here from configure.in.
79669         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79670
79671 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79672
79673         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79674         (jm_PREREQ): Use it.
79675
79676 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79677
79678         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79679         Use ssize_t, not int, to store result of readlink.
79680         Check for ssize_t overflow as well as size_t overflow,
79681         as POSIX says the result of readlink is implementation-defined
79682         when ssize_t overflows.
79683         Remove unnecessary cast to char*.
79684         Use free+malloc instead of realloc, as the storage doesn't need
79685         to be preserved and it's clearer and can be more efficient that way.
79686         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79687         * lib/xreadlink.h (xreadlink): Update prototype.
79688
79689 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79690
79691         * lib/xgetcwd.c: Revert some of the previous change; intead,
79692         fix the HAVE_GETCWD_NULL code to behave more like the
79693         !HAVE_GETCWD_NULL code used to.
79694
79695         Include "xalloc.h".
79696         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79697         invoke xalloc_die.
79698
79699 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79700
79701         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79702         sys/param.h, as pathmax.h includes them.
79703
79704 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79705
79706         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79707         (jm_PREREQ_XGETCWD): New macro.
79708
79709         * m4/getcwd.m4: New file.
79710
79711 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79712
79713         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79714         like the HAVE_GETCWD_NULL code.
79715         Include pathmax.h if not HAVE_GETCWD.
79716         Do not include xalloc.h.
79717         (INITIAL_BUFFER_SIZE): New symbol.
79718         Do not use xmalloc / xrealloc, since the caller is responsible for
79719         handling errors.  Preserve errno around `free' during failure.
79720         Do not overrun buffer when using getwd.
79721
79722 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79723
79724         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79725         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79726         getcwd (NULL, 0).
79727
79728 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79729
79730         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79731         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79732         spotted by Jim Meyering.
79733
79734 2001-09-03  Jim Meyering  <meyering@lucent.com>
79735
79736         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79737         failure.
79738
79739 2001-09-02  Jim Meyering  <meyering@lucent.com>
79740
79741         * lib/error.c: Update from GNU libc.
79742
79743 2001-09-01  Jim Meyering  <meyering@lucent.com>
79744
79745         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79746         Used by df.
79747
79748 2001-09-01  Jim Meyering  <meyering@lucent.com>
79749
79750         * lib/xreadlink.c: New file.
79751         * lib/xreadlink.h: New file.
79752         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79753         xreadlink.h.
79754
79755         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79756         doesn't conflict with sparc Solaris 7's definition in
79757         /usr/include/sys/int_types.h.
79758
79759         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79760         files.
79761         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79762         and strncasecmp as r-values.  Unixware didn't have declarations.
79763
79764 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79765
79766         * lib/xstrtol.h: Add copyright notice.
79767         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79768         LONGINT_INVALID_SUFFIX_CHAR.
79769
79770 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79771
79772         * lib/xstrtol.c (strtoimax): New decl.
79773
79774 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79775
79776         * lib/xgetcwd.c: Don't include pathmax.h.
79777         Include stdlib.h and unistd.h if available.
79778         Include xalloc.h.
79779         (xmalloc, xstrdup, free): Remove decls.
79780         (xgetcwd): Don't assume sizes fit in unsigned.
79781         Check for overflow when computing sizes.
79782         Simplify reallocation code.
79783
79784 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79785
79786         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79787         a directory's st_size can have an arbitrary value, so the old
79788         usage could waste an arbitrary amount of memory.  All uses
79789         changed.
79790         * lib/savedir.h: Update prototype.
79791
79792 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79793
79794         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79795
79796         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79797         old strtoimax.c.
79798
79799         Also, make the following further changes to make this file's
79800         configuration more similar to that of strtol.c:
79801         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79802         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79803         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79804         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79805         changed to signed values.
79806
79807         And make the following changes as well:
79808         Fix copyright notice, as 1999 was missing.
79809         (verify): New macro.
79810         (strtoimax): Check sizes at compile-time, not run-time.
79811         Prefer strtol to strtoll if both work.
79812         (main): Remove; it was not that useful and was a pain to maintain.
79813
79814         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79815
79816 2001-08-31  Jim Meyering  <meyering@lucent.com>
79817
79818         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79819         Use an initial, malloc'd, buffer of length 128 rather than
79820         a statically allocated one of length 1024.
79821
79822 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79823
79824         Simplify code, partly by assuming autoconf 2.52 semantics.
79825
79826         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79827
79828         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79829         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79830         All uses removed.
79831         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79832         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79833         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79834         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79835         jm_AC_HEADER_INTTYPES_H.
79836         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79837
79838         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79839
79840         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79841         Quote first arg of AC_DEFUN.
79842         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79843         since they are needed to parse the include file even if we need
79844         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79845         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79846         but with opposite signedness.
79847
79848 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79849
79850         Merge 'exclude' changes from tar 1.13.22.
79851         This fixes one or two unlikely storage allocation overflow bugs,
79852         but doesn't change user-visible behavior otherwise.
79853
79854 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79855
79856         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79857         (jm_PREREQ_EXCLUDE): New macro.
79858
79859 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79860
79861         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79862         tm to be declared.
79863
79864 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79865
79866         * lib/hash.c: Remove '2001' from copyright notice.
79867
79868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79869
79870         * lib/full-write.h: New file.
79871         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79872         * lib/full-write.c: Correct credits, as cccp.c no longer
79873         exists and anyway it was so heavily changed from the old cccp
79874         code as to be unrecognizable.  Include full-write.h.
79875         (full_write): Return size_t, with short writes meaning failure.
79876         All callers changed.  This fixes a bug with large buffers
79877         on 64-bit hosts.
79878         * lib/utime.c: Include full-write.h.
79879
79880 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79881
79882         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79883         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79884         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79885         Include if available.
79886         (<xalloc.h>): Include
79887         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79888         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79889         collide with FNM macros.
79890         (struct patopts): New struct.
79891         (struct exclude): Use it, as exclude patterns now come with options.
79892         (new_exclude): Support above changes.
79893         (new_exclude, add_exclude_file):
79894         Initial size must now be a power of two to simplify overflow checking.
79895         (free_exclude, fnmatch_no_wildcards): New function.
79896         (excluded_filename): No longer requires options arg, as the options
79897         are determined by add_exclude.  Now returns bool, not int.
79898         (excluded_filename, add_exclude):
79899         Add support for the fancy new exclusion options.
79900         (add_exclude, add_exclude_file): Now takes int options arg.
79901         Check for arithmetic overflow when computing sizes.
79902         (add_exclude_file): xrealloc might modify errno, so don't
79903         realloc until after errno might be used.
79904
79905         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79906         New macros.
79907         (free_exclude): New decl.
79908         (add_exclude, add_exclude_file): Now takes int options arg.
79909         (excluded_filename): No longer requires options arg, as the options
79910         are determined by add_exclude.  Now returns bool, not int.
79911
79912 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79915
79916 2001-08-27  Jim Meyering  <meyering@lucent.com>
79917
79918         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79919
79920         * lib/version-etc.c (N_): Remove definition.
79921         Revert most of last change.
79922         Instead, simply don't mark the `Copyright...' string for translation.
79923         Based on advice from Paul Eggert.
79924
79925         * lib/strtoxmax.c: Tweak comment.
79926
79927 2001-08-26  Jim Meyering  <meyering@lucent.com>
79928
79929         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79930
79931         * m4/xstrtoimax.m4: New file.
79932         * m4/xstrtoumax.m4: Add comments explaining why we
79933         AC_REPLACE_FUNCS(strtol).
79934
79935 2001-08-26  Jim Meyering  <meyering@lucent.com>
79936
79937         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79938         of copyright with `%s' so translators don't get an untranslated
79939         message in 2002.
79940         (COPYRIGHT_YEAR): Define.
79941         (version_etc): Use fprintf rather than fputs.
79942         Suggestion from Ulrich Drepper.
79943
79944         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79945
79946         * lib/strtoll.c: New file, from GNU libc.
79947         * lib/xstrtoimax.c: New file.
79948
79949         * lib/xstrtol.h: Add xstrtoimax.
79950         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79951         * lib/strtoimax.c: New file.  Likewise, but first define
79952         STRTOUXMAX_SIGNED.
79953
79954         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79955         ...
79956         * lib/strtoxmax.c: ... then renamed to this.
79957
79958 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79959
79960         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79961         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79962         (jm_AC_TYPE_INTMAX_T): New macro.
79963         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79964
79965         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79966
79967         * m4/longlong.m4: Renamed from ulonglong.m4.
79968         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79969         * m4/uintmax_t.m4: Removed.
79970
79971 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79972
79973         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79974         Port to Solaris 8, where 'sed' requires a space after the 'r'
79975         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79976         Redirect output to $tmp just once.
79977
79978 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79979
79980         * lib/addext.c (<errno.h>): Include.
79981         (errno): Declare if not defined.
79982         (addext): Work correctly when pathconf returns -1 and leaves
79983         errno alone because there is no limit.  Also, work even if
79984         pathconf returns a value greater than SIZE_MAX.
79985
79986 2001-08-12  Jim Meyering  <meyering@lucent.com>
79987
79988         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79989         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79990         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79991         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79992         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79993         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79994         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79995         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79996         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79997         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79998         utime.m4, utimes.m4, xstrtoumax.m4:
79999         Quote the first argument in each use of AC_DEFUN.
80000
80001 2001-08-12  Jim Meyering  <meyering@lucent.com>
80002
80003         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80004         Simply `return getcwd (NULL, 0);'.
80005         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80006         Use 1300 as initial value for length, not PATH_MAX.
80007
80008         * lib/pathmax.h: Clean up cpp syntax.
80009
80010 2001-08-12  Jim Meyering  <meyering@lucent.com>
80011
80012         * lib/gettimeofday.c: New file.
80013         * lib/gtod.h: New file.
80014         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80015
80016 2001-08-05  Jim Meyering  <meyering@lucent.com>
80017
80018         * m4/jm-macros.m4: Require autoconf-2.52.
80019
80020 2001-08-04  Jim Meyering  <meyering@lucent.com>
80021
80022         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80023         stmt, to get in sync with glibc.
80024
80025 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80026
80027         The following changes are from gettext 0.10.39 as maintained by
80028         Bruno Haible.
80029
80030         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80031         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80032         with inverted sense.  All uses changed.
80033
80034         * lib/mbswidth.c: Don't include <limits.h>.
80035         Include <stdlib.h> and <string.h> unconditionally.
80036         (iswcntrl, mbsinit, ISCNTRL): New macros.
80037         (mbsnwidth): Use K&R style function declarations.
80038         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80039         can optimize it when MB_CUR_MAX == 1.
80040         The width of control characters is zero, not 1.
80041
80042 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80043
80044         The following changes are from gettext 0.10.39 as maintained by
80045         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80046
80047         * m4/codeset.m4: Upgrade to serial AM1.
80048         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80049         all uses changed.  Quote first arg of AC_DEFUN.
80050         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80051
80052         * m4/iconv.m4: Upgrade to serial AM2.
80053         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80054         Add --with-libconv-prefix.
80055         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80056         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80057         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80058         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80059         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80060
80061         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80062         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80063         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80064         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80065         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80066         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80067         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80068         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80069         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80070
80071         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80072         string.h any more.
80073
80074         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80075         not the default value.
80076
80077         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80078         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80079         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80080         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80081         Also check for iswcntrl, used for wcwidth fallback.
80082         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80083         to Autoconf 2.13.
80084
80085 2001-08-03  Jim Meyering  <meyering@lucent.com>
80086
80087         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80088         as it was in the original.  Reported by Paul Eggert.
80089
80090 2001-07-16  Jim Meyering  <meyering@lucent.com>
80091
80092         * m4/gettimeofday.m4: New file.
80093         Prompted by a report from Bernhard Baehr.
80094
80095 2001-07-15  Jim Meyering  <meyering@lucent.com>
80096
80097         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80098         stuff. Now it's in ../Makefile.cfg.
80099
80100 2001-07-15  Jim Meyering  <meyering@lucent.com>
80101
80102         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80103         (BUILT_SOURCES): Add unlocked-io.h.
80104         (io_functions): Define.
80105         (unlocked-io.h): New rule.
80106         (DISTCLEANFILES): Add unlocked-io.h.
80107         (all-local): Depend on unlocked-io.h, to ensure it is created.
80108
80109         * lib/unlocked-io.hin: New file
80110
80111         * lib/regex.c: Update from glibc.
80112
80113 2001-07-05  Jim Meyering  <meyering@lucent.com>
80114
80115         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80116         recommendation.
80117         (libfetish_a_SOURCES): Put all .h files here instead.
80118         Remove a thus-exposed (better checks in automake) duplicate and
80119         two unnecessary .h files.
80120
80121 2001-07-04  Jim Meyering  <meyering@lucent.com>
80122
80123         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80124         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80125         distcheck failure.
80126
80127 2001-07-02  Jim Meyering  <meyering@lucent.com>
80128
80129         The following changes were prompted by suggestions from Bruno Haible.
80130
80131         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80132         is now generated.
80133         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80134         definition of EXTRA_DIST.
80135         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80136         ensure that the generated file is created/updated whenever the list
80137         of $(unlocked_functions) is changed.
80138         (jm-glibc-io.m4): New rule.
80139         (unlocked-io.h): New rule -- currently unused.
80140
80141 2001-06-24  Jim Meyering  <meyering@lucent.com>
80142
80143         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80144         unmatched right bracket, rather than kludging it with an extra,
80145         falsely-matching quote in a comment.  Patch by Akim Demaille.
80146
80147 2001-06-11  Jim Meyering  <meyering@lucent.com>
80148
80149         * lib/regex.c: Update from GNU libc.
80150
80151 2001-05-27  Jim Meyering  <meyering@lucent.com>
80152
80153         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80154         Check for ut_type in struct utmp.
80155
80156 2001-05-27  Jim Meyering  <meyering@lucent.com>
80157
80158         * lib/readutmp.h (UT_TYPE): Define.
80159
80160 2001-05-24  Jim Meyering  <meyering@lucent.com>
80161
80162         * lib/argmatch.c: Include "quote.h".
80163         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80164         quote function.  Reported by Göran Uddeborg.
80165
80166 2001-05-22  Jim Meyering  <meyering@lucent.com>
80167
80168         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80169         now that we use the package-supplied version unconditionally.
80170         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80171
80172 2001-05-21  Jim Meyering  <meyering@lucent.com>
80173
80174         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80175         shell syntax errors.
80176
80177 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80178
80179         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80180
80181 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80182
80183         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80184         Don't bother to check library strftime, since
80185         we'll be using our own my_strftime function anyway.
80186         Define my_strftime instead of strftime.
80187
80188 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80189
80190         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80191         which is not yet declared.
80192
80193 2001-05-15  Jim Meyering  <meyering@lucent.com>
80194
80195         * m4/regex.m4: Use proper quoting so brackets appear in the test
80196         program.
80197         Reported by, and with help from, Bruno Haible.
80198
80199 2001-05-13  Jim Meyering  <meyering@lucent.com>
80200
80201         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80202         undefined.
80203
80204 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80205
80206         dirname code cleanup.  base_name now behaves more compatibly
80207         with POSIX basename when given file names that have trailing
80208         slashes, and similarly for dir_name.  Add new primitives
80209         base_len and dir_len.  Put the directory-name-related decls
80210         into dirname.h.
80211
80212         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80213         * lib/backupfile.c (base_name): Likewise.
80214         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80215         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80216         * lib/makepath.c (strip_trailing_slashes): Likewise.
80217         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80218         ISSLASH): Likewise.
80219         * lib/rename.c (strip_trailing_slashes): Likewise.
80220         * lib/same.c (base_name): Likewise.
80221         * lib/stripslash.c (ISSLASH): Likewise.
80222
80223         * lib/addext.c: Include <dirname.h> after size_t is defined.
80224         * lib/backupfile.c: Likewise.
80225
80226         * lib/addext.c (addext): Use base_len to trim redundant
80227         trailing slashes instead of doing it ourselves.
80228         But do not trim the last slash if it is not redundant.
80229
80230         * lib/backupfile.c (find_backup_file_name,
80231         max_backup_version): Use base_len instead of rolling it ourselves.
80232         Handle the case of "" and (on DOS) "C:" correctly.
80233
80234         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80235         needed. Include <string.h>, <dirname.h>.
80236         (base_name): Allow file names ending in slashes, other than names
80237         that are all slashes.  In this case, return the basename followed
80238         by the slashes.  This is more general, and can be used in places
80239         where the original base_name purposely had an assertion failure.
80240         (base_len): New function.
80241
80242         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80243         Do not include <assert.h>; no longer needed.
80244         Include xalloc.h.
80245         (memrchr): Remove decl.
80246         (dir_name_r): Remove.
80247         (dir_len): Renamed from dirlen.  All callers changed.
80248         Rewrite in terms of base_name, for simplicity and consistency.
80249         (dir_name): Never return NULL.  All callers changed.
80250         Do not include <stdlib.h> in test program; no longer needed.
80251         return 0; is fine for test program.
80252
80253         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80254         New macros.
80255         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80256
80257         * lib/path-concat.c (path_concat): Use base_len to compute
80258         base length, not strlen; this means we cannot rely on memcpy
80259         to null-terminate.
80260
80261         * lib/same.c (STREQ): Remove.
80262         (same_name): Handle the case where the basename ends in trailing '/'.
80263
80264         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80265         a slash was stripped.  Do not strip the last slash after a
80266         file system prefix.
80267
80268 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80269
80270         * lib/Makefile.am (libfetish_a_SOURCES):
80271         Add strftime.c, since we now compile it on all hosts.
80272
80273         * lib/strftime.c (my_strftime):
80274         Define to nstrftime if emacs, but only if my_strftime is not defined.
80275         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80276         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80277         Add one more extra argument: a nanoseconds value.
80278         All uses changed.
80279         (ns): New macro.
80280         (my_strftime function): Add %N format.
80281         (emacs_strftimeu): Renamed from emacs_strftime,
80282         with extra ut argument.
80283
80284 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80285
80286         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80287
80288 2001-04-21  Jim Meyering  <meyering@lucent.com>
80289
80290         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80291         doesn't interfere.
80292
80293 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80294
80295         * m4/ftruncate.m4: Check for chsize.
80296         Link with ftruncate.o unconditionally if ftruncate is missing.
80297         This was required when cross-compiling to i586-mingw32msvc.
80298
80299 2001-04-08  Jim Meyering  <meyering@lucent.com>
80300
80301         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80302         recomputed; that's necessary when the offset spans a DST transition.
80303         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80304
80305 2001-04-02  Jim Meyering  <meyering@lucent.com>
80306
80307         * lib/regex.h, regex.c: Update from GNU libc.
80308
80309 2001-03-24  Jim Meyering  <meyering@lucent.com>
80310
80311         * m4/jm-macros.m4: Require autoconf-2.49d.
80312
80313 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80314
80315         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80316
80317 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80318
80319         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80320
80321 2001-03-17  Jim Meyering  <meyering@lucent.com>
80322
80323         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80324         now that the version in autoconf is equivalent.
80325         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80326
80327         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80328         Suggestion from Akim Demaille.
80329
80330         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80331         (jm_PREREQ_TEMPNAME): New function.
80332
80333 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80334
80335         * lib/tempname.c (uint64_t): Define to uintmax_t if
80336         not defined, and if UINT64_MAX is not defined.
80337         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80338         Reported by John David Anglin.
80339
80340 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80341
80342         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80343         resolve alias if codeset is empty.
80344         * lib/config.charset (BeOS): Use wildcard syntax.
80345
80346 2001-03-13  Jim Meyering  <meyering@lucent.com>
80347
80348         * lib/path-concat.c (path_concat)
80349         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80350         concatenating e.g., `C:' and `foo'.
80351         From Bruno Haible.
80352
80353 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80354
80355         * lib/localcharset.c (locale_charset): Don't use
80356         setlocale(LC_CTYPE,NULL). Don't return NULL.
80357         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80358
80359 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80360
80361         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80362         support for DOS/DJGPP.
80363
80364 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80365
80366         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80367         lacks mkstemp.  Compile our own tempname.c if we compile our own
80368         mkstemp.c, as mkstemp relies on tempname.
80369
80370 2001-03-01  Jim Meyering  <meyering@lucent.com>
80371
80372         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80373         AH_VERBATIM really does output its argument verbatim.
80374
80375 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80376
80377         * lib/Makefile.am (libfetish_a_SOURCES):
80378         Add dup-safer.c, fopen-safer.c.
80379         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80380
80381         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80382         * lib/unistd-safer.h: New files.
80383
80384 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80385
80386         The mkstemp replacement is taken from glibc 2.2.2, with some
80387         portability fixes for use outside glibc, as follows:
80388
80389         * lib/tempname.c (struct_stat64): New macro.
80390         (direxists, __gen_tempname): Use it.
80391         This avoids a portability problem with Solaris 8.
80392
80393         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80394         (<stddef.h>, <stdint.h>, <string.h>):
80395         Include only if STDC_HEADERS || _LIBC.
80396         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80397         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80398         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80399         (__set_errno): Define this macro if <errno.h> doesn't.
80400         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80401         Define these macros if <stdio.h> doesn't.
80402         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80403         Define these macros if <sys/stat.h>
80404         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80405         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80406         __xstat64): Define if not _LIBC.
80407         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80408         (__gen_tempname): Invoke gettimeofday only if
80409         HAVE_GETTIMEOFDAY || _LIBC;
80410         otherwise, fall back on plain "time".
80411         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80412
80413         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80414
80415         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80416
80417 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80418
80419         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80420
80421 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80422
80423         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80424         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80425         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80426         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80427
80428 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80429
80430         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80431         Remove workaround macros for hosts that have mbrtowc but not
80432         mbstate_t, as we now insist on proper declarations for both
80433         before using mbrtowc.
80434
80435 2001-02-17  Jim Meyering  <meyering@lucent.com>
80436
80437         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80438         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80439         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80440         UnixWare 7.1.1.
80441
80442         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80443         rather than AC_CACHE_VAL.
80444
80445 2001-02-17  Jim Meyering  <meyering@lucent.com>
80446
80447         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80448         around included file name.
80449
80450         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80451
80452         * lib/strftime.c: Update from GNU libc (the only changes were to
80453         comments).
80454
80455 2001-02-17  Jim Meyering  <meyering@lucent.com>
80456
80457         * lib/regex.c: Update from libc.
80458
80459 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80460
80461         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80462         clash.
80463
80464 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80465
80466         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80467         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80468         Reported by Mark Hounschell via Paul Eggert.
80469
80470 2001-02-07  Jim Meyering  <meyering@lucent.com>
80471
80472         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80473
80474 2001-02-05  Jim Meyering  <meyering@lucent.com>
80475
80476         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80477         it includes the patch required for `large file' support with at least
80478         HP-UX's 10.20 /bin/cc.
80479
80480 2001-02-03  Jim Meyering  <meyering@lucent.com>
80481
80482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80483         AS_IF, now that it works once again (mysteriously).
80484         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80485
80486 2001-01-30  Jim Meyering  <meyering@lucent.com>
80487
80488         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80489         * m4/chown.m4: Rename conftestchown to conftest.chown.
80490         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80491         s/conftestdir2/conftest.d2/.
80492         * m4/utimes.m4: s/conftestdata/conftest.data/
80493         Inspired by Pavel Roskin's change in autoconf.
80494
80495 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80496
80497         * lib/config.charset: Update for FreeBSD 4.2.
80498
80499 2001-01-27  Jim Meyering  <meyering@lucent.com>
80500
80501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80502         a use of AS_IF.
80503         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80504
80505 2001-01-26  Jim Meyering  <meyering@lucent.com>
80506
80507         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80508         quotearg.c includes it.
80509
80510 2001-01-26  Jim Meyering  <meyering@lucent.com>
80511
80512         * lib/quotearg.c: Include stddef.h.
80513         * lib/quote.c: Include stddef.h.
80514         Reported by Axel Kittenberger.
80515
80516         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80517         line in double quotes so that it evokes a better diagnostic.
80518         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80519         Reported by Axel Kittenberger.
80520
80521 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80522
80523         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80524         as if it was a `charset'.
80525
80526 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80527
80528         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80529         has const.
80530
80531 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80532
80533         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80534         to avoid a warning.  Add back 'const' to inptr.
80535
80536 2001-01-20  Jim Meyering  <meyering@lucent.com>
80537
80538         Be sure that headers are checked before used in code compiled
80539         for the type checks.
80540         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80541         In place of that, invoke jm_CHECK_ALL_TYPES.
80542         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80543         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80544         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80545         The check for ssize_t was mistakenly run before the test for unistd.h.
80546
80547         The configure-time check for stdbool.h was missing.
80548         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80549         (jm_PREREQ_HASH): New function.
80550
80551 2001-01-17  Jim Meyering  <meyering@lucent.com>
80552
80553         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80554         for autoconf-2.49c.
80555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80556
80557 2001-01-16  Jim Meyering  <meyering@lucent.com>
80558
80559         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80560         From Bruno Haible.
80561
80562 2001-01-14  Jim Meyering  <meyering@lucent.com>
80563
80564         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80565         foo and bar.  Create conftestdir/ in the script, not in the C code.
80566         Remove directories in the script, not in the C code.
80567         Remove conftestdir{,2} before trying to create the directory.
80568         Make the entire configure script fail if the mkdir fails.
80569
80570 2001-01-14  Jim Meyering  <meyering@lucent.com>
80571
80572         * lib/rename.c: New file.  From Volker Borchert.
80573         Include stdlib.h, string.h or strings.h, and xalloc.h.
80574         Use strip_trailing_slashes rather than open-coding it.
80575
80576 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80577
80578         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80579
80580 2001-01-03  Jim Meyering  <meyering@lucent.com>
80581
80582         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80583         of local `inptr' to avoid warning with some system declarations of
80584         iconv.
80585
80586 2001-01-02  Volker Borchert  <bt@teknon.de>
80587
80588         * m4/rename.m4: New file.
80589         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80590
80591 2001-01-01  Jim Meyering  <meyering@lucent.com>
80592
80593         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80594         even on systems with utmpx.h.  It's necessary for the declaration of
80595         utmp's ut_user member.  Reported by Andreas Jaeger.
80596
80597         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80598         available. They are required for the declarations of getgrgid and
80599         getpwuid resp.
80600         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80601         Reported by Andreas Jaeger.
80602
80603 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80604
80605         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80606         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80607         so `make install' also works in VPATH builds.
80608
80609 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80610
80611         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80612         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80613         can be used in subdirectories.
80614
80615 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80616
80617         * lib/modechange.c: Do not assume that mode_t uses the
80618         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80619         the other-execute bit of FOO even if S_IXOTH != 1.
80620
80621         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80622         WOTH, XOTH, ALLM): New macros.
80623         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80624          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80625         Use them.
80626         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80627         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80628         (mode_compile):
80629         No need to use uintmax_t; unsigned long is long enough.
80630         Don't bother to get suffix since we don't use it.
80631
80632 2000-12-26  Jim Meyering  <meyering@lucent.com>
80633
80634         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80635         better with autoheader.
80636
80637 2000-12-24  Jim Meyering  <meyering@lucent.com>
80638
80639         * lib/hash.c (is_prime): Return explicit boolean values.
80640         (hash_get_first): Return NULL to appease Irix5.6's 89.
80641         Reported by Nelson Beebe.
80642
80643 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80644
80645         * lib/localcharset.c (locale_charset): Add support for Win32.
80646
80647 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80648
80649         * lib/physmem.h, lib/physmem.c: New files.
80650
80651         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80652         (noinst_HEADERS): Add physmem.h.
80653
80654         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80655         't' for compatibility with Solaris 8 sort.
80656
80657 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80658
80659         * lib/config.charset: Add support for BeOS.
80660
80661 2000-12-17  Jim Meyering  <meyering@lucent.com>
80662
80663         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80664         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80665
80666 2000-12-16  Jim Meyering  <meyering@lucent.com>
80667
80668         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80669         N and M) would have treated it like `chown N:N FILE'.
80670
80671         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80672
80673 2000-12-16  Jim Meyering  <meyering@lucent.com>
80674
80675         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80676         SHELLS_FILE to a file name that's useful on djgpp systems.
80677         Include stdlib.h.
80678         (ADDITIONAL_DEFAULT_SHELLS): Define.
80679         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80680         Based mostly on a patch from Prashant TR.
80681
80682 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80683
80684         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80685         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80686         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80687
80688 2000-12-08  Andreas Schwab  <schwab@suse.de>
80689
80690         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80691         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80692
80693 2000-12-07  Jim Meyering  <meyering@lucent.com>
80694
80695         * lib/stripslash.c (ISSLASH): Define.
80696         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80697         `/'.
80698         From Prashant TR.
80699
80700         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80701         (dir_name_r): Declare this function as static.
80702         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80703         manifest itself on a name containing a mix of slashes and
80704         backslashes.
80705         Make this function work with names starting with a DOS-style
80706         drive letter and colon prefix.
80707         (dir_name): Append `.' if necessary.
80708         Based mostly on patches from Prashant TR and Eli Zaretskii.
80709
80710         * lib/dirname.h (dir_name_r): Remove prototype.
80711
80712 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80713
80714         * m4/off_t-format.m4: Remove this file.
80715         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80716
80717 2000-12-06  Jim Meyering  <meyering@lucent.com>
80718
80719         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80720         replacement strtoull, we may well need the replacement strtoul, too.
80721         Check for declarations of strtoul and strtoull.
80722         Check for strtol.  Mainly as a cue to cause automake to include
80723         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80724         Check for limits.h -- strtol.c needs it.
80725
80726 2000-12-05  Jim Meyering  <meyering@lucent.com>
80727
80728         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80729
80730 2000-12-04  Jim Meyering  <meyering@lucent.com>
80731
80732         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80733         Also include memory.h, stdlib.h, unistd.h if appropriate.
80734         Reported by Andreas Jaeger (conflicting declaration of malloc).
80735
80736 2000-12-02  Jim Meyering  <meyering@lucent.com>
80737
80738         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80739         * m4/jm-macros.m4 (jm_MACROS): require it.
80740
80741 2000-12-02  Jim Meyering  <meyering@lucent.com>
80742
80743         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80744
80745 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80746
80747         * lib/memrchr.c: Include <config.h> before any system include file.
80748
80749 2000-11-30  Jim Meyering  <meyering@lucent.com>
80750
80751         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80752
80753 2000-11-30  Jim Meyering  <meyering@lucent.com>
80754
80755         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80756
80757 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80760
80761 2000-11-26  Jim Meyering  <meyering@lucent.com>
80762
80763         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80764
80765 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80766
80767         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80768         size of (size_t) -1; it's not portable.
80769
80770 2000-11-17  Jim Meyering  <meyering@lucent.com>
80771
80772         * lib/strstr.c: Update from GNU libc.
80773
80774 2000-11-17  Akim Demaille  <akim@epita.fr>
80775
80776         * lib/obstack.h: Formatting changes.
80777         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80778         prevent type checking.
80779         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80780         cast the value to (void *): assigning a `foo *' to a `void *'
80781         variable is valid.
80782         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80783
80784 2000-11-16  Jim Meyering  <meyering@lucent.com>
80785
80786         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80787
80788 2000-11-11  Jim Meyering  <meyering@lucent.com>
80789
80790         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80791
80792 2000-11-10  Jim Meyering  <meyering@lucent.com>
80793
80794         * lib/obstack.h: Update from GNU libc.
80795         * lib/obstack.c: Likewise.
80796
80797 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80798
80799         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80800
80801 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80802
80803         * lib/getusershell.c (setusershell): Use rewind rather than
80804         fseek/fseeko, to avoid configuration hassles with fseeko.
80805         Don't bother opening SHELLS_FILE if shellstream is NULL;
80806         it's not necessary.
80807
80808 2000-11-05  Jim Meyering  <meyering@lucent.com>
80809
80810         * lib/makepath.h (make_dir): Declare.
80811         * lib/makepath.c (make_dir): Remove `static' attribute.
80812         Tweak a comment.
80813
80814 2000-11-04  Jim Meyering  <meyering@lucent.com>
80815
80816         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80817
80818 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80819
80820         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80821         last one in a bucket, advance to the next bucket.
80822
80823 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80824
80825         * lib/fnmatch.c: Do not comment out all the code if we are using
80826         the GNU C library, because in some cases we are replacing buggy
80827         code in the GNU C library itself.
80828
80829 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80830
80831         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80832         (regex_compile): Catch bogus \(\1\).
80833
80834 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80835
80836         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80837         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80838         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80839
80840 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80841
80842         * lib/error.h, getline.h, modechange.h:
80843         Remove "2000" from Copyright line, as the file hasn't been
80844         changed this year other than in the copyright notice.
80845
80846         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80847         was changed this year.
80848
80849 2000-10-29  Jim Meyering  <meyering@lucent.com>
80850
80851         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80852         renaming.
80853         * m4/ls-mntd-fs.m4: Likewise
80854
80855 2000-10-29  Jim Meyering  <meyering@lucent.com>
80856
80857         * lib/xstat.in: Fix grammar in comment.
80858
80859 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80860
80861         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80862         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80863         doesn't define __restrict_arr.
80864
80865 2000-10-28  Jim Meyering  <meyering@lucent.com>
80866
80867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80868         (jm_PREREQ_MEMCHR): New function.
80869
80870 2000-10-28  Jim Meyering  <meyering@lucent.com>
80871
80872         * lib/memchr.c: Update from libc.
80873         Adjust for portability:
80874         [HAVE_STDLIB_H]: Include stdlib.h.
80875         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80876         Undef __memchr, too.
80877         [!weak_alias]: Define __memchr to memchr.
80878
80879         * lib/regex.c: Update from libc.
80880         * lib/regex.h: Likewise.
80881         * lib/getopt1.c: Likewise.
80882         * lib/memcmp.c: Likewise.
80883
80884         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80885         Avoid using fseek, when possible -- it's broken by design.
80886         Patch by Ulrich Drepper.
80887
80888 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80889
80890         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80891         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80892         Giving in to popular pressure to shut up the compiler with casts.
80893
80894 2000-10-26  Jim Meyering  <meyering@lucent.com>
80895
80896         * lib/strftime.c: Update from libc.
80897
80898 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80899
80900         * regex.c: More `unsigned char' -> `re_char' changes.
80901         Also change several `int' into `re_wchar_t'.
80902         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80903         (PUSH_FAILURE_POINTER): Don't cast any more.
80904         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80905         We want GCC to complain, since this piece of code makes
80906         re_match non-reentrant, which *should* be fixed.
80907         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80908         (EXTEND_BUFFER): Use RETALLOC.
80909         (SET_LIST_BIT): Don't cast.
80910         (re_wchar_t): New type.
80911         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80912         that those two functions will always properly return.
80913         (IMMEDIATE_QUIT_CHECK): Cast to void.
80914         (analyse_first): Use recursion rather than an explicit stack.
80915         (re_compile_fastmap): Can't fail anymore.
80916         (re_search_2): Don't check re_compile_fastmap for failure.
80917         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80918         Now also sets the new value (passed in a new argument).
80919         (re_match_2_internal): Use it.
80920         Also, use a new var `reg' of type size_t when looping through regs
80921         rather than reuse the inappropriate `mcnt'.
80922
80923 2000-10-25  Jim Meyering  <meyering@lucent.com>
80924
80925         * lib/obstack.c: Update from libc.
80926
80927 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80928
80929         * regex.c (regex_compile): Change the way of handling a range from
80930         a char less than 256 to a char not less than 256.
80931
80932 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80933
80934         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80935         NT-Emacs only.
80936         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80937         so that re_search functions only quit when callers expect them to.
80938
80939 2000-10-23  Jim Meyering  <meyering@lucent.com>
80940
80941         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80942         wrong.  That set_locale call must not have any side effects.
80943         From Paul Eggert.
80944
80945 2000-10-22  Jim Meyering  <meyering@lucent.com>
80946
80947         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80948         [CYCLIC]: Remove now-unused definition.
80949
80950         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80951         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80952         Suggestion from Ulrich Drepper.
80953
80954 2000-10-21  Jim Meyering  <meyering@lucent.com>
80955
80956         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80957         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80958         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80959
80960 2000-10-21  Jim Meyering  <meyering@lucent.com>
80961
80962         * lib/dirname.c (memrchr): Declare if necessary.
80963         (dir_name): Remove the restriction that there be no
80964         trailing slashes.  Now, this code skips past them, effectively
80965         ignoring them.
80966         [TEST_DIRNAME] (main): New unit tests.
80967
80968         * lib/memrchr.c: New file from GNU libc.
80969         Undef __memrchr, too.
80970         [!weak_alias]: Define __memrchr to memrchr.
80971         Guard weak_alias use with `#ifdef weak_alias'.
80972
80973 2000-10-21  Jim Meyering  <meyering@lucent.com>
80974
80975         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80976         (dir_name): Use dir_name_r.
80977         * lib/dirname.h (dir_name_r): Declare it.
80978
80979 2000-10-17  Jim Meyering  <meyering@lucent.com>
80980
80981         * lib/quote.h (PARAMS): Define and use.
80982         Reported by Akim Demaille.
80983
80984         * lib/getopt.c: Update from libc.
80985
80986 2000-10-16  Jim Meyering  <meyering@lucent.com>
80987
80988         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80989         setlocale.
80990         From Jan Fedak.
80991
80992 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80993
80994         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80995
80996 2000-09-25  Jim Meyering  <meyering@lucent.com>
80997
80998         * lib/md5.h (rol): Define (from GnuPG).
80999
81000         * lib/sha.c: Give credit (GnuPG) where due.
81001         (M): Use rol rather than open-coding it.
81002         Add a FIXME comment.
81003
81004 2000-09-21  Jim Meyering  <meyering@lucent.com>
81005
81006         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81007         Reported by Michael Stone.
81008
81009 2000-09-20  Jim Meyering  <meyering@lucent.com>
81010
81011         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81012         (noinst_HEADERS): Add sha.h.
81013         Based on code from Scott G. Miller and from GnuPG.
81014
81015 2000-09-18  Jim Meyering  <meyering@lucent.com>
81016
81017         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81018         LIBS. Otherwise, everyone ends up linking with -lelf for some
81019         configurations.
81020         Reported by Mike Stone.
81021
81022 2000-09-15  Jim Meyering  <meyering@lucent.com>
81023
81024         * lib/regex.c: Update from libc.
81025
81026 2000-09-10  Jim Meyering  <meyering@lucent.com>
81027
81028         * lib/getopt.c (_getopt_internal): Update from glibc.
81029
81030 2000-09-09  Jim Meyering  <meyering@lucent.com>
81031
81032         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81033         think it should be used as a general replacement for isascii.
81034         * lib/fnmatch.c: Likewise.
81035         * lib/mbswidth.c: Likewise
81036         * lib/regex.c: Likewise.
81037
81038         Don't use atoi.
81039         * lib/userspec.c: Include sys/param.h and limits.h.
81040         Include xstrtol.h.
81041         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81042         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81043         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81044         UID, GID.  Check range.
81045
81046 2000-09-06  Jim Meyering  <meyering@lucent.com>
81047
81048         * lib/getopt.c (_getopt_internal): Update from glibc.
81049
81050 2000-08-30  Jim Meyering  <meyering@lucent.com>
81051
81052         * lib/strftime.c: Merge in changes from GNU libc.
81053
81054 2000-08-26  Jim Meyering  <meyering@lucent.com>
81055
81056         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81057         * m4/fpending.m4: New file.
81058
81059 2000-08-26  Jim Meyering  <meyering@lucent.com>
81060
81061         * lib/closeout.c: Include "__fpending.h".
81062         (close_stdout_status): Return right away if there's nothing to flush.
81063
81064         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81065         * lib/__fpending.c: New file.
81066         * lib/__fpending.h: New file.
81067
81068 2000-08-20  Jim Meyering  <meyering@lucent.com>
81069
81070         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81071         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81072         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81073
81074 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81075
81076         Improve fileutils installation on systems where running
81077         programs (like install) can't be unlinked.
81078         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81079         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81080
81081 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81082
81083         Standardize on "memory exhausted" instead of "Memory exhausted"
81084         or "virtual memory exhausted".
81085         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81086         "virtual memory exhausted".
81087         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81088         our own message.
81089         * lib/userspec.c (parse_user_spec): Likewise.
81090         * lib/bumpalloc.h: comment fix
81091         * lib/same.c, userspec.c: Include xalloc.h.
81092
81093         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81094         not char *const and pointing to a constant array.
81095         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81096         (xrealloc): Comment fix.
81097
81098         * lib/userspec.c (parse_user_spec):
81099         Don't translate a message until just before returning,
81100         to avoid unnecessary translation.
81101
81102 2000-08-07  Jim Meyering  <meyering@lucent.com>
81103
81104         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81105         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81106         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81107         getgroups.c, gethostname.c, getopt.h, group-member.c,
81108         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81109         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81110         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81111         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81112         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81113         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81114         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81115         yesno.c: Back out Copyright date changes for each file with no change
81116         this year.  This eases coordination with other programs using the same
81117         source code modules.  From Paul Eggert.
81118
81119 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81120
81121         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81122         not char, for compatibility with glibc 2.1.3 strftime.c.
81123
81124 2000-08-03  Greg McGary  <greg@mcgary.org>
81125
81126         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81127         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81128         (EXTEND_BUFFER): Use them.
81129
81130 2000-08-01  Jim Meyering  <meyering@lucent.com>
81131
81132         * lib/dirname.c (ISSLASH): Define.
81133         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81134         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81135         both `\' and `/' may be use as path separators.
81136         Based on a patch from Prashant TR.
81137
81138 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81139
81140         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81141         slot vector a constant, since it might get modified.
81142
81143 2000-07-31  Jim Meyering  <meyering@lucent.com>
81144
81145         * lib/xmalloc.c: Use `virtual memory exhausted', not
81146         `Memory exhausted'.
81147         * lib/obstack.c (print_and_abort): Likewise.
81148
81149 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81150
81151         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81152         buffer, so that the caller can always quote one small
81153         component of a "memory exhausted" message in slot 0.
81154         From a suggestion by Jim Meyering.
81155
81156 2000-07-30  Jim Meyering  <meyering@lucent.com>
81157
81158         * lib/makepath.c (make_path): Quote the other instance, too.
81159
81160         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81161         (STATIC_BUF_SIZE): Define.
81162         (quotearg_n_options): Use only statically allocated storage when
81163         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81164         than STATIC_BUF_SIZE.
81165
81166 2000-07-29  Jim Meyering  <meyering@lucent.com>
81167
81168         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81169         * lib/dirname.c (dir_name): Likewise.
81170
81171         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81172         `/'.
81173
81174         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81175         (dir_name): Assert that there are no trailing slashes.
81176
81177 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81178
81179         * lib/mbswidth.h (mbswidth): Add a flags argument.
81180         (mbswidth): New declaration.
81181         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81182         * lib/mbswidth.c (mbswidth): Add a flags argument.
81183         (mbsnwidth): New function.
81184
81185 2000-07-24  Jim Meyering  <meyering@lucent.com>
81186
81187         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81188
81189 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81190
81191         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81192
81193 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81194
81195         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81196         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81197         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81198         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81199         invoke multibyte primitives.
81200
81201 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81202
81203         * lib/quotearg.c:
81204         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81205         so that mbstate_t is always defined.
81206
81207         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81208         be 1 in at least one GCC installation, and this configuration
81209         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81210         performance on hosts that have mbrtowc but have only unibyte
81211         locales, but I assume these hosts are rare.
81212
81213 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81214
81215         * lib/mbswidth.c (_XOPEN_SOURCE):
81216         Don't define; this causes problems on Solaris 7.
81217         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81218
81219 2000-07-23  Jim Meyering  <meyering@lucent.com>
81220
81221         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81222         too: getgrgid, getpwuid, getuid.
81223
81224 2000-07-23  Jim Meyering  <meyering@lucent.com>
81225
81226         * lib/basename.c (base_name): Add an assertion.
81227
81228 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81229
81230         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81231         shadow its mbsinit function.
81232
81233 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81234
81235         * lib/mbswidth.h: New file.
81236         * lib/mbswidth.c: New file.
81237         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81238         (noinst_HEADERS): Add mbswidth.h.
81239
81240 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81241
81242         * lib/config.charset: Add support for FreeBSD. Improve support for
81243         HP-UX and IRIX 6.
81244
81245 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81246
81247         * m4/mbswidth.m4: New file.
81248         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81249
81250 2000-07-15  Jim Meyering  <meyering@lucent.com>
81251
81252         * lib/makepath.c: Include quote.h.
81253         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81254         corresponding argument in a `quote (...)' call.
81255         Give better diagnostics.
81256
81257         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81258         (noinst_HEADERS): Add quote.h.
81259
81260         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81261         from tar's src/misc.c.
81262         * lib/quote.h: New file.  Prototypes for same.
81263
81264 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81265
81266         From a suggestion by Bruno Haible.
81267         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81268         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81269         to decide whether to define the BeOS workaround macro;
81270         this adjusts to the change to AC_MBSTATE_T.
81271
81272 2000-07-14  Jim Meyering  <meyering@lucent.com>
81273
81274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81275         jm_AC_TYPE_UINTMAX_T.
81276
81277 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81278
81279         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81280
81281         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81282         quotearg_buffer_restyled): Add support for
81283         clocale_quoting_style.  Undo previous change to
81284         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81285         and "{RIGHT QUOTATION MARK}" msgids.
81286
81287 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81288
81289         From a suggestion by Bruno Haible.
81290         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81291         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81292         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81293         and mbstate_t, to a single-part test that simply defines mbstate_t.
81294         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81295         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81296
81297 2000-07-10  Jim Meyering  <meyering@lucent.com>
81298
81299         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81300
81301         * m4/gnu-source.m4: Output to confdefs.h directly.
81302         Suggestion from Akim Demaille.
81303
81304 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81305
81306         The old behavior of quoting `like this' doesn't look good with
81307         newer, ISO-style fonts.  See:
81308         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81309
81310         Instead, quote "like this" by default.  Let the translator
81311         tailor the locale-specific quoting behavior by providing
81312         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81313
81314         * lib/quotearg.c (N_): New macro.
81315         (gettext_default): New function.
81316         (quotearg_buffer_restyled): Use
81317         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81318         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81319
81320 2000-07-09  Jim Meyering  <meyering@lucent.com>
81321
81322         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81323         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81324
81325         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81326         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81327
81328 2000-07-09  Jim Meyering  <meyering@lucent.com>
81329
81330         * lib/Most files: Update copyright dates to include 2000.
81331
81332 2000-07-08  Jim Meyering  <meyering@lucent.com>
81333
81334         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81335         if not defined.
81336         (xgethostname): Remove now-unnecessary #ifdef.
81337         Move declaration of `err' into loop where it's used.
81338
81339 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81340         and Bruno Haible  <haible@clisp.cons.org>
81341
81342         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81343         only if the test for an object-type mbstate_t fails.  This
81344         prevents us from mistakenly reporting that mbstate_t is a
81345         system object type after we "#define mbstate_t int" to work
81346         around its lack.
81347
81348 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81349         and Bruno Haible  <haible@clisp.cons.org>
81350
81351         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81352
81353 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81354
81355         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81356         to strerror_r.
81357         Include <ctype.h> for use of isalpha.
81358
81359 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81360
81361         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81362         by allocating a larger buffer. Test the gethostname return value for
81363         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81364         returns an error and ENAMETOOLONG isn't defined.
81365
81366 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81367
81368         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81369         dimension.
81370
81371 2000-07-04  Jim Meyering  <meyering@lucent.com>
81372
81373         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81374         of the deprecated AC_CHECKING.
81375
81376 2000-07-04  Jim Meyering  <meyering@lucent.com>
81377
81378         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81379         Reported by Bruno Haible.
81380
81381 2000-07-04  Jim Meyering  <meyering@lucent.com>
81382
81383         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81384         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81385         lacks mbrtowc.
81386
81387 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81388
81389         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81390         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81391
81392 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81393         and Bruno Haible  <haible@clisp.cons.org>
81394
81395         * lib/quotearg.c (mbrtowc):
81396         Assign to *pwc, and return 1 only if result is nonzero.
81397         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81398
81399 2000-07-03  Jim Meyering  <meyering@lucent.com>
81400
81401         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81402
81403 2000-07-03  Jim Meyering  <meyering@lucent.com>
81404
81405         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81406         This is necessary to get a definition of e.g., UTMP_FILE on
81407         HP-UX 10.20.
81408         From Bob Proulx.
81409
81410 2000-07-02  Jim Meyering  <meyering@lucent.com>
81411
81412         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81413
81414         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81415         AC_LIBOBJ(function_name).
81416         * m4/chown.m4: Likewise.
81417         * m4/fnmatch.m4: Likewise.
81418         * m4/ftruncate.m4: Likewise.
81419         * m4/getgroups.m4: Likewise.
81420         * m4/getline.m4: Likewise.
81421         * m4/group-member.m4: Likewise.
81422         * m4/jm-macros.m4: Likewise.
81423         * m4/lstat.m4: Likewise.
81424         * m4/malloc.m4: Likewise.
81425         * m4/memcmp.m4: Likewise.
81426         * m4/nanosleep.m4: Likewise.
81427         * m4/putenv.m4: Likewise.
81428         * m4/realloc.m4: Likewise.
81429         * m4/regex.m4: Likewise.
81430         * m4/stat.m4: Likewise.
81431         * m4/strftime.m4: Likewise.
81432
81433 2000-07-02  Jim Meyering  <meyering@lucent.com>
81434
81435         * lib/quotearg.c (mbstate_t): Don't define here.
81436
81437 2000-07-02  Jim Meyering  <meyering@lucent.com>
81438
81439         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81440
81441 2000-07-01  Jim Meyering  <meyering@lucent.com>
81442
81443         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81444
81445 2000-07-01  Jim Meyering  <meyering@lucent.com>
81446
81447         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81448         problem.
81449
81450 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81451
81452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81453         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81454
81455 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81456
81457         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81458         per change in ../m4/ls-mntd-fs.m4.
81459         (read_filesystem_list): Ignore symbolic links.
81460
81461 2000-06-29  Jim Meyering  <meyering@lucent.com>
81462
81463         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81464         for declaration of strcmp.
81465
81466         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81467
81468         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81469         Avoid warning by casting result to `char *' to remove `const'.
81470
81471 2000-06-28  Jim Meyering  <meyering@lucent.com>
81472
81473         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81474         included by quotearg.c, for which we perform this test.  From
81475         Bruno Haible.
81476
81477 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81478
81479         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81480         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81481         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81482
81483 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81484
81485         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81486
81487 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81488
81489         savedir now sets errno on failure and invokes xmalloc to get memory.
81490         Fix a couple of other minor bugs while we're at it.
81491
81492         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81493         (NAMLEN): Remove macro.
81494         (malloc, realloc): Remove decls.
81495         (stpcpy): Likewise.
81496         ("xalloc.h"): Include.
81497         (NAME_SIZE_DEFAULT): New macro.
81498         (savedir): Use xmalloc / xrealloc to allocate memory.
81499         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81500         Skip "" directory entries.
81501         Use strlen to calculate directory entry length, since the old method
81502         is rarely used these days and isn't worth supporting.
81503         Don't use a pointer after freeing it.
81504         Check for integer overflow when calculating allocation size.
81505         Use memcpy to copy entries, instead of stpcpy.
81506         Set errno properly when returning NULL.
81507         Check for readdir error.
81508
81509 2000-06-26  Jim Meyering  <meyering@lucent.com>
81510
81511         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81512
81513 2000-06-25  Jim Meyering  <meyering@lucent.com>
81514
81515         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81516         Linux header bug when _XOPEN_SOURCE is defined to 500.
81517
81518 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81519
81520         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81521         deficiency.
81522
81523 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81524
81525         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81526         Include xalloc.h.
81527         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81528
81529 2000-06-24  Jim Meyering  <meyering@lucent.com>
81530
81531         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81532         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81533         for which strerror does return char*, but which lacks a conveniently
81534         accessible declaration of the function.  If the compile-test says
81535         strerror_r doesn't work, then resort to a `run'-test that works on
81536         BeOS and segfaults on DEC Unix.
81537
81538 2000-06-24  Jim Meyering  <meyering@lucent.com>
81539
81540         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81541
81542 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81543
81544         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81545         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81546
81547 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81548
81549         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81550         (mbrtowc, mbstate_t): Define substitutes if
81551         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81552         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81553         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81554
81555 2000-06-23  Jim Meyering  <meyering@lucent.com>
81556
81557         * m4/afs.m4: Add missing AC_MSG_RESULT.
81558         Reported by Bruno Haible.
81559
81560         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81561         Suggestion from Bruno Haible.
81562
81563 2000-06-23  Jim Meyering  <meyering@lucent.com>
81564
81565         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81566
81567 2000-06-21  Jim Meyering  <meyering@lucent.com>
81568
81569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81570
81571 2000-06-21  Jim Meyering  <meyering@lucent.com>
81572
81573         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81574         (noinst_HEADERS): Add getstr.h.
81575
81576         * lib/getline.c (getstr): Move into a separate file.
81577         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81578         the following changes: new parameter, delim2; both delim[12]
81579         parameters have type `int', not `char'.  The latter would lose
81580         with 8-bit delimiters.
81581         * lib/getstr.h: New file.
81582
81583 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81584
81585         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81586         than 1024, return a memory chunk of least possible size, instead
81587         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81588         Use free/xmalloc instead of xrealloc to avoid copying for very long
81589         paths.
81590
81591 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81592
81593         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81594         the empty string.
81595
81596 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81597
81598         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81599         address, not strdup.  Include <stdlib.h> and don't declare free().
81600
81601 2000-06-19  Jim Meyering  <meyering@lucent.com>
81602
81603         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81604
81605 2000-06-18  Jim Meyering  <meyering@lucent.com>
81606
81607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81608
81609         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81610         `checking whether...' message to be consistent with that of the
81611         lstat test.
81612
81613 2000-06-18  Jim Meyering  <meyering@lucent.com>
81614
81615         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81616         Besides, these days every porting target provides a mkdir function.
81617
81618         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81619         needed. (this snippet comes from src/system.h).
81620
81621 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81622
81623         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81624
81625 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81626
81627         * lib/human.c (adjust_value): New function.
81628         (human_readable_inexact): Apply rounding style even when
81629         printing approximate values.
81630
81631 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81632
81633         * lib/human.c (human_readable_inexact): Allow an input block
81634         size that is not a multiple of the output block size, and vice versa.
81635         Reported by Piergiorgio Sartor.
81636
81637 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81638
81639         * lib/getdate.y (get_date): Apply relative times after time
81640         zone indicator, not before.  Reported by Todd A. Jacobs.
81641
81642 2000-06-13  Jim Meyering  <meyering@lucent.com>
81643
81644         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81645
81646         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81647
81648 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81649
81650         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81651
81652 2000-06-12  Jim Meyering  <meyering@lucent.com>
81653
81654         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81655         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81656         optional argument.
81657         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81658         the optional argument, `lib'.
81659
81660 2000-06-08  Jim Meyering  <meyering@lucent.com>
81661
81662         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81663
81664 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81665
81666         Rewrite largefile configuration so that we don't need to run
81667         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81668         AC_CANONICAL_HOST in configure.in -- jmm]
81669
81670         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81671         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81672         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81673         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81674         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81675         All uses changed.
81676         Instead of inspecting the output of getconf, try to compile the
81677         test program without and with the macro definition.
81678         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81679         for getconf.  Instead, check for the needed flags by compiling
81680         test programs.
81681
81682 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81683
81684         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81685
81686 2000-06-04  Jim Meyering  <meyering@lucent.com>
81687
81688         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81689         SunOS 4.1.4 for which gid_t is an unsigned type.
81690
81691 2000-06-03  Jim Meyering  <meyering@lucent.com>
81692
81693         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81694         now that autoconf requires that.
81695
81696         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81697         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81698         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81699
81700 2000-06-03  Jim Meyering  <meyering@lucent.com>
81701
81702         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81703
81704 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81705
81706         * m4/glibc21.m4: New file.
81707         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81708
81709 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81710
81711         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81712         newer, don't install charset.alias.
81713         * lib/config.charset: Change the Linux/glibc rules so they become empty
81714         on glibc-2.1 or newer.
81715
81716 2000-06-02  Jim Meyering  <meyering@lucent.com>
81717
81718         * lib/mountlist.c: Back out last change.  Instead, do this...
81719         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81720         me_dummy member using the same `ignore'-testing code.
81721         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81722         fs_type strings.
81723         From Mark D. Roth.
81724
81725 2000-05-29  Jim Meyering  <meyering@lucent.com>
81726
81727         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81728         mounts with the `ignore' attribute.  Based on a patch from
81729         Mark D. Roth.
81730
81731 2000-05-28  Jim Meyering  <meyering@lucent.com>
81732
81733         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81734         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81735         * m4/stat.m4: Likewise.
81736         * m4/lstat.m4: Likewise.
81737         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81738
81739         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81740         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81741
81742 2000-05-26  Jim Meyering  <meyering@lucent.com>
81743
81744         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81745
81746 2000-05-24  Jim Meyering  <meyering@lucent.com>
81747
81748         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81749         autoconf requires that.
81750         * m4/lib-check.m4: Likewise.
81751         * m4/jm-macros.m4: Likewise.
81752         * m4/strftime.m4: Likewise.
81753
81754         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81755         AC_CHECK_DECLS, now that autoconf requires that.
81756
81757 2000-05-22  Jim Meyering  <meyering@lucent.com>
81758
81759         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81760         * m4/lstat.m4: Likewise.
81761
81762 2000-05-22  Jim Meyering  <meyering@lucent.com>
81763
81764         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81765
81766 2000-05-20  Jim Meyering  <meyering@lucent.com>
81767
81768         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81769         (jm_PREREQ): Use it.
81770
81771 2000-05-18  Jim Meyering  <meyering@lucent.com>
81772
81773         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81774         back, too, since it may have been modified by allocate_entry.
81775         (hash_delete): Rewrite to use neither the assignment operator
81776         nor the comma operator in an if-expression.
81777
81778 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81779
81780         * lib/closeout.c:
81781         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81782         Remove; no longer needed.
81783         "quotearg.h": Add include.
81784         (file_name): Do not bother to explicitly initialize to NULL; it's less
81785         efficient on some hosts.
81786         (close_stdout_status): Remove test as to whether stdout was already
81787         closed; it breaks for the case "echo x | sort >&-".
81788         Quote file name colons.
81789         Do not assume that _("write error") lacks format strings.
81790
81791 2000-05-15  Jim Meyering  <meyering@lucent.com>
81792
81793         * lib/version-etc.c (version_etc_copyright): Update the copyright
81794         string used in all --version output.
81795
81796 2000-05-14  Jim Meyering  <meyering@lucent.com>
81797
81798         * lib/closeout.c (close_stdout_set_file_name): New function.
81799         (close_stdout_status): Use new file-scoped global.
81800         Return right away if fstat says the stdout file descriptor is invalid.
81801         * lib/closeout.h (close_stdout_set_file_name): Declare.
81802
81803 2000-05-10  Jim Meyering  <meyering@lucent.com>
81804
81805         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81806         (close_stdout_set_status): New function.
81807         * lib/closeout.h (close_stdout_set_status): Declare.
81808
81809 2000-05-09  Jim Meyering  <meyering@lucent.com>
81810
81811         * m4/gettext.m4: Rename this...
81812         * m4/libintl.m4: ...to this.
81813
81814 2000-05-08  Jim Meyering  <meyering@lucent.com>
81815
81816         * lib/long-options.c: Don't include closeout.h.
81817         (parse_long_options): Don't call close_stdout for --version.
81818
81819 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81820
81821         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81822         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81823         2.1.3 bug.  This avoids a clash when files like regex.c define
81824         _GNU_SOURCE.
81825
81826 2000-05-06  Jim Meyering  <meyering@lucent.com>
81827
81828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81829         (AC_REPLACE_FUNCS): Add strnlen.
81830
81831         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81832         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81833
81834         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81835         AC_SEARCH_LIBS call for nanosleep.
81836         (LIB_NANOSLEEP): Set and AC_SUBST.
81837
81838 2000-05-06  Jim Meyering  <meyering@lucent.com>
81839
81840         * lib/strnlen.c: Undefine __strnlen and strnlen.
81841         [!weak_alias]: Define __strnlen to strnlen.
81842
81843         * lib/atexit.c: New file, from libiberty.
81844
81845 2000-05-06  Jim Meyering  <meyering@lucent.com>
81846
81847         * lib/closeout.c (close_stdout_status): Also check for errors on the
81848         stderr stream.
81849
81850 2000-05-05  Jim Meyering  <meyering@lucent.com>
81851
81852         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81853         AC_SEARCH_LIBS call for clock_gettime.
81854         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81855
81856         * m4/search-libs.m4: Update from autoconf.
81857
81858         su doesn't work on Solaris 2.6.
81859         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81860         <shadow.h>.  Reported by Dragos Harabor.
81861
81862 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81863
81864         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81865         memcpy instead of xmalloc, xrealloc, path_concat.
81866         (locale_charset): Treat empty environment variables as absent.
81867         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81868
81869 2000-05-04  Jim Meyering  <meyering@lucent.com>
81870
81871         * lib/getopt.c: Update from glibc.
81872         * lib/obstack.c: Likewise.
81873         * lib/obstack.h: Likewise.
81874         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81875         file
81876
81877         * lib/regex.h: Likewise.
81878         * lib/strndup.c: Likewise.
81879         * lib/strnlen.c: New file, from glibc.
81880
81881 2000-05-03  Jim Meyering  <meyering@lucent.com>
81882
81883         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81884
81885 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81886
81887         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81888         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81889         compile-time test, rather than inspecting host and OS, to
81890         decide whether to define _LARGEFILE_SOURCE.
81891
81892 2000-05-01  Jim Meyering  <meyering@lucent.com>
81893
81894         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81895
81896         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81897         Based on a patch from Bruno Haible.
81898
81899 2000-05-01  Jim Meyering  <meyering@lucent.com>
81900
81901         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81902
81903 2000-04-29  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/path-concat.c: Declare strdup only if it's not defined.
81906         * lib/canon-host.c: Likewise.
81907
81908 2000-04-28  Jim Meyering  <meyering@lucent.com>
81909
81910         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81911         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81912         is included first, then limits.h is included by locale.h by libintl.h.
81913         From John David Anglin.
81914
81915 2000-04-25  Jim Meyering  <meyering@lucent.com>
81916
81917         * lib/makepath.c (S_IRWXUGO): Define.
81918         (make_path): Always perform explicit chmod if MODE specifies any
81919         of the `special' permission bits.  Prompted by a bug report against
81920         install from Mate Wierdl and Joost van Baal.
81921
81922 2000-04-18  Jim Meyering  <meyering@lucent.com>
81923
81924         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81925         (jm_PREREQ): Use it.
81926
81927 2000-04-18  Jim Meyering  <meyering@lucent.com>
81928
81929         * lib/README: New file.
81930
81931         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81932         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81933
81934 2000-04-17  Jim Meyering  <meyering@lucent.com>
81935
81936         Get it right :-)
81937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81938         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81939         Suggestion from Akim Demaille.
81940
81941 2000-04-17  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81944         the definition of it to rpl_strftime also defined-away the system's
81945         declaration.
81946
81947 2000-04-15  Jim Meyering  <meyering@lucent.com>
81948
81949         Use `C' to denote so-called `contiguous' files, the same way
81950         that tar does.
81951         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81952         (ftypelet): Use S_ISCTG.
81953         From Michael Deutschmann.
81954
81955 2000-04-14  Jim Meyering  <meyering@lucent.com>
81956
81957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81958         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81959         clobbered.
81960
81961 2000-04-14  Jim Meyering  <meyering@lucent.com>
81962
81963         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81964
81965 2000-04-13  Jim Meyering  <meyering@lucent.com>
81966
81967         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81968         AH_VERBATIM to insert required #ifndef into config.h.in.
81969         Suggestion from Akim Demaille.
81970
81971 2000-04-12  Jim Meyering  <meyering@lucent.com>
81972
81973         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81974         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81975         Christian Krackowizer.
81976
81977         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81978         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81979         (AC_SYS_LARGEFILE): Require.
81980         (AM_C_PROTOTYPES): Require.
81981
81982 2000-04-08  Jim Meyering  <meyering@lucent.com>
81983
81984         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81985         names don't conflict.  Reported by Eli Zaretskii.
81986
81987 2000-04-07  Jim Meyering  <meyering@lucent.com>
81988
81989         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81990         sys/types.h, to work around system header problems on AIX 3.2.5.
81991         From Bruno Haible.
81992
81993 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81994
81995         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81996         bug.  Deal with the different error behavior of Irix iconv.
81997
81998 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81999
82000         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82001         IRIX if the installer said otherwise.
82002
82003 2000-04-05  Jim Meyering  <meyering@lucent.com>
82004
82005         Portability tweaks required for ultrix4.3.
82006         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82007         (jm_CHECK_DECLS): Add getutent to the list of functions.
82008         (_jm_DECL_HEADERS): Add utmpx.h.
82009         From John David Anglin.
82010
82011         * m4/strftime.m4: Back out the 2000-04-02 change.
82012         Instead of that change, simply undefine putenv in the test program.
82013
82014 2000-04-05  Jim Meyering  <meyering@lucent.com>
82015
82016         Portability tweaks required for ultrix4.3.
82017         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82018         getutent.
82019         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82020         * lib/canon-host.c: Declare strdup.
82021         * lib/path-concat.c: Likewise.
82022         From John David Anglin.
82023
82024 2000-04-04  Jim Meyering  <meyering@lucent.com>
82025
82026         Be more DOS 8.3-friendly.
82027         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82028         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82029         * lib/Makefile.am: Reflect renaming.
82030         Reported by Eli Zaretskii.
82031
82032         Use a temporary file name that won't clash with `charset.alias'
82033         in the DOS 8.3 name space.
82034         * lib/Makefile.am (charset_tmp): Define.
82035         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82036         (uninstall-local): Likewise.
82037         Reported by Eli Zaretskii.
82038
82039 2000-04-03  Jim Meyering  <meyering@lucent.com>
82040
82041         * m4/gettext.m4: Fix typo in comment.
82042
82043         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82044         textutils/configure.in).  Suggestion from Paul Eggert.
82045         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82046
82047 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82048
82049         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82050         variable in the shell rather than using putenv, which isn't
82051         portable.  This avoids the configure-time inter-test dependency
82052         on the potentially-renamed putenv function.
82053
82054 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82055
82056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82057         before checking struct stat.st_blksize, so that
82058         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82059
82060 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82061
82062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82063         since strftime.c uses HAVE_STRFTIME to decide whether to use
82064         the underlying strftime.
82065
82066 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82067
82068         * lib/time/strftime.c (my_strftime): Make sure we call the system
82069         strftime, not ourselves, when invoking the underlying strftime.
82070
82071 2000-03-24  Jim Meyering  <meyering@lucent.com>
82072
82073         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82074         (charset_alias): Define.
82075         (install-exec-local): Factor out common code.
82076         (uninstall-local): Split lines longer than 80.
82077         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82078         (SUFFIXES): Define.
82079         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82080         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82081
82082 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82083
82084         * lib/config.charset: Output a line containing "Packages using this
82085         file".
82086         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82087         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82088         ref-del.sed): New rules.
82089
82090 2000-03-17  Jim Meyering  <meyering@lucent.com>
82091
82092         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82093         Otherwise, include <strings.h>
82094
82095 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82096
82097         * lib/unicodeio.c (utf8_wctomb): New function.
82098         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82099         format instead of in UCS-4 with platform dependent endianness.
82100
82101 2000-03-10  Jim Meyering  <meyering@lucent.com>
82102
82103         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82104         From Marco Franzen.
82105
82106 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82107
82108         * lib/savedir.c (savedir): Work even if directory size is
82109         negative; this can happen with some screwy NFS configurations.
82110
82111 2000-03-06  Jim Meyering  <meyering@lucent.com>
82112
82113         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82114         if it's NULL (because we ran out of memory).  From Bruno Haible.
82115
82116 2000-03-05  Jim Meyering  <meyering@lucent.com>
82117
82118         * lib/localcharset.c ("path-concat.h"): Include.
82119         (get_charset_aliases): Use path_concat instead of ANSI string
82120         concatenation.
82121
82122         * lib/unicodeio.h (PARAMS): Define.
82123         Use it to guard prototype.
82124
82125 2000-03-04  Jim Meyering  <meyering@lucent.com>
82126
82127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82128         for lib/localcharset.c.
82129
82130 2000-03-04  Jim Meyering  <meyering@lucent.com>
82131
82132         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82133         installing into it.
82134         (uninstall-local): Uncomment this rule so `make distcheck' works
82135         once again.
82136
82137         * lib/unicodeio.c (<errno.h>): Include it.
82138         (errno): Declare if not defined.
82139
82140         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82141
82142         * lib/config.charset: New version, incorporating remarks from a linux
82143         i18n mailing list.  From Bruno Haible.
82144
82145 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82146
82147         * m4/codeset.m4: New file.
82148         * m4/iconv.m4: New file.
82149         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82150
82151 2000-03-03  Jim Meyering  <meyering@lucent.com>
82152
82153         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82154
82155 2000-03-02  Jim Meyering  <meyering@lucent.com>
82156
82157         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82158         the messages come out on separate lines.
82159
82160         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82161         rather than jm_CHECK_DECLARATIONS.
82162         * m4/decl.m4: Remove now-unused file.
82163
82164         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82165         geteuid.
82166
82167 2000-03-02  Jim Meyering  <meyering@lucent.com>
82168
82169         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82170
82171 2000-03-01  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82174         * lib/unicodeio.c: Likewise.
82175
82176 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82177
82178         * lib/config.charset: New file.
82179         * lib/localcharset.c: New file.
82180         * lib/unicodeio.h, lib/unicodeio.c: New files.
82181         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82182         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82183         (noinst_HEADERS): Add unicodeio.h.
82184         (all-local, install-exec-local, charset.alias): New targets.
82185
82186 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82187
82188         * lib/quotearg.c (ALERT_CHAR): New macro.
82189         (quotearg_buffer_restyled): Use it.
82190
82191 2000-02-27  Jim Meyering  <meyering@lucent.com>
82192
82193         * m4/check-decl.m4: Add getenv to the list.
82194
82195 2000-02-27  Jim Meyering  <meyering@lucent.com>
82196
82197         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82198         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82199
82200         * lib/backupfile.c: Guard inclusion of stdlib.h with
82201         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82202         Declare malloc if needed.
82203
82204         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82205         `#ifndef HAVE_DECL..'
82206         now that autoconf always defines the HAVE_DECL_ symbols.
82207         * lib/human.c: Likewise.
82208         * lib/same.c: Likewise.
82209         * lib/strtoumax.c: Likewise.
82210
82211         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82212         declaration check was not run.
82213         * lib/hash.c: Likewise.
82214         * lib/human.c: Likewise.
82215         * lib/same.c: Likewise.
82216         * lib/strtoumax.c: Likewise.
82217
82218         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82219         `.', then first look up the entire `.'-containing string as a login
82220         name.
82221
82222 2000-02-23  Jim Meyering  <meyering@lucent.com>
82223
82224         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82225         in place of my hack.
82226
82227 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82228
82229         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82230         (textint): New typedef.
82231         (parser_control): Member year changed from int to textint.
82232         All uses changed.
82233         (YYSTYPE): Removed; replaced by %union with int and textint members.
82234         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82235         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82236         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82237         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82238         (date, number, to_year): Use width of number in digits, not its value,
82239         to determine whether it's a 2-digit year, or a 2-digit time.
82240         (yylex): Store number of digits of numeric tokens.
82241         Reported by John Kendall.
82242
82243         (parser_control): Changed from struct parser_control to typedef (for
82244         consistency).  All uses changed.
82245
82246         (tID): Removed; not used.
82247         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82248
82249 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82250
82251         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82252         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82253
82254 2000-02-12  Jim Meyering  <meyering@lucent.com>
82255
82256         * lib/userspec.c (ISDIGIT): Define it.
82257         (isdigit): Remove definition.
82258         (is_number): Use ISDIGIT, not isdigit.
82259         <libintl.h>: Include.
82260         (_ and N_): Define.
82261         (parse_user_spec): Mark translatable strings.
82262
82263 2000-02-10  Jim Meyering  <meyering@lucent.com>
82264
82265         With these changes, nanosleep.[ch] are finally enough like the other
82266         lib/* replacement files to compile on a few more losing systems.
82267
82268         * lib/nanosleep.h: Don't include config.h.
82269         Remove prototype from declaration of nanosleep.
82270         (PARAMS): Remove now-unneeded definition.
82271         * lib/nanosleep.c: #undef nanosleep.
82272         (rpl_nanosleep): Rename from nanosleep.
82273
82274 2000-02-10  Jim Meyering  <meyering@lucent.com>
82275
82276         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82277         gnu_nanosleep to rpl_nanosleep.
82278
82279 2000-02-09  Jim Meyering  <meyering@lucent.com>
82280
82281         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82282         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82283
82284 2000-02-08  Akim Demaille  <akim@epita.fr>
82285
82286         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82287         `[' and `]' and remove uses of `changequote'.
82288         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82289         (AC_SYS_LARGEFILE): Likewise.
82290         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82291         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82292         of changequote.
82293         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82294         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82295         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82296         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82297
82298 2000-02-05  Jim Meyering  <meyering@lucent.com>
82299
82300         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82301         Remove explicit use of AC_HEADER_TIME.  It is required by
82302         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82303         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82304         in autoconf whereby the expansion of the latter ended up preceding
82305         the expansion of its prerequisite, AC_HEADER_TIME.
82306         Reported by Volker Borchert.
82307
82308 2000-02-03  Jim Meyering  <meyering@lucent.com>
82309
82310         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82311
82312 2000-02-03  Jim Meyering  <meyering@lucent.com>
82313
82314         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82315         rather than with `#if HAVE_UTMPNAME'.
82316
82317 2000-02-02  Jim Meyering  <meyering@lucent.com>
82318
82319         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82320         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82321         Reported by Eli Zaretskii.
82322
82323 2000-02-01  Jim Meyering  <meyering@lucent.com>
82324
82325         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82326
82327 2000-01-31  Jim Meyering  <meyering@lucent.com>
82328
82329         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82330         functions.  Add the time.h and sys/time.h headers along with the
82331         AC_REQUIRE'ment of AC_HEADER_TIME.
82332
82333 2000-01-31  Jim Meyering  <meyering@lucent.com>
82334
82335         * lib/nanosleep.h (nanosleep): Guard declaration with
82336         `#if ! HAVE_DECL_NANOSLEEP'.
82337         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82338         the declaration in that vendor's sys/timers.h.
82339         Reported by Christian Krackowizer.
82340
82341         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82342         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82343         (ISPRINT): Likewise.
82344         Reported by Tom Tromey.
82345
82346 2000-01-30  Jim Meyering  <meyering@lucent.com>
82347
82348         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82349
82350         * m4/prereq.m4 (utmp_includes): Define.
82351         Check for ut_user and ut_name members in both struct utmpx
82352         and struct utmp.
82353
82354 2000-01-30  Jim Meyering  <meyering@lucent.com>
82355
82356         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82357         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82358         header files where only utmpx.ut_user is declared.
82359
82360         * lib/readutmp.h (UT_USER): Define.
82361
82362 2000-01-29  Jim Meyering  <meyering@lucent.com>
82363
82364         * m4/lib-check.m4: New file containing library-related checks from
82365         fileutils and sh-utils (textutils had none).
82366
82367 2000-01-28  Jim Meyering  <meyering@lucent.com>
82368
82369         * m4/perl.m4: Change format of warning message to look more like that
82370         from the missing script.  Suggestion from François Pinard.
82371
82372 2000-01-25  Jim Meyering  <meyering@lucent.com>
82373
82374         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82375         well as time.h in the compile check.
82376         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82377         Fix typo in cross-compiling case: s/yes/no/.
82378
82379 2000-01-23  Jim Meyering  <meyering@lucent.com>
82380
82381         * m4/jm-macros.m4: Move df-related tests here from
82382         fileutils/configure.in
82383
82384         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82385         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82386
82387         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82388         s/space/ac_fsusage_space/.
82389         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82390
82391         * m4/ftruncate.m4: New file (derived from part of
82392         fileutils/configure.in).
82393         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82394         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82395
82396         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82397         AC_SUBST these here, rather than just in sh-util/configure.in, so
82398         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82399         all the same.
82400         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82401         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82402         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82403         (AC_SUBST(POW_LIBM)): Likewise.
82404         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82405
82406 2000-01-23  Jim Meyering  <meyering@lucent.com>
82407
82408         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82409         obstack.c.
82410
82411 2000-01-22  Jim Meyering  <meyering@lucent.com>
82412
82413         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82414
82415         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82416
82417         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82418         configure.in
82419         (AC_CHECK_HEADERS): Likewise for sh-utils.
82420         (AC_CHECK_HEADERS): Likewise for textutils.
82421         Merge the three lists of headers.
82422
82423         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82424         from fileutils' configure.in.
82425
82426         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82427         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82428         check-decl.m4.
82429
82430         * m4/check-decl.m4: Use #if rather than #ifdef.
82431         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82432         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82433         (_jm_DECL_HEADERS): Define new function.
82434         (jm_CHECK_DECLARATIONS): Require it.
82435
82436 2000-01-22  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82439         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82440         Required for some AIX systems.  Reported by Christian Krackowizer.
82441         [TESTING] (main): New function.
82442
82443         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82444         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82445         letters.
82446
82447         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82448         iswprint.
82449
82450         * lib/strverscmp.c (ISDIGIT): Define.
82451         (strverscmp): Use ISDIGIT, not isdigit.
82452
82453 2000-01-19  Jim Meyering  <meyering@lucent.com>
82454
82455         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82456         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82457         defines `struct timespec' in <sys/time.h>
82458
82459         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82460         Thanks to Akim for explaining.
82461
82462 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82463
82464         * lib/nanosleep.c (nanosleep):
82465         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82466         POSIX.1 doesn't require SA_INTERRUPT and some systems
82467         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82468         it's been part of POSIX.1 since day 1 (in 1988).
82469
82470 2000-01-17  Jim Meyering  <meyering@lucent.com>
82471
82472         * lib/interlock: Remove unused file.  Reported by François Pinard.
82473
82474 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82475
82476         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82477         alert, backslash, formfeed, and vertical tab unnecessarily in
82478         shell quoting style.
82479
82480 2000-01-16  Jim Meyering  <meyering@lucent.com>
82481
82482         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82483         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82484         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82485         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82486
82487 2000-01-16  Jim Meyering  <meyering@lucent.com>
82488
82489         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82490         because the latter didn't work.
82491
82492 2000-01-15  Jim Meyering  <meyering@lucent.com>
82493
82494         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82495         (AC_REPLACE_FUNCS): Add memcpy and memset.
82496         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82497         Add strpbrk.
82498         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82499
82500 2000-01-12  Jim Meyering  <meyering@lucent.com>
82501
82502         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82503         (jm_PREREQ): Use it.
82504         (jm_PREREQ_READUTMP): New macro.
82505         (jm_PREREQ): Use it.
82506
82507 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82508
82509         Quote multibyte characters correctly.
82510         * m4/c-bs-a.m4: New file.
82511         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82512         (jm_PREREQ): Use it.
82513
82514 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82515
82516         * m4/uintmax_t.m4: Port to autoconf 2.13.
82517
82518 2000-01-08  Jim Meyering  <meyering@ascend.com>
82519
82520         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82521         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82522
82523 2000-01-04  Jim Meyering  <meyering@ascend.com>
82524
82525         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82526         jm_STRUCT_DIRENT_D_TYPE.
82527         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82528         jm_STRUCT_DIRENT_D_INO.
82529         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82530         jm_STRUCT_UTIMBUF.
82531         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82532         renamings.
82533         * m4/utime.m4: Likewise.
82534
82535         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82536         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82537
82538 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82539
82540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82541         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82542
82543 2000-01-02  Jim Meyering  <meyering@ascend.com>
82544
82545         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82546         remember if this is necessary.
82547
82548 1999-12-26  Jim Meyering  <meyering@ascend.com>
82549
82550         * m4/jm-macros.m4: Use it here.
82551         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82552
82553 1999-12-23  Jim Meyering  <meyering@ascend.com>
82554
82555         * m4/jm-macros.m4: Check for clock_gettime (moved from
82556         fileutils/configure.in)
82557         Check for gettimeofday.
82558
82559 1999-12-20  Jim Meyering  <meyering@ascend.com>
82560
82561         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82562         autoconf-2.14a-1999-12-20.
82563
82564 1999-12-19  Jim Meyering  <meyering@ascend.com>
82565
82566         * m4/lstat-slash.m4: New file.
82567         * m4/jm-macros.m4: Use the new macro:
82568         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82569
82570 1999-12-07  Jim Meyering  <meyering@ascend.com>
82571
82572         * m4/perl.m4: Require that File::Compare be available, too.
82573         Too many systems seem to lack it.
82574
82575         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82576         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82577
82578 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82579
82580         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82581         problem with the QNX 4.25 shell, which doesn't propagate exit
82582         status of failed commands inside shell assignments.
82583
82584 1999-11-17  Jim Meyering  <meyering@ascend.com>
82585
82586         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82587
82588 1999-11-07  Jim Meyering  <meyering@ascend.com>
82589
82590         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82591
82592 1999-11-06  Jim Meyering  <meyering@ascend.com>
82593
82594         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82595         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82596
82597 1999-11-05  Jim Meyering  <meyering@ascend.com>
82598
82599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82600         configure.in of textutils, fileutils, and sh-utils into this one
82601         (shared between those packages) file.
82602         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82603         AC_STRUCT_ST_BLKSIZE.
82604
82605 1999-11-03  Jim Meyering  <meyering@ascend.com>
82606
82607         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82608         of AC_CHECK_TYPE checks includes unistd.h.
82609         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82610         Suggestion from Akim Demaille.
82611
82612 1999-10-30  Jim Meyering  <meyering@ascend.com>
82613
82614         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82615         m4-quoted string.
82616         * m4/ls-mntd-fs.m4: Likewise.
82617         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82618         * m4/jm-winsz1.m4: Likewise.
82619
82620         * m4/const.m4: Remove file, since the fix made it into the experimental
82621         version of autoconf.
82622         * m4/mktime.m4: Likewise.
82623
82624         * m4/check-type.m4: Remove file, now that the latest version of
82625         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82626
82627         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82628         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82629         AC_CHECK_TYPE.
82630
82631 1999-10-04  Jim Meyering  <meyering@ascend.com>
82632
82633         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82634
82635 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82636
82637         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82638         2.95.1 bug with HP-UX 10.20.
82639
82640 1999-09-17  Jim Meyering  <meyering@ascend.com>
82641
82642         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82643         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82644         due to missing strdup (against sh-utils-2.0).
82645
82646 1999-08-29  Jim Meyering  <meyering@ascend.com>
82647
82648         * m4/jm-macros.m4: Require jm_BISON.
82649         * m4/bison.m4: New file.
82650
82651 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82652
82653         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82654         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82655
82656 1999-08-05  Jim Meyering  <meyering@ascend.com>
82657
82658         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82659         to avoid conflicts with `conftest' on 8+3 filesystems.
82660         Suggestion from Eli Zaretskii.
82661
82662 1999-08-04  Jim Meyering  <meyering@ascend.com>
82663
82664         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82665         fileutils and sh-utils (textutils's getline test was inadequate).
82666         (AM_FUNC_GETLINE): Run this test.
82667         (AC_CHECK_FUNCS): Check for getdelim.
82668         Reported by Bob Proulx.
82669
82670 1999-08-02  Jim Meyering  <meyering@ascend.com>
82671
82672         * m4/jm-macros.m4: Add a comment.
82673
82674 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82675
82676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82677         <inttypes.h> defines strtoumax as a macro (and not as a
82678         function).
82679
82680 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82681
82682         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82683         that we can shift, multiply and divide unsigned long long
82684         values; Ultrix cc can't do it.
82685
82686 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/mktime.m4: New file, which is a preview of what should appear
82689         in the next public autoconf release.
82690
82691 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82692
82693         * m4/lfs.m4: Remove this file.
82694         * m4/largefile.m4: New file.  It contains the old contents of
82695         lfs.m4, except that all names with prefix AC_LFS have been
82696         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82697         compatible with future autoconf versions.  Also, some minor m4
82698         quoting problems have been fixed.
82699
82700 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82701
82702         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82703         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82704         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82705         and simplify the shell code.
82706
82707 1999-08-01  Jim Meyering  <meyering@ascend.com>
82708
82709         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82710         m4.
82711
82712 1999-07-20  Jim Meyering  <meyering@ascend.com>
82713
82714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82715
82716 1999-07-15  Jim Meyering  <meyering@ascend.com>
82717
82718         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82719
82720 1999-05-22  Jim Meyering  <meyering@ascend.com>
82721
82722         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82723
82724 1999-05-20  Jim Meyering  <meyering@ascend.com>
82725
82726         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82727         Add a colon after each `then' in case $4 is empty.
82728
82729 1999-05-16  Jim Meyering  <meyering@ascend.com>
82730
82731         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82732
82733 1999-05-10  Jim Meyering  <meyering@ascend.com>
82734
82735         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82736
82737         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82738         AC_FUNC_MKTIME.
82739
82740 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82741
82742         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82743
82744 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82745
82746         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82747         not CPPFLAGS, so that linking works correctly in IRIX.
82748
82749 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82750
82751         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82752
82753 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82754
82755         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82756         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82758         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82759         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82760
82761         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82762
82763 1999-04-20  Jim Meyering  <meyering@ascend.com>
82764
82765         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82766         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82767         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82768
82769 1999-04-18  Jim Meyering  <meyering@ascend.com>
82770
82771         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82772         * m4/jm-macros.m4: Use it.
82773
82774 1999-04-06  Jim Meyering  <meyering@ascend.com>
82775
82776         * m4/strftime.m4: Remove test for %f.
82777
82778 1999-03-29  Jim Meyering  <meyering@ascend.com>
82779
82780         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82781         superset of the AC_TYPE_* checks in the textutils, fileutils,
82782         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82783         AC_TYPE_PID_T.
82784
82785 1999-03-28  Jim Meyering  <meyering@ascend.com>
82786
82787         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82788         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82789         replaced e.g., in the *.sh files of the sh-utils.
82790
82791 1999-03-20  Jim Meyering  <meyering@ascend.com>
82792
82793         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82794         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82795         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82796
82797 1999-03-19  Jim Meyering  <meyering@ascend.com>
82798
82799         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82800
82801 1999-03-12  Jim Meyering  <meyering@ascend.com>
82802
82803         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82804
82805 1999-03-07  Jim Meyering  <meyering@ascend.com>
82806
82807         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82808         declared.
82809
82810 1999-02-17  Jim Meyering  <meyering@ascend.com>
82811
82812         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82813         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82814
82815 1999-02-07  Jim Meyering  <meyering@ascend.com>
82816
82817         * m4/group-member.m4: New file -- extracted from sh-utils'
82818         configure.in.
82819
82820         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82821         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82822
82823 1999-02-06  Jim Meyering  <meyering@ascend.com>
82824
82825         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82826         * m4/fnmatch.m4: Likewise.
82827         * m4/getgroups.m4: Likewise.
82828         * m4/lstat.m4: Likewise.
82829         * m4/malloc.m4: Likewise.
82830         * m4/putenv.m4: Likewise.
82831         * m4/realloc.m4: Likewise.
82832         * m4/regex.m4: Likewise.
82833         * m4/stat.m4: Likewise.
82834         * m4/strftime.m4: Likewise.
82835         Suggestion from Alain Magloire.
82836
82837         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82838         * m4/fnmatch.m4: Likewise.
82839         * m4/getgroups.m4: Likewise.
82840         * m4/getline.m4: Likewise.
82841         * m4/lstat.m4: Likewise.
82842         * m4/malloc.m4: Likewise.
82843         * m4/memcmp.m4: Likewise.
82844         * m4/putenv.m4: Likewise.
82845         * m4/realloc.m4: Likewise.
82846         * m4/regex.m4: Likewise.
82847         * m4/stat.m4: Likewise.
82848         * m4/strftime.m4: Likewise.
82849         Suggestion from Alain Magloire.
82850
82851         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82852         an argument.
82853
82854         * m4/regex.m4: Add a run-time Test for proper operation of
82855         re_compile_pattern.
82856
82857 1999-01-31  Jim Meyering  <meyering@ascend.com>
82858
82859         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82860
82861 1999-01-30  Jim Meyering  <meyering@ascend.com>
82862
82863         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82864
82865         * m4/jm-mktime.m4: Make this a wrapper around the official
82866         AM_FUNC_MKTIME rather than my private copy, now that the official one
82867         is up to date.
82868         * m4/mktime.m4: Remove file.
82869
82870         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82871         * m4/uptime.m4: Likewise.
82872         * m4/uintmax_t.m4: Likewise.
82873
82874 1999-01-28  Jim Meyering  <meyering@ascend.com>
82875
82876         * m4/jm-macros.m4: Use jm_AFS.
82877         * m4/afs.m4: New file (from fileutils' configure.in).
82878
82879         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82880         * m4/chown.m4: Likewise.
82881         * m4/d-ino.m4: Likewise.
82882         * m4/d-type.m4: Likewise.
82883         * m4/fnmatch.m4: Likewise.
82884         * m4/getgroups.m4: Likewise.
82885         * m4/gettext.m4: Likewise.
82886         * m4/jm-mktime.m4: Likewise.
82887         * m4/jm-winsz2.m4: Likewise.
82888         * m4/lcmessage.m4: Likewise.
82889         * m4/ls-mntd-fs.m4: Likewise.
82890         * m4/malloc.m4: Likewise.
82891         * m4/memcmp.m4: Likewise.
82892         * m4/putenv.m4: Likewise.
82893         * m4/realloc.m4: Likewise.
82894         * m4/st_mtim.m4: Likewise.
82895         * m4/strftime.m4: Likewise.
82896
82897 1999-01-16  Jim Meyering  <meyering@ascend.com>
82898
82899         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82900         (ARGMATCH_DIE_DECL): Define.
82901
82902 1999-01-12  Jim Meyering  <meyering@ascend.com>
82903
82904         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82905         Reported by Lars Hecking.
82906
82907 1999-01-10  Jim Meyering  <meyering@ascend.com>
82908
82909         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82910         gross kludge.
82911         * m4/inttypes_h.m4: Likewise.
82912         * m4/lstat.m4: Likewise.
82913         * m4/malloc.m4: Likewise.
82914         * m4/readdir.m4: Likewise.
82915         * m4/realloc.m4: Likewise.
82916         * m4/st_dm_mode.m4: Likewise.
82917         * m4/stat.m4: Likewise.
82918         * m4/utimbuf.m4: Likewise.
82919         * m4/utimes.m4: Likewise.
82920
82921         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82922         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82923         comments in config.h.in are meaningful.
82924
82925         * m4/jm-macros.m4: Require autoconf-2.13 here.
82926
82927         * m4/regex.m4: By default, don't use the included regex.c on systems
82928         with glibc 2.  Suggestion from Uli Drepper.
82929
82930 1999-01-02  Jim Meyering  <meyering@ascend.com>
82931
82932         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82933
82934 1998-12-18  Jim Meyering  <meyering@ascend.com>
82935
82936         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82937         Based on a suggestion from Lars Hecking.
82938
82939 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82940
82941         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82942
82943 1998-11-16  Jim Meyering  <meyering@ascend.com>
82944
82945         * m4/lfs.m4: Double-quote the `uname...` expression.
82946
82947 1998-11-14  Jim Meyering  <meyering@ascend.com>
82948
82949         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82950         * m4/stat.m4: Likewise.
82951
82952 1998-11-03  Jim Meyering  <meyering@ascend.com>
82953
82954         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82955         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82956
82957 1998-10-18  Jim Meyering  <meyering@ascend.com>
82958
82959         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82960
82961 1998-10-17  Jim Meyering  <meyering@ascend.com>
82962
82963         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82964         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82965         calls for those previously hard-coded headers.  Instead, take a new
82966         parameter.
82967         (jm_CHECK_DECLARATIONS): Reflect interface change.
82968         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82969         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82970
82971         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82972
82973 1998-10-14  Jim Meyering  <meyering@ascend.com>
82974
82975         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82976         instead of "TZ=America/Vancouver".  From Paul Eggert.
82977
82978 1998-10-11  Jim Meyering  <meyering@ascend.com>
82979
82980         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82981         This adds a test for a recently added compatibility fix for mktime.c.
82982         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82983
82984 1998-09-27  Jim Meyering  <meyering@ascend.com>
82985
82986         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82987
82988         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82989         ../configure.in, including a change from Gordon Matzigkeit to allow
82990         cross-compiling for the Hurd.
82991
82992         * m4/glibc.m4: New file/macro to test for the GNU C Library
82993         versions 1 and 2.  From Gordon Matzigkeit.
82994         Indent.
82995
82996 1998-09-21  Jim Meyering  <meyering@ascend.com>
82997
82998         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82999
83000 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83001
83002         Port nanosecond-resolution times to UnixWare 2.1.2 and
83003         pedantic Solaris 2.6.
83004
83005         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83006         AC_STRUCT_ST_MTIM.
83007         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83008         Generate name of ns member, instead of just 1 or undef.
83009         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83010
83011 1998-08-15  Jim Meyering  <meyering@ascend.com>
83012
83013         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83014         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83015         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83016         instead of jm_TYPE_SSIZE_T.
83017
83018 1998-08-12  Jim Meyering  <meyering@ascend.com>
83019
83020         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83021
83022 1998-08-02  Jim Meyering  <meyering@ascend.com>
83023
83024         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83025         in acconfig.h manually.
83026
83027 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83028
83029         * m4/st_mtim.m4: New file.
83030
83031 1998-07-28  Jim Meyering  <meyering@ascend.com>
83032
83033         * m4/utimes.m4: Undef stat.
83034
83035 1998-07-25  Jim Meyering  <meyering@ascend.com>
83036
83037         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83038         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83039
83040 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83041
83042         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83043         uid and gid actually remain unchanged.
83044
83045 1998-07-07  Jim Meyering  <meyering@ascend.com>
83046
83047         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83048
83049 1998-07-04  Jim Meyering  <meyering@ascend.com>
83050
83051         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83052         to prove that this macro can be used in packages without regex.c.
83053
83054 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83055
83056         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83057         is to be used.
83058
83059 1998-07-03  Jim Meyering  <meyering@ascend.com>
83060
83061         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83062
83063         * m4/gettext.m4: New file -- from gettext-0.10.35.
83064         * m4/lcmessage.m4: Likewise.
83065         * m4/progtest.m4: Likewise.
83066
83067         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83068         * m4/jm-macros.m4: Require the new macro.
83069
83070 1998-06-29  Jim Meyering  <meyering@ascend.com>
83071
83072         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83073         for the definition of NGROUPS (used in a system header included
83074         by sys/mount.h).
83075
83076 1998-06-28  Jim Meyering  <meyering@ascend.com>
83077
83078         * m4/ls-mntd-fs.m4: New file.
83079         * m4/fstypename.m4: New file.
83080
83081         * m4/jm-macros.m4: Require the new macro.
83082         * m4/jm-glibc-io.m4: New file.
83083
83084 1998-05-19  Jim Meyering  <meyering@ascend.com>
83085
83086         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83087         * m4/lchown.m4: New file.
83088
83089         * m4/Makefile.am.in: New file.
83090         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83091
83092 1998-05-14  Jim Meyering  <meyering@ascend.com>
83093
83094         * m4/Makefile.am (EXTRA_DIST): Add them.
83095         * m4/jm-macros.m4: New file.
83096         * m4/utimbuf.m4: New file.
83097
83098 1998-05-12  Jim Meyering  <meyering@ascend.com>
83099
83100         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83101
83102 1998-05-11  Jim Meyering  <meyering@ascend.com>
83103
83104         * m4/isc-posix.m4: New file.
83105
83106 1998-05-10  Jim Meyering  <meyering@ascend.com>
83107
83108         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83109
83110 1998-05-09  Jim Meyering  <meyering@ascend.com>
83111
83112         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83113         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83114         with automake.
83115
83116         * m4/ssize_t.m4: New file.
83117         * m4/mktime.m4: Remove file -- the new automake has this now.
83118
83119 1998-04-26  Jim Meyering  <meyering@ascend.com>
83120
83121         * m4/assert.m4: New file.
83122         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83123
83124 1998-04-05  Jim Meyering  <meyering@ascend.com>
83125
83126         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83127         (jm_PREREQ): Use it here.
83128
83129 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83130
83131         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83132         in acconfig.h.
83133
83134 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83135
83136         * m4/prereq.m4: New file.
83137         * m4/error.m4: New file.
83138         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83139
83140 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83141
83142         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83143         cache-check for the same variable -- that defeated the purpose of
83144         the test; the test program was never run.  This was a problem only
83145         on systems with losing getline functions -- HP-UX 10.20 is one.
83146         Reported by Bjorn Helgaas.
83147
83148 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83149
83150         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83151
83152 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83153
83154         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83155
83156         * m4/const.m4: New file.  Use an initializer in this declaration
83157         typedef int charset[2]; const charset x;
83158         Reported by Bob Glickstein.
83159
83160 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83161
83162         * m4/chown.m4: Fix reversed types on -1 args to chown.
83163         From Kaveh Ghazi.
83164
83165 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83166
83167         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83168         Add lseek and memchr.
83169
83170         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83171         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83172         have a 20-character limit on names.
83173
83174 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83175
83176         * m4/inttypes_h.m4: New file.
83177         * m4/uintmax_t.m4: New file.
83178         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83179
83180
83181         -----
83182
83183         Local Variables:
83184         coding: utf-8
83185         End:
83186
83187         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83188
83189         Copying and distribution of this file, with or without
83190         modification, are permitted provided the copyright notice
83191         and this notice are preserved.